spaceship 0.38.2 → 0.38.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/spaceship/client.rb +0 -1
- data/lib/spaceship/portal/portal_client.rb +1 -13
- data/lib/spaceship/tunes/app_version.rb +5 -0
- data/lib/spaceship/tunes/tunes_client.rb +18 -0
- data/lib/spaceship/version.rb +1 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aae5d35a4c23744e481a23cef1fa491b14776c3e
|
4
|
+
data.tar.gz: 1731dad227784f370063203f9872696dd7214669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32170186f60ac67542177b62e63f08ff6add6de77c2e151856127c756ff8491c1a497b83f778c4b6143f7631901594583bbc8f575a244c7a45af5577097f1ac8
|
7
|
+
data.tar.gz: 698b62cd941759dfc62c57ef01c9acaccc356f0aef9ca2b8f13244130cc7eb10e9d551d80a772fd80906af769e0f8d5edb1b232ac67aebbcc89cb4186cabf73c
|
data/lib/spaceship/client.rb
CHANGED
@@ -132,18 +132,6 @@ module Spaceship
|
|
132
132
|
details_for_app(app)
|
133
133
|
end
|
134
134
|
|
135
|
-
def valid_name_for(input)
|
136
|
-
latinazed = input.to_slug.transliterate
|
137
|
-
latinazed = latinazed.gsub(/[^0-9A-Za-z\d\s]/, '') # remove non-valid characters
|
138
|
-
# Check if the input string was modified, since it might be empty now
|
139
|
-
# (if it only contained non-latin symbols) or the duplicate of another app
|
140
|
-
if latinazed != input
|
141
|
-
latinazed << " "
|
142
|
-
latinazed << Digest::MD5.hexdigest(input)
|
143
|
-
end
|
144
|
-
latinazed
|
145
|
-
end
|
146
|
-
|
147
135
|
def create_app!(type, name, bundle_id, mac: false)
|
148
136
|
# We moved the ensure_csrf to the top of this method
|
149
137
|
# as we got some users with issues around creating new apps
|
@@ -167,7 +155,7 @@ module Spaceship
|
|
167
155
|
end
|
168
156
|
|
169
157
|
params = {
|
170
|
-
name:
|
158
|
+
name: name,
|
171
159
|
teamId: team_id
|
172
160
|
}
|
173
161
|
|
@@ -979,6 +979,24 @@ module Spaceship
|
|
979
979
|
parse_response(r, 'data')['requests']
|
980
980
|
end
|
981
981
|
|
982
|
+
#####################################################
|
983
|
+
# @!group reject
|
984
|
+
#####################################################
|
985
|
+
|
986
|
+
def reject!(app_id, version)
|
987
|
+
raise "app_id is required" unless app_id
|
988
|
+
raise "version is required" unless version
|
989
|
+
|
990
|
+
r = request(:post) do |req|
|
991
|
+
req.url "ra/apps/#{app_id}/versions/#{version}/reject"
|
992
|
+
req.headers['Content-Type'] = 'application/json'
|
993
|
+
req.body = app_id.to_s
|
994
|
+
end
|
995
|
+
|
996
|
+
handle_itc_response(r.body)
|
997
|
+
parse_response(r, 'data')
|
998
|
+
end
|
999
|
+
|
982
1000
|
private
|
983
1001
|
|
984
1002
|
def with_tunes_retry(tries = 5, &_block)
|
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.38.
|
4
|
+
version: 0.38.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Felix Krause
|
@@ -115,20 +115,6 @@ dependencies:
|
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '1.6'
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: babosa
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
type: :runtime
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
118
|
- !ruby/object:Gem::Dependency
|
133
119
|
name: colored
|
134
120
|
requirement: !ruby/object:Gem::Requirement
|