spaceship 0.15.2 → 0.16.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: 0331855014bef933ae72ac1c53a5393245b03987
4
- data.tar.gz: 469b03b9cefb35064f74904f2cf12911b3ba2851
3
+ metadata.gz: ab8b3adebbb73b111b8bad0668236cab5d4b0ca7
4
+ data.tar.gz: 3b35956a3ad1b66ea6147d5f6dccf547c37fec29
5
5
  SHA512:
6
- metadata.gz: 0ae10f270d59a7979d8e47f6ff1cd3aabbec0c5bcb69ed33c65028d6a306a9006a7feec83402dded431dd6fc35211539a4676c0f2d4d1a41fe300182a7424efe
7
- data.tar.gz: d0c5bb81700c156275b7feda876628dfe66355b4a6e5e70233005d391cb4efcca7e9e39b8cfad3572910d8c4cefd93779e62fb467702b7c55eac5f297d5032b8
6
+ metadata.gz: c9f454b4da98d9c04c2704810ffdf18bf3ef49926ac415732a84f243a788ec293a6d871ffb29dd488362c31e08f1f632bcb69a132aeda995e778c59087829a4f
7
+ data.tar.gz: d0cff9a916e11b95263a8a26f7d8e9c52857e465370dd80ed847d3b910f7530d878cba37aefa20ff2df65f546dbbda6443a6da45d28427eef4d112d77f6ddeec
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  <a href="https://github.com/fastlane/deliver">deliver</a> &bull;
10
10
  <a href="https://github.com/fastlane/snapshot">snapshot</a> &bull;
11
11
  <a href="https://github.com/fastlane/frameit">frameit</a> &bull;
12
- <a href="https://github.com/fastlane/PEM">PEM</a> &bull;
12
+ <a href="https://github.com/fastlane/pem">pem</a> &bull;
13
13
  <a href="https://github.com/fastlane/sigh">sigh</a> &bull;
14
14
  <a href="https://github.com/fastlane/produce">produce</a> &bull;
15
15
  <a href="https://github.com/fastlane/cert">cert</a> &bull;
@@ -64,11 +64,12 @@ module Spaceship
64
64
  end
65
65
 
66
66
  def initialize
67
+ @cookie = HTTP::CookieJar.new
67
68
  @client = Faraday.new(self.class.hostname) do |c|
68
69
  c.response :json, content_type: /\bjson$/
69
70
  c.response :xml, content_type: /\bxml$/
70
71
  c.response :plist, content_type: /\bplist$/
71
- c.use :cookie_jar
72
+ c.use :cookie_jar, jar: @cookie
72
73
  c.adapter Faraday.default_adapter
73
74
 
74
75
  if ENV['DEBUG']
@@ -84,7 +85,7 @@ module Spaceship
84
85
  # /tmp/spaceship[time].log by default
85
86
  def logger
86
87
  unless @logger
87
- if $verbose || ENV["VERBOSE"]
88
+ if ENV["VERBOSE"]
88
89
  @logger = Logger.new(STDOUT)
89
90
  else
90
91
  # Log to file by default
@@ -100,6 +101,14 @@ module Spaceship
100
101
  @logger
101
102
  end
102
103
 
104
+ ##
105
+ # Return the session cookie.
106
+ #
107
+ # @return (String) the cookie-string in the RFC6265 format: https://tools.ietf.org/html/rfc6265#section-4.2.1
108
+ def cookie
109
+ @cookie.map(&:to_s).join(';')
110
+ end
111
+
103
112
  #####################################################
104
113
  # @!group Automatic Paging
105
114
  #####################################################
@@ -1,3 +1,3 @@
1
1
  module Spaceship
2
- VERSION = "0.15.2"
2
+ VERSION = "0.16.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.15.2
4
+ version: 0.16.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-12-04 00:00:00.000000000 Z
12
+ date: 2015-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: credentials_manager