motion-provisioning 0.0.4 → 0.0.5

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: 4c059121bb4064c74fef8edd7607166484da18a9
4
- data.tar.gz: 6b04043487931ed3f1f1072f5abb76ef50a55eee
3
+ metadata.gz: 96b081c162863c05c70e4a5acc9472733de8c122
4
+ data.tar.gz: 9aa080811acfeac981c74afd19106cf06b96f1e3
5
5
  SHA512:
6
- metadata.gz: 323f9a8aaa00652f1a63ca601d92adf93e9eed4911801b5c02a7655211b3cf3b8e688a804eebd258e035337b0e9d4ab35e7df9a8fe55b19b97c7b6de55778e6f
7
- data.tar.gz: 4b597603c530c67353989753221369d7c17b96b8aba9a2c057cb4d2640036c7092d1b93ae041da030204828a9ef7dd319df832a0fbdadbebcf7f27f2d507d35e
6
+ metadata.gz: 1de132b7b1ade400552aa23fb0e33eafbd3427e77ce12b6a474d288791b06d656fd2631dbdbc6748a1d99f32e85bb5b04564adcb525ec879e481b877a3f0628a
7
+ data.tar.gz: 91b6e4f45ecfaf2a869ad97f71f4185f0e7cf82dfa80425079505e4b933c80d42489003f1427aceaf497cf24f5147fd5937b0dcefe73abe669571f2175695ea3
data/README.md CHANGED
@@ -167,12 +167,12 @@ folder with your team members.
167
167
  ## Recreate certificates and profiles
168
168
 
169
169
  Once the certificates and profiles are cached in the `provisioning`
170
- folder, if you want to re-create them, set the `recreate_profiles` or
171
- `recreate_certificates` env variable.
170
+ folder, if you want to re-create them, set the `recreate_profile` or
171
+ `recreate_certificate` env variable.
172
172
 
173
173
  For example, to recreate the development profile:
174
174
 
175
- rake device recreate_profiles=1
175
+ rake device recreate_profile=1
176
176
 
177
177
  ## Entitlements and App Services
178
178
 
Binary file
@@ -235,7 +235,6 @@ module MotionProvisioning
235
235
  result.delete!(':')
236
236
  return result
237
237
  rescue
238
- puts result
239
238
  Utils.log("Error", "Error parsing certificate '#{path}'")
240
239
  end
241
240
  end
@@ -245,7 +244,6 @@ module MotionProvisioning
245
244
  begin
246
245
  return result.match(/\/CN=(.*?)\//)[1]
247
246
  rescue
248
- puts result
249
247
  Utils.log("Error", "Error parsing certificate '#{path}'")
250
248
  end
251
249
  end
@@ -45,7 +45,7 @@ module MotionProvisioning
45
45
 
46
46
  # Offer to register devices connected to the current computer
47
47
  force_repair = false
48
- if [:development, :adhoc].include?(type) && [:ios, :tvos].include?(platform)
48
+ if ENV['MOTION_PROVISIONING_NO_REGISTER_DEVICES'].nil? && [:development, :adhoc].include?(type) && [:ios, :tvos].include?(platform)
49
49
  ids = `/Library/RubyMotion/bin/ios/deploy -D`.split("\n")
50
50
 
51
51
  # If there is a profile, we check the device is included.
@@ -1,6 +1,8 @@
1
1
  module MotionProvisioning
2
2
  module Utils
3
3
  class Answer
4
+ attr_reader :answer
5
+
4
6
  def initialize(answer)
5
7
  @answer = answer.downcase
6
8
  end
@@ -1,3 +1,3 @@
1
1
  module MotionProvisioning
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -38,7 +38,7 @@ module MotionProvisioning
38
38
  Spaceship::PortalClient.new
39
39
  end
40
40
 
41
- email = ENV['MOTION_PROVISIONING_EMAIL'] || MotionProvisioning.config['email'] || Utils.ask("Info", "Your Apple ID email:")
41
+ email = ENV['MOTION_PROVISIONING_EMAIL'] || MotionProvisioning.config['email'] || Utils.ask("Info", "Your Apple ID email:").answer
42
42
 
43
43
  config_path = File.expand_path('./provisioning/config.yaml')
44
44
 
@@ -57,7 +57,7 @@ module MotionProvisioning
57
57
  password ||= item.password if item
58
58
 
59
59
  if password.nil?
60
- puts "The login information you enter will be stored safely in the macOS keychain."
60
+ Utils.log("Info", "The login information you enter will be stored safely in the macOS keychain.")
61
61
  password = Utils.ask_password("Info", "Password for #{email}:")
62
62
  Security::InternetPassword.add(server_name, email, password)
63
63
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motion-provisioning
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Villacampa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-28 00:00:00.000000000 Z
11
+ date: 2016-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: spaceship
@@ -16,42 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.31.9
19
+ version: 0.34.0
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.31.9
27
- - !ruby/object:Gem::Dependency
28
- name: plist
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '3.2'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '3.2'
41
- - !ruby/object:Gem::Dependency
42
- name: security
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.1'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.1'
26
+ version: 0.34.0
55
27
  - !ruby/object:Gem::Dependency
56
28
  name: bundler
57
29
  requirement: !ruby/object:Gem::Requirement