snapshot 1.16.4 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 97482d5ed2982c0c57556d26b8ca34266e66d6bd
4
- data.tar.gz: 7dde1f8cbbb7690d1427724c94793187f2ef7b1f
3
+ metadata.gz: 473b37affd12e1dd67b0aaad8f30894eb7c1edb3
4
+ data.tar.gz: e9f97f6d76f4ff794fb26fbb611b1819282b7340
5
5
  SHA512:
6
- metadata.gz: a459a7f88520eb667bf9bd25404cc2e620e6fe43c32c87a9ded112d04348d942b05d7aa6f11b3ae9cad11d15ccd5b8c64d63003889b1c2161b5c9433c3a1e257
7
- data.tar.gz: cf9fdd7545dc049882eecba4c127f23d0393d3ed4b3f4d008309268049ff3d317b3849fcb78bf99d40b21b32e85d2b558d8a400d9129d38381114d1c632b7a87
6
+ metadata.gz: 83aae9591f6ebe9868a30a7caac54d87b2cd6b4e1f8a88c939ecfc1b7deb06db65dac0ba951805b413bf63a35858b34fcbb34b8de68a00ed815edc3eeb6ed83e
7
+ data.tar.gz: 18be5b4be78d4a283da3c4b7f7bf06b116eb00902fb291b3f79d1a29acd07fa8dec6cba34349e313fb85b1af43f18096845ee60f28796911b7515ce05c0e791e
@@ -14,6 +14,7 @@ module Snapshot
14
14
  end
15
15
 
16
16
  def run
17
+ program :name, 'snapshot'
17
18
  program :version, Snapshot::VERSION
18
19
  program :description, 'CLI for \'snapshot\' - Automate taking localized screenshots of your iOS app on every device'
19
20
  program :help, 'Author', 'Felix Krause <snapshot@krausefx.com>'
@@ -64,13 +65,14 @@ module Snapshot
64
65
  c.syntax = 'snapshot reset_simulators'
65
66
  c.description = "This will remove all your existing simulators and re-create new ones"
66
67
  c.option '-i', '--ios String', String, 'The comma separated list of iOS Versions you want to use'
68
+ c.option '--force', 'Disables confirmation prompts'
67
69
 
68
70
  c.action do |args, options|
69
71
  options.default ios_version: Snapshot::LatestOsVersion.ios_version
70
72
  versions = options.ios_version.split(',') if options.ios_version
71
73
  require 'snapshot/reset_simulators'
72
74
 
73
- Snapshot::ResetSimulators.clear_everything!(versions)
75
+ Snapshot::ResetSimulators.clear_everything!(versions, options.force)
74
76
  end
75
77
  end
76
78
 
@@ -1,11 +1,11 @@
1
1
  module Snapshot
2
2
  class ResetSimulators
3
- def self.clear_everything!(ios_versions)
3
+ def self.clear_everything!(ios_versions, force = false)
4
4
  # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5
5
  # !! Warning: This script will remove all your existing simulators !!
6
6
  # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7
7
 
8
- sure = true if ENV["SNAPSHOT_FORCE_DELETE"]
8
+ sure = true if ENV["SNAPSHOT_FORCE_DELETE"] || force
9
9
  sure = agree("Are you sure? All your simulators will be DELETED and new ones will be created! (y/n)".red, true) unless sure
10
10
  UI.user_error!("User cancelled action") unless sure
11
11
 
@@ -1,4 +1,4 @@
1
1
  module Snapshot
2
- VERSION = "1.16.4".freeze
2
+ VERSION = "1.17.0".freeze
3
3
  DESCRIPTION = "Automate taking localized screenshots of your iOS and tvOS apps on every device"
4
4
  end
metadata CHANGED
@@ -1,36 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.4
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-21 00:00:00.000000000 Z
11
+ date: 2016-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fastimage
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.6.3
19
+ version: '1.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.6.3
26
+ version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fastlane_core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.57.0
33
+ version: 0.60.0
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 1.0.0
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 0.57.0
43
+ version: 0.60.0
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 1.0.0
@@ -102,16 +102,16 @@ dependencies:
102
102
  name: rake
103
103
  requirement: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ">="
105
+ - - "<"
106
106
  - !ruby/object:Gem::Version
107
- version: '0'
107
+ version: '12'
108
108
  type: :development
109
109
  prerelease: false
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ">="
112
+ - - "<"
113
113
  - !ruby/object:Gem::Version
114
- version: '0'
114
+ version: '12'
115
115
  - !ruby/object:Gem::Dependency
116
116
  name: rspec
117
117
  requirement: !ruby/object:Gem::Requirement
@@ -280,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
280
280
  version: '0'
281
281
  requirements: []
282
282
  rubyforge_project:
283
- rubygems_version: 2.2.2
283
+ rubygems_version: 2.5.1
284
284
  signing_key:
285
285
  specification_version: 4
286
286
  summary: Automate taking localized screenshots of your iOS and tvOS apps on every