screengrab 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,17 @@
1
+ module Screengrab
2
+ class Setup
3
+ # This method will take care of creating a screengrabfile and other necessary files
4
+ def self.create(path)
5
+ screengrabfile_path = File.join(path, 'Screengrabfile')
6
+
7
+ if File.exist?(screengrabfile_path)
8
+ UI.user_error!("Screengrabfile already exists at path '#{screengrabfile_path}'. Run 'screengrab' to use screengrab.")
9
+ end
10
+
11
+ gem_path = Helper.gem_path("screengrab")
12
+ File.write(screengrabfile_path, File.read("#{gem_path}/lib/assets/ScreengrabfileTemplate"))
13
+
14
+ UI.success("Successfully created new Screengrabfile at '#{screengrabfile_path}'")
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,27 @@
1
+ module Screengrab
2
+ # In order to share the tool version info between Java and Ruby from one canonical file, we're
3
+ # including version.properties in the bundled Gem, and deriving the version info from it here
4
+ def self.determine_version
5
+ version_props_file = File.join(File.dirname(__FILE__), '../../version.properties')
6
+
7
+ # Java tends to write files as UTF-8, so we need to be resilent to the UTF-8 Byte Order Mark
8
+ # being present
9
+ File.open(version_props_file, 'r:bom|utf-8') do |f|
10
+ v = {}
11
+
12
+ # This file gets evaluated _before_ the gemspec gets built, we don't have access to loaded
13
+ # 3rd party gems here! Thus, we'll do it simply, by hand.
14
+ f.read.split("\n").each do |line|
15
+ key, val = line.chomp.split('=')
16
+ next if key.nil? || val.nil? || key.empty? || val.empty?
17
+ v[key.strip] = val.strip
18
+ end
19
+
20
+ # The value of the block is returned from File.open
21
+ [v['major'], v['minor'], v['patch']].join('.')
22
+ end
23
+ end
24
+
25
+ VERSION = determine_version.freeze
26
+ DESCRIPTION = "Automate taking localized screenshots of your Android app on real devices or emulators".freeze
27
+ end
@@ -0,0 +1,3 @@
1
+ major=0
2
+ minor=2
3
+ patch=0
metadata ADDED
@@ -0,0 +1,223 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: screengrab
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Andrea Falcone
8
+ - Michael Furtak
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-02-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: fastlane_core
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: 0.36.1
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: 1.0.0
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: 0.36.1
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.0
34
+ - !ruby/object:Gem::Dependency
35
+ name: bundler
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ type: :development
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
49
+ name: coveralls
50
+ requirement: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ type: :development
56
+ prerelease: false
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: fastlane
64
+ requirement: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ type: :development
70
+ prerelease: false
71
+ version_requirements: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ - !ruby/object:Gem::Dependency
77
+ name: activesupport
78
+ requirement: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ type: :development
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ - !ruby/object:Gem::Dependency
91
+ name: pry
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ type: :development
98
+ prerelease: false
99
+ version_requirements: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: rake
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: rspec
120
+ requirement: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 3.1.0
125
+ type: :development
126
+ prerelease: false
127
+ version_requirements: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 3.1.0
132
+ - !ruby/object:Gem::Dependency
133
+ name: yard
134
+ requirement: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.8.7.4
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 0.8.7.4
146
+ - !ruby/object:Gem::Dependency
147
+ name: rubocop
148
+ requirement: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 0.35.1
153
+ type: :development
154
+ prerelease: false
155
+ version_requirements: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 0.35.1
160
+ - !ruby/object:Gem::Dependency
161
+ name: webmock
162
+ requirement: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.19.0
167
+ type: :development
168
+ prerelease: false
169
+ version_requirements: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 1.19.0
174
+ description: Automate taking localized screenshots of your Android app on real devices
175
+ or emulators
176
+ email:
177
+ - screengrab@fabric.io
178
+ executables:
179
+ - screengrab
180
+ extensions: []
181
+ extra_rdoc_files: []
182
+ files:
183
+ - LICENSE
184
+ - README.md
185
+ - bin/screengrab
186
+ - lib/assets/ScreengrabfileTemplate
187
+ - lib/screengrab.rb
188
+ - lib/screengrab/android_environment.rb
189
+ - lib/screengrab/dependency_checker.rb
190
+ - lib/screengrab/detect_values.rb
191
+ - lib/screengrab/options.rb
192
+ - lib/screengrab/page.html.erb
193
+ - lib/screengrab/runner.rb
194
+ - lib/screengrab/setup.rb
195
+ - lib/screengrab/version.rb
196
+ - version.properties
197
+ homepage: https://fastlane.tools
198
+ licenses:
199
+ - MIT
200
+ metadata: {}
201
+ post_install_message:
202
+ rdoc_options: []
203
+ require_paths:
204
+ - lib
205
+ required_ruby_version: !ruby/object:Gem::Requirement
206
+ requirements:
207
+ - - ">="
208
+ - !ruby/object:Gem::Version
209
+ version: 2.0.0
210
+ required_rubygems_version: !ruby/object:Gem::Requirement
211
+ requirements:
212
+ - - ">="
213
+ - !ruby/object:Gem::Version
214
+ version: '0'
215
+ requirements: []
216
+ rubyforge_project:
217
+ rubygems_version: 2.4.5.1
218
+ signing_key:
219
+ specification_version: 4
220
+ summary: Automate taking localized screenshots of your Android app on real devices
221
+ or emulators
222
+ test_files: []
223
+ has_rdoc: