spaceship 0.0.5 → 0.0.6

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: 9fafd78ad44e1ebeaf7fe1ee2342bfddb3d6155b
4
- data.tar.gz: a33cf9b21faab673c3d30f3b41d768d9f7731ab6
3
+ metadata.gz: 4b145c0d864b836e315d2e1a46c19c26592d2c7d
4
+ data.tar.gz: e37e5ca3bea8b4ec1051dbf529ac8ae0604d6c52
5
5
  SHA512:
6
- metadata.gz: 0aa86fd5d437df47047a977313093b315c9e297b758e1f6a8d729735c5eee9e4d11c6a3cb77695f4804c60ba485b1d72d0459006e429ece534be8a39578da998
7
- data.tar.gz: 7bf6d93ef0e595048b141bb8f6351c66b4e104d15f450a9617d35c8d315a2d85b7ae90ddc46d7ffe4cc0b3d891e8e747fff9d03ea99bb37a62de79fe72b9e54b
6
+ metadata.gz: 37de7537f2dc4640dfae3ac377f75aa7edf5282ce0130c67ce97731c0573eb436b0fb947612b7757df9d158bc70297ea311ce7e08bf5c0f9b8d2ee7d962d3e41
7
+ data.tar.gz: 66d166b14627edc4ff2f487afcebf2dca814784d75f3706c6c486d64a18a6c6a9feb93978d9b15d23983a75ad2c7b08d2fd8be5c31631f9c14c548c352a90f97
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  <h3 align="center">
2
2
  <a href="https://github.com/KrauseFx/fastlane">
3
- <img src="assets/fastlane.png" width="150" />
3
+ <img src="assets/fastlane.png" width="100" />
4
4
  <br />
5
- spaceship
5
+ fastlane
6
6
  </a>
7
7
  </h3>
8
8
  <p align="center">
@@ -18,11 +18,9 @@
18
18
  -------
19
19
 
20
20
  <p align="center">
21
- <img src="assets/spaceship.png">
21
+ <img src="assets/spaceship.png" width="470">
22
22
  </p>
23
-
24
- spaceship
25
- ============
23
+ -------
26
24
 
27
25
  [![Twitter: @KauseFx](https://img.shields.io/badge/contact-@KrauseFx-blue.svg?style=flat)](https://twitter.com/KrauseFx)
28
26
  [![License](http://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/KrauseFx/spaceship/blob/master/LICENSE)
@@ -36,10 +34,10 @@ Get in contact with the developers on Twitter: [@snatchev](https://twitter.com/s
36
34
 
37
35
  -------
38
36
  <p align="center">
39
- <a href="#why">Why?</a> &bull;
37
+ <a href="#whats-spaceship">Why?</a> &bull;
40
38
  <a href="#usage">Usage</a> &bull;
41
39
  <a href="#installation">Installation</a> &bull;
42
- <a href="#technical-details">Technical Details</a> &bull;
40
+ <a href="#technical-details">Technical Details</a> &bull;
43
41
  <a href="#need-help">Need help?</a>
44
42
  </p>
45
43
 
@@ -47,21 +45,19 @@ Get in contact with the developers on Twitter: [@snatchev](https://twitter.com/s
47
45
 
48
46
  <h5 align="center"><code>spaceship</code> is part of <a href="https://fastlane.tools">fastlane</a>: connect all deployment tools into one streamlined workflow.</h5>
49
47
 
50
- ##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
51
-
52
- # What's Spaceship?
48
+ # What's spaceship?
53
49
 
54
- > `spaceship` is named after the new Apple HQ in Cupertino. It allows you to seamlessly interact with the Apple Developer Portal using very simple Ruby code.
50
+ spaceship is a Ruby library that exposes the Apple Developer Center API. It’s super fast, well tested and supports all of the operations you can do via the browser. Scripting your Developer Center workflow has never been easier!
55
51
 
56
- `spaceship` uses simple HTTPs requests without any sort of web scraping.
52
+ Up until now, the [fastlane tools](https://fastlane.tools) used web scraping to interact with Apple's web services. With spaceship it is possible to directly access the underlying APIs using a simple HTTP client only.
57
53
 
58
- Using `spaceship`, the execution time of [sigh](https://github.com/KrauseFx/sigh) was reduced from over 1 minute to less than 5 seconds :rocket:
54
+ Using spaceship, the execution time of [sigh](https://github.com/KrauseFx/sigh) was reduced from over 1 minute to less than 5 seconds.
59
55
 
60
- `spaceship` uses a combination of 3 different API endpoints, used by the Apple Developer Portal and Xcode. As no API offers everything we need, `spaceship` combines all APIs for you. [More details about the APIs](#technical-details).
56
+ spaceship uses a combination of 3 different API endpoints, used by the Apple Developer Portal and Xcode. As no API offers everything we need, spaceship combines all APIs for you. [More details about the APIs](#technical-details).
61
57
 
62
- Up until now, the [fastlane tools](https://fastlane.tools) used web scraping to interact with Apple's web services. By upgrading them to use `spaceship` all [fastlane tools](https://fastlane.tools) will be even faster and much more stable.
58
+ More details about why spaceship is useful on [spaceship.airforce](https://spaceship.airforce).
63
59
 
64
- > No matter how many apps or profiles you have, `spaceship` **can** handle your scale.
60
+ > No matter how many apps or profiles you have, spaceship **can** handle your scale.
65
61
 
66
62
  Enough words, here is some code:
67
63
 
@@ -253,8 +249,11 @@ Spaceship.device.create!(name: "Private iPhone 6", udid: "5814abb3...")
253
249
  cert = Spaceship.certificate.in_house.all.first
254
250
 
255
251
  # Create a new InHouse Enterprise distribution profile
256
- profile = Spaceship.provisioning_profile.app_store.create!(bundle_id: "com.krausefx.*",
257
- certificate: cert)
252
+ profile = Spaceship.provisioning_profile.in_house.create!(bundle_id: "com.krausefx.*",
253
+ certificate: cert)
254
+
255
+ # List all In-House Provisioning Profiles
256
+ profiles = Spaceship.provisioning_profile.in_house.all
258
257
  ```
259
258
 
260
259
  ## Multiple Spaceships
@@ -391,6 +390,8 @@ I won't go into too much technical details about the various API endpoints, but
391
390
 
392
391
  This project has been sponsored by [ZeroPush](https://zeropush.com). `spaceship` was developed by [@snatchev](https://twitter.com/snatchev/) and [@KrauseFx](https://twitter.com/KrauseFx).
393
392
 
393
+ ##### [Like this tool? Be the first to know about updates and new fastlane tools](https://tinyletter.com/krausefx)
394
+
394
395
  # License
395
396
  This project is licensed under the terms of the MIT license. See the LICENSE file.
396
397
 
data/lib/spaceship/app.rb CHANGED
@@ -65,7 +65,7 @@ module Spaceship
65
65
  # @param bundle_id [String] the bundle id (app_identifier) of the app associated with this provisioning profile
66
66
  # @param name [String] the name of the App
67
67
  # @return (App) The app you just created
68
- def create!(bundle_id: bundle_id, name: name)
68
+ def create!(bundle_id: nil, name: nil)
69
69
  if bundle_id.end_with?('*')
70
70
  type = :wildcard
71
71
  else
@@ -225,7 +225,7 @@ module Spaceship
225
225
  # # Use the signing request to create a new distribution certificate
226
226
  # Spaceship::Certificate::Production.create!(csr: csr)
227
227
  # @return (Device): The newly created device
228
- def create!(csr: csr, bundle_id: nil)
228
+ def create!(csr: nil, bundle_id: nil)
229
229
  type = CERTIFICATE_TYPE_IDS.key(self)
230
230
 
231
231
  # look up the app_id by the bundle_id
@@ -161,7 +161,6 @@ module Spaceship
161
161
  end
162
162
 
163
163
  def team_id
164
- return ENV['FASTLANE_TEAM_ID'] if ENV['FASTLANE_TEAM_ID']
165
164
  return @current_team_id if @current_team_id
166
165
 
167
166
  if teams.count > 1
@@ -425,7 +424,7 @@ module Spaceship
425
424
  content = response.body
426
425
  end
427
426
 
428
- if content.nil?
427
+ if content == nil
429
428
  raise UnexpectedResponse.new(response.body)
430
429
  else
431
430
  store_csrf_tokens(response)
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
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.5
4
+ version: 0.0.6
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-06-01 00:00:00.000000000 Z
12
+ date: 2015-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager