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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb0fc000c8c729c7d1891388681f667fc9b22bb994f62142268fe2270159fbf1
4
- data.tar.gz: dbae66ef2e85be72210f0955298361f2eb5a389ba916182fe2e7c15f4250a3fe
3
+ metadata.gz: 62dcbed3328ffadd0bc9835827e963cb83e2f998d59afbc68d858c1a5c0efcfa
4
+ data.tar.gz: 5f0bc245b396b303331d3a3b5971a38c4fa425d16e857a02c8af72f0b5cfd282
5
5
  SHA512:
6
- metadata.gz: 23c5d67474430e2b53dba3427ae54b95fd9b95371caac59833582abfe17784e9a64e732f77570e08aee06374e5d8aa1159f9dd12124d962237a9bfdea4e92bb0
7
- data.tar.gz: f8365b3b39088ac4dac72ba1caa62c687861bbf98f5f75c5f889971a18911847dcc0a8301af8bcea80b50e5df2fac0ab600082c1408c8fa3fea13feb6da1203e
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
@@ -9,3 +9,6 @@
9
9
 
10
10
  # rspec failure tracking
11
11
  .rspec_status
12
+
13
+ # MacOS
14
+ .DS_Store
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.1.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
- # AppStoreConnectJwt
1
+ # App Store Connect–JWT
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/app_store_connect_jwt`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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/[USERNAME]/app_store_connect_jwt.
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'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AppStoreConnect
4
4
  class JWT
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
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.1.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"