hutch-java 1.3.0-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.github/workflows/test.yml +57 -0
  3. data/.gitignore +10 -0
  4. data/.rspec +1 -0
  5. data/.yardopts +5 -0
  6. data/CHANGELOG.md +899 -0
  7. data/Gemfile +35 -0
  8. data/Guardfile +14 -0
  9. data/LICENSE +23 -0
  10. data/README.md +679 -0
  11. data/Rakefile +21 -0
  12. data/bin/ci/before_build.sh +20 -0
  13. data/bin/ci/before_build_docker.sh +20 -0
  14. data/bin/ci/install_on_debian.sh +46 -0
  15. data/bin/hutch +8 -0
  16. data/examples/consumer.rb +13 -0
  17. data/examples/producer.rb +10 -0
  18. data/hutch.gemspec +27 -0
  19. data/lib/hutch/acknowledgements/base.rb +16 -0
  20. data/lib/hutch/acknowledgements/nack_on_all_failures.rb +19 -0
  21. data/lib/hutch/adapter.rb +11 -0
  22. data/lib/hutch/adapters/bunny.rb +37 -0
  23. data/lib/hutch/adapters/march_hare.rb +41 -0
  24. data/lib/hutch/broker.rb +383 -0
  25. data/lib/hutch/cli.rb +246 -0
  26. data/lib/hutch/config.rb +304 -0
  27. data/lib/hutch/consumer.rb +125 -0
  28. data/lib/hutch/error_handlers/airbrake.rb +54 -0
  29. data/lib/hutch/error_handlers/base.rb +15 -0
  30. data/lib/hutch/error_handlers/bugsnag.rb +30 -0
  31. data/lib/hutch/error_handlers/honeybadger.rb +43 -0
  32. data/lib/hutch/error_handlers/logger.rb +22 -0
  33. data/lib/hutch/error_handlers/rollbar.rb +28 -0
  34. data/lib/hutch/error_handlers/sentry.rb +26 -0
  35. data/lib/hutch/error_handlers/sentry_raven.rb +31 -0
  36. data/lib/hutch/error_handlers.rb +11 -0
  37. data/lib/hutch/exceptions.rb +14 -0
  38. data/lib/hutch/logging.rb +32 -0
  39. data/lib/hutch/message.rb +31 -0
  40. data/lib/hutch/publisher.rb +75 -0
  41. data/lib/hutch/serializers/identity.rb +19 -0
  42. data/lib/hutch/serializers/json.rb +22 -0
  43. data/lib/hutch/tracers/datadog.rb +18 -0
  44. data/lib/hutch/tracers/newrelic.rb +19 -0
  45. data/lib/hutch/tracers/null_tracer.rb +15 -0
  46. data/lib/hutch/tracers.rb +7 -0
  47. data/lib/hutch/version.rb +3 -0
  48. data/lib/hutch/waiter.rb +104 -0
  49. data/lib/hutch/worker.rb +145 -0
  50. data/lib/hutch.rb +69 -0
  51. data/lib/yard-settings/handler.rb +38 -0
  52. data/lib/yard-settings/yard-settings.rb +2 -0
  53. data/spec/hutch/broker_spec.rb +462 -0
  54. data/spec/hutch/cli_spec.rb +93 -0
  55. data/spec/hutch/config_spec.rb +259 -0
  56. data/spec/hutch/consumer_spec.rb +208 -0
  57. data/spec/hutch/error_handlers/airbrake_spec.rb +49 -0
  58. data/spec/hutch/error_handlers/bugsnag_spec.rb +55 -0
  59. data/spec/hutch/error_handlers/honeybadger_spec.rb +58 -0
  60. data/spec/hutch/error_handlers/logger_spec.rb +28 -0
  61. data/spec/hutch/error_handlers/rollbar_spec.rb +45 -0
  62. data/spec/hutch/error_handlers/sentry_raven_spec.rb +37 -0
  63. data/spec/hutch/error_handlers/sentry_spec.rb +47 -0
  64. data/spec/hutch/logger_spec.rb +34 -0
  65. data/spec/hutch/message_spec.rb +38 -0
  66. data/spec/hutch/serializers/json_spec.rb +17 -0
  67. data/spec/hutch/tracers/datadog_spec.rb +44 -0
  68. data/spec/hutch/waiter_spec.rb +51 -0
  69. data/spec/hutch/worker_spec.rb +184 -0
  70. data/spec/hutch_spec.rb +87 -0
  71. data/spec/spec_helper.rb +42 -0
  72. data/templates/default/class/html/settings.erb +0 -0
  73. data/templates/default/class/setup.rb +4 -0
  74. data/templates/default/fulldoc/html/css/hutch.css +13 -0
  75. data/templates/default/layout/html/setup.rb +7 -0
  76. data/templates/default/method_details/html/settings.erb +5 -0
  77. data/templates/default/method_details/setup.rb +4 -0
  78. data/templates/default/method_details/text/settings.erb +0 -0
  79. data/templates/default/module/html/settings.erb +40 -0
  80. data/templates/default/module/setup.rb +4 -0
  81. metadata +204 -0
metadata ADDED
@@ -0,0 +1,204 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hutch-java
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.3.0
5
+ platform: java
6
+ authors:
7
+ - Shivam Shah
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-02-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: 3.0.0
19
+ name: march_hare
20
+ prerelease: false
21
+ type: :runtime
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: 0.0.7
33
+ name: carrot-top
34
+ prerelease: false
35
+ type: :runtime
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.0.7
41
+ - !ruby/object:Gem::Dependency
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '1.15'
47
+ name: multi_json
48
+ prerelease: false
49
+ type: :runtime
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.15'
55
+ - !ruby/object:Gem::Dependency
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '4.2'
61
+ - - "<"
62
+ - !ruby/object:Gem::Version
63
+ version: '8'
64
+ name: activesupport
65
+ prerelease: false
66
+ type: :runtime
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '4.2'
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '8'
75
+ description: Hutch is a Ruby library for enabling asynchronous inter-service communication
76
+ using RabbitMQ
77
+ email:
78
+ executables:
79
+ - hutch
80
+ extensions: []
81
+ extra_rdoc_files: []
82
+ files:
83
+ - ".github/workflows/test.yml"
84
+ - ".gitignore"
85
+ - ".rspec"
86
+ - ".yardopts"
87
+ - CHANGELOG.md
88
+ - Gemfile
89
+ - Guardfile
90
+ - LICENSE
91
+ - README.md
92
+ - Rakefile
93
+ - bin/ci/before_build.sh
94
+ - bin/ci/before_build_docker.sh
95
+ - bin/ci/install_on_debian.sh
96
+ - bin/hutch
97
+ - examples/consumer.rb
98
+ - examples/producer.rb
99
+ - hutch.gemspec
100
+ - lib/hutch.rb
101
+ - lib/hutch/acknowledgements/base.rb
102
+ - lib/hutch/acknowledgements/nack_on_all_failures.rb
103
+ - lib/hutch/adapter.rb
104
+ - lib/hutch/adapters/bunny.rb
105
+ - lib/hutch/adapters/march_hare.rb
106
+ - lib/hutch/broker.rb
107
+ - lib/hutch/cli.rb
108
+ - lib/hutch/config.rb
109
+ - lib/hutch/consumer.rb
110
+ - lib/hutch/error_handlers.rb
111
+ - lib/hutch/error_handlers/airbrake.rb
112
+ - lib/hutch/error_handlers/base.rb
113
+ - lib/hutch/error_handlers/bugsnag.rb
114
+ - lib/hutch/error_handlers/honeybadger.rb
115
+ - lib/hutch/error_handlers/logger.rb
116
+ - lib/hutch/error_handlers/rollbar.rb
117
+ - lib/hutch/error_handlers/sentry.rb
118
+ - lib/hutch/error_handlers/sentry_raven.rb
119
+ - lib/hutch/exceptions.rb
120
+ - lib/hutch/logging.rb
121
+ - lib/hutch/message.rb
122
+ - lib/hutch/publisher.rb
123
+ - lib/hutch/serializers/identity.rb
124
+ - lib/hutch/serializers/json.rb
125
+ - lib/hutch/tracers.rb
126
+ - lib/hutch/tracers/datadog.rb
127
+ - lib/hutch/tracers/newrelic.rb
128
+ - lib/hutch/tracers/null_tracer.rb
129
+ - lib/hutch/version.rb
130
+ - lib/hutch/waiter.rb
131
+ - lib/hutch/worker.rb
132
+ - lib/yard-settings/handler.rb
133
+ - lib/yard-settings/yard-settings.rb
134
+ - spec/hutch/broker_spec.rb
135
+ - spec/hutch/cli_spec.rb
136
+ - spec/hutch/config_spec.rb
137
+ - spec/hutch/consumer_spec.rb
138
+ - spec/hutch/error_handlers/airbrake_spec.rb
139
+ - spec/hutch/error_handlers/bugsnag_spec.rb
140
+ - spec/hutch/error_handlers/honeybadger_spec.rb
141
+ - spec/hutch/error_handlers/logger_spec.rb
142
+ - spec/hutch/error_handlers/rollbar_spec.rb
143
+ - spec/hutch/error_handlers/sentry_raven_spec.rb
144
+ - spec/hutch/error_handlers/sentry_spec.rb
145
+ - spec/hutch/logger_spec.rb
146
+ - spec/hutch/message_spec.rb
147
+ - spec/hutch/serializers/json_spec.rb
148
+ - spec/hutch/tracers/datadog_spec.rb
149
+ - spec/hutch/waiter_spec.rb
150
+ - spec/hutch/worker_spec.rb
151
+ - spec/hutch_spec.rb
152
+ - spec/spec_helper.rb
153
+ - templates/default/class/html/settings.erb
154
+ - templates/default/class/setup.rb
155
+ - templates/default/fulldoc/html/css/hutch.css
156
+ - templates/default/layout/html/setup.rb
157
+ - templates/default/method_details/html/settings.erb
158
+ - templates/default/method_details/setup.rb
159
+ - templates/default/method_details/text/settings.erb
160
+ - templates/default/module/html/settings.erb
161
+ - templates/default/module/setup.rb
162
+ homepage: https://github.com/nulllvoid/hutch
163
+ licenses:
164
+ - MIT
165
+ metadata: {}
166
+ post_install_message:
167
+ rdoc_options: []
168
+ require_paths:
169
+ - lib
170
+ required_ruby_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '2.6'
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ requirements: []
181
+ rubygems_version: 3.4.6
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: Opinionated asynchronous inter-service communication using RabbitMQ
185
+ test_files:
186
+ - spec/hutch/broker_spec.rb
187
+ - spec/hutch/cli_spec.rb
188
+ - spec/hutch/config_spec.rb
189
+ - spec/hutch/consumer_spec.rb
190
+ - spec/hutch/error_handlers/airbrake_spec.rb
191
+ - spec/hutch/error_handlers/bugsnag_spec.rb
192
+ - spec/hutch/error_handlers/honeybadger_spec.rb
193
+ - spec/hutch/error_handlers/logger_spec.rb
194
+ - spec/hutch/error_handlers/rollbar_spec.rb
195
+ - spec/hutch/error_handlers/sentry_raven_spec.rb
196
+ - spec/hutch/error_handlers/sentry_spec.rb
197
+ - spec/hutch/logger_spec.rb
198
+ - spec/hutch/message_spec.rb
199
+ - spec/hutch/serializers/json_spec.rb
200
+ - spec/hutch/tracers/datadog_spec.rb
201
+ - spec/hutch/waiter_spec.rb
202
+ - spec/hutch/worker_spec.rb
203
+ - spec/hutch_spec.rb
204
+ - spec/spec_helper.rb