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 +4 -4
- data/lib/snapshot/commands_generator.rb +3 -1
- data/lib/snapshot/reset_simulators.rb +2 -2
- data/lib/snapshot/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 473b37affd12e1dd67b0aaad8f30894eb7c1edb3
|
4
|
+
data.tar.gz: e9f97f6d76f4ff794fb26fbb611b1819282b7340
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/snapshot/version.rb
CHANGED
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.
|
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
|
+
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
|
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
|
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.
|
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.
|
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: '
|
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: '
|
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.
|
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
|