yi_appium_caps_util 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/yi_appium_caps_util +8 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5fb12cb7658ebd449dbbe75ce97ccb7dd901db3e
4
- data.tar.gz: b78cce6d47b71cd0747d5fbbe010cd328de351ed
3
+ metadata.gz: 70e6f631a058d7507a56cd2f12e1a642d42ccb05
4
+ data.tar.gz: 83252222e3e5943ef1a5f14329e7c22ce7c398e5
5
5
  SHA512:
6
- metadata.gz: 9479725215d0ae8792895a27f918a2806cd600c6df3e8eca8d29b8a2bf83c597291f15faef535de3fe10657375a4a2a96baa87a2b7db92e3ba698a933d43f344
7
- data.tar.gz: 8e3c5546f12202a76503684dbb8898b5cdb6e5c77a053201698532fd4ac1b3129e4b98864647e61395d12e945af775ec82dad8623c8a02627f99e38e64664629
6
+ metadata.gz: ce2b5068a5ecb95ca5cbb06dbe67a25315c7a9f5e070b0f536e77724645ca80064a5345ea552150a8cddc0b0ac9476b34d77e6c9b6700f385905de12c4bfef2a
7
+ data.tar.gz: 2cadda72ca80f5710b2e9a1b3e89c4fbf48df1c86a6e1aaa10e6e64514d9b0133f43d443ff89c4fe9716501827807025586dfcd7513a143fec73b50c48a8502d
@@ -30,8 +30,15 @@ end.parse!
30
30
  raise "You should pass -u or -c PLATFORM as an input argument. Type -h for help" if options[:update] == nil and options[:create_caps] == nil
31
31
 
32
32
  if options[:update]
33
+ if options[:file] && options[:platform]
33
34
  YiAppiumCapsUtil.update(caps_file_name: options[:file], platformName_value: options[:platform])
34
- end
35
+ elsif options[:file]
36
+ YiAppiumCapsUtil.update(caps_file_name: options[:file])
37
+ elsif options[:platform]
38
+ YiAppiumCapsUtil.update(platformName_value: options[:platform])
39
+ else
40
+ YiAppiumCapsUtil.update
41
+ end
35
42
  end
36
43
 
37
44
  if options[:create_caps]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yi_appium_caps_util
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Granger