rack-on-lambda 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/push-gem.yml +18 -70
- data/.github/workflows/tests.yml +6 -34
- data/.rubocop.yml +11 -2
- data/lib/rack_on_lambda/version.rb +1 -1
- data/rack-on-lambda.gemspec +4 -4
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e53bb314d79286abd1564f5a400a5a31fd519e2f827cc50956f97fafd11677b2
|
4
|
+
data.tar.gz: 64e5f4e3fdcda92150bc475a1ad607c6093b567867c20edbee8d30c591c311ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a9013d5176136204ef65e186a444e6b6190455006cdbe8038e82e95b16d01f47409d30e0fe72470a41a203c240b6fc0981cc871b7b6d7292d5580ccccfc536
|
7
|
+
data.tar.gz: f78cdbd6504022e16fe97d384e6d48fc5b3aa2d9204491484fb22f778abb117dffc616553bf99b75bb62ef4824f3090c9617125852cac86d7857f85a091a062c
|
@@ -6,91 +6,39 @@ on:
|
|
6
6
|
- 'v*'
|
7
7
|
|
8
8
|
jobs:
|
9
|
-
|
9
|
+
push-gem:
|
10
10
|
runs-on: ubuntu-latest
|
11
11
|
steps:
|
12
|
-
- uses: actions/checkout@
|
13
|
-
- name: Set up Ruby
|
12
|
+
- uses: actions/checkout@v3
|
13
|
+
- name: Set up Ruby 3.0
|
14
14
|
uses: actions/setup-ruby@v1
|
15
15
|
with:
|
16
|
-
ruby-version:
|
17
|
-
- name: Run RSpec
|
18
|
-
run: |
|
19
|
-
gem install bundler
|
20
|
-
bundle install --jobs 4 --retry 3
|
21
|
-
bundle exec rspec
|
16
|
+
ruby-version: 3.0
|
22
17
|
|
23
|
-
|
24
|
-
runs-on: ubuntu-latest
|
25
|
-
steps:
|
26
|
-
- uses: actions/checkout@v1
|
27
|
-
- name: Set up Ruby 2.5
|
28
|
-
uses: actions/setup-ruby@v1
|
29
|
-
with:
|
30
|
-
ruby-version: 2.5.x
|
31
|
-
- name: Run rubocop
|
18
|
+
- name: Install dependencies
|
32
19
|
run: |
|
33
20
|
gem install bundler
|
34
|
-
bundle install
|
35
|
-
bundle exec rubocop
|
21
|
+
bundle install
|
36
22
|
|
37
|
-
rspec-ruby27:
|
38
|
-
runs-on: ubuntu-latest
|
39
|
-
steps:
|
40
|
-
- uses: actions/checkout@v1
|
41
|
-
- name: Set up Ruby 2.7
|
42
|
-
uses: actions/setup-ruby@v1
|
43
|
-
with:
|
44
|
-
ruby-version: 2.7.x
|
45
|
-
- name: Run RSpec
|
46
|
-
run: |
|
47
|
-
gem install bundler
|
48
|
-
bundle install --jobs 4 --retry 3
|
49
|
-
bundle exec rspec
|
50
|
-
|
51
|
-
rubocop-ruby27:
|
52
|
-
runs-on: ubuntu-latest
|
53
|
-
steps:
|
54
|
-
- uses: actions/checkout@v1
|
55
|
-
- name: Set up Ruby 2.7
|
56
|
-
uses: actions/setup-ruby@v1
|
57
|
-
with:
|
58
|
-
ruby-version: 2.7.x
|
59
|
-
- name: Run rubocop
|
60
|
-
run: |
|
61
|
-
gem install bundler
|
62
|
-
bundle install --jobs 4 --retry 3
|
63
|
-
bundle exec rubocop
|
64
|
-
|
65
|
-
push-gem:
|
66
|
-
runs-on: ubuntu-latest
|
67
|
-
steps:
|
68
|
-
- uses: actions/checkout@master
|
69
|
-
- name: Set up Ruby 2.5
|
70
|
-
uses: actions/setup-ruby@v1
|
71
|
-
with:
|
72
|
-
ruby-version: 2.5.x
|
73
|
-
- name: Build gem
|
74
|
-
run: |
|
75
|
-
gem install bundler
|
76
|
-
bundle install --jobs 4 --retry 3
|
77
|
-
bundle exec rake build
|
78
23
|
- name: Push to GitHub Package Repository
|
79
24
|
run: |
|
80
25
|
mkdir -p $HOME/.gem
|
81
|
-
|
26
|
+
touch $HOME/.gem/credentials
|
82
27
|
chmod 0600 $HOME/.gem/credentials
|
83
|
-
|
84
|
-
gem
|
28
|
+
printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
29
|
+
gem build *.gemspec
|
30
|
+
gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
|
85
31
|
env:
|
86
|
-
GEM_HOST_API_KEY: ${{secrets.
|
87
|
-
OWNER:
|
32
|
+
GEM_HOST_API_KEY: "Bearer ${{secrets.GITHUB_TOKEN}}"
|
33
|
+
OWNER: ${{ github.repository_owner }}
|
34
|
+
|
88
35
|
- name: Push to RubyGems
|
89
36
|
run: |
|
90
37
|
mkdir -p $HOME/.gem
|
91
|
-
|
38
|
+
touch $HOME/.gem/credentials
|
92
39
|
chmod 0600 $HOME/.gem/credentials
|
93
|
-
|
94
|
-
gem
|
40
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
41
|
+
gem build *.gemspec
|
42
|
+
gem push *.gem
|
95
43
|
env:
|
96
|
-
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}
|
44
|
+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
|
data/.github/workflows/tests.yml
CHANGED
@@ -3,42 +3,14 @@ name: Tests
|
|
3
3
|
on: [push]
|
4
4
|
|
5
5
|
jobs:
|
6
|
-
rspec-ruby25:
|
7
|
-
runs-on: ubuntu-latest
|
8
|
-
steps:
|
9
|
-
- uses: actions/checkout@v1
|
10
|
-
- name: Set up Ruby 2.5
|
11
|
-
uses: actions/setup-ruby@v1
|
12
|
-
with:
|
13
|
-
ruby-version: 2.5.x
|
14
|
-
- name: Run RSpec
|
15
|
-
run: |
|
16
|
-
gem install bundler
|
17
|
-
bundle install --jobs 4 --retry 3
|
18
|
-
bundle exec rspec
|
19
|
-
|
20
|
-
rubocop-ruby25:
|
21
|
-
runs-on: ubuntu-latest
|
22
|
-
steps:
|
23
|
-
- uses: actions/checkout@v1
|
24
|
-
- name: Set up Ruby 2.5
|
25
|
-
uses: actions/setup-ruby@v1
|
26
|
-
with:
|
27
|
-
ruby-version: 2.5.x
|
28
|
-
- name: Run rubocop
|
29
|
-
run: |
|
30
|
-
gem install bundler
|
31
|
-
bundle install --jobs 4 --retry 3
|
32
|
-
bundle exec rubocop
|
33
|
-
|
34
6
|
rspec-ruby27:
|
35
7
|
runs-on: ubuntu-latest
|
36
8
|
steps:
|
37
|
-
- uses: actions/checkout@
|
9
|
+
- uses: actions/checkout@v3
|
38
10
|
- name: Set up Ruby 2.7
|
39
|
-
uses:
|
11
|
+
uses: ruby/setup-ruby@v1
|
40
12
|
with:
|
41
|
-
ruby-version: 2.7
|
13
|
+
ruby-version: 2.7
|
42
14
|
- name: Run RSpec
|
43
15
|
run: |
|
44
16
|
gem install bundler
|
@@ -48,11 +20,11 @@ jobs:
|
|
48
20
|
rubocop-ruby27:
|
49
21
|
runs-on: ubuntu-latest
|
50
22
|
steps:
|
51
|
-
- uses: actions/checkout@
|
23
|
+
- uses: actions/checkout@v3
|
52
24
|
- name: Set up Ruby 2.7
|
53
|
-
uses:
|
25
|
+
uses: ruby/setup-ruby@v1
|
54
26
|
with:
|
55
|
-
ruby-version: 2.7
|
27
|
+
ruby-version: 2.7
|
56
28
|
- name: Run rubocop
|
57
29
|
run: |
|
58
30
|
gem install bundler
|
data/.rubocop.yml
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
AllCops:
|
2
2
|
NewCops: enable
|
3
|
-
TargetRubyVersion: 2.
|
3
|
+
TargetRubyVersion: 2.7
|
4
|
+
Exclude:
|
5
|
+
- '*.gemspec'
|
6
|
+
|
7
|
+
Bundler/GemFilename:
|
8
|
+
EnforcedStyle: gems.rb
|
4
9
|
|
5
10
|
Metrics/BlockLength:
|
6
11
|
Exclude:
|
@@ -11,11 +16,15 @@ Metrics/BlockLength:
|
|
11
16
|
Layout/LineLength:
|
12
17
|
Max: 80
|
13
18
|
|
19
|
+
Lint/EmptyBlock:
|
20
|
+
Exclude:
|
21
|
+
- spec/rack_on_lambda/adapters/responses/rest_api_response.rb
|
22
|
+
- spec/rack_on_lambda/adapters/rest_api_spec.rb
|
23
|
+
|
14
24
|
Naming/FileName:
|
15
25
|
Exclude:
|
16
26
|
- lib/rack-on-lambda.rb
|
17
27
|
- spec/rack-on-lambda_spec.rb
|
18
28
|
|
19
|
-
# TODO: Add documentation and remove the Style/Documentation exception.
|
20
29
|
Style/Documentation:
|
21
30
|
Enabled: false
|
data/rack-on-lambda.gemspec
CHANGED
@@ -7,12 +7,12 @@ require 'rack_on_lambda/version'
|
|
7
7
|
Gem::Specification.new do |spec|
|
8
8
|
spec.name = 'rack-on-lambda'
|
9
9
|
spec.version = RackOnLambda::VERSION
|
10
|
-
spec.authors = ['
|
11
|
-
spec.email = ['
|
10
|
+
spec.authors = ['Joergen Ddahlke']
|
11
|
+
spec.email = ['joergen.dahlke@gmail.com']
|
12
12
|
|
13
13
|
spec.summary = 'Write beautiful Ruby applications for AWS Lambda'
|
14
14
|
spec.description = 'Use your Rack application on AWS Lambda.'
|
15
|
-
spec.homepage = 'https://github.com/
|
15
|
+
spec.homepage = 'https://github.com/jdahlke/rack-on-lambda'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
18
18
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.required_ruby_version = '>= 2.5'
|
24
24
|
|
25
|
-
spec.add_dependency 'activesupport', '~> 6.0
|
25
|
+
spec.add_dependency 'activesupport', '~> 6.0'
|
26
26
|
spec.add_dependency 'rack', '>= 2.0.8', '< 3'
|
27
27
|
|
28
28
|
spec.add_development_dependency 'bundler'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-on-lambda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Joergen Ddahlke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 6.0
|
19
|
+
version: '6.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 6.0
|
26
|
+
version: '6.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,7 +158,7 @@ dependencies:
|
|
158
158
|
version: '0'
|
159
159
|
description: Use your Rack application on AWS Lambda.
|
160
160
|
email:
|
161
|
-
-
|
161
|
+
- joergen.dahlke@gmail.com
|
162
162
|
executables: []
|
163
163
|
extensions: []
|
164
164
|
extra_rdoc_files: []
|
@@ -179,7 +179,7 @@ files:
|
|
179
179
|
- lib/rack_on_lambda/query.rb
|
180
180
|
- lib/rack_on_lambda/version.rb
|
181
181
|
- rack-on-lambda.gemspec
|
182
|
-
homepage: https://github.com/
|
182
|
+
homepage: https://github.com/jdahlke/rack-on-lambda
|
183
183
|
licenses:
|
184
184
|
- MIT
|
185
185
|
metadata: {}
|
@@ -198,8 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
|
-
|
202
|
-
rubygems_version: 2.7.6.2
|
201
|
+
rubygems_version: 3.3.26
|
203
202
|
signing_key:
|
204
203
|
specification_version: 4
|
205
204
|
summary: Write beautiful Ruby applications for AWS Lambda
|