app_store_connect 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/default.yml +152 -0
- data/Gemfile.lock +5 -1
- data/Rakefile +8 -0
- data/app_store_connect.gemspec +2 -0
- data/lib/app_store_connect/version.rb +1 -1
- data/lib/tasks/build.rake +8 -0
- data/lib/tasks/console.rake +9 -0
- data/lib/tasks/release.rake +18 -0
- data/lib/tasks/version.rake +25 -0
- metadata +36 -7
- data/.github/workflows/lint.yml +0 -22
- data/.github/workflows/publish.yml +0 -40
- data/.github/workflows/test.yml +0 -31
- data/bin/console +0 -8
- data/bin/publish +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 470b52247c4433c38efbfee411a366e9e1ab2f00a828c8cbd7616ed849d85a47
|
4
|
+
data.tar.gz: e4634c5f9d3c59961d4fda0d96d8b6390a50670e0ccb5ac375275d2f1b1d001d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c06fcfbbf3c9f779efed08c724bea67d6c6802b0724da68294d95cf41b8b18eb88f7a7b4f795dafd942beccd648e3c242694cbb302074b851c92eacdc65dd233
|
7
|
+
data.tar.gz: 4433deabcff03bdb79d8f7faada91c6525c643d2cc6d8eea7d36f7acbe2a72efe38586eccb7c9d7b63e015d9b3a3f6682be85e7a6c801400f8a87ab20350a010
|
@@ -0,0 +1,152 @@
|
|
1
|
+
---
|
2
|
+
name: Default
|
3
|
+
|
4
|
+
on:
|
5
|
+
push:
|
6
|
+
|
7
|
+
jobs:
|
8
|
+
build:
|
9
|
+
name: Build
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v2
|
14
|
+
- name: Set up Ruby 2.6
|
15
|
+
uses: actions/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: 2.6.x
|
18
|
+
- uses: actions/cache@v1
|
19
|
+
with:
|
20
|
+
path: vendor/bundle
|
21
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
22
|
+
restore-keys: ${{ runner.os }}-gems-
|
23
|
+
- name: Install Bundler
|
24
|
+
run: gem install bundler
|
25
|
+
- name: Configure Bundler
|
26
|
+
run: bundle config path vendor/bundle
|
27
|
+
- name: Bundle Install
|
28
|
+
run: bundle install --jobs 4 --retry 3
|
29
|
+
- name: Set APP_STORE_CONNECT_VERSION
|
30
|
+
run: echo ::set-env name=APP_STORE_CONNECT_VERSION::$(bundle exec rake version:current)
|
31
|
+
- name: Build
|
32
|
+
run: bundle exec rake build
|
33
|
+
- name: Upload Gem
|
34
|
+
uses: actions/upload-artifact@v1
|
35
|
+
with:
|
36
|
+
name: app_store_connect-${{ env.APP_STORE_CONNECT_VERSION }}.gem
|
37
|
+
path: app_store_connect-${{ env.APP_STORE_CONNECT_VERSION }}.gem
|
38
|
+
|
39
|
+
lint:
|
40
|
+
name: Lint
|
41
|
+
runs-on: ubuntu-latest
|
42
|
+
needs: [build]
|
43
|
+
|
44
|
+
steps:
|
45
|
+
- uses: actions/checkout@v2
|
46
|
+
- name: Set up Ruby 2.6
|
47
|
+
uses: actions/setup-ruby@v1
|
48
|
+
with:
|
49
|
+
ruby-version: 2.6.x
|
50
|
+
- uses: actions/cache@v1
|
51
|
+
with:
|
52
|
+
path: vendor/bundle
|
53
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
54
|
+
restore-keys: ${{ runner.os }}-gems-
|
55
|
+
- name: Install Bundler
|
56
|
+
run: gem install bundler
|
57
|
+
- name: Configure Bundler
|
58
|
+
run: bundle config path vendor/bundle
|
59
|
+
- name: Bundle Install
|
60
|
+
run: bundle install --jobs 4 --retry 3
|
61
|
+
- name: Run Rubocop
|
62
|
+
run: bundle exec rubocop
|
63
|
+
|
64
|
+
test:
|
65
|
+
name: Test
|
66
|
+
runs-on: ubuntu-latest
|
67
|
+
needs: [build]
|
68
|
+
|
69
|
+
steps:
|
70
|
+
- uses: actions/checkout@v2
|
71
|
+
- name: Set up Ruby 2.6
|
72
|
+
uses: actions/setup-ruby@v1
|
73
|
+
with:
|
74
|
+
ruby-version: 2.6.x
|
75
|
+
- uses: actions/cache@v1
|
76
|
+
with:
|
77
|
+
path: vendor/bundle
|
78
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
79
|
+
restore-keys: ${{ runner.os }}-gems-
|
80
|
+
- name: Install Bundler
|
81
|
+
run: gem install bundler
|
82
|
+
- name: Configure Bundler
|
83
|
+
run: bundle config path vendor/bundle
|
84
|
+
- name: Bundle Install
|
85
|
+
run: bundle install --jobs 4 --retry 3
|
86
|
+
- name: Run RSpec
|
87
|
+
run: bundle exec rake spec
|
88
|
+
|
89
|
+
release:
|
90
|
+
name: Release
|
91
|
+
runs-on: ubuntu-latest
|
92
|
+
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
93
|
+
needs: [test, lint]
|
94
|
+
|
95
|
+
steps:
|
96
|
+
- uses: actions/checkout@v2
|
97
|
+
- name: Set up Ruby 2.6
|
98
|
+
uses: actions/setup-ruby@v1
|
99
|
+
with:
|
100
|
+
ruby-version: 2.6.x
|
101
|
+
- uses: actions/cache@v1
|
102
|
+
with:
|
103
|
+
path: vendor/bundle
|
104
|
+
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
105
|
+
restore-keys: ${{ runner.os }}-gems-
|
106
|
+
- name: Install Bundler
|
107
|
+
run: gem install bundler
|
108
|
+
- name: Configure Bundler
|
109
|
+
run: bundle config path vendor/bundle
|
110
|
+
|
111
|
+
- name: Configure Gem
|
112
|
+
run: |
|
113
|
+
mkdir -p $HOME/.gem
|
114
|
+
touch $HOME/.gem/credentials
|
115
|
+
chmod 0600 $HOME/.gem/credentials
|
116
|
+
printf -- "---\n:rubygems_api_key: ${{secrets.RUBYGEMS_API_KEY}}\n:github: Bearer ${{secrets.PERSONAL_ACCESS_TOKEN}}" > $HOME/.gem/credentials
|
117
|
+
|
118
|
+
- name: Bundle Install
|
119
|
+
run: bundle install --jobs 4 --retry 3
|
120
|
+
- name: Set APP_STORE_CONNECT_VERSION
|
121
|
+
run: echo ::set-env name=APP_STORE_CONNECT_VERSION::$(bundle exec rake version:current)
|
122
|
+
- uses: actions/download-artifact@v1
|
123
|
+
with:
|
124
|
+
name: app_store_connect-${{ env.APP_STORE_CONNECT_VERSION }}.gem
|
125
|
+
path: /tmp
|
126
|
+
- run: mv /tmp/app_store_connect-${{ env.APP_STORE_CONNECT_VERSION }}.gem .
|
127
|
+
- name: Push Gem to Rubygems
|
128
|
+
run: bundle exec rake release[rubygems]
|
129
|
+
continue-on-error: true
|
130
|
+
- name: Push Gem to Github Package Registry
|
131
|
+
run: bundle exec rake release[github]
|
132
|
+
continue-on-error: true
|
133
|
+
- name: Create Release
|
134
|
+
id: create_release
|
135
|
+
uses: actions/create-release@latest
|
136
|
+
env:
|
137
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
138
|
+
with:
|
139
|
+
tag_name: ${{ github.ref }}
|
140
|
+
release_name: ${{ github.ref }}
|
141
|
+
draft: false
|
142
|
+
prerelease: false
|
143
|
+
- name: Upload Release Asset
|
144
|
+
uses: actions/upload-release-asset@v1
|
145
|
+
env:
|
146
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
147
|
+
with:
|
148
|
+
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
149
|
+
asset_path: app_store_connect-${{ env.APP_STORE_CONNECT_VERSION }}.gem
|
150
|
+
asset_name: app_store_connect-${{ env.APP_STORE_CONNECT_VERSION }}.gem
|
151
|
+
asset_content_type: application/binary
|
152
|
+
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
app_store_connect (0.
|
4
|
+
app_store_connect (0.22.0)
|
5
5
|
activesupport (>= 6.0.3.1)
|
6
6
|
jwt (>= 1.4, <= 2.2.1)
|
7
7
|
mixpanel-ruby (<= 2.2.0)
|
@@ -68,6 +68,7 @@ GEM
|
|
68
68
|
method_source (~> 0.9.0)
|
69
69
|
public_suffix (3.1.1)
|
70
70
|
rainbow (3.0.0)
|
71
|
+
rake (13.0.1)
|
71
72
|
rb-fsevent (0.10.3)
|
72
73
|
rb-inotify (0.10.0)
|
73
74
|
ffi (~> 1.0)
|
@@ -94,6 +95,7 @@ GEM
|
|
94
95
|
ruby-progressbar (1.10.1)
|
95
96
|
ruby_dep (1.5.0)
|
96
97
|
safe_yaml (1.0.5)
|
98
|
+
semantic (1.6.1)
|
97
99
|
shellany (0.0.1)
|
98
100
|
simplecov (0.16.1)
|
99
101
|
docile (~> 1.1)
|
@@ -121,8 +123,10 @@ DEPENDENCIES
|
|
121
123
|
factory_bot (~> 5.0.2)
|
122
124
|
guard-rspec (~> 4.7.3)
|
123
125
|
pry (~> 0.12)
|
126
|
+
rake (~> 13.0)
|
124
127
|
rspec (~> 3.0)
|
125
128
|
rubocop (~> 0.75.0)
|
129
|
+
semantic (~> 1.5)
|
126
130
|
simplecov (~> 0.16.1)
|
127
131
|
timecop (~> 0.9.1)
|
128
132
|
webmock (~> 3.6.0)
|
data/Rakefile
ADDED
data/app_store_connect.gemspec
CHANGED
@@ -28,8 +28,10 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency 'factory_bot', '~> 5.0.2'
|
29
29
|
spec.add_development_dependency 'guard-rspec', '~> 4.7.3'
|
30
30
|
spec.add_development_dependency 'pry', '~> 0.12'
|
31
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
31
32
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
32
33
|
spec.add_development_dependency 'rubocop', '~> 0.75.0'
|
34
|
+
spec.add_development_dependency 'semantic', '~> 1.5'
|
33
35
|
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
34
36
|
spec.add_development_dependency 'timecop', '~> 0.9.1'
|
35
37
|
spec.add_development_dependency 'webmock', '~> 3.6.0'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'app_store_connect/version'
|
4
|
+
|
5
|
+
version = AppStoreConnect::VERSION
|
6
|
+
|
7
|
+
desc "Release app_store_connect-#{version}.gem"
|
8
|
+
task :release, [:key] do |_task, args|
|
9
|
+
args.with_defaults(key: 'rubygems')
|
10
|
+
|
11
|
+
key = args.key.to_sym
|
12
|
+
host = {
|
13
|
+
rubygems: 'https://rubygems.org',
|
14
|
+
github: 'https://rubygems.pkg.github.com/kyledecot'
|
15
|
+
}.fetch(key)
|
16
|
+
|
17
|
+
sh %(gem push --key=#{key} --host=#{host} app_store_connect-#{version}.gem)
|
18
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'app_store_connect/version'
|
4
|
+
require 'semantic'
|
5
|
+
|
6
|
+
namespace :version do
|
7
|
+
desc 'Print current version'
|
8
|
+
task :current do
|
9
|
+
puts AppStoreConnect::VERSION
|
10
|
+
end
|
11
|
+
|
12
|
+
desc 'Increment version'
|
13
|
+
task :increment do
|
14
|
+
version = Semantic::Version.new(AppStoreConnect::VERSION)
|
15
|
+
path = File.expand_path(File.join('..', 'app_store_connect', 'version.rb'), __dir__)
|
16
|
+
|
17
|
+
File.open(path, 'r+') do |file|
|
18
|
+
contents = file.read
|
19
|
+
contents.gsub!(AppStoreConnect::VERSION, version.increment!(:minor).to_s)
|
20
|
+
|
21
|
+
file.rewind
|
22
|
+
file.write(contents)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_store_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Decot
|
@@ -114,6 +114,20 @@ dependencies:
|
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0.12'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rake
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '13.0'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '13.0'
|
117
131
|
- !ruby/object:Gem::Dependency
|
118
132
|
name: rspec
|
119
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,6 +156,20 @@ dependencies:
|
|
142
156
|
- - "~>"
|
143
157
|
- !ruby/object:Gem::Version
|
144
158
|
version: 0.75.0
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: semantic
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '1.5'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '1.5'
|
145
173
|
- !ruby/object:Gem::Dependency
|
146
174
|
name: simplecov
|
147
175
|
requirement: !ruby/object:Gem::Requirement
|
@@ -193,9 +221,7 @@ extra_rdoc_files: []
|
|
193
221
|
files:
|
194
222
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
195
223
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
196
|
-
- ".github/workflows/
|
197
|
-
- ".github/workflows/publish.yml"
|
198
|
-
- ".github/workflows/test.yml"
|
224
|
+
- ".github/workflows/default.yml"
|
199
225
|
- ".gitignore"
|
200
226
|
- ".rspec"
|
201
227
|
- ".rubocop.yml"
|
@@ -206,9 +232,8 @@ files:
|
|
206
232
|
- Guardfile
|
207
233
|
- LICENSE.txt
|
208
234
|
- README.md
|
235
|
+
- Rakefile
|
209
236
|
- app_store_connect.gemspec
|
210
|
-
- bin/console
|
211
|
-
- bin/publish
|
212
237
|
- bin/setup
|
213
238
|
- lib/app_store_connect.rb
|
214
239
|
- lib/app_store_connect/bundle_id_create_request.rb
|
@@ -234,6 +259,10 @@ files:
|
|
234
259
|
- lib/app_store_connect/user_invitation_create_request.rb
|
235
260
|
- lib/app_store_connect/version.rb
|
236
261
|
- lib/config/schema.json
|
262
|
+
- lib/tasks/build.rake
|
263
|
+
- lib/tasks/console.rake
|
264
|
+
- lib/tasks/release.rake
|
265
|
+
- lib/tasks/version.rake
|
237
266
|
homepage: https://github.com/kyledecot/app_store_connect
|
238
267
|
licenses:
|
239
268
|
- MIT
|
@@ -253,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
253
282
|
- !ruby/object:Gem::Version
|
254
283
|
version: '0'
|
255
284
|
requirements: []
|
256
|
-
rubygems_version: 3.
|
285
|
+
rubygems_version: 3.1.2
|
257
286
|
signing_key:
|
258
287
|
specification_version: 4
|
259
288
|
summary: A Ruby interface to the App Store Connect API
|
data/.github/workflows/lint.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
name: Lint
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
build:
|
8
|
-
name: Rubocop
|
9
|
-
runs-on: ubuntu-latest
|
10
|
-
|
11
|
-
steps:
|
12
|
-
- uses: actions/checkout@master
|
13
|
-
- name: Set up Ruby 2.6
|
14
|
-
uses: actions/setup-ruby@v1
|
15
|
-
with:
|
16
|
-
ruby-version: 2.6.x
|
17
|
-
- name: Install dependencies
|
18
|
-
run: |
|
19
|
-
gem install bundler
|
20
|
-
bundle install --jobs=3 --retry=3
|
21
|
-
- name: Run rubocop
|
22
|
-
run: bundle exec rubocop -P -fq
|
@@ -1,40 +0,0 @@
|
|
1
|
-
name: Publish
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
tags:
|
6
|
-
- v*
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
build:
|
10
|
-
name: Build + Publish
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
|
13
|
-
steps:
|
14
|
-
- uses: actions/checkout@master
|
15
|
-
- name: Set up Ruby 2.6
|
16
|
-
uses: actions/setup-ruby@v1
|
17
|
-
with:
|
18
|
-
ruby-version: 2.6.x
|
19
|
-
- name: Configure Bundler
|
20
|
-
run: |
|
21
|
-
gem install bundler
|
22
|
-
bundle install --jobs=3 --retry=3
|
23
|
-
mkdir -p $HOME/.gem
|
24
|
-
touch $HOME/.gem/credentials
|
25
|
-
chmod 0600 $HOME/.gem/credentials
|
26
|
-
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n:github: Bearer ${GITHUB_PACKAGE_REPOSITORY_AUTH_TOKEN}" > $HOME/.gem/credentials
|
27
|
-
env:
|
28
|
-
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
29
|
-
GITHUB_PACKAGE_REPOSITORY_AUTH_TOKEN: ${{secrets.GITHUB_PACKAGE_REPOSITORY_AUTH_TOKEN}}
|
30
|
-
|
31
|
-
- name: Build Gem
|
32
|
-
run: |
|
33
|
-
gem build *.gemspec
|
34
|
-
|
35
|
-
- name: Publish to RubyGems
|
36
|
-
run: bundle exec ./bin/publish --rubygems
|
37
|
-
|
38
|
-
- name: Publish to Github Package Repository
|
39
|
-
run: bundle exec ./bin/publish --github
|
40
|
-
|
data/.github/workflows/test.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
name: Test
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
schedule:
|
6
|
-
- cron: 0 2 * * 1-5
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
rspec:
|
10
|
-
name: RSpec
|
11
|
-
runs-on: ubuntu-latest
|
12
|
-
|
13
|
-
steps:
|
14
|
-
- uses: actions/checkout@master
|
15
|
-
- name: Set up Ruby 2.6
|
16
|
-
uses: actions/setup-ruby@v1
|
17
|
-
with:
|
18
|
-
ruby-version: 2.6.x
|
19
|
-
- name: Install dependencies
|
20
|
-
run: |
|
21
|
-
gem install bundler
|
22
|
-
bundle install --jobs=3 --retry=3
|
23
|
-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
24
|
-
chmod +x ./cc-test-reporter
|
25
|
-
./cc-test-reporter before-build
|
26
|
-
- name: Run rspec
|
27
|
-
run: |
|
28
|
-
rspec
|
29
|
-
./cc-test-reporter after-build --exit-code $? -t simplecov
|
30
|
-
env:
|
31
|
-
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
data/bin/console
DELETED
data/bin/publish
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'optparse'
|
5
|
-
require 'app_store_connect/version'
|
6
|
-
|
7
|
-
OPTIONS = {
|
8
|
-
hosts: [],
|
9
|
-
version: AppStoreConnect::VERSION
|
10
|
-
}.freeze
|
11
|
-
|
12
|
-
HOSTS = {
|
13
|
-
rubygems: 'https://rubygems.org',
|
14
|
-
github: 'https://rubygems.pkg.github.com/kyledecot'
|
15
|
-
}.freeze
|
16
|
-
|
17
|
-
OptionParser.new do |parser|
|
18
|
-
HOSTS.keys.each do |key|
|
19
|
-
parser.on("--#{key}") do
|
20
|
-
OPTIONS[:hosts] << key
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
24
|
-
parser.on('--version VERSION') do |version|
|
25
|
-
OPTIONS[:version] = version
|
26
|
-
end
|
27
|
-
|
28
|
-
parser.on('--help', '-h') do
|
29
|
-
puts parser
|
30
|
-
exit(0)
|
31
|
-
end
|
32
|
-
end.parse!
|
33
|
-
|
34
|
-
OPTIONS[:hosts].each do |key|
|
35
|
-
ENV['RUBYGEMS_HOST'] = HOSTS.fetch(key)
|
36
|
-
|
37
|
-
system "gem push -k #{key} app_store_connect-#{OPTIONS[:version]}.gem"
|
38
|
-
end
|