spaceship 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/spaceship/client.rb +11 -2
- data/lib/spaceship/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab8b3adebbb73b111b8bad0668236cab5d4b0ca7
|
4
|
+
data.tar.gz: 3b35956a3ad1b66ea6147d5f6dccf547c37fec29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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> •
|
10
10
|
<a href="https://github.com/fastlane/snapshot">snapshot</a> •
|
11
11
|
<a href="https://github.com/fastlane/frameit">frameit</a> •
|
12
|
-
<a href="https://github.com/fastlane/
|
12
|
+
<a href="https://github.com/fastlane/pem">pem</a> •
|
13
13
|
<a href="https://github.com/fastlane/sigh">sigh</a> •
|
14
14
|
<a href="https://github.com/fastlane/produce">produce</a> •
|
15
15
|
<a href="https://github.com/fastlane/cert">cert</a> •
|
data/lib/spaceship/client.rb
CHANGED
@@ -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
|
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
|
#####################################################
|
data/lib/spaceship/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2015-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: credentials_manager
|