cloudenvoy 0.4.2 → 0.5.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/lint_rubocop.yml +20 -0
- data/.github/workflows/{test.yml → test_ruby_2.5_2.6.yml} +8 -13
- data/.github/workflows/test_ruby_2.7.yml +36 -0
- data/.github/workflows/test_ruby_3.x.yml +35 -0
- data/.rubocop.yml +5 -0
- data/Appraisals +24 -4
- data/CHANGELOG.md +9 -0
- data/cloudenvoy.gemspec +0 -4
- data/examples/rails/.ruby-version +1 -1
- data/examples/rails/Gemfile +4 -1
- data/examples/rails/Gemfile.lock +74 -71
- data/examples/rails/README.md +1 -1
- data/examples/sinatra/Gemfile +4 -1
- data/examples/sinatra/Gemfile.lock +19 -15
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails_5.2.gemfile +1 -0
- data/gemfiles/rails_5.2.gemfile.lock +67 -57
- data/gemfiles/rails_6.0.gemfile +1 -0
- data/gemfiles/rails_6.0.gemfile.lock +68 -58
- data/gemfiles/rails_6.1.gemfile +8 -0
- data/gemfiles/rails_7.0.gemfile +8 -0
- data/gemfiles/semantic_logger_3.4.gemfile +1 -0
- data/gemfiles/semantic_logger_3.4.gemfile.lock +54 -166
- data/gemfiles/semantic_logger_4.6.gemfile +1 -0
- data/gemfiles/semantic_logger_4.6.gemfile.lock +54 -166
- data/gemfiles/semantic_logger_4.7.0.gemfile +1 -0
- data/gemfiles/semantic_logger_4.7.0.gemfile.lock +54 -166
- data/gemfiles/semantic_logger_4.7.2.gemfile +1 -0
- data/gemfiles/semantic_logger_4.7.2.gemfile.lock +54 -166
- data/lib/cloudenvoy/backend/google_pub_sub.rb +2 -2
- data/lib/cloudenvoy/version.rb +1 -1
- data/lib/cloudenvoy.rb +1 -0
- metadata +12 -48
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4caf2ea67d821c6523a55d6a0d3049216977a51f7e7660be453e70bdf33a92a6
|
4
|
+
data.tar.gz: 194c131bb03da874172331f3787ff76edd874eb704e802f13ef24396ad7bab30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57cb75713b8e617724e9424b0781e9e40853bdd1e6b2687b2361acca406740edb739f8552aa62581832983f0f5685de05d72e03d52991a902975f20cd43ff55d
|
7
|
+
data.tar.gz: 67034935f6b83ee47b8afaaf8bbf7199d2466b929eee885834bf7d5c9fe5f3021d5767b21632852dabdd27a7b86105c7d8617459732da7084c3ea46d41407568
|
@@ -0,0 +1,20 @@
|
|
1
|
+
name: Rubocop
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
steps:
|
9
|
+
- uses: actions/checkout@v2
|
10
|
+
- uses: zhulik/redis-action@1.1.0
|
11
|
+
- name: Set up Ruby
|
12
|
+
uses: ruby/setup-ruby@v1
|
13
|
+
with:
|
14
|
+
ruby-version: '3.0.1'
|
15
|
+
bundler-cache: true
|
16
|
+
- name: Lint codebase
|
17
|
+
run: |
|
18
|
+
gem install bundler
|
19
|
+
bundle install --jobs 4 --retry 3
|
20
|
+
bundle exec rubocop
|
@@ -1,10 +1,6 @@
|
|
1
|
-
name:
|
1
|
+
name: Ruby 2.5/2.6
|
2
2
|
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master ]
|
6
|
-
pull_request:
|
7
|
-
branches: [ master ]
|
3
|
+
on: [push, pull_request]
|
8
4
|
|
9
5
|
jobs:
|
10
6
|
build:
|
@@ -12,30 +8,29 @@ jobs:
|
|
12
8
|
strategy:
|
13
9
|
matrix:
|
14
10
|
ruby:
|
15
|
-
- '2.5.
|
16
|
-
- '2.6.
|
11
|
+
- '2.5.9'
|
12
|
+
- '2.6.7'
|
17
13
|
appraisal:
|
18
14
|
- 'rails-5.2'
|
19
15
|
- 'rails-6.0'
|
16
|
+
- 'rails-6.1'
|
20
17
|
- 'semantic_logger-3.4'
|
21
18
|
- 'semantic_logger-4.6'
|
22
19
|
- 'semantic_logger-4.7.0'
|
23
20
|
- 'semantic_logger-4.7.2'
|
24
21
|
steps:
|
25
|
-
- name: Setup System
|
26
|
-
run: sudo apt-get install libsqlite3-dev
|
27
22
|
- uses: actions/checkout@v2
|
28
23
|
- uses: zhulik/redis-action@1.1.0
|
29
|
-
- name: Set up Ruby
|
30
|
-
uses:
|
24
|
+
- name: Set up Ruby
|
25
|
+
uses: ruby/setup-ruby@v1
|
31
26
|
with:
|
32
27
|
ruby-version: ${{ matrix.ruby }}
|
28
|
+
bundler-cache: true
|
33
29
|
- name: Build and test with Rake
|
34
30
|
env:
|
35
31
|
APPRAISAL_CONTEXT: ${{ matrix.appraisal }}
|
36
32
|
run: |
|
37
33
|
gem install bundler
|
38
34
|
bundle install --jobs 4 --retry 3
|
39
|
-
bundle exec rubocop
|
40
35
|
bundle exec appraisal ${APPRAISAL_CONTEXT} bundle
|
41
36
|
bundle exec appraisal ${APPRAISAL_CONTEXT} rspec
|
@@ -0,0 +1,36 @@
|
|
1
|
+
name: Ruby 2.7
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby:
|
11
|
+
- '2.7.5'
|
12
|
+
appraisal:
|
13
|
+
- 'rails-5.2'
|
14
|
+
- 'rails-6.0'
|
15
|
+
- 'rails-6.1'
|
16
|
+
- 'rails-7.0'
|
17
|
+
- 'semantic_logger-3.4'
|
18
|
+
- 'semantic_logger-4.6'
|
19
|
+
- 'semantic_logger-4.7.0'
|
20
|
+
- 'semantic_logger-4.7.2'
|
21
|
+
steps:
|
22
|
+
- uses: actions/checkout@v2
|
23
|
+
- uses: zhulik/redis-action@1.1.0
|
24
|
+
- name: Set up Ruby
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{ matrix.ruby }}
|
28
|
+
bundler-cache: true
|
29
|
+
- name: Build and test with Rake
|
30
|
+
env:
|
31
|
+
APPRAISAL_CONTEXT: ${{ matrix.appraisal }}
|
32
|
+
run: |
|
33
|
+
gem install bundler
|
34
|
+
bundle install --jobs 4 --retry 3
|
35
|
+
bundle exec appraisal ${APPRAISAL_CONTEXT} bundle
|
36
|
+
bundle exec appraisal ${APPRAISAL_CONTEXT} rspec
|
@@ -0,0 +1,35 @@
|
|
1
|
+
name: Ruby 3.x
|
2
|
+
|
3
|
+
on: [push, pull_request]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby:
|
11
|
+
- '3.0.1'
|
12
|
+
# - '3.1.0'
|
13
|
+
appraisal:
|
14
|
+
- 'rails-6.1'
|
15
|
+
- 'rails-7.0'
|
16
|
+
- 'semantic_logger-3.4'
|
17
|
+
- 'semantic_logger-4.6'
|
18
|
+
- 'semantic_logger-4.7.0'
|
19
|
+
- 'semantic_logger-4.7.2'
|
20
|
+
steps:
|
21
|
+
- uses: actions/checkout@v2
|
22
|
+
- uses: zhulik/redis-action@1.1.0
|
23
|
+
- name: Set up Ruby
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Build and test with Rake
|
29
|
+
env:
|
30
|
+
APPRAISAL_CONTEXT: ${{ matrix.appraisal }}
|
31
|
+
run: |
|
32
|
+
gem install bundler
|
33
|
+
bundle install --jobs 4 --retry 3
|
34
|
+
bundle exec appraisal ${APPRAISAL_CONTEXT} bundle
|
35
|
+
bundle exec appraisal ${APPRAISAL_CONTEXT} rspec
|
data/.rubocop.yml
CHANGED
@@ -5,6 +5,11 @@ AllCops:
|
|
5
5
|
- 'gemfiles/**/*'
|
6
6
|
- 'vendor/**/*'
|
7
7
|
|
8
|
+
# Ruby 3.0: curly braces around last argument has meaning
|
9
|
+
# See: https://github.com/rubocop/rubocop/issues/7641
|
10
|
+
Style/BracesAroundHashParameters:
|
11
|
+
Enabled: false
|
12
|
+
|
8
13
|
Metrics/ClassLength:
|
9
14
|
Max: 150
|
10
15
|
|
data/Appraisals
CHANGED
@@ -1,25 +1,45 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
if RUBY_VERSION < '3'
|
4
|
+
appraise 'rails-5.2' do
|
5
|
+
gem 'rails', '5.2'
|
6
|
+
gem 'rspec-rails'
|
7
|
+
end
|
8
|
+
|
9
|
+
appraise 'rails-6.0' do
|
10
|
+
gem 'rails', '6.0'
|
11
|
+
gem 'rspec-rails'
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
appraise 'rails-6.1' do
|
16
|
+
gem 'rails', '6.1'
|
17
|
+
gem 'rspec-rails'
|
5
18
|
end
|
6
19
|
|
7
|
-
|
8
|
-
|
20
|
+
if RUBY_VERSION >= '2.7'
|
21
|
+
appraise 'rails-7.0' do
|
22
|
+
gem 'rails', '7.0'
|
23
|
+
gem 'rspec-rails'
|
24
|
+
end
|
9
25
|
end
|
10
26
|
|
11
27
|
appraise 'semantic_logger-3.4' do
|
28
|
+
gem 'activesupport', '6.1' # ruby 2.5 / 2.6 compatibility
|
12
29
|
gem 'semantic_logger', '3.4.1'
|
13
30
|
end
|
14
31
|
|
15
32
|
appraise 'semantic_logger-4.6' do
|
33
|
+
gem 'activesupport', '6.1' # ruby 2.5 / 2.6 compatibility
|
16
34
|
gem 'semantic_logger', '4.6.1'
|
17
35
|
end
|
18
36
|
|
19
37
|
appraise 'semantic_logger-4.7.0' do
|
38
|
+
gem 'activesupport', '6.1' # ruby 2.5 / 2.6 compatibility
|
20
39
|
gem 'semantic_logger', '4.7.0'
|
21
40
|
end
|
22
41
|
|
23
42
|
appraise 'semantic_logger-4.7.2' do
|
43
|
+
gem 'activesupport', '6.1' # ruby 2.5 / 2.6 compatibility
|
24
44
|
gem 'semantic_logger', '4.7.2'
|
25
45
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.5.rc1](https://github.com/keypup-io/cloudenvoy/tree/v0.5.rc1) (2022-01-05)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/keypup-io/cloudenvoy/compare/v0.4.2...v0.5.rc1)
|
6
|
+
|
7
|
+
**Improvements:**
|
8
|
+
- Ruby 3: Rework method arguments to be compatible with Ruby 3
|
9
|
+
- Tests: Separate test environment for Ruby 2 and Ruby 3
|
10
|
+
- Tests: Do not load Rails by default and skip Rails-specific tests in non-Rails appraisals
|
11
|
+
|
3
12
|
## [v0.4.2](https://github.com/keypup-io/cloudenvoy/tree/v0.4.2) (2021-10-25)
|
4
13
|
|
5
14
|
[Full Changelog](https://github.com/keypup-io/cloudenvoy/compare/v0.4.1...v0.4.2)
|
data/cloudenvoy.gemspec
CHANGED
@@ -40,8 +40,4 @@ Gem::Specification.new do |spec|
|
|
40
40
|
spec.add_development_dependency 'semantic_logger'
|
41
41
|
spec.add_development_dependency 'timecop'
|
42
42
|
spec.add_development_dependency 'webmock'
|
43
|
-
|
44
|
-
spec.add_development_dependency 'rails'
|
45
|
-
spec.add_development_dependency 'rspec-rails'
|
46
|
-
spec.add_development_dependency 'sqlite3'
|
47
43
|
end
|
@@ -1 +1 @@
|
|
1
|
-
ruby-
|
1
|
+
ruby-3.0.0
|
data/examples/rails/Gemfile
CHANGED
@@ -3,11 +3,14 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
5
5
|
|
6
|
-
ruby '
|
6
|
+
ruby '3.0.0'
|
7
7
|
|
8
8
|
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
|
9
9
|
gem 'rails', '~> 6.0.2'
|
10
10
|
|
11
|
+
# Server
|
12
|
+
gem 'puma', '~> 5.5.2'
|
13
|
+
|
11
14
|
# Messaging via GCP Pub/Sub
|
12
15
|
gem 'cloudenvoy', path: '../../'
|
13
16
|
|
data/examples/rails/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
cloudenvoy (0.4.
|
4
|
+
cloudenvoy (0.4.2)
|
5
5
|
activesupport
|
6
6
|
google-cloud-pubsub (~> 2.0)
|
7
7
|
jwt
|
@@ -10,56 +10,56 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
actioncable (6.0.4.
|
14
|
-
actionpack (= 6.0.4.
|
13
|
+
actioncable (6.0.4.4)
|
14
|
+
actionpack (= 6.0.4.4)
|
15
15
|
nio4r (~> 2.0)
|
16
16
|
websocket-driver (>= 0.6.1)
|
17
|
-
actionmailbox (6.0.4.
|
18
|
-
actionpack (= 6.0.4.
|
19
|
-
activejob (= 6.0.4.
|
20
|
-
activerecord (= 6.0.4.
|
21
|
-
activestorage (= 6.0.4.
|
22
|
-
activesupport (= 6.0.4.
|
17
|
+
actionmailbox (6.0.4.4)
|
18
|
+
actionpack (= 6.0.4.4)
|
19
|
+
activejob (= 6.0.4.4)
|
20
|
+
activerecord (= 6.0.4.4)
|
21
|
+
activestorage (= 6.0.4.4)
|
22
|
+
activesupport (= 6.0.4.4)
|
23
23
|
mail (>= 2.7.1)
|
24
|
-
actionmailer (6.0.4.
|
25
|
-
actionpack (= 6.0.4.
|
26
|
-
actionview (= 6.0.4.
|
27
|
-
activejob (= 6.0.4.
|
24
|
+
actionmailer (6.0.4.4)
|
25
|
+
actionpack (= 6.0.4.4)
|
26
|
+
actionview (= 6.0.4.4)
|
27
|
+
activejob (= 6.0.4.4)
|
28
28
|
mail (~> 2.5, >= 2.5.4)
|
29
29
|
rails-dom-testing (~> 2.0)
|
30
|
-
actionpack (6.0.4.
|
31
|
-
actionview (= 6.0.4.
|
32
|
-
activesupport (= 6.0.4.
|
30
|
+
actionpack (6.0.4.4)
|
31
|
+
actionview (= 6.0.4.4)
|
32
|
+
activesupport (= 6.0.4.4)
|
33
33
|
rack (~> 2.0, >= 2.0.8)
|
34
34
|
rack-test (>= 0.6.3)
|
35
35
|
rails-dom-testing (~> 2.0)
|
36
36
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
37
|
-
actiontext (6.0.4.
|
38
|
-
actionpack (= 6.0.4.
|
39
|
-
activerecord (= 6.0.4.
|
40
|
-
activestorage (= 6.0.4.
|
41
|
-
activesupport (= 6.0.4.
|
37
|
+
actiontext (6.0.4.4)
|
38
|
+
actionpack (= 6.0.4.4)
|
39
|
+
activerecord (= 6.0.4.4)
|
40
|
+
activestorage (= 6.0.4.4)
|
41
|
+
activesupport (= 6.0.4.4)
|
42
42
|
nokogiri (>= 1.8.5)
|
43
|
-
actionview (6.0.4.
|
44
|
-
activesupport (= 6.0.4.
|
43
|
+
actionview (6.0.4.4)
|
44
|
+
activesupport (= 6.0.4.4)
|
45
45
|
builder (~> 3.1)
|
46
46
|
erubi (~> 1.4)
|
47
47
|
rails-dom-testing (~> 2.0)
|
48
48
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
49
|
-
activejob (6.0.4.
|
50
|
-
activesupport (= 6.0.4.
|
49
|
+
activejob (6.0.4.4)
|
50
|
+
activesupport (= 6.0.4.4)
|
51
51
|
globalid (>= 0.3.6)
|
52
|
-
activemodel (6.0.4.
|
53
|
-
activesupport (= 6.0.4.
|
54
|
-
activerecord (6.0.4.
|
55
|
-
activemodel (= 6.0.4.
|
56
|
-
activesupport (= 6.0.4.
|
57
|
-
activestorage (6.0.4.
|
58
|
-
actionpack (= 6.0.4.
|
59
|
-
activejob (= 6.0.4.
|
60
|
-
activerecord (= 6.0.4.
|
52
|
+
activemodel (6.0.4.4)
|
53
|
+
activesupport (= 6.0.4.4)
|
54
|
+
activerecord (6.0.4.4)
|
55
|
+
activemodel (= 6.0.4.4)
|
56
|
+
activesupport (= 6.0.4.4)
|
57
|
+
activestorage (6.0.4.4)
|
58
|
+
actionpack (= 6.0.4.4)
|
59
|
+
activejob (= 6.0.4.4)
|
60
|
+
activerecord (= 6.0.4.4)
|
61
61
|
marcel (~> 1.0.0)
|
62
|
-
activesupport (6.0.4.
|
62
|
+
activesupport (6.0.4.4)
|
63
63
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
64
64
|
i18n (>= 0.7, < 2)
|
65
65
|
minitest (~> 5.1)
|
@@ -97,7 +97,7 @@ GEM
|
|
97
97
|
googleapis-common-protos-types (>= 1.0.6, < 2.a)
|
98
98
|
googleauth (>= 0.17.0, < 2.a)
|
99
99
|
grpc (~> 1.36)
|
100
|
-
globalid (0.
|
100
|
+
globalid (1.0.0)
|
101
101
|
activesupport (>= 5.0)
|
102
102
|
google-cloud-core (1.6.0)
|
103
103
|
google-cloud-env (~> 1.0)
|
@@ -105,22 +105,22 @@ GEM
|
|
105
105
|
google-cloud-env (1.5.0)
|
106
106
|
faraday (>= 0.17.3, < 2.0)
|
107
107
|
google-cloud-errors (1.2.0)
|
108
|
-
google-cloud-pubsub (2.
|
108
|
+
google-cloud-pubsub (2.9.0)
|
109
109
|
concurrent-ruby (~> 1.1)
|
110
110
|
google-cloud-core (~> 1.5)
|
111
111
|
google-cloud-pubsub-v1 (~> 0.0)
|
112
|
-
google-cloud-pubsub-v1 (0.6.
|
112
|
+
google-cloud-pubsub-v1 (0.6.1)
|
113
113
|
gapic-common (>= 0.7, < 2.a)
|
114
114
|
google-cloud-errors (~> 1.0)
|
115
115
|
grpc-google-iam-v1 (>= 0.6.10, < 2.a)
|
116
|
-
google-protobuf (3.
|
116
|
+
google-protobuf (3.19.1)
|
117
117
|
googleapis-common-protos (1.3.12)
|
118
118
|
google-protobuf (~> 3.14)
|
119
119
|
googleapis-common-protos-types (~> 1.2)
|
120
120
|
grpc (~> 1.27)
|
121
|
-
googleapis-common-protos-types (1.
|
121
|
+
googleapis-common-protos-types (1.3.0)
|
122
122
|
google-protobuf (~> 3.14)
|
123
|
-
googleauth (1.
|
123
|
+
googleauth (1.1.0)
|
124
124
|
faraday (>= 0.17.3, < 2.0)
|
125
125
|
jwt (>= 1.4, < 3.0)
|
126
126
|
memoist (~> 0.16)
|
@@ -134,10 +134,10 @@ GEM
|
|
134
134
|
google-protobuf (~> 3.14)
|
135
135
|
googleapis-common-protos (>= 1.3.12, < 2.0)
|
136
136
|
grpc (~> 1.27)
|
137
|
-
i18n (1.8.
|
137
|
+
i18n (1.8.11)
|
138
138
|
concurrent-ruby (~> 1.0)
|
139
|
-
jwt (2.
|
140
|
-
loofah (2.
|
139
|
+
jwt (2.3.0)
|
140
|
+
loofah (2.13.0)
|
141
141
|
crass (~> 1.0.2)
|
142
142
|
nokogiri (>= 1.5.9)
|
143
143
|
mail (2.7.1)
|
@@ -145,44 +145,46 @@ GEM
|
|
145
145
|
marcel (1.0.2)
|
146
146
|
memoist (0.16.2)
|
147
147
|
method_source (1.0.0)
|
148
|
-
mini_mime (1.1.
|
148
|
+
mini_mime (1.1.2)
|
149
149
|
mini_portile2 (2.6.1)
|
150
|
-
minitest (5.
|
150
|
+
minitest (5.15.0)
|
151
151
|
multi_json (1.15.0)
|
152
152
|
multipart-post (2.1.1)
|
153
153
|
nio4r (2.5.8)
|
154
154
|
nokogiri (1.12.5)
|
155
155
|
mini_portile2 (~> 2.6.1)
|
156
156
|
racc (~> 1.4)
|
157
|
-
os (1.1.
|
157
|
+
os (1.1.4)
|
158
158
|
public_suffix (4.0.6)
|
159
|
-
|
159
|
+
puma (5.5.2)
|
160
|
+
nio4r (~> 2.0)
|
161
|
+
racc (1.6.0)
|
160
162
|
rack (2.2.3)
|
161
163
|
rack-test (1.1.0)
|
162
164
|
rack (>= 1.0, < 3)
|
163
|
-
rails (6.0.4.
|
164
|
-
actioncable (= 6.0.4.
|
165
|
-
actionmailbox (= 6.0.4.
|
166
|
-
actionmailer (= 6.0.4.
|
167
|
-
actionpack (= 6.0.4.
|
168
|
-
actiontext (= 6.0.4.
|
169
|
-
actionview (= 6.0.4.
|
170
|
-
activejob (= 6.0.4.
|
171
|
-
activemodel (= 6.0.4.
|
172
|
-
activerecord (= 6.0.4.
|
173
|
-
activestorage (= 6.0.4.
|
174
|
-
activesupport (= 6.0.4.
|
165
|
+
rails (6.0.4.4)
|
166
|
+
actioncable (= 6.0.4.4)
|
167
|
+
actionmailbox (= 6.0.4.4)
|
168
|
+
actionmailer (= 6.0.4.4)
|
169
|
+
actionpack (= 6.0.4.4)
|
170
|
+
actiontext (= 6.0.4.4)
|
171
|
+
actionview (= 6.0.4.4)
|
172
|
+
activejob (= 6.0.4.4)
|
173
|
+
activemodel (= 6.0.4.4)
|
174
|
+
activerecord (= 6.0.4.4)
|
175
|
+
activestorage (= 6.0.4.4)
|
176
|
+
activesupport (= 6.0.4.4)
|
175
177
|
bundler (>= 1.3.0)
|
176
|
-
railties (= 6.0.4.
|
178
|
+
railties (= 6.0.4.4)
|
177
179
|
sprockets-rails (>= 2.0.0)
|
178
180
|
rails-dom-testing (2.0.3)
|
179
181
|
activesupport (>= 4.2.0)
|
180
182
|
nokogiri (>= 1.6)
|
181
183
|
rails-html-sanitizer (1.4.2)
|
182
184
|
loofah (~> 2.3)
|
183
|
-
railties (6.0.4.
|
184
|
-
actionpack (= 6.0.4.
|
185
|
-
activesupport (= 6.0.4.
|
185
|
+
railties (6.0.4.4)
|
186
|
+
actionpack (= 6.0.4.4)
|
187
|
+
activesupport (= 6.0.4.4)
|
186
188
|
method_source
|
187
189
|
rake (>= 0.8.7)
|
188
190
|
thor (>= 0.20.3, < 2.0)
|
@@ -197,30 +199,31 @@ GEM
|
|
197
199
|
sprockets (4.0.2)
|
198
200
|
concurrent-ruby (~> 1.0)
|
199
201
|
rack (> 1, < 3)
|
200
|
-
sprockets-rails (3.
|
201
|
-
actionpack (>=
|
202
|
-
activesupport (>=
|
202
|
+
sprockets-rails (3.4.2)
|
203
|
+
actionpack (>= 5.2)
|
204
|
+
activesupport (>= 5.2)
|
203
205
|
sprockets (>= 3.0.0)
|
204
206
|
sqlite3 (1.4.2)
|
205
|
-
thor (1.1
|
207
|
+
thor (1.2.1)
|
206
208
|
thread_safe (0.3.6)
|
207
209
|
tzinfo (1.2.9)
|
208
210
|
thread_safe (~> 0.1)
|
209
211
|
websocket-driver (0.7.5)
|
210
212
|
websocket-extensions (>= 0.1.0)
|
211
213
|
websocket-extensions (0.1.5)
|
212
|
-
zeitwerk (2.
|
214
|
+
zeitwerk (2.5.3)
|
213
215
|
|
214
216
|
PLATFORMS
|
215
217
|
ruby
|
216
218
|
|
217
219
|
DEPENDENCIES
|
218
220
|
cloudenvoy!
|
221
|
+
puma (~> 5.5.2)
|
219
222
|
rails (~> 6.0.2)
|
220
223
|
sqlite3
|
221
224
|
|
222
225
|
RUBY VERSION
|
223
|
-
ruby
|
226
|
+
ruby 3.0.0p0
|
224
227
|
|
225
228
|
BUNDLED WITH
|
226
|
-
2.
|
229
|
+
2.3.4
|
data/examples/rails/README.md
CHANGED
@@ -22,7 +22,7 @@ HelloPublisher.publish('Some message')
|
|
22
22
|
* Add the configuration of your GCP Pub/Sub
|
23
23
|
* Set `config.processor_host` to the ngrok http or https url
|
24
24
|
* Set `config.mode` to `:production`
|
25
|
-
5. Launch the server: `foreman start
|
25
|
+
5. Launch the server: `foreman start`
|
26
26
|
6. Open a Rails console: `rails c`
|
27
27
|
7. Publish messages
|
28
28
|
```ruby
|
data/examples/sinatra/Gemfile
CHANGED
@@ -3,11 +3,14 @@
|
|
3
3
|
source 'https://rubygems.org'
|
4
4
|
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
5
5
|
|
6
|
-
ruby '
|
6
|
+
ruby '3.0.0'
|
7
7
|
|
8
8
|
# Web framework
|
9
9
|
gem 'sinatra'
|
10
10
|
|
11
|
+
# Server
|
12
|
+
gem 'puma', '~> 5.5.2'
|
13
|
+
|
11
14
|
# Support rake tasks
|
12
15
|
gem 'rake'
|
13
16
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
cloudenvoy (0.4.
|
4
|
+
cloudenvoy (0.4.2)
|
5
5
|
activesupport
|
6
6
|
google-cloud-pubsub (~> 2.0)
|
7
7
|
jwt
|
@@ -10,12 +10,11 @@ PATH
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
12
12
|
specs:
|
13
|
-
activesupport (
|
13
|
+
activesupport (7.0.0)
|
14
14
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
15
15
|
i18n (>= 1.6, < 2)
|
16
16
|
minitest (>= 5.1)
|
17
17
|
tzinfo (~> 2.0)
|
18
|
-
zeitwerk (~> 2.3)
|
19
18
|
addressable (2.8.0)
|
20
19
|
public_suffix (>= 2.0.2, < 5.0)
|
21
20
|
concurrent-ruby (1.1.9)
|
@@ -51,22 +50,22 @@ GEM
|
|
51
50
|
google-cloud-env (1.5.0)
|
52
51
|
faraday (>= 0.17.3, < 2.0)
|
53
52
|
google-cloud-errors (1.2.0)
|
54
|
-
google-cloud-pubsub (2.
|
53
|
+
google-cloud-pubsub (2.9.0)
|
55
54
|
concurrent-ruby (~> 1.1)
|
56
55
|
google-cloud-core (~> 1.5)
|
57
56
|
google-cloud-pubsub-v1 (~> 0.0)
|
58
|
-
google-cloud-pubsub-v1 (0.6.
|
57
|
+
google-cloud-pubsub-v1 (0.6.1)
|
59
58
|
gapic-common (>= 0.7, < 2.a)
|
60
59
|
google-cloud-errors (~> 1.0)
|
61
60
|
grpc-google-iam-v1 (>= 0.6.10, < 2.a)
|
62
|
-
google-protobuf (3.
|
61
|
+
google-protobuf (3.19.1-x86_64-darwin)
|
63
62
|
googleapis-common-protos (1.3.12)
|
64
63
|
google-protobuf (~> 3.14)
|
65
64
|
googleapis-common-protos-types (~> 1.2)
|
66
65
|
grpc (~> 1.27)
|
67
|
-
googleapis-common-protos-types (1.
|
66
|
+
googleapis-common-protos-types (1.3.0)
|
68
67
|
google-protobuf (~> 3.14)
|
69
|
-
googleauth (1.
|
68
|
+
googleauth (1.1.0)
|
70
69
|
faraday (>= 0.17.3, < 2.0)
|
71
70
|
jwt (>= 1.4, < 3.0)
|
72
71
|
memoist (~> 0.16)
|
@@ -80,17 +79,20 @@ GEM
|
|
80
79
|
google-protobuf (~> 3.14)
|
81
80
|
googleapis-common-protos (>= 1.3.12, < 2.0)
|
82
81
|
grpc (~> 1.27)
|
83
|
-
i18n (1.8.
|
82
|
+
i18n (1.8.11)
|
84
83
|
concurrent-ruby (~> 1.0)
|
85
|
-
jwt (2.
|
84
|
+
jwt (2.3.0)
|
86
85
|
memoist (0.16.2)
|
87
|
-
minitest (5.
|
86
|
+
minitest (5.15.0)
|
88
87
|
multi_json (1.15.0)
|
89
88
|
multipart-post (2.1.1)
|
90
89
|
mustermann (1.1.1)
|
91
90
|
ruby2_keywords (~> 0.0.1)
|
92
|
-
|
91
|
+
nio4r (2.5.8)
|
92
|
+
os (1.1.4)
|
93
93
|
public_suffix (4.0.6)
|
94
|
+
puma (5.5.2)
|
95
|
+
nio4r (~> 2.0)
|
94
96
|
rack (2.2.3)
|
95
97
|
rack-protection (2.1.0)
|
96
98
|
rack
|
@@ -110,18 +112,20 @@ GEM
|
|
110
112
|
tilt (2.0.10)
|
111
113
|
tzinfo (2.0.4)
|
112
114
|
concurrent-ruby (~> 1.0)
|
113
|
-
zeitwerk (2.4.2)
|
114
115
|
|
115
116
|
PLATFORMS
|
116
117
|
x86_64-darwin-17
|
118
|
+
x86_64-darwin-19
|
117
119
|
|
118
120
|
DEPENDENCIES
|
119
121
|
cloudenvoy!
|
122
|
+
grpc (~> 1.40.0)
|
123
|
+
puma (~> 5.5.2)
|
120
124
|
rake
|
121
125
|
sinatra
|
122
126
|
|
123
127
|
RUBY VERSION
|
124
|
-
ruby
|
128
|
+
ruby 3.0.0p0
|
125
129
|
|
126
130
|
BUNDLED WITH
|
127
|
-
2.
|
131
|
+
2.3.4
|