spaceship 0.5.3 → 0.6.0

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: d9e7c86284081eeffdd0540b82590a9ea7be4d91
4
- data.tar.gz: bd5656b774947febdf81d4d9163645881a99275f
3
+ metadata.gz: 8d16b4982e039fd291c9b79e25d4c772c00d46fb
4
+ data.tar.gz: 1dc26f5f59bc02abf1b807bba0f2c7d6320a5bd8
5
5
  SHA512:
6
- metadata.gz: fe3bf46a3555cac17a1a2088cdc390ca51567bee7162ffec06ae4b09b99d654ad91c36ebb78551ef3ba95283b63209486468a3f00f653fb2db0f76da414d337f
7
- data.tar.gz: 17eb31080172532b310d6c8293285fd5439182bab882b89558a16bc16072be4e27409648a378037fea7e6763a622f6e41135385591342982016e74c610c87ef7
6
+ metadata.gz: 2858a0a6252e46f3793817b47247398ba8c78b242a1d13e202198c35483c825065429abf95e6361e78f82e2bccd01ce7797078a7743ed05fec4dafd635f6294c
7
+ data.tar.gz: a106ae79d41a2f215490ddc875208b58a67092d100c58f915c3c5d4f6190be6db0faba80cbc3c9dd64db2a8b9f8249335948df020a4b09861ec3d2eef2e00495
@@ -76,7 +76,6 @@ module Spaceship
76
76
  # /tmp/spaceship[time].log by default
77
77
  def logger
78
78
  unless @logger
79
- # rubocop:disable Style/GlobalVars
80
79
  if $verbose || ENV["VERBOSE"]
81
80
  @logger = Logger.new(STDOUT)
82
81
  else
@@ -84,7 +83,6 @@ module Spaceship
84
83
  path = "/tmp/spaceship#{Time.now.to_i}.log"
85
84
  @logger = Logger.new(path)
86
85
  end
87
- # rubocop:enable Style/GlobalVars
88
86
 
89
87
  @logger.formatter = proc do |severity, datetime, progname, msg|
90
88
  "[#{datetime.strftime('%H:%M:%S')}]: #{msg}\n"
@@ -140,8 +138,9 @@ module Spaceship
140
138
  def login(user = nil, password = nil)
141
139
  if user.to_s.empty? or password.to_s.empty?
142
140
  require 'credentials_manager'
143
- data = CredentialsManager::PasswordManager.shared_manager(user, false)
144
- user ||= data.username
141
+
142
+ data = CredentialsManager::AccountManager.new(user: user, password: password)
143
+ user ||= data.user
145
144
  password = data.password
146
145
  end
147
146
 
@@ -150,7 +150,7 @@ module Spaceship
150
150
  wildcardIdentifier: bundle_id,
151
151
  appIdentifierString: bundle_id
152
152
  }
153
- end
153
+ end
154
154
 
155
155
  params = {
156
156
  appIdName: name,
@@ -162,7 +162,7 @@ module Spaceship
162
162
  InHouse
163
163
  else
164
164
  raise "Can't find class '#{attrs['distributionMethod']}'"
165
- end
165
+ end
166
166
 
167
167
  attrs['appId'] = App.factory(attrs['appId'])
168
168
  attrs['devices'].map! { |device| Device.factory(device) }
@@ -1,3 +1,4 @@
1
+ # rubocop:disable Metrics/ClassLength
1
2
  module Spaceship
2
3
  class TunesClient < Spaceship::Client
3
4
 
@@ -450,3 +451,4 @@ module Spaceship
450
451
  end
451
452
  end
452
453
  end
454
+ # rubocop:enable Metrics/ClassLength
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.5.3"
2
+ VERSION = "0.6.0"
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.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Felix Krause
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-19 00:00:00.000000000 Z
12
+ date: 2015-09-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 0.5.0
20
+ version: 0.8.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
- version: 0.5.0
27
+ version: 0.8.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: multi_xml
30
30
  requirement: !ruby/object:Gem::Requirement