spaceship 0.0.13 → 0.0.14

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: f295467cde461ab9cefe3b50cc952df41d5a0abc
4
- data.tar.gz: ec652e7d8b65534e5d445dce8077a54c28346c20
3
+ metadata.gz: 001b8e9960b34fbab1b5940f4b2e0bd34430733b
4
+ data.tar.gz: 3ff4b1c2c5cacb82b416ca44412c1f979fc5ea5d
5
5
  SHA512:
6
- metadata.gz: 5a6af1ef32c660719ffe85ede0299f16eb1d9c5b2760d9404c4525c3ef6305078b6467156ec53f9965e3deafc833590c8456fddba301d4cc47fbbfcb0816dd89
7
- data.tar.gz: d9c953aa6db8c66109405da514a2fe3187e73afda5867d2bc8ff4ee428de6ca7a337baa4adbbd073573dc66524ea1559625511ea21674884dd02a95456aca8b9
6
+ metadata.gz: a0285a29647407449b0562091c5e80a3e752cec514e4720048de3284871d93ff6ab42e7a9b7c45b6f54ee447164522a85fb51fe87057ce937becfa59c29b1c2a
7
+ data.tar.gz: 3410b2eb100e076ead1450033d28d050837c5e5be62aac9c304c60b978535bb38339a06413dbf52a1522952dc84cccf7fb1f8a1d24f424f2456518ba81b52a74
@@ -71,7 +71,10 @@ module Spaceship
71
71
  if attr_map
72
72
  @attr_mapping = attr_map
73
73
  else
74
- @attr_mapping ||= ancestors[1].attr_mapping rescue nil
74
+ begin
75
+ @attr_mapping ||= ancestors[1].attr_mapping
76
+ rescue NameError, NoMethodError
77
+ end
75
78
  end
76
79
  end
77
80
 
@@ -68,7 +68,10 @@ module Spaceship
68
68
  # Fetches the latest API Key from the Apple Dev Portal
69
69
  def api_key
70
70
  cache_path = "/tmp/spaceship_api_key.txt"
71
- cached = File.read(cache_path) rescue nil
71
+ begin
72
+ cached = File.read(cache_path)
73
+ rescue Errno::ENOENT
74
+ end
72
75
  return cached if cached
73
76
 
74
77
  landing_url = "https://developer.apple.com/membercenter/index.action"
@@ -93,7 +96,6 @@ module Spaceship
93
96
  else
94
97
  # Log to file by default
95
98
  path = "/tmp/spaceship.log"
96
- puts "Logging spaceship web requests to '#{path}'"
97
99
  @logger = Logger.new(path)
98
100
  end
99
101
 
@@ -185,7 +185,8 @@ module Spaceship
185
185
  # @param name (String): The name of the provisioning profile on the Dev Portal
186
186
  # @param bundle_id (String): The app identifier, this paramter is required
187
187
  # @param certificate (Certificate): The certificate that should be used with this
188
- # provisioning profile
188
+ # provisioning profile. You can also pass an array of certificates to this method. This will
189
+ # only work for development profiles
189
190
  # @param devices (Array) (optional): An array of Device objects that should be used in this profile.
190
191
  # It is recommend to not pass devices as spaceship will automatically add all devices for AdHoc
191
192
  # and Development profiles and add none for AppStore and Enterprise Profiles
@@ -202,6 +203,9 @@ module Spaceship
202
203
 
203
204
  devices = [] if self == AppStore # App Store Profiles MUST NOT have devices
204
205
 
206
+ certificate_parameter = certificate.collect { |c| c.id } if certificate.kind_of?Array
207
+ certificate_parameter ||= [certificate.id]
208
+
205
209
  if devices.nil? or devices.count == 0
206
210
  if self == Development or self == AdHoc
207
211
  # For Development and AdHoc we usually want all devices by default
@@ -212,7 +216,7 @@ module Spaceship
212
216
  profile = client.create_provisioning_profile!(name,
213
217
  self.type,
214
218
  app.app_id,
215
- [certificate.id],
219
+ certificate_parameter,
216
220
  devices.map {|d| d.id} )
217
221
  self.new(profile)
218
222
  end
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spaceship
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev
@@ -9,188 +9,188 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-06-27 00:00:00.000000000 Z
12
+ date: 2015-07-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '>='
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 0.5.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '>='
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 0.5.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: multi_xml
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0.5'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.5'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: plist
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '3.1'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.1'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: faraday
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0.9'
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0.9'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: faraday_middleware
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0.9'
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0.9'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: bundler
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rake
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: coveralls
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: rspec
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - ~>
130
+ - - "~>"
131
131
  - !ruby/object:Gem::Version
132
132
  version: 3.1.0
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - ~>
137
+ - - "~>"
138
138
  - !ruby/object:Gem::Version
139
139
  version: 3.1.0
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: pry
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - '>='
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - '>='
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: yard
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - ~>
158
+ - - "~>"
159
159
  - !ruby/object:Gem::Version
160
160
  version: 0.8.7.4
161
161
  type: :development
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - ~>
165
+ - - "~>"
166
166
  - !ruby/object:Gem::Version
167
167
  version: 0.8.7.4
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: webmock
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - ~>
172
+ - - "~>"
173
173
  - !ruby/object:Gem::Version
174
174
  version: 1.21.0
175
175
  type: :development
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - ~>
179
+ - - "~>"
180
180
  - !ruby/object:Gem::Version
181
181
  version: 1.21.0
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: codeclimate-test-reporter
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - '>='
186
+ - - ">="
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  type: :development
190
190
  prerelease: false
191
191
  version_requirements: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - '>='
193
+ - - ">="
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  description: Because you would rather spend your time building stuff than fighting
@@ -227,17 +227,17 @@ require_paths:
227
227
  - lib
228
228
  required_ruby_version: !ruby/object:Gem::Requirement
229
229
  requirements:
230
- - - '>='
230
+ - - ">="
231
231
  - !ruby/object:Gem::Version
232
232
  version: 2.0.0
233
233
  required_rubygems_version: !ruby/object:Gem::Requirement
234
234
  requirements:
235
- - - '>='
235
+ - - ">="
236
236
  - !ruby/object:Gem::Version
237
237
  version: '0'
238
238
  requirements: []
239
239
  rubyforge_project:
240
- rubygems_version: 2.4.7
240
+ rubygems_version: 2.4.6
241
241
  signing_key:
242
242
  specification_version: 4
243
243
  summary: Because you would rather spend your time building stuff than fighting provisioning