app_store_connect 0.21.0 → 0.25.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
  SHA256:
3
- metadata.gz: 840a58aff2568c45dad350783737805e08cc53581376fa161395d8e2c80d2a1c
4
- data.tar.gz: 872a4b4914ba0ebebc222f9d1e23a4e3b96f7b9d0823cb64f2d88910405cf884
3
+ metadata.gz: 35feec86ecaf12cdc0158e94a2112efb9d2e9b97f076a921d16ae45dc9bc22f0
4
+ data.tar.gz: d57577072927f6bf435b13e13cbd4c68c8e8203ec3d23b9c1feebd0b96d1d04f
5
5
  SHA512:
6
- metadata.gz: 5125264dedeee20e282d62bb495fee4d981329f216908043b6c888ead16271df4451f0957f538d4c27ac2b55479de1672ff710ada5976e541051235adec766a1
7
- data.tar.gz: bea12d90667b04fcd44671ab4b966ebefeb8a4cf90065c978790276f352527918c1c8d2705599f236c5e47e27b7e672935effd58257763215180ef8e61c3bb7a
6
+ metadata.gz: 604ccfa293374af96eb1673e032d94985471300d86cc857d9c6311c2bc9403c0046ee7f650dff6c3b8a0c1d9f8b4a1319924ceb757489054eef6db8ae74f12db
7
+ data.tar.gz: a6dcbf620e8d195f76a9b7ed60c7628eafd5056fd1384db5f689ce468884381ead0fb758908ec5005d0ac07f704104cdd3e96860ffacf2792e223d03199a0410
@@ -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 "APP_STORE_CONNECT_VERSION=$(bundle exec rake version:current)" >> $GITHUB_ENV
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 "APP_STORE_CONNECT_VERSION=$(bundle exec rake version:current)" >> $GITHUB_ENV
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.PERSONAL_ACCESS_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.PERSONAL_ACCESS_TOKENt }}
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.21.0)
4
+ app_store_connect (0.25.0)
5
5
  activesupport (>= 6.0.3.1)
6
6
  jwt (>= 1.4, <= 2.2.1)
7
7
  mixpanel-ruby (<= 2.2.0)
@@ -15,8 +15,8 @@ GEM
15
15
  minitest (~> 5.1)
16
16
  tzinfo (~> 1.1)
17
17
  zeitwerk (~> 2.2, >= 2.2.2)
18
- addressable (2.6.0)
19
- public_suffix (>= 2.0.2, < 4.0)
18
+ addressable (2.8.0)
19
+ public_suffix (>= 2.0.2, < 5.0)
20
20
  ast (2.4.0)
21
21
  coderay (1.1.2)
22
22
  concurrent-ruby (1.1.6)
@@ -46,7 +46,7 @@ GEM
46
46
  i18n (1.8.2)
47
47
  concurrent-ruby (~> 1.0)
48
48
  jaro_winkler (1.5.3)
49
- json (2.2.0)
49
+ json (2.3.1)
50
50
  jwt (2.2.1)
51
51
  listen (3.1.5)
52
52
  rb-fsevent (~> 0.9, >= 0.9.4)
@@ -66,8 +66,9 @@ GEM
66
66
  pry (0.12.2)
67
67
  coderay (~> 1.1.0)
68
68
  method_source (~> 0.9.0)
69
- public_suffix (3.1.1)
69
+ public_suffix (4.0.6)
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/README.md CHANGED
@@ -60,7 +60,7 @@ app_store_connect.sales_reports(
60
60
 
61
61
  ## Development
62
62
 
63
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
63
+ After checking out the repo, run `bundle install` to install dependencies. Then, run `rake spec` to run the tests. You can also run `rake console` for an interactive prompt that will allow you to experiment.
64
64
 
65
65
  ## Contributing
66
66
 
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'rspec/core/rake_task'
4
+
5
+ Dir.glob('lib/tasks/*.rake').each { |r| load r }
6
+
7
+ RSpec::Core::RakeTask.new(:spec)
8
+ task default: :spec
@@ -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,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/create_request'
4
+
5
+ module AppStoreConnect
6
+ class BundleIdCapabilityCreateRequest < CreateRequest
7
+ data do
8
+ type 'bundleIdCapabilities'
9
+
10
+ attributes do
11
+ property :capability_type, required: true
12
+ end
13
+ end
14
+ end
15
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AppStoreConnect
4
- VERSION = '0.21.0'
4
+ VERSION = '0.25.0'
5
5
  end
@@ -8,6 +8,7 @@ require 'app_store_connect/object/data'
8
8
  require 'app_store_connect/version'
9
9
 
10
10
  require 'app_store_connect/bundle_id_create_request'
11
+ require 'app_store_connect/bundle_id_capability_create_request'
11
12
  require 'app_store_connect/certificate_create_request'
12
13
  require 'app_store_connect/device_create_request'
13
14
  require 'app_store_connect/user_invitation_create_request'
@@ -18,5 +19,13 @@ module AppStoreConnect
18
19
 
19
20
  class << self
20
21
  attr_accessor :config
22
+
23
+ def rel(id, type, array = false)
24
+ if array
25
+ { data: [{ id: id, type: type }] }.freeze
26
+ else
27
+ { data: { id: id, type: type } }.freeze
28
+ end
29
+ end
21
30
  end
22
31
  end
@@ -120,6 +120,18 @@
120
120
  "http_body_type": "UserInvitationCreateRequest",
121
121
  "http_method": "post"
122
122
  },
123
+ {
124
+ "alias": "create_bundle_id",
125
+ "url": "https://api.appstoreconnect.apple.com/v1/bundleIds",
126
+ "http_body_type": "BundleIdCreateRequest",
127
+ "http_method": "post"
128
+ },
129
+ {
130
+ "alias": "create_bundle_id_capability",
131
+ "url": "https://api.appstoreconnect.apple.com/v1/bundleIdCapabilities",
132
+ "http_body_type": "BundleIdCapabilityCreateRequest",
133
+ "http_method": "post"
134
+ },
123
135
  {
124
136
  "http_method": "get",
125
137
  "url": "https://api.appstoreconnect.apple.com/v1/users",
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'app_store_connect/version'
4
+
5
+ desc "Build app_store_connect-#{AppStoreConnect::VERSION}.gem"
6
+ task :build do
7
+ sh %(gem build app_store_connect.gemspec)
8
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'pry'
4
+ require 'app_store_connect'
5
+
6
+ desc 'Start a pry console'
7
+ task :console do
8
+ Pry.start(AppStoreConnect::Client.new)
9
+ end
@@ -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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: app_store_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.25.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Decot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2022-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -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/lint.yml"
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,11 +232,10 @@ 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
- - bin/setup
213
237
  - lib/app_store_connect.rb
238
+ - lib/app_store_connect/bundle_id_capability_create_request.rb
214
239
  - lib/app_store_connect/bundle_id_create_request.rb
215
240
  - lib/app_store_connect/certificate_create_request.rb
216
241
  - lib/app_store_connect/client.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.0.3
285
+ rubygems_version: 3.0.3.1
257
286
  signing_key:
258
287
  specification_version: 4
259
288
  summary: A Ruby interface to the App Store Connect API
@@ -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
-
@@ -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
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'bundler/setup'
5
- require 'app_store_connect'
6
- require 'pry'
7
-
8
- Pry.start(AppStoreConnect::Client.new)
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
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/usr/bin/env bash
2
-
3
- set -euo pipefail
4
- IFS=$'\n\t'
5
- set -vx
6
-
7
- bundle install