Skip to content

Commit 5fb71ca

Browse files
committedJan 7, 2025
Modern ruby update
1 parent 2f03052 commit 5fb71ca

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
 

‎.ruby-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.9.3-p374
1+
3.2.2

‎bin/tourbus

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ opts = Optimist.options do
2828
end
2929

3030
# config file wins
31-
config_file = [opts[:touristsdir] + '/tourbus.yml', "./tourbus.yml", "./tourists/tourbus.yml", "./config/tourbus.yml", "~/tourbus.yml"].map {|p| File.expand_path(p)}.find {|p| File.exists? p}
31+
config_file = [opts[:touristsdir] + '/tourbus.yml', "./tourbus.yml", "./tourists/tourbus.yml", "./config/tourbus.yml", "~/tourbus.yml"].map {|p| File.expand_path(p)}.find {|p| File.exist? p}
3232
file_config = config_file ? YAML::load_file(config_file).symbolize_keys : {}
3333

3434
config_map = { :host => :to_s, :concurrency => :to_i, :number => :to_i, :rand => :to_i, :tours => :to_s }

‎lib/guide.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def guide_tourist(tourist_type)
3939
begin
4040
tourist.run_tour tour
4141
tour_data[:status] = "success"
42-
rescue MiniTest::Assertion, TourBusException, WebratError => e
42+
rescue Minitest::Assertion, TourBusException, WebratError => e
4343
# binding.pry
4444
log("********** FAILURE IN RUN! **********")
4545
log(e.message)

‎lib/tourist.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def self.configuration=(global_config)
4747

4848
def self.configuration
4949
@configuration ||= begin
50-
config_file = @@tourists_file_search.map {|p| File.expand_path(p)}.find {|p| File.exists? p}
50+
config_file = @@tourists_file_search.map {|p| File.expand_path(p)}.find {|p| File.exist? p}
5151
config_file ? YAML::load_file(config_file).symbolize_keys : {}
5252
end
5353
end

0 commit comments

Comments
 (0)
Please sign in to comment.