cloudenvoy 0.3.1 → 0.5.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/lint_rubocop.yml +20 -0
  3. data/.github/workflows/{test.yml → test_ruby_2.5_2.6.yml} +8 -13
  4. data/.github/workflows/test_ruby_2.7.yml +36 -0
  5. data/.github/workflows/test_ruby_3.x.yml +35 -0
  6. data/.gitignore +3 -0
  7. data/.rubocop.yml +5 -0
  8. data/Appraisals +24 -4
  9. data/CHANGELOG.md +33 -2
  10. data/README.md +4 -4
  11. data/app/controllers/cloudenvoy/subscriber_controller.rb +6 -5
  12. data/cloudenvoy.gemspec +0 -4
  13. data/examples/rails/.ruby-version +1 -1
  14. data/examples/rails/Gemfile +4 -1
  15. data/examples/rails/Gemfile.lock +132 -110
  16. data/examples/rails/README.md +1 -1
  17. data/examples/sinatra/Gemfile +18 -0
  18. data/examples/sinatra/Gemfile.lock +131 -0
  19. data/examples/sinatra/Procfile +1 -0
  20. data/examples/sinatra/README.md +41 -0
  21. data/examples/sinatra/app/publishers/hello_publisher.rb +34 -0
  22. data/examples/sinatra/app/subscribers/hello_subscriber.rb +16 -0
  23. data/examples/sinatra/app.rb +40 -0
  24. data/examples/sinatra/bin/console +8 -0
  25. data/examples/sinatra/config/initializers/cloudenvoy.rb +30 -0
  26. data/gemfiles/.bundle/config +2 -0
  27. data/gemfiles/rails_5.2.gemfile +1 -0
  28. data/gemfiles/rails_5.2.gemfile.lock +111 -88
  29. data/gemfiles/rails_6.0.gemfile +1 -0
  30. data/gemfiles/rails_6.0.gemfile.lock +112 -89
  31. data/gemfiles/rails_6.1.gemfile +8 -0
  32. data/gemfiles/rails_7.0.gemfile +8 -0
  33. data/gemfiles/semantic_logger_3.4.gemfile +1 -0
  34. data/gemfiles/semantic_logger_3.4.gemfile.lock +89 -187
  35. data/gemfiles/semantic_logger_4.6.gemfile +1 -0
  36. data/gemfiles/semantic_logger_4.6.gemfile.lock +89 -187
  37. data/gemfiles/semantic_logger_4.7.0.gemfile +1 -0
  38. data/gemfiles/semantic_logger_4.7.0.gemfile.lock +89 -187
  39. data/gemfiles/semantic_logger_4.7.2.gemfile +1 -0
  40. data/gemfiles/semantic_logger_4.7.2.gemfile.lock +89 -187
  41. data/lib/cloudenvoy/backend/google_pub_sub.rb +18 -3
  42. data/lib/cloudenvoy/message.rb +2 -2
  43. data/lib/cloudenvoy/publisher.rb +1 -0
  44. data/lib/cloudenvoy/subscriber.rb +3 -2
  45. data/lib/cloudenvoy/version.rb +1 -1
  46. data/lib/cloudenvoy.rb +1 -0
  47. data/lib/generators/cloudenvoy/publisher_generator.rb +46 -0
  48. data/lib/generators/cloudenvoy/subscriber_generator.rb +46 -0
  49. data/lib/generators/cloudenvoy/templates/publisher.rb.erb +11 -0
  50. data/lib/generators/cloudenvoy/templates/publisher_spec.rb.erb +6 -0
  51. data/lib/generators/cloudenvoy/templates/subscriber.rb.erb +11 -0
  52. data/lib/generators/cloudenvoy/templates/subscriber_spec.rb.erb +6 -0
  53. data/lib/tasks/cloudenvoy.rake +4 -4
  54. metadata +30 -53
  55. data/Gemfile.lock +0 -267
  56. data/app/controllers/cloudenvoy/application_controller.rb +0 -8
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudenvoy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.5.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arnaud Lachaume
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-05 00:00:00.000000000 Z
11
+ date: 2022-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -178,48 +178,6 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
- - !ruby/object:Gem::Dependency
182
- name: rails
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- version: '0'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - ">="
193
- - !ruby/object:Gem::Version
194
- version: '0'
195
- - !ruby/object:Gem::Dependency
196
- name: rspec-rails
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
- - !ruby/object:Gem::Dependency
210
- name: sqlite3
211
- requirement: !ruby/object:Gem::Requirement
212
- requirements:
213
- - - ">="
214
- - !ruby/object:Gem::Version
215
- version: '0'
216
- type: :development
217
- prerelease: false
218
- version_requirements: !ruby/object:Gem::Requirement
219
- requirements:
220
- - - ">="
221
- - !ruby/object:Gem::Version
222
- version: '0'
223
181
  description: Cross-application messaging using GCP Pub/Sub (alpha)
224
182
  email:
225
183
  - arnaud.lachaume@keypup.io
@@ -227,7 +185,10 @@ executables: []
227
185
  extensions: []
228
186
  extra_rdoc_files: []
229
187
  files:
230
- - ".github/workflows/test.yml"
188
+ - ".github/workflows/lint_rubocop.yml"
189
+ - ".github/workflows/test_ruby_2.5_2.6.yml"
190
+ - ".github/workflows/test_ruby_2.7.yml"
191
+ - ".github/workflows/test_ruby_3.x.yml"
231
192
  - ".gitignore"
232
193
  - ".rspec"
233
194
  - ".rubocop.yml"
@@ -235,11 +196,9 @@ files:
235
196
  - CHANGELOG.md
236
197
  - CODE_OF_CONDUCT.md
237
198
  - Gemfile
238
- - Gemfile.lock
239
199
  - LICENSE.txt
240
200
  - README.md
241
201
  - Rakefile
242
- - app/controllers/cloudenvoy/application_controller.rb
243
202
  - app/controllers/cloudenvoy/subscriber_controller.rb
244
203
  - bin/console
245
204
  - bin/setup
@@ -311,10 +270,22 @@ files:
311
270
  - examples/rails/storage/.keep
312
271
  - examples/rails/tmp/.keep
313
272
  - examples/rails/tmp/development_secret.txt
273
+ - examples/sinatra/Gemfile
274
+ - examples/sinatra/Gemfile.lock
275
+ - examples/sinatra/Procfile
276
+ - examples/sinatra/README.md
277
+ - examples/sinatra/app.rb
278
+ - examples/sinatra/app/publishers/hello_publisher.rb
279
+ - examples/sinatra/app/subscribers/hello_subscriber.rb
280
+ - examples/sinatra/bin/console
281
+ - examples/sinatra/config/initializers/cloudenvoy.rb
282
+ - gemfiles/.bundle/config
314
283
  - gemfiles/rails_5.2.gemfile
315
284
  - gemfiles/rails_5.2.gemfile.lock
316
285
  - gemfiles/rails_6.0.gemfile
317
286
  - gemfiles/rails_6.0.gemfile.lock
287
+ - gemfiles/rails_6.1.gemfile
288
+ - gemfiles/rails_7.0.gemfile
318
289
  - gemfiles/semantic_logger_3.4.gemfile
319
290
  - gemfiles/semantic_logger_3.4.gemfile.lock
320
291
  - gemfiles/semantic_logger_4.6.gemfile
@@ -343,6 +314,12 @@ files:
343
314
  - lib/cloudenvoy/testing.rb
344
315
  - lib/cloudenvoy/topic.rb
345
316
  - lib/cloudenvoy/version.rb
317
+ - lib/generators/cloudenvoy/publisher_generator.rb
318
+ - lib/generators/cloudenvoy/subscriber_generator.rb
319
+ - lib/generators/cloudenvoy/templates/publisher.rb.erb
320
+ - lib/generators/cloudenvoy/templates/publisher_spec.rb.erb
321
+ - lib/generators/cloudenvoy/templates/subscriber.rb.erb
322
+ - lib/generators/cloudenvoy/templates/subscriber_spec.rb.erb
346
323
  - lib/tasks/cloudenvoy.rake
347
324
  homepage: https://github.com/keypup-io/cloudenvoy
348
325
  licenses:
@@ -351,7 +328,7 @@ metadata:
351
328
  homepage_uri: https://github.com/keypup-io/cloudenvoy
352
329
  source_code_uri: https://github.com/keypup-io/cloudenvoy
353
330
  changelog_uri: https://github.com/keypup-io/cloudenvoy/master/tree/CHANGELOG.md
354
- post_install_message:
331
+ post_install_message:
355
332
  rdoc_options: []
356
333
  require_paths:
357
334
  - lib
@@ -362,12 +339,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
362
339
  version: 2.3.0
363
340
  required_rubygems_version: !ruby/object:Gem::Requirement
364
341
  requirements:
365
- - - ">="
342
+ - - ">"
366
343
  - !ruby/object:Gem::Version
367
- version: '0'
344
+ version: 1.3.1
368
345
  requirements: []
369
- rubygems_version: 3.0.0
370
- signing_key:
346
+ rubygems_version: 3.2.3
347
+ signing_key:
371
348
  specification_version: 4
372
349
  summary: Cross-application messaging using GCP Pub/Sub (alpha)
373
350
  test_files: []
data/Gemfile.lock DELETED
@@ -1,267 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- cloudenvoy (0.3.1)
5
- activesupport
6
- google-cloud-pubsub (~> 2.0)
7
- jwt
8
- retriable
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- actioncable (6.0.3.2)
14
- actionpack (= 6.0.3.2)
15
- nio4r (~> 2.0)
16
- websocket-driver (>= 0.6.1)
17
- actionmailbox (6.0.3.2)
18
- actionpack (= 6.0.3.2)
19
- activejob (= 6.0.3.2)
20
- activerecord (= 6.0.3.2)
21
- activestorage (= 6.0.3.2)
22
- activesupport (= 6.0.3.2)
23
- mail (>= 2.7.1)
24
- actionmailer (6.0.3.2)
25
- actionpack (= 6.0.3.2)
26
- actionview (= 6.0.3.2)
27
- activejob (= 6.0.3.2)
28
- mail (~> 2.5, >= 2.5.4)
29
- rails-dom-testing (~> 2.0)
30
- actionpack (6.0.3.2)
31
- actionview (= 6.0.3.2)
32
- activesupport (= 6.0.3.2)
33
- rack (~> 2.0, >= 2.0.8)
34
- rack-test (>= 0.6.3)
35
- rails-dom-testing (~> 2.0)
36
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
- actiontext (6.0.3.2)
38
- actionpack (= 6.0.3.2)
39
- activerecord (= 6.0.3.2)
40
- activestorage (= 6.0.3.2)
41
- activesupport (= 6.0.3.2)
42
- nokogiri (>= 1.8.5)
43
- actionview (6.0.3.2)
44
- activesupport (= 6.0.3.2)
45
- builder (~> 3.1)
46
- erubi (~> 1.4)
47
- rails-dom-testing (~> 2.0)
48
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.0.3.2)
50
- activesupport (= 6.0.3.2)
51
- globalid (>= 0.3.6)
52
- activemodel (6.0.3.2)
53
- activesupport (= 6.0.3.2)
54
- activerecord (6.0.3.2)
55
- activemodel (= 6.0.3.2)
56
- activesupport (= 6.0.3.2)
57
- activestorage (6.0.3.2)
58
- actionpack (= 6.0.3.2)
59
- activejob (= 6.0.3.2)
60
- activerecord (= 6.0.3.2)
61
- marcel (~> 0.3.1)
62
- activesupport (6.0.3.2)
63
- concurrent-ruby (~> 1.0, >= 1.0.2)
64
- i18n (>= 0.7, < 2)
65
- minitest (~> 5.1)
66
- tzinfo (~> 1.1)
67
- zeitwerk (~> 2.2, >= 2.2.2)
68
- addressable (2.7.0)
69
- public_suffix (>= 2.0.2, < 5.0)
70
- appraisal (2.3.0)
71
- bundler
72
- rake
73
- thor (>= 0.14.0)
74
- ast (2.4.1)
75
- builder (3.2.4)
76
- concurrent-ruby (1.1.6)
77
- crack (0.4.3)
78
- safe_yaml (~> 1.0.0)
79
- crass (1.0.6)
80
- diff-lcs (1.4.2)
81
- erubi (1.9.0)
82
- faraday (1.0.1)
83
- multipart-post (>= 1.2, < 3)
84
- gapic-common (0.3.4)
85
- google-protobuf (~> 3.12, >= 3.12.2)
86
- googleapis-common-protos (>= 1.3.9, < 2.0)
87
- googleapis-common-protos-types (>= 1.0.4, < 2.0)
88
- googleauth (~> 0.9)
89
- grpc (~> 1.25)
90
- globalid (0.4.2)
91
- activesupport (>= 4.2.0)
92
- google-cloud-core (1.5.0)
93
- google-cloud-env (~> 1.0)
94
- google-cloud-errors (~> 1.0)
95
- google-cloud-env (1.3.3)
96
- faraday (>= 0.17.3, < 2.0)
97
- google-cloud-errors (1.0.1)
98
- google-cloud-pubsub (2.0.0)
99
- concurrent-ruby (~> 1.1)
100
- google-cloud-core (~> 1.5)
101
- google-cloud-pubsub-v1 (~> 0.0)
102
- google-cloud-pubsub-v1 (0.1.2)
103
- gapic-common (~> 0.3)
104
- google-cloud-errors (~> 1.0)
105
- grpc-google-iam-v1 (>= 0.6.10, < 2.0)
106
- google-protobuf (3.13.0-universal-darwin)
107
- googleapis-common-protos (1.3.10)
108
- google-protobuf (~> 3.11)
109
- googleapis-common-protos-types (>= 1.0.5, < 2.0)
110
- grpc (~> 1.27)
111
- googleapis-common-protos-types (1.0.5)
112
- google-protobuf (~> 3.11)
113
- googleauth (0.13.1)
114
- faraday (>= 0.17.3, < 2.0)
115
- jwt (>= 1.4, < 3.0)
116
- memoist (~> 0.16)
117
- multi_json (~> 1.11)
118
- os (>= 0.9, < 2.0)
119
- signet (~> 0.14)
120
- grpc (1.32.0-universal-darwin)
121
- google-protobuf (~> 3.13)
122
- googleapis-common-protos-types (~> 1.0)
123
- grpc-google-iam-v1 (0.6.10)
124
- google-protobuf (~> 3.11)
125
- googleapis-common-protos (>= 1.3.10, < 2.0)
126
- grpc (~> 1.27)
127
- hashdiff (1.0.1)
128
- i18n (1.8.5)
129
- concurrent-ruby (~> 1.0)
130
- jaro_winkler (1.5.4)
131
- jwt (2.2.2)
132
- loofah (2.6.0)
133
- crass (~> 1.0.2)
134
- nokogiri (>= 1.5.9)
135
- mail (2.7.1)
136
- mini_mime (>= 0.1.1)
137
- marcel (0.3.3)
138
- mimemagic (~> 0.3.2)
139
- memoist (0.16.2)
140
- method_source (1.0.0)
141
- mimemagic (0.3.5)
142
- mini_mime (1.0.2)
143
- mini_portile2 (2.4.0)
144
- minitest (5.14.1)
145
- multi_json (1.15.0)
146
- multipart-post (2.1.1)
147
- nio4r (2.5.2)
148
- nokogiri (1.10.10)
149
- mini_portile2 (~> 2.4.0)
150
- os (1.1.1)
151
- parallel (1.19.2)
152
- parser (2.7.1.4)
153
- ast (~> 2.4.1)
154
- public_suffix (4.0.5)
155
- rack (2.2.3)
156
- rack-test (1.1.0)
157
- rack (>= 1.0, < 3)
158
- rails (6.0.3.2)
159
- actioncable (= 6.0.3.2)
160
- actionmailbox (= 6.0.3.2)
161
- actionmailer (= 6.0.3.2)
162
- actionpack (= 6.0.3.2)
163
- actiontext (= 6.0.3.2)
164
- actionview (= 6.0.3.2)
165
- activejob (= 6.0.3.2)
166
- activemodel (= 6.0.3.2)
167
- activerecord (= 6.0.3.2)
168
- activestorage (= 6.0.3.2)
169
- activesupport (= 6.0.3.2)
170
- bundler (>= 1.3.0)
171
- railties (= 6.0.3.2)
172
- sprockets-rails (>= 2.0.0)
173
- rails-dom-testing (2.0.3)
174
- activesupport (>= 4.2.0)
175
- nokogiri (>= 1.6)
176
- rails-html-sanitizer (1.3.0)
177
- loofah (~> 2.3)
178
- railties (6.0.3.2)
179
- actionpack (= 6.0.3.2)
180
- activesupport (= 6.0.3.2)
181
- method_source
182
- rake (>= 0.8.7)
183
- thor (>= 0.20.3, < 2.0)
184
- rainbow (3.0.0)
185
- rake (13.0.1)
186
- retriable (3.1.2)
187
- rspec (3.9.0)
188
- rspec-core (~> 3.9.0)
189
- rspec-expectations (~> 3.9.0)
190
- rspec-mocks (~> 3.9.0)
191
- rspec-core (3.9.2)
192
- rspec-support (~> 3.9.3)
193
- rspec-expectations (3.9.2)
194
- diff-lcs (>= 1.2.0, < 2.0)
195
- rspec-support (~> 3.9.0)
196
- rspec-mocks (3.9.1)
197
- diff-lcs (>= 1.2.0, < 2.0)
198
- rspec-support (~> 3.9.0)
199
- rspec-rails (4.0.1)
200
- actionpack (>= 4.2)
201
- activesupport (>= 4.2)
202
- railties (>= 4.2)
203
- rspec-core (~> 3.9)
204
- rspec-expectations (~> 3.9)
205
- rspec-mocks (~> 3.9)
206
- rspec-support (~> 3.9)
207
- rspec-support (3.9.3)
208
- rubocop (0.76.0)
209
- jaro_winkler (~> 1.5.1)
210
- parallel (~> 1.10)
211
- parser (>= 2.6)
212
- rainbow (>= 2.2.2, < 4.0)
213
- ruby-progressbar (~> 1.7)
214
- unicode-display_width (>= 1.4.0, < 1.7)
215
- rubocop-rspec (1.37.0)
216
- rubocop (>= 0.68.1)
217
- ruby-progressbar (1.10.1)
218
- safe_yaml (1.0.5)
219
- semantic_logger (4.7.2)
220
- concurrent-ruby (~> 1.0)
221
- signet (0.14.0)
222
- addressable (~> 2.3)
223
- faraday (>= 0.17.3, < 2.0)
224
- jwt (>= 1.5, < 3.0)
225
- multi_json (~> 1.10)
226
- sprockets (4.0.2)
227
- concurrent-ruby (~> 1.0)
228
- rack (> 1, < 3)
229
- sprockets-rails (3.2.1)
230
- actionpack (>= 4.0)
231
- activesupport (>= 4.0)
232
- sprockets (>= 3.0.0)
233
- sqlite3 (1.4.2)
234
- thor (1.0.1)
235
- thread_safe (0.3.6)
236
- timecop (0.9.1)
237
- tzinfo (1.2.7)
238
- thread_safe (~> 0.1)
239
- unicode-display_width (1.6.1)
240
- webmock (3.8.3)
241
- addressable (>= 2.3.6)
242
- crack (>= 0.3.2)
243
- hashdiff (>= 0.4.0, < 2.0.0)
244
- websocket-driver (0.7.3)
245
- websocket-extensions (>= 0.1.0)
246
- websocket-extensions (0.1.5)
247
- zeitwerk (2.4.0)
248
-
249
- PLATFORMS
250
- ruby
251
-
252
- DEPENDENCIES
253
- appraisal
254
- cloudenvoy!
255
- rails
256
- rake (>= 12.3.3)
257
- rspec (~> 3.0)
258
- rspec-rails
259
- rubocop (= 0.76.0)
260
- rubocop-rspec (= 1.37.0)
261
- semantic_logger
262
- sqlite3
263
- timecop
264
- webmock
265
-
266
- BUNDLED WITH
267
- 2.1.4
@@ -1,8 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Cloudenvoy
4
- # Base Cloudenvoy controller
5
- class ApplicationController < ActionController::Base
6
- skip_before_action :verify_authenticity_token
7
- end
8
- end