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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d5dd36ef6fce8e13edb3a9b4891293a62e058d4a
4
- data.tar.gz: 267fea0d1668bd93ab4900b44a5517d819f680ab
3
+ metadata.gz: d49cb3fe556363a8be32e521763b2d87baddbdf1
4
+ data.tar.gz: c6a7236f031de98acc9f62bd96a83d79f17cbd29
5
5
  SHA512:
6
- metadata.gz: 826c278718fe0755d790545bc2dccb2e02228a2c9f2558639d0b37a1ae81da54365b8bc9f0201ba501439cca4fad0f736c4ae6b8379b76dda3720be1ca4fb756
7
- data.tar.gz: 3bae857d0ec2a3952ba08100e2b54c96397f5965d306ee50767fc92e95b709202f9b5ac3ae1b08d3a14e30d89616eae8d197e47adda1841e6a8a8ee225996bc2
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 Extends the steps defined in [calabash-ios](https://github.com/calabash/calabash-ios.git) to help you write cucumber Scenarios that interact with complex UI elements like tables, pickers, and sliders.
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 != 4
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
- resign_ipa({:ipa => ipa,
74
- :provision => mobile_prov,
75
- :id => signing_id,
76
- :wildcard => wildcard})
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
- system("open #{work_dir}")
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', '<= 0.11.0.pre', '>= 0.9.168'
34
- gem.add_runtime_dependency 'dotenv', '~> 0.9'
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
@@ -1,3 +1,3 @@
1
1
  module Briar
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.4'
3
3
  end
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.3
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-08-24 00:00:00.000000000 Z
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: '0.9'
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: '0.9'
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.1
319
+ rubygems_version: 2.4.2
326
320
  signing_key:
327
321
  specification_version: 4
328
- summary: briar-1.1.3
322
+ summary: briar-1.1.4
329
323
  test_files: []
330
324
  has_rdoc: