File tree 2 files changed +1
-10
lines changed
lib/appium_lib_core/common/base
2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
8
8
- Available packages over HTTP [ #106 ] ( https://github.com/appium/ruby_lib_core/issues/106 )
9
9
10
10
### Deprecations
11
+ - Remove warning of camelCase capability for W3C format
11
12
12
13
## [ 1.8.1] - 2018-07-13
13
14
### Enhancements
Original file line number Diff line number Diff line change @@ -122,8 +122,6 @@ def add_appium_prefix(capabilities)
122
122
123
123
capabilities = capabilities . __send__ ( :capabilities ) unless capabilities . is_a? ( Hash )
124
124
125
- warn_if_camel_case ( capabilities )
126
-
127
125
capabilities . each do |name , value |
128
126
next if value . nil?
129
127
next if value . is_a? ( String ) && value . empty?
@@ -139,14 +137,6 @@ def add_appium_prefix(capabilities)
139
137
140
138
private
141
139
142
- def warn_if_camel_case ( caps )
143
- warn_caps = caps . collect { |key , _value | key =~ /_([a-z])/ ? key : nil } . compact
144
- return if warn_caps . empty?
145
-
146
- warn_message = warn_caps . join ( ', ' )
147
- ::Appium ::Logger . warn ( "Please define capability key names: #{ warn_message } as camelCase for W3C Appium Server" )
148
- end
149
-
150
140
def camel_case ( str )
151
141
str . gsub ( /_([a-z])/ ) { Regexp . last_match ( 1 ) . upcase }
152
142
end
You can’t perform that action at this time.
0 commit comments