File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
s . add_runtime_dependency 'selenium-webdriver' , '~> 2.48'
18
18
s . add_runtime_dependency 'awesome_print' , '~> 1.6'
19
19
s . add_runtime_dependency 'json' , '~> 1.8'
20
- s . add_runtime_dependency 'toml ' , '~> 0.0 '
20
+ s . add_runtime_dependency 'tomlrb ' , '~> 1.1 '
21
21
s . add_runtime_dependency 'nokogiri' , '~> 1.6.6'
22
22
23
23
s . add_development_dependency 'posix-spawn' , '~> 0.3'
Original file line number Diff line number Diff line change @@ -83,13 +83,10 @@ def self.load_appium_txt(opts = {})
83
83
Appium ::Logger . info "Exists? #{ toml_exists } " if verbose
84
84
85
85
fail "toml doesn't exist #{ toml } " unless toml_exists
86
- require 'toml '
86
+ require 'tomlrb '
87
87
Appium ::Logger . info "Loading #{ toml } " if verbose
88
88
89
- data = File . read toml
90
- data = TOML ::Parser . new ( data ) . parsed
91
- # TOML creates string keys. must symbolize
92
- data = Appium . symbolize_keys data
89
+ data = Tomlrb . load_file ( toml , symbolize_keys : true )
93
90
Appium ::Logger . ap_info data unless data . empty? if verbose
94
91
95
92
if data && data [ :caps ] && data [ :caps ] [ :app ] && !data [ :caps ] [ :app ] . empty?
You can’t perform that action at this time.
0 commit comments