spaceship 0.10.3 → 0.11.0

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: a147aef5dc3e79a9ae95099560baad34d0e70400
4
- data.tar.gz: 000f4260d64217e8b9bb10dc5342c2703fdaac58
3
+ metadata.gz: 49d8fcaacfd6969718d4a372c98752fdcbd77085
4
+ data.tar.gz: da65505fb2d6ddbe2d8927d67a340ef5bde98afc
5
5
  SHA512:
6
- metadata.gz: 9e6aa0e6c3ea126e968651b6ec3458ed45bcdcd35c723e7bbd273738693f853fe8f34a756e7081f3018a1c1ec6230562aa3205202d9dfe0407a03ebd6ae9104c
7
- data.tar.gz: 8e913fe88ae1db469adeba16d2203a17a9617ae39d35581f256d7ac6ff2d3e31209c2838bbcc76e755a2f0af4ccf0e09b884535b7f4a3e11b18bb2d34fd41b7f
6
+ metadata.gz: 36d750e5cb187e6b30a65086c36c3a63f550dace9977cd9421f25de48f086352bc48ad74d6ea33590c9cf8b4d9b02c48580baacc7733d2d5e4e7b60bac70055a
7
+ data.tar.gz: 6ebf3ec57f4467fd3e4a9eb328f78645d709077ff88b396c572fd78a4c5f4821b2859cff42e1856bd7181677161fc79eb639842612ac1096d22177600b48c838
data/README.md CHANGED
@@ -95,6 +95,12 @@ How fast are tools using `spaceship` compared to web scraping?
95
95
 
96
96
  # Usage
97
97
 
98
+ ## Playground
99
+
100
+ To try `spaceship`, just run `spaceship`. It will automatically start the `spaceship playground`. It makes it super easy to try `spaceship` :rocket:
101
+
102
+ ![assets/docs/Playground.png](assets/docs/Playground.png)
103
+
98
104
  ## Apple Developer Portal API
99
105
 
100
106
  ##### Open [DeveloperPortal.md](docs/DeveloperPortal.md) for code samples
data/bin/spaceship ADDED
@@ -0,0 +1,48 @@
1
+ #!/usr/bin/env ruby
2
+ $LOAD_PATH.push File.expand_path("../../lib", __FILE__)
3
+
4
+ require "spaceship"
5
+ require "pry"
6
+ require "colored"
7
+ require "credentials_manager"
8
+
9
+ def docs
10
+ url = 'https://github.com/fastlane/spaceship/tree/master/docs'
11
+ `open '#{url}'`
12
+ url
13
+ end
14
+
15
+ username = ARGV[1] if ARGV[0] == '-u'
16
+ username ||= CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
17
+ username ||= ask("Username: ")
18
+
19
+ begin
20
+ puts "Logging into to iTunes Connect (#{username})..."
21
+ Spaceship::Tunes.login(username)
22
+ puts "Successfully logged in to iTunes Connect".green
23
+ puts ""
24
+ rescue
25
+ puts "Could not login to iTunes Connect..."
26
+ end
27
+ begin
28
+ puts "Logging into the Developer Portal (#{username})..."
29
+ Spaceship::Portal.login(username)
30
+ puts "Successfully logged in to the Developer Portal".green
31
+ puts ""
32
+ rescue
33
+ puts "Could not login to the Developer Portal..."
34
+ end
35
+
36
+ puts "---------------------------------------".green
37
+ puts "| Welcome to the spaceship playground |".green
38
+ puts "---------------------------------------".green
39
+ puts ""
40
+ puts "Enter #{'docs'.yellow} to open up the documentation"
41
+ puts "Enter #{'exit'.yellow} to exit the spaceship playground"
42
+ puts "Enter #{'_'.yellow} to access the return value of the last executed command"
43
+ puts ""
44
+ puts "Just enter the commands and confirm with Enter".green
45
+
46
+ # rubocop:disable Lint/Debugger
47
+ binding.pry(quiet: true)
48
+ # rubocop:enable Lint/Debugger
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.10.3"
2
+ VERSION = "0.11.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.10.3
4
+ version: 0.11.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-10-01 00:00:00.000000000 Z
12
+ date: 2015-10-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager
@@ -83,6 +83,34 @@ dependencies:
83
83
  version: '0.9'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: fastimage
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '1.6'
91
+ type: :runtime
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '1.6'
98
+ - !ruby/object:Gem::Dependency
99
+ name: pry
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :runtime
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: colored
86
114
  requirement: !ruby/object:Gem::Requirement
87
115
  requirements:
88
116
  - - ">="
@@ -165,20 +193,6 @@ dependencies:
165
193
  - - "~>"
166
194
  - !ruby/object:Gem::Version
167
195
  version: 3.1.0
168
- - !ruby/object:Gem::Dependency
169
- name: pry
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '0'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
196
  - !ruby/object:Gem::Dependency
183
197
  name: yard
184
198
  requirement: !ruby/object:Gem::Requirement
@@ -240,12 +254,14 @@ description: Because you would rather spend your time building stuff than fighti
240
254
  email:
241
255
  - spaceship@krausefx.com
242
256
  - stefan@natchev.com
243
- executables: []
257
+ executables:
258
+ - spaceship
244
259
  extensions: []
245
260
  extra_rdoc_files: []
246
261
  files:
247
262
  - LICENSE
248
263
  - README.md
264
+ - bin/spaceship
249
265
  - lib/assets/languageMapping.json
250
266
  - lib/assets/languageMappingReadable.json
251
267
  - lib/spaceship.rb