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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0d6e5eb4de7b6f8e0a32ebbbd5117477d8647f10
4
- data.tar.gz: 9694bc300c94f5690cfc302a84d863f3639942e0
3
+ metadata.gz: aae5d35a4c23744e481a23cef1fa491b14776c3e
4
+ data.tar.gz: 1731dad227784f370063203f9872696dd7214669
5
5
  SHA512:
6
- metadata.gz: db4a4ee41976c6396ce0316ea2143c198e0f40acf61599607e923c4957ad1045faec4207cc96d4da4b7e768daec4fb15e73603e94438311b8b2624df0a223338
7
- data.tar.gz: 84b16e823c2e9e3c77893d74e476bd94921207903100aad5aeb08a3ca07b23d5569acae113e00719fc486fcb10204bd84459c2780c74f2da25f3af5075275ed4
6
+ metadata.gz: 32170186f60ac67542177b62e63f08ff6add6de77c2e151856127c756ff8491c1a497b83f778c4b6143f7631901594583bbc8f575a244c7a45af5577097f1ac8
7
+ data.tar.gz: 698b62cd941759dfc62c57ef01c9acaccc356f0aef9ca2b8f13244130cc7eb10e9d551d80a772fd80906af769e0f8d5edb1b232ac67aebbcc89cb4186cabf73c
@@ -6,7 +6,6 @@ require 'spaceship/ui'
6
6
  require 'spaceship/helper/plist_middleware'
7
7
  require 'spaceship/helper/net_http_generic_request'
8
8
  require 'tmpdir'
9
- require "babosa"
10
9
 
11
10
  Faraday::Utils.default_params_encoder = Faraday::FlatParamsEncoder
12
11
 
@@ -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: valid_name_for(name),
158
+ name: name,
171
159
  teamId: team_id
172
160
  }
173
161
 
@@ -531,6 +531,11 @@ module Spaceship
531
531
  !super.nil?
532
532
  end
533
533
 
534
+ def reject!
535
+ raise 'Version not rejectable' unless can_reject_version
536
+ client.reject!(self.application.apple_id, self.version_id)
537
+ end
538
+
534
539
  private
535
540
 
536
541
  def setup_large_app_icon
@@ -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)
@@ -1,4 +1,4 @@
1
1
  module Spaceship
2
- VERSION = "0.38.2".freeze
2
+ VERSION = "0.38.3".freeze
3
3
  DESCRIPTION = "Ruby library to access the Apple Dev Center and iTunes Connect".freeze
4
4
  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.38.2
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