app_store_connect_jwt 0.1.0 → 0.2.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/test.yml +32 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +16 -0
- data/Gemfile.lock +11 -1
- data/README.md +22 -5
- data/app_store_connect_jwt.gemspec +3 -0
- data/lib/app_store_connect/jwt/version.rb +1 -1
- metadata +30 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62dcbed3328ffadd0bc9835827e963cb83e2f998d59afbc68d858c1a5c0efcfa
|
4
|
+
data.tar.gz: 5f0bc245b396b303331d3a3b5971a38c4fa425d16e857a02c8af72f0b5cfd282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bae4b64b467d99f8fc7ebce578a2a600df9f332e22cca867f9637431ed50f3e40679e331683a16179932f72895ce9472c6113c6666c79e5cd3be95796a4dd65
|
7
|
+
data.tar.gz: acdcf3d719bc3f12271a9876aa2f629eef37c4ab9a198f19aa9a7e58b36208517083a14b2f8f9a9aa45a113d9f51479e7334010c503ddd762921f1b7a512324c
|
@@ -0,0 +1,32 @@
|
|
1
|
+
---
|
2
|
+
name: Test
|
3
|
+
|
4
|
+
on:
|
5
|
+
push:
|
6
|
+
schedule:
|
7
|
+
- cron: 0 2 * * 1-5
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
rspec:
|
11
|
+
name: RSpec
|
12
|
+
runs-on: ubuntu-latest
|
13
|
+
|
14
|
+
steps:
|
15
|
+
- uses: actions/checkout@master
|
16
|
+
- name: Set up Ruby 2.6
|
17
|
+
uses: actions/setup-ruby@v1
|
18
|
+
with:
|
19
|
+
ruby-version: 2.6.x
|
20
|
+
- name: Install dependencies
|
21
|
+
run: |
|
22
|
+
gem install bundler
|
23
|
+
bundle install --jobs=3 --retry=3
|
24
|
+
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
|
25
|
+
chmod +x ./cc-test-reporter
|
26
|
+
./cc-test-reporter before-build
|
27
|
+
- name: Run rspec
|
28
|
+
run: |
|
29
|
+
GLI_DEBUG=true bundle exec rspec
|
30
|
+
./cc-test-reporter after-build --exit-code $? -t simplecov
|
31
|
+
env:
|
32
|
+
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -8,3 +8,19 @@
|
|
8
8
|
# where the inspected file is and continue its way up to the root directory.
|
9
9
|
#
|
10
10
|
# See https://github.com/rubocop-hq/rubocop/blob/master/manual/configuration.md
|
11
|
+
#
|
12
|
+
---
|
13
|
+
Metrics/MethodLength:
|
14
|
+
Enabled: false
|
15
|
+
|
16
|
+
Metrics/BlockLength:
|
17
|
+
Enabled: false
|
18
|
+
|
19
|
+
Style/Documentation:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Layout/LineLength:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
Metrics/ClassLength:
|
26
|
+
Enabled: false
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
app_store_connect_jwt (0.
|
4
|
+
app_store_connect_jwt (0.2.0)
|
5
5
|
gli
|
6
6
|
jwt
|
7
7
|
|
@@ -11,8 +11,10 @@ GEM
|
|
11
11
|
ast (2.4.0)
|
12
12
|
coderay (1.1.2)
|
13
13
|
diff-lcs (1.3)
|
14
|
+
docile (1.3.2)
|
14
15
|
gli (2.19.0)
|
15
16
|
jaro_winkler (1.5.4)
|
17
|
+
json (2.2.0)
|
16
18
|
jwt (2.2.1)
|
17
19
|
method_source (0.9.2)
|
18
20
|
parallel (1.19.1)
|
@@ -44,6 +46,12 @@ GEM
|
|
44
46
|
ruby-progressbar (~> 1.7)
|
45
47
|
unicode-display_width (>= 1.4.0, < 1.7)
|
46
48
|
ruby-progressbar (1.10.1)
|
49
|
+
simplecov (0.17.1)
|
50
|
+
docile (~> 1.1)
|
51
|
+
json (>= 1.8, < 3)
|
52
|
+
simplecov-html (~> 0.10.0)
|
53
|
+
simplecov-html (0.10.2)
|
54
|
+
timecop (0.9.1)
|
47
55
|
unicode-display_width (1.6.1)
|
48
56
|
|
49
57
|
PLATFORMS
|
@@ -56,6 +64,8 @@ DEPENDENCIES
|
|
56
64
|
rake (~> 10.0)
|
57
65
|
rspec (~> 3.0)
|
58
66
|
rubocop
|
67
|
+
simplecov
|
68
|
+
timecop
|
59
69
|
|
60
70
|
BUNDLED WITH
|
61
71
|
2.0.1
|
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
1
|
+
# App Store Connect–JWT
|
2
2
|
|
3
|
-
|
3
|
+
![Test](https://github.com/kyledecot/app_store_connect_jwt/workflows/Test/badge.svg) [![Gem Version](https://badge.fury.io/rb/app_store_connect_jwt.svg)](https://badge.fury.io/rb/app_store_connect_jwt) [![Maintainability](https://api.codeclimate.com/v1/badges/e13c94f97898e74f34a9/maintainability)](https://codeclimate.com/github/kyledecot/hard_cider/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/e13c94f97898e74f34a9/test_coverage)](https://codeclimate.com/github/kyledecot/hard_cider/test_coverage)
|
4
4
|
|
5
|
-
|
5
|
+
Generate App Store Connect API JWT (JSON Web Token)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -22,7 +22,24 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
25
|
-
|
25
|
+
### CLI
|
26
|
+
|
27
|
+
```sh
|
28
|
+
app-store-connect-jwt generate \
|
29
|
+
--issuer-id=$APP_STORE_CONNECT_ISSUER_ID \
|
30
|
+
--key-id=$APP_STORE_CONNECT_KEY_ID \
|
31
|
+
--private-key-path=$APP_STORE_CONNECT_PRIVATE_KEY_PATH
|
32
|
+
```
|
33
|
+
|
34
|
+
### Ruby
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
puts AppStoreConnect::JWT.new(
|
38
|
+
issuer_id: ENV["APP_STORE_CONNECT_ISSUER_ID"],
|
39
|
+
key_id: ENV["APP_STORE_CONNECT_KEY_ID"],
|
40
|
+
private_key_path: ENV["APP_STORE_CONNECT_PRIVATE_KEY_PATH"]
|
41
|
+
)
|
42
|
+
```
|
26
43
|
|
27
44
|
## Development
|
28
45
|
|
@@ -32,7 +49,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
49
|
|
33
50
|
## Contributing
|
34
51
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
52
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/kyledecot/app_store_connect_jwt.
|
36
53
|
|
37
54
|
## License
|
38
55
|
|
@@ -29,6 +29,9 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_development_dependency 'rake', '~> 10.0'
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
31
31
|
spec.add_development_dependency 'rubocop'
|
32
|
+
spec.add_development_dependency 'timecop'
|
33
|
+
spec.add_development_dependency 'simplecov'
|
34
|
+
|
32
35
|
|
33
36
|
spec.add_runtime_dependency 'gli'
|
34
37
|
spec.add_runtime_dependency 'jwt'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_store_connect_jwt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Decot
|
@@ -80,6 +80,34 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: timecop
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
83
111
|
- !ruby/object:Gem::Dependency
|
84
112
|
name: gli
|
85
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -116,6 +144,7 @@ executables:
|
|
116
144
|
extensions: []
|
117
145
|
extra_rdoc_files: []
|
118
146
|
files:
|
147
|
+
- ".github/workflows/test.yml"
|
119
148
|
- ".gitignore"
|
120
149
|
- ".rspec"
|
121
150
|
- ".rubocop.yml"
|