app_store_connect 0.23.0 → 0.25.0

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
  SHA256:
3
- metadata.gz: ed2272159b83f9ad7d3736e2e1af9e9ec7eae5cd681fc8608f5daf9970285398
4
- data.tar.gz: 9f320e8aead39bd20fbcd1276df8894f8a781c231e1dbf9638e1e8725113db61
3
+ metadata.gz: 35feec86ecaf12cdc0158e94a2112efb9d2e9b97f076a921d16ae45dc9bc22f0
4
+ data.tar.gz: d57577072927f6bf435b13e13cbd4c68c8e8203ec3d23b9c1feebd0b96d1d04f
5
5
  SHA512:
6
- metadata.gz: 3c4c61cfb9b3985c2b91c66a4ef5d0fceadbf02483af211f96cf41f12cbbf9f0d0fb5d9aab164209378e7bb2e37505e3f2a9dd21f3a21b5b79a171213e7ad67d
7
- data.tar.gz: 111469634d29bd47ec34f4fb1e84266d829b1ccfecf579aeced3319c38ff2dff415d5804b053f872fe3cb1d48ce1492900fd767e8f69c58d824e8186d7464068
6
+ metadata.gz: 604ccfa293374af96eb1673e032d94985471300d86cc857d9c6311c2bc9403c0046ee7f650dff6c3b8a0c1d9f8b4a1319924ceb757489054eef6db8ae74f12db
7
+ data.tar.gz: a6dcbf620e8d195f76a9b7ed60c7628eafd5056fd1384db5f689ce468884381ead0fb758908ec5005d0ac07f704104cdd3e96860ffacf2792e223d03199a0410
@@ -27,7 +27,7 @@ jobs:
27
27
  - name: Bundle Install
28
28
  run: bundle install --jobs 4 --retry 3
29
29
  - name: Set APP_STORE_CONNECT_VERSION
30
- run: echo ::set-env name=APP_STORE_CONNECT_VERSION::$(bundle exec rake version:current)
30
+ run: echo "APP_STORE_CONNECT_VERSION=$(bundle exec rake version:current)" >> $GITHUB_ENV
31
31
  - name: Build
32
32
  run: bundle exec rake build
33
33
  - name: Upload Gem
@@ -118,7 +118,7 @@ jobs:
118
118
  - name: Bundle Install
119
119
  run: bundle install --jobs 4 --retry 3
120
120
  - name: Set APP_STORE_CONNECT_VERSION
121
- run: echo ::set-env name=APP_STORE_CONNECT_VERSION::$(bundle exec rake version:current)
121
+ run: echo "APP_STORE_CONNECT_VERSION=$(bundle exec rake version:current)" >> $GITHUB_ENV
122
122
  - uses: actions/download-artifact@v1
123
123
  with:
124
124
  name: app_store_connect-${{ env.APP_STORE_CONNECT_VERSION }}.gem
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- app_store_connect (0.23.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,7 +66,7 @@ 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
71
  rake (13.0.1)
72
72
  rb-fsevent (0.10.3)
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
 
@@ -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.23.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",
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.23.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
@@ -234,8 +234,8 @@ files:
234
234
  - README.md
235
235
  - Rakefile
236
236
  - app_store_connect.gemspec
237
- - bin/setup
238
237
  - lib/app_store_connect.rb
238
+ - lib/app_store_connect/bundle_id_capability_create_request.rb
239
239
  - lib/app_store_connect/bundle_id_create_request.rb
240
240
  - lib/app_store_connect/certificate_create_request.rb
241
241
  - lib/app_store_connect/client.rb
@@ -282,7 +282,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  - !ruby/object:Gem::Version
283
283
  version: '0'
284
284
  requirements: []
285
- rubygems_version: 3.0.3
285
+ rubygems_version: 3.0.3.1
286
286
  signing_key:
287
287
  specification_version: 4
288
288
  summary: A Ruby interface to the App Store Connect API
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