spaceship 0.3.2 → 0.3.3

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: 2f1c5ac6945f70388e4e1ad0b2f52a1f185c56fb
4
- data.tar.gz: a925727b880ed220b5f1d85dd7b523b7354149f7
3
+ metadata.gz: 18955ceeee8e06a8037d4e9053077f64ee33e92b
4
+ data.tar.gz: c54aeb4a0ff162846956883e65c57ecc6902521b
5
5
  SHA512:
6
- metadata.gz: d50ba6dc463d4b920716eb792f9a00a01240e5c7d42a7980889f32b831818c4007a440fcef48cbe4793ac764e3849646bbd7bb435d2f4bf69eccf029a0bbe11d
7
- data.tar.gz: 1ec502faa18764220dd036e782bfafde2f9ea423469060e5b21f639454aebc0e53ffccfa7569f3cfd9f10c661726b712283377bffcb13233c0733bbeed62885a
6
+ metadata.gz: ac1610a26e1fc85fd5b8c6a82b4e8c20b35a6e26fb818fb57818dafda2750d996f90d7aa41ebe4ea92af1af89f37fad4dcaa673bb425d5eebe3709cf638cfabf
7
+ data.tar.gz: dae1c1de14ad8c744482558c2486fb0c34107b8ee5077b1ee7863d4a69aa743f6f87f35ae0840066dc0185118f2612e8097ed7ec84e1028d411bb9d6ae2ed2c1
data/README.md CHANGED
@@ -110,6 +110,8 @@ Most [fastlane tools](https://fastlane.tools) already use `spaceship`, like `sig
110
110
 
111
111
  The detailed documentation of all available classes is available on [RubyDoc](http://www.rubydoc.info/github/fastlane/spaceship/frames).
112
112
 
113
+ You can find the log file here `/tmp/spaceship[time].log`.
114
+
113
115
  # Technical Details
114
116
 
115
117
  ## HTTP Client
@@ -20,12 +20,16 @@ module Spaceship
20
20
  attr_accessor :cookie
21
21
 
22
22
  # The logger in which all requests are logged
23
- # /tmp/spaceship.log by default
23
+ # /tmp/spaceship[time].log by default
24
24
  attr_accessor :logger
25
25
 
26
26
  # Invalid user credentials were provided
27
27
  class InvalidUserCredentialsError < StandardError; end
28
28
 
29
+ # Raised when no user credentials were passed at all
30
+ class NoUserCredentialsError < StandardError; end
31
+
32
+
29
33
  class UnexpectedResponse < StandardError; end
30
34
 
31
35
  # Authenticates with Apple's web services. This method has to be called once
@@ -71,14 +75,14 @@ module Spaceship
71
75
  end
72
76
 
73
77
  # The logger in which all requests are logged
74
- # /tmp/spaceship.log by default
78
+ # /tmp/spaceship[time].log by default
75
79
  def logger
76
80
  unless @logger
77
81
  if $verbose || ENV["VERBOSE"]
78
82
  @logger = Logger.new(STDOUT)
79
83
  else
80
84
  # Log to file by default
81
- path = "/tmp/spaceship.log"
85
+ path = "/tmp/spaceship#{Time.now.to_i}.log"
82
86
  @logger = Logger.new(path)
83
87
  end
84
88
 
@@ -141,8 +145,8 @@ module Spaceship
141
145
  password ||= data.password
142
146
  end
143
147
 
144
- if user.to_s.empty? or password.to_s.empty?
145
- raise InvalidUserCredentialsError.new("No login data provided")
148
+ if user.to_s.strip.empty? or password.strip.to_s.empty?
149
+ raise NoUserCredentialsError.new("No login data provided")
146
150
  end
147
151
 
148
152
  send_login_request(user, password) # different in subclasses
@@ -83,7 +83,6 @@ module Spaceship
83
83
 
84
84
  # Is the current session from an Enterprise In House account?
85
85
  def in_house?
86
- # TODO: move to portal
87
86
  return @in_house unless @in_house.nil?
88
87
  @in_house = (team_information['type'] == 'In-House')
89
88
  end
@@ -40,7 +40,7 @@ module Spaceship
40
40
  # @return (Boolean) Export Compliance - Available on French Store
41
41
  attr_accessor :export_compliance_available_on_french_store
42
42
 
43
- # @return (@TODO) Export Compliance - CCAT File
43
+ # @return (Not Yet Implemented) Export Compliance - CCAT File
44
44
  attr_accessor :export_compliance_ccat_file
45
45
 
46
46
  # @return (Boolean) Export Compliance - Contains proprietary cryptography
@@ -69,9 +69,6 @@ module Spaceship
69
69
  # @return (Integer) a unqiue ID for this version generated by iTunes Connect
70
70
  attr_accessor :version_id
71
71
 
72
- # @return TODO
73
- attr_accessor :company_information
74
-
75
72
  ####
76
73
  # App Review Information
77
74
  ####
@@ -283,12 +280,12 @@ module Spaceship
283
280
  super(value)
284
281
  end
285
282
 
286
- def primary_first_sub_cate=(value)gory
283
+ def primary_first_sub_category=(value)
287
284
  value = "MZGenre.#{value}" unless value.include?"MZGenre"
288
285
  super(value)
289
286
  end
290
287
 
291
- def primary_second_sub_cat=(value)egory
288
+ def primary_second_sub_category=(value)
292
289
  value = "MZGenre.#{value}" unless value.include?"MZGenre"
293
290
  super(value)
294
291
  end
@@ -298,12 +295,12 @@ module Spaceship
298
295
  super(value)
299
296
  end
300
297
 
301
- def secondary_first_sub_ca=(value)tegory
298
+ def secondary_first_sub_category=(value)
302
299
  value = "MZGenre.#{value}" unless value.include?"MZGenre"
303
300
  super(value)
304
301
  end
305
302
 
306
- def secondary_second_sub_c=(value)ategory
303
+ def secondary_second_sub_category=(value)
307
304
  value = "MZGenre.#{value}" unless value.include?"MZGenre"
308
305
  super(value)
309
306
  end
@@ -139,6 +139,8 @@ module Spaceship
139
139
  #####################################################
140
140
 
141
141
  # Create a new version of your app
142
+ # Since we have stored the outdated raw_data, we need to refresh this object
143
+ # otherwise `edit_version` will return nil
142
144
  def create_version!(version_number)
143
145
  if edit_version
144
146
  raise "Cannot create a new version for this app as there already is an `edit_version` available"
@@ -146,9 +148,7 @@ module Spaceship
146
148
 
147
149
  client.create_version!(apple_id, version_number)
148
150
 
149
- # Since we have stored the outdated raw_data, we need to refresh this object
150
- # otherwise `edit_version` will return nil
151
- # TODO: implemented -reload method
151
+ # Future: implemented -reload method
152
152
  end
153
153
 
154
154
  #####################################################
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Natchev
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-24 00:00:00.000000000 Z
12
+ date: 2015-07-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
@@ -258,7 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  version: '0'
259
259
  requirements: []
260
260
  rubyforge_project:
261
- rubygems_version: 2.4.6
261
+ rubygems_version: 2.4.8
262
262
  signing_key:
263
263
  specification_version: 4
264
264
  summary: Because you would rather spend your time building stuff than fighting provisioning