screengrab 0.3.1 → 0.3.2

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: 294f2f8ebb399fdff3ce6c8b18783ef13603214c
4
- data.tar.gz: 97a48c24eca2c192c6586057bb187082d62d3e14
3
+ metadata.gz: a9389e49b61448d2e514a577597a2eeabab3a27d
4
+ data.tar.gz: 5dcce367104bdd340e7326ab5b8afebe8bb2e0f4
5
5
  SHA512:
6
- metadata.gz: bdd185b5bebc5bcc6ba67ce4302da00828ee6b2aa5d7abe685aa0d2d4787d954618cbe928baf27b26a0947a026aca3fd425a449eee35672ce21fc1369ee7162b
7
- data.tar.gz: c05dc8d0c1d64df0bfa4c8022697a8dbeeba3097fde22ad0f2d2155643ea6dca2b6294a95f0d83e3b152190e2f805510dde855269e0e3d3ef68100d596c69446
6
+ metadata.gz: fbd73085c982df0d8bf27b553db09eae485a17fac711bf13d9c1a6e240a5da3bc8f587a9d1dc971109bd9796d93ddc92e94b6a8d1bebc642084a5cb6b4c0db30
7
+ data.tar.gz: 9e0d0e76b21219e90a182ea87dd7be781e7ba35ac8cfc0df4b3bf150b94ebea6c8ae0c5557396a1e2da33c189ba2a0e633622c5e91d05be89e64ac45f772d9c8
@@ -126,7 +126,7 @@ module Screengrab
126
126
  end
127
127
 
128
128
  def screenshot_file_names_in(output_directory, device_type)
129
- Dir.glob(File.join('.', output_directory, '**', device_type, '*.png'), File::FNM_CASEFOLD)
129
+ Dir.glob(File.join(output_directory, '**', device_type, '*.png'), File::FNM_CASEFOLD)
130
130
  end
131
131
 
132
132
  def determine_external_screenshots_path(device_serial)
@@ -228,6 +228,8 @@ module Screengrab
228
228
  UI.message "Pulling captured screenshots from the device"
229
229
  starting_screenshot_count = screenshot_file_names_in(@config[:output_directory], device_type_dir_name).length
230
230
 
231
+ UI.verbose("Starting screenshot count is: #{starting_screenshot_count}")
232
+
231
233
  device_screenshots_paths.each do |device_path|
232
234
  if_device_path_exists(device_serial, device_path) do |path|
233
235
  @executor.execute(command: "adb -s #{device_serial} pull #{path} #{@config[:output_directory]}",
@@ -245,6 +247,8 @@ module Screengrab
245
247
 
246
248
  ending_screenshot_count = screenshot_file_names_in(@config[:output_directory], device_type_dir_name).length
247
249
 
250
+ UI.verbose("Ending screenshot count is: #{ending_screenshot_count}")
251
+
248
252
  # Because we can't guarantee the screenshot output directory will be empty when we pull, we determine
249
253
  # success based on whether there are more screenshots there than when we started.
250
254
  if starting_screenshot_count == ending_screenshot_count
@@ -258,7 +262,7 @@ module Screengrab
258
262
  def move_pulled_screenshots(device_type_dir_name)
259
263
  # Glob pattern that finds the pulled screenshots directory for each locale
260
264
  # (Matches: fastlane/metadata/android/en-US/images/screenshots)
261
- screenshots_dir_pattern = File.join('.', @config[:output_directory], '**', "screenshots")
265
+ screenshots_dir_pattern = File.join(@config[:output_directory], '**', "screenshots")
262
266
 
263
267
  Dir.glob(screenshots_dir_pattern, File::FNM_CASEFOLD).each do |screenshots_dir|
264
268
  src_screenshots = Dir.glob(File.join(screenshots_dir, '*.png'), File::FNM_CASEFOLD)
data/version.properties CHANGED
@@ -1,3 +1,3 @@
1
1
  major=0
2
2
  minor=3
3
- patch=1
3
+ patch=2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screengrab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrea Falcone
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-03-17 00:00:00.000000000 Z
12
+ date: 2016-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fastlane_core
@@ -129,6 +129,20 @@ dependencies:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: 3.1.0
132
+ - !ruby/object:Gem::Dependency
133
+ name: rspec_junit_formatter
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.2.3
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.2.3
132
146
  - !ruby/object:Gem::Dependency
133
147
  name: yard
134
148
  requirement: !ruby/object:Gem::Requirement
@@ -213,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
227
  version: '0'
214
228
  requirements: []
215
229
  rubyforge_project:
216
- rubygems_version: 2.4.6
230
+ rubygems_version: 2.4.5.1
217
231
  signing_key:
218
232
  specification_version: 4
219
233
  summary: Automated localized screenshots of your Android app on every device