nulogy_message_bus_producer 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +35 -0
  3. data/Rakefile +22 -0
  4. data/db/migrate/20200611150212_create_public_subscriptions_and_events_tables.rb +25 -0
  5. data/lib/nulogy_message_bus_producer.rb +112 -0
  6. data/lib/nulogy_message_bus_producer/application_record.rb +6 -0
  7. data/lib/nulogy_message_bus_producer/base_public_subscription.rb +13 -0
  8. data/lib/nulogy_message_bus_producer/engine.rb +6 -0
  9. data/lib/nulogy_message_bus_producer/postgres_public_subscriptions.rb +102 -0
  10. data/lib/nulogy_message_bus_producer/public_subscription.rb +27 -0
  11. data/lib/nulogy_message_bus_producer/public_subscription_event.rb +13 -0
  12. data/lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator.rb +45 -0
  13. data/lib/nulogy_message_bus_producer/version.rb +3 -0
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/config/manifest.js +4 -0
  16. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  17. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  19. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  20. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +7 -0
  22. data/spec/dummy/app/controllers/dummy_controller.rb +17 -0
  23. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  24. data/spec/dummy/app/jobs/application_job.rb +2 -0
  25. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  26. data/spec/dummy/app/models/application_record.rb +3 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  29. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  30. data/spec/dummy/bin/bundle +3 -0
  31. data/spec/dummy/bin/rails +4 -0
  32. data/spec/dummy/bin/rake +4 -0
  33. data/spec/dummy/bin/setup +38 -0
  34. data/spec/dummy/bin/update +29 -0
  35. data/spec/dummy/bin/yarn +11 -0
  36. data/spec/dummy/config.ru +5 -0
  37. data/spec/dummy/config/application.rb +22 -0
  38. data/spec/dummy/config/boot.rb +5 -0
  39. data/spec/dummy/config/cable.yml +10 -0
  40. data/spec/dummy/config/database.yml +22 -0
  41. data/spec/dummy/config/environment.rb +5 -0
  42. data/spec/dummy/config/environments/development.rb +54 -0
  43. data/spec/dummy/config/environments/production.rb +91 -0
  44. data/spec/dummy/config/environments/test.rb +42 -0
  45. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  46. data/spec/dummy/config/initializers/assets.rb +14 -0
  47. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  49. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/spec/dummy/config/initializers/inflections.rb +16 -0
  51. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/spec/dummy/config/locales/en.yml +33 -0
  54. data/spec/dummy/config/puma.rb +56 -0
  55. data/spec/dummy/config/routes.rb +6 -0
  56. data/spec/dummy/config/secrets.yml +32 -0
  57. data/spec/dummy/config/spring.rb +6 -0
  58. data/spec/dummy/db/schema.rb +42 -0
  59. data/spec/dummy/log/development.log +1771 -0
  60. data/spec/dummy/log/test.log +14189 -0
  61. data/spec/dummy/package.json +5 -0
  62. data/spec/dummy/public/404.html +67 -0
  63. data/spec/dummy/public/422.html +67 -0
  64. data/spec/dummy/public/500.html +66 -0
  65. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  66. data/spec/dummy/public/apple-touch-icon.png +0 -0
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/integration/lib/graphql_api/postgres_public_subscriptions_spec.rb +16 -0
  69. data/spec/integration/lib/graphql_api/validators/subscriber_graphql_schema_validator_spec.rb +76 -0
  70. data/spec/integration_spec_helper.rb +35 -0
  71. data/spec/spec_helper.rb +60 -0
  72. data/spec/unit/lib/graphql_api/models/public_subscription_spec.rb +56 -0
  73. data/spec/unit_spec_helper.rb +6 -0
  74. metadata +342 -0
@@ -0,0 +1,6 @@
1
+ # Make all rspec configuration changes to this file.
2
+ # Leave automatically generated configuration files untouched to facilitate gem upgrades.
3
+
4
+ require "nulogy_message_bus_producer"
5
+ require "rspec/core"
6
+ require "spec_helper"
metadata ADDED
@@ -0,0 +1,342 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: nulogy_message_bus_producer
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Nulogy
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.2.4.2
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.2.4.2
27
+ - !ruby/object:Gem::Dependency
28
+ name: graphql
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.9.12
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.9.12
41
+ - !ruby/object:Gem::Dependency
42
+ name: strong_migrations
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 0.5.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 0.5.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: pg
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 1.2.3
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '='
67
+ - !ruby/object:Gem::Version
68
+ version: 1.2.3
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pry-byebug
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: rake
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 13.0.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 13.0.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-rails
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '='
116
+ - !ruby/object:Gem::Version
117
+ version: 4.0.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '='
123
+ - !ruby/object:Gem::Version
124
+ version: 4.0.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '='
130
+ - !ruby/object:Gem::Version
131
+ version: 0.85.1
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '='
137
+ - !ruby/object:Gem::Version
138
+ version: 0.85.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: rubocop-performance
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '='
144
+ - !ruby/object:Gem::Version
145
+ version: 1.6.1
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '='
151
+ - !ruby/object:Gem::Version
152
+ version: 1.6.1
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop-rails
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '='
158
+ - !ruby/object:Gem::Version
159
+ version: 2.6.0
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '='
165
+ - !ruby/object:Gem::Version
166
+ version: 2.6.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: rubocop-rspec
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - '='
172
+ - !ruby/object:Gem::Version
173
+ version: 1.40.0
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - '='
179
+ - !ruby/object:Gem::Version
180
+ version: 1.40.0
181
+ description: Nulogy's code for producing to the Message Bus
182
+ email:
183
+ - tass@nulogy.com
184
+ executables: []
185
+ extensions: []
186
+ extra_rdoc_files: []
187
+ files:
188
+ - README.md
189
+ - Rakefile
190
+ - db/migrate/20200611150212_create_public_subscriptions_and_events_tables.rb
191
+ - lib/nulogy_message_bus_producer.rb
192
+ - lib/nulogy_message_bus_producer/application_record.rb
193
+ - lib/nulogy_message_bus_producer/base_public_subscription.rb
194
+ - lib/nulogy_message_bus_producer/engine.rb
195
+ - lib/nulogy_message_bus_producer/postgres_public_subscriptions.rb
196
+ - lib/nulogy_message_bus_producer/public_subscription.rb
197
+ - lib/nulogy_message_bus_producer/public_subscription_event.rb
198
+ - lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator.rb
199
+ - lib/nulogy_message_bus_producer/version.rb
200
+ - spec/dummy/Rakefile
201
+ - spec/dummy/app/assets/config/manifest.js
202
+ - spec/dummy/app/assets/javascripts/application.js
203
+ - spec/dummy/app/assets/javascripts/cable.js
204
+ - spec/dummy/app/assets/stylesheets/application.css
205
+ - spec/dummy/app/channels/application_cable/channel.rb
206
+ - spec/dummy/app/channels/application_cable/connection.rb
207
+ - spec/dummy/app/controllers/application_controller.rb
208
+ - spec/dummy/app/controllers/dummy_controller.rb
209
+ - spec/dummy/app/helpers/application_helper.rb
210
+ - spec/dummy/app/jobs/application_job.rb
211
+ - spec/dummy/app/mailers/application_mailer.rb
212
+ - spec/dummy/app/models/application_record.rb
213
+ - spec/dummy/app/views/layouts/application.html.erb
214
+ - spec/dummy/app/views/layouts/mailer.html.erb
215
+ - spec/dummy/app/views/layouts/mailer.text.erb
216
+ - spec/dummy/bin/bundle
217
+ - spec/dummy/bin/rails
218
+ - spec/dummy/bin/rake
219
+ - spec/dummy/bin/setup
220
+ - spec/dummy/bin/update
221
+ - spec/dummy/bin/yarn
222
+ - spec/dummy/config.ru
223
+ - spec/dummy/config/application.rb
224
+ - spec/dummy/config/boot.rb
225
+ - spec/dummy/config/cable.yml
226
+ - spec/dummy/config/database.yml
227
+ - spec/dummy/config/environment.rb
228
+ - spec/dummy/config/environments/development.rb
229
+ - spec/dummy/config/environments/production.rb
230
+ - spec/dummy/config/environments/test.rb
231
+ - spec/dummy/config/initializers/application_controller_renderer.rb
232
+ - spec/dummy/config/initializers/assets.rb
233
+ - spec/dummy/config/initializers/backtrace_silencers.rb
234
+ - spec/dummy/config/initializers/cookies_serializer.rb
235
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
236
+ - spec/dummy/config/initializers/inflections.rb
237
+ - spec/dummy/config/initializers/mime_types.rb
238
+ - spec/dummy/config/initializers/wrap_parameters.rb
239
+ - spec/dummy/config/locales/en.yml
240
+ - spec/dummy/config/puma.rb
241
+ - spec/dummy/config/routes.rb
242
+ - spec/dummy/config/secrets.yml
243
+ - spec/dummy/config/spring.rb
244
+ - spec/dummy/db/schema.rb
245
+ - spec/dummy/log/development.log
246
+ - spec/dummy/log/test.log
247
+ - spec/dummy/package.json
248
+ - spec/dummy/public/404.html
249
+ - spec/dummy/public/422.html
250
+ - spec/dummy/public/500.html
251
+ - spec/dummy/public/apple-touch-icon-precomposed.png
252
+ - spec/dummy/public/apple-touch-icon.png
253
+ - spec/dummy/public/favicon.ico
254
+ - spec/integration/lib/graphql_api/postgres_public_subscriptions_spec.rb
255
+ - spec/integration/lib/graphql_api/validators/subscriber_graphql_schema_validator_spec.rb
256
+ - spec/integration_spec_helper.rb
257
+ - spec/spec_helper.rb
258
+ - spec/unit/lib/graphql_api/models/public_subscription_spec.rb
259
+ - spec/unit_spec_helper.rb
260
+ homepage: https://github.com/nulogy/message-bus/tree/master/gems/nulogy_message_bus_producer
261
+ licenses: []
262
+ metadata: {}
263
+ post_install_message:
264
+ rdoc_options: []
265
+ require_paths:
266
+ - lib
267
+ required_ruby_version: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ required_rubygems_version: !ruby/object:Gem::Requirement
273
+ requirements:
274
+ - - ">="
275
+ - !ruby/object:Gem::Version
276
+ version: '0'
277
+ requirements: []
278
+ rubygems_version: 3.0.3
279
+ signing_key:
280
+ specification_version: 4
281
+ summary: Nulogy's code for producing to the Message Bus
282
+ test_files:
283
+ - spec/spec_helper.rb
284
+ - spec/unit/lib/graphql_api/models/public_subscription_spec.rb
285
+ - spec/dummy/app/mailers/application_mailer.rb
286
+ - spec/dummy/app/models/application_record.rb
287
+ - spec/dummy/app/jobs/application_job.rb
288
+ - spec/dummy/app/controllers/application_controller.rb
289
+ - spec/dummy/app/controllers/dummy_controller.rb
290
+ - spec/dummy/app/views/layouts/application.html.erb
291
+ - spec/dummy/app/views/layouts/mailer.html.erb
292
+ - spec/dummy/app/views/layouts/mailer.text.erb
293
+ - spec/dummy/app/assets/config/manifest.js
294
+ - spec/dummy/app/assets/javascripts/cable.js
295
+ - spec/dummy/app/assets/javascripts/application.js
296
+ - spec/dummy/app/assets/stylesheets/application.css
297
+ - spec/dummy/app/helpers/application_helper.rb
298
+ - spec/dummy/app/channels/application_cable/connection.rb
299
+ - spec/dummy/app/channels/application_cable/channel.rb
300
+ - spec/dummy/bin/update
301
+ - spec/dummy/bin/rake
302
+ - spec/dummy/bin/setup
303
+ - spec/dummy/bin/bundle
304
+ - spec/dummy/bin/yarn
305
+ - spec/dummy/bin/rails
306
+ - spec/dummy/config/secrets.yml
307
+ - spec/dummy/config/routes.rb
308
+ - spec/dummy/config/locales/en.yml
309
+ - spec/dummy/config/cable.yml
310
+ - spec/dummy/config/environments/production.rb
311
+ - spec/dummy/config/environments/development.rb
312
+ - spec/dummy/config/environments/test.rb
313
+ - spec/dummy/config/spring.rb
314
+ - spec/dummy/config/environment.rb
315
+ - spec/dummy/config/application.rb
316
+ - spec/dummy/config/puma.rb
317
+ - spec/dummy/config/database.yml
318
+ - spec/dummy/config/boot.rb
319
+ - spec/dummy/config/initializers/application_controller_renderer.rb
320
+ - spec/dummy/config/initializers/backtrace_silencers.rb
321
+ - spec/dummy/config/initializers/mime_types.rb
322
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
323
+ - spec/dummy/config/initializers/wrap_parameters.rb
324
+ - spec/dummy/config/initializers/assets.rb
325
+ - spec/dummy/config/initializers/cookies_serializer.rb
326
+ - spec/dummy/config/initializers/inflections.rb
327
+ - spec/dummy/config.ru
328
+ - spec/dummy/Rakefile
329
+ - spec/dummy/public/favicon.ico
330
+ - spec/dummy/public/422.html
331
+ - spec/dummy/public/apple-touch-icon.png
332
+ - spec/dummy/public/500.html
333
+ - spec/dummy/public/404.html
334
+ - spec/dummy/public/apple-touch-icon-precomposed.png
335
+ - spec/dummy/package.json
336
+ - spec/dummy/db/schema.rb
337
+ - spec/dummy/log/test.log
338
+ - spec/dummy/log/development.log
339
+ - spec/integration_spec_helper.rb
340
+ - spec/integration/lib/graphql_api/postgres_public_subscriptions_spec.rb
341
+ - spec/integration/lib/graphql_api/validators/subscriber_graphql_schema_validator_spec.rb
342
+ - spec/unit_spec_helper.rb