briar 1.1.3 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/bin/briar_help.rb +2 -0
- data/bin/briar_resign.rb +26 -9
- data/briar.gemspec +2 -2
- data/lib/briar/version.rb +1 -1
- metadata +6 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d49cb3fe556363a8be32e521763b2d87baddbdf1
|
4
|
+
data.tar.gz: c6a7236f031de98acc9f62bd96a83d79f17cbd29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d492645760249a4dd51a07109a707f151881e2dd61e6003dcc8866b9064372ef6f329708b5eb0ed0e5e2c467b34a73f4a2b4887ab31ad2f65396685a39387178
|
7
|
+
data.tar.gz: 97a6a46d17a6ea07274ccaa59b96bc083033126b1f72d977a317e4d05095443dc980b360d474e7e0f325767f3a8c325bcde94faaceb71b5b78d372d367e44109
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
## Briar
|
7
7
|
|
8
|
-
Briar
|
8
|
+
Briar extends the [Calabash iOS](https://github.com/calabash/calabash-ios.git) API to help you write cucumber Scenarios that interact with complex UI elements like tables, pickers, and sliders.
|
9
9
|
|
10
10
|
### Briar is not trying to provide steps that will work for every project.
|
11
11
|
|
@@ -129,4 +129,4 @@ _"But returning to the practical: No release version of SemVer is compatible wit
|
|
129
129
|
4. Push to the branch (`git push -u origin feature/my-new-feature`)
|
130
130
|
5. Create new Pull Request
|
131
131
|
|
132
|
-
Please do not change the version number.
|
132
|
+
Please do not change the version number.
|
data/bin/briar_help.rb
CHANGED
@@ -221,6 +221,8 @@ def print_resign_help
|
|
221
221
|
|
222
222
|
#{help_command('resign </path/to/your.ipa> </path/to/your.mobileprovision> <wildcard-prefix> <signing-identity>')}
|
223
223
|
|
224
|
+
#{help_env_var('BRIAR_DONT_OPEN_ON_RESIGN', "Set this to 1 if you don't want to open the resigning directory in the Finder")}
|
225
|
+
|
224
226
|
EOF
|
225
227
|
end
|
226
228
|
|
data/bin/briar_resign.rb
CHANGED
@@ -13,9 +13,9 @@ def msg(title, &block)
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def briar_resign(args)
|
16
|
-
if args.length
|
16
|
+
if args.length < 4
|
17
17
|
msg('Usage') do
|
18
|
-
puts 'briar resign </path/to/your.ipa> </path/to/your.mobileprovision> <wildcard-prefix> <signing-identity>'
|
18
|
+
puts 'briar resign </path/to/your.ipa> </path/to/your.mobileprovision> <wildcard-prefix> <signing-identity> <optional-application-id>'
|
19
19
|
end
|
20
20
|
exit 1
|
21
21
|
end
|
@@ -70,10 +70,18 @@ def briar_resign(args)
|
|
70
70
|
puts "will resign with identity '#{signing_id}'"
|
71
71
|
end
|
72
72
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
73
|
+
options = {:ipa => ipa,
|
74
|
+
:provision => mobile_prov,
|
75
|
+
:id => signing_id,
|
76
|
+
:wildcard => wildcard}
|
77
|
+
|
78
|
+
if args.length == 5
|
79
|
+
app_id = args[4]
|
80
|
+
puts "INFO: will resign with a new application id '#{app_id}'"
|
81
|
+
options[:app_id] = app_id
|
82
|
+
end
|
83
|
+
|
84
|
+
resign_ipa(options)
|
77
85
|
|
78
86
|
end
|
79
87
|
|
@@ -174,8 +182,7 @@ def resign_ipa(options)
|
|
174
182
|
|
175
183
|
puts "INFO: parsed plist at '#{info_plist_path}'"
|
176
184
|
|
177
|
-
app_id = data['CFBundleIdentifier']
|
178
|
-
|
185
|
+
app_id = options[:app_id] ? options[:app_id] : data['CFBundleIdentifier']
|
179
186
|
unless app_id
|
180
187
|
msg 'error' do
|
181
188
|
puts "Unable to find CFBundleIdentifier in plist '#{data}'"
|
@@ -184,6 +191,14 @@ def resign_ipa(options)
|
|
184
191
|
end
|
185
192
|
|
186
193
|
puts "INFO: found bundle identifier '#{app_id}'"
|
194
|
+
# Save changes to plist
|
195
|
+
unless data['CFBundleIdentifier'] == app_id
|
196
|
+
puts "INFO: saving the new bundle identifier '#{app_id}' to plist file"
|
197
|
+
data['CFBundleIdentifier'] = app_id
|
198
|
+
plist.value = CFPropertyList.guess(data)
|
199
|
+
plist.save(info_plist_path, CFPropertyList::List::FORMAT_XML)
|
200
|
+
end
|
201
|
+
|
187
202
|
|
188
203
|
|
189
204
|
bundle_exec = data['CFBundleExecutable']
|
@@ -267,7 +282,9 @@ def resign_ipa(options)
|
|
267
282
|
puts "INFO: finished signing '#{ipa}'"
|
268
283
|
|
269
284
|
|
270
|
-
|
285
|
+
unless ENV['BRIAR_DONT_OPEN_ON_RESIGN']
|
286
|
+
system("open #{work_dir}")
|
287
|
+
end
|
271
288
|
|
272
289
|
|
273
290
|
end
|
data/briar.gemspec
CHANGED
@@ -30,8 +30,8 @@ Gem::Specification.new do |gem|
|
|
30
30
|
gem.required_ruby_version = '>= 1.9.3'
|
31
31
|
|
32
32
|
gem.add_runtime_dependency 'rbx-require-relative', '~> 0.0'
|
33
|
-
gem.add_runtime_dependency 'calabash-cucumber', '
|
34
|
-
gem.add_runtime_dependency 'dotenv', '~> 0.
|
33
|
+
gem.add_runtime_dependency 'calabash-cucumber', '>= 0.9.168'
|
34
|
+
gem.add_runtime_dependency 'dotenv', '~> 1.0.2'
|
35
35
|
gem.add_runtime_dependency 'ansi', '~> 1.4'
|
36
36
|
gem.add_runtime_dependency 'rainbow', '~> 2.0'
|
37
37
|
# downgrade because of xtc gem - wants ~> 1.3.3.1
|
data/lib/briar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: briar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rbx-require-relative
|
@@ -28,9 +28,6 @@ dependencies:
|
|
28
28
|
name: calabash-cucumber
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "<="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.11.0.pre
|
34
31
|
- - ">="
|
35
32
|
- !ruby/object:Gem::Version
|
36
33
|
version: 0.9.168
|
@@ -38,9 +35,6 @@ dependencies:
|
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
|
-
- - "<="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 0.11.0.pre
|
44
38
|
- - ">="
|
45
39
|
- !ruby/object:Gem::Version
|
46
40
|
version: 0.9.168
|
@@ -50,14 +44,14 @@ dependencies:
|
|
50
44
|
requirements:
|
51
45
|
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
47
|
+
version: 1.0.2
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
51
|
requirements:
|
58
52
|
- - "~>"
|
59
53
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
54
|
+
version: 1.0.2
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
56
|
name: ansi
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -322,9 +316,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
316
|
version: '0'
|
323
317
|
requirements: []
|
324
318
|
rubyforge_project:
|
325
|
-
rubygems_version: 2.4.
|
319
|
+
rubygems_version: 2.4.2
|
326
320
|
signing_key:
|
327
321
|
specification_version: 4
|
328
|
-
summary: briar-1.1.
|
322
|
+
summary: briar-1.1.4
|
329
323
|
test_files: []
|
330
324
|
has_rdoc:
|