snapshot 0.4.10 → 0.4.11

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: 85ff19b7aae7e38a95d454ea3083a8acd51b224c
4
- data.tar.gz: 84be5a1d6ede7a985a3f1553abd5e0d798386c14
3
+ metadata.gz: 5e7f8764c7ccb052783a772bf7583e3cbe270501
4
+ data.tar.gz: 5f16b0ed81aa8f1b660521a6864731c31c2de6d1
5
5
  SHA512:
6
- metadata.gz: 2d245dfb71326a49e0e7bd5b772c0bcf45c4cf2459fa05c02645f08beb95b074e8e6650da186f87a94624f61dfa742b222cf585c12dc11589075726442ac359c
7
- data.tar.gz: 54afd37c258e5f1d00ecb643adc8d7d817e7c6be33f33930f1e86e8c60bd350dc51061805947757ed63724371a83a1c0b0a46be301fd4895958674a3308f3a29
6
+ metadata.gz: 0938ff5e2b80ea066a207259ba913867df412341c23e6180aae74da50508e2d591b30fdd103b78688a8d94be7a0c22be95cb801a63c4a7b27df5db4e8a39f81c
7
+ data.tar.gz: aa8255d45a17dbfe9a4cc9bcae173ae170076dbc6ea21f0b66b8a6507e4d86eadc1d2b604e93b94512059d47a80368bb32af3037eb40973446efdeb9ec014fc9
data/README.md CHANGED
@@ -11,7 +11,9 @@
11
11
  <a href="https://github.com/KrauseFx/frameit">frameit</a> &bull;
12
12
  <a href="https://github.com/KrauseFx/PEM">PEM</a> &bull;
13
13
  <a href="https://github.com/KrauseFx/sigh">sigh</a> &bull;
14
- <a href="https://github.com/KrauseFx/produce">produce</a>
14
+ <a href="https://github.com/KrauseFx/produce">produce</a> &bull;
15
+ <a href="https://github.com/KrauseFx/cert">cert</a> &bull;
16
+ <a href="https://github.com/KrauseFx/codes">codes</a>
15
17
  </p>
16
18
  -------
17
19
 
@@ -75,8 +77,9 @@ Get in contact with the developer on Twitter: [@KrauseFx](https://twitter.com/Kr
75
77
  - Generates a beautiful web page, which shows all screenshots on all devices. This is perfect to send to Q&A or the marketing team
76
78
  - ```snapshot``` automatically waits for network requests to be finished before taking a screenshot (we don't want loading images in the App Store screenshots)
77
79
 
78
- After ```snapshot``` successfully created new screenshots, it will generate a beautiful html file to get a quick overview of all screens:
80
+ ##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
79
81
 
82
+ After ```snapshot``` successfully created new screenshots, it will generate a beautiful html file to get a quick overview of all screens:
80
83
 
81
84
  ![assets/htmlPagePreviewFade.jpg](assets/htmlPagePreviewFade.jpg)
82
85
 
@@ -89,6 +92,8 @@ This gem automatically switches the language and device type and runs the automa
89
92
  - Be so nice, and provide new screenshots with every App Store update. Your customers deserve it
90
93
  - You realise, there is a spelling mistake in one of the screens? Well, just correct it and re-run the script.
91
94
  - You get a great overview of all your screens, running on all available simulators without the need to manually start it hundreds of times
95
+ - Easy verification that localizations fit into labels on all screen dimensions
96
+ - Easy verification for translators (without an iDevice) that translations do make sense in real App context
92
97
 
93
98
  ###Why use ```snapshot``` instead of....
94
99
 
@@ -122,7 +127,7 @@ Here a few links to get started:
122
127
  # Quick Start
123
128
 
124
129
  - Run ```snapshot init``` in your project folder
125
- - Profile your app (CMD + I), choose ```Automation``` and click the Record button on the bottom of the window.
130
+ - Profile your app in Xcode (CMD + I), choose ```Automation``` and click the Record button on the bottom of the window.
126
131
  - This will get you started. Copy the generated code into ```./snapshot.js```. Make sure, you leave the import statement on the top.
127
132
  - To take a screenshot, use ```captureLocalizedScreenshot('0-name')```
128
133
 
@@ -227,10 +232,14 @@ ios_version "9.0"
227
232
  ```
228
233
 
229
234
  ### Custom Args for the build command
230
-
235
+ Use the ```custom_args``` directive to prepend custom statements to the build command.
231
236
  ```ruby
232
237
  custom_args "GCC_PREPROCESSOR_DEFINITIONS='SCREENSHOTS'"
233
238
  ```
239
+ Add a ```custom_build_args``` line to your ```Snapfile``` to add custom arguments to the build command.
240
+ ```ruby
241
+ custom_build_args "-configuration release"
242
+ ```
234
243
 
235
244
  ### Custom Build Command
236
245
  If for some reason, the default build command does not work for your project, you can pass your own build script. The script will be executed **once** before the tests are being run.
@@ -242,8 +251,8 @@ build_command "xcodebuild DSTROOT='/tmp/snapshot' OBJROOT='/tmp/snapshot' SYMROO
242
251
  ```
243
252
 
244
253
  ### Custom callbacks to prepare your app
245
- Run your own script when ```snapshot``` switches the simulator type or the language.
246
- This can be used to
254
+ Run your own script when ```snapshot``` switches the simulator type or the language.
255
+ This can be used to
247
256
  - Logout the user
248
257
  - Reset all user defaults
249
258
  - Pre-fill the database
@@ -303,6 +312,10 @@ clear_previous_screenshots
303
312
  - [`PEM`](https://github.com/KrauseFx/pem): Automatically generate and renew your push notification profiles
304
313
  - [`sigh`](https://github.com/KrauseFx/sigh): Because you would rather spend your time building stuff than fighting provisioning
305
314
  - [`produce`](https://github.com/KrauseFx/produce): Create new iOS apps on iTunes Connect and Dev Portal using the command line
315
+ - [`cert`](https://github.com/KrauseFx/cert): Automatically create and maintain iOS code signing certificates
316
+ - [`codes`](https://github.com/KrauseFx/codes): Create promo codes for iOS Apps using the command line
317
+
318
+ ##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
306
319
 
307
320
  ## Run in Continuous Integration
308
321
  If you want to run `snapshot` on your `Jenkins` machine (or any other CI-system), you might run into an `authorization` popup coming up.
@@ -59,6 +59,8 @@ module Snapshot
59
59
  proj_key = 'workspace' if proj_path.end_with?'.xcworkspace'
60
60
 
61
61
  pre_command = SnapshotConfig.shared_instance.custom_args || ENV["SNAPSHOT_CUSTOM_ARGS"] || ''
62
+ custom_build_args = SnapshotConfig.shared_instance.custom_build_args || ENV["SNAPSHOT_CUSTOM_BUILD_ARGS"] || ''
63
+
62
64
  build_command = pre_command + ' ' + (DependencyChecker.xctool_installed? ? 'xctool' : 'xcodebuild')
63
65
 
64
66
  actions = []
@@ -74,6 +76,7 @@ module Snapshot
74
76
  "DSTROOT='#{BUILD_DIR}'",
75
77
  "OBJROOT='#{BUILD_DIR}'",
76
78
  "SYMROOT='#{BUILD_DIR}'",
79
+ custom_build_args,
77
80
  actions.join(' ')
78
81
  ].join(' ')
79
82
  end
@@ -36,6 +36,9 @@ module Snapshot
36
36
 
37
37
  # @return (String) This will be prepended before the actual build command
38
38
  attr_accessor :custom_args
39
+
40
+ # @return (String) This will be appended to the actual build command
41
+ attr_accessor :custom_build_args
39
42
 
40
43
  # @return (Hash) All the blocks, which are called on specific actions
41
44
  attr_accessor :blocks
@@ -47,6 +47,9 @@ module Snapshot
47
47
  when :custom_args
48
48
  raise "custom_args has to be an String".red unless value.kind_of?String
49
49
  @config.custom_args = value
50
+ when :custom_build_args
51
+ raise "custom_build_args has to be an String".red unless value.kind_of?String
52
+ @config.custom_build_args = value
50
53
  when :skip_alpha_removal
51
54
  @config.skip_alpha_removal = true
52
55
  when :clear_previous_screenshots
@@ -1,3 +1,3 @@
1
1
  module Snapshot
2
- VERSION = "0.4.10"
2
+ VERSION = "0.4.11"
3
3
  end
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.10
4
+ version: 0.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-02-27 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: '0'
19
+ version: 1.6.3
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: '0'
26
+ version: 1.6.3
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.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement