rabbitmq_client 0.0.0.pre → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +3 -1
  3. data/.reek.yml +21 -0
  4. data/.travis.yml +12 -1
  5. data/README.md +129 -17
  6. data/bin/setup +4 -0
  7. data/lib/rabbitmq_client/callback.rb +47 -0
  8. data/lib/rabbitmq_client/exchange.rb +25 -0
  9. data/lib/rabbitmq_client/exchange_registry.rb +33 -0
  10. data/lib/rabbitmq_client/json_formatter.rb +29 -0
  11. data/lib/rabbitmq_client/json_log_subscriber.rb +90 -0
  12. data/lib/rabbitmq_client/lifecycle.rb +53 -0
  13. data/lib/rabbitmq_client/log_subscriber_base.rb +16 -0
  14. data/lib/rabbitmq_client/logger_builder.rb +35 -0
  15. data/lib/rabbitmq_client/message_publisher.rb +57 -0
  16. data/lib/rabbitmq_client/plain_log_subscriber.rb +64 -0
  17. data/lib/rabbitmq_client/plugin.rb +31 -0
  18. data/lib/rabbitmq_client/publisher.rb +79 -0
  19. data/lib/rabbitmq_client/tags_filter.rb +16 -0
  20. data/lib/rabbitmq_client/text_formatter.rb +42 -0
  21. data/lib/rabbitmq_client/version.rb +2 -1
  22. data/lib/rabbitmq_client.rb +99 -2
  23. data/rabbitmq_client.gemspec +1 -0
  24. data/script/travis.sh +2 -0
  25. data/spec/callback_spec.rb +31 -0
  26. data/spec/exchange_registry_spec.rb +32 -0
  27. data/spec/json_formatter_spec.rb +43 -0
  28. data/spec/json_log_subscriber_spec.rb +145 -0
  29. data/spec/lifecycle_spec.rb +78 -0
  30. data/spec/plain_log_subscriber_spec.rb +115 -0
  31. data/spec/plugin_spec.rb +12 -0
  32. data/spec/publisher_spec.rb +150 -0
  33. data/spec/rabbitmq_client_spec.rb +83 -0
  34. data/spec/support/dummy_rabbitmq_client_plugin.rb +13 -0
  35. data/spec/tags_filter_spec.rb +37 -0
  36. data/spec/text_formatter_spec.rb +45 -0
  37. metadata +57 -5
  38. data/Gemfile.lock +0 -156
data/Gemfile.lock DELETED
@@ -1,156 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rabbitmq_client (0.0.0.pre)
5
- activesupport (~> 6.0.0)
6
- bunny (~> 2.14.3)
7
- connection_pool (~> 2.2.2)
8
-
9
- GEM
10
- remote: https://rubygems.org/
11
- specs:
12
- activesupport (6.0.0)
13
- concurrent-ruby (~> 1.0, >= 1.0.2)
14
- i18n (>= 0.7, < 2)
15
- minitest (~> 5.1)
16
- tzinfo (~> 1.1)
17
- zeitwerk (~> 2.1, >= 2.1.8)
18
- addressable (2.7.0)
19
- public_suffix (>= 2.0.2, < 5.0)
20
- amq-protocol (2.3.0)
21
- ast (2.4.0)
22
- axiom-types (0.1.1)
23
- descendants_tracker (~> 0.0.4)
24
- ice_nine (~> 0.11.0)
25
- thread_safe (~> 0.3, >= 0.3.1)
26
- bunny (2.14.3)
27
- amq-protocol (~> 2.3, >= 2.3.0)
28
- byebug (11.0.1)
29
- childprocess (3.0.0)
30
- codeclimate-engine-rb (0.4.1)
31
- virtus (~> 1.0)
32
- coercible (1.0.0)
33
- descendants_tracker (~> 0.0.1)
34
- concurrent-ruby (1.1.5)
35
- connection_pool (2.2.2)
36
- descendants_tracker (0.0.4)
37
- thread_safe (~> 0.3, >= 0.3.1)
38
- diff-lcs (1.3)
39
- docile (1.3.2)
40
- equalizer (0.0.11)
41
- erubis (2.7.0)
42
- flay (2.12.1)
43
- erubis (~> 2.7.0)
44
- path_expander (~> 1.0)
45
- ruby_parser (~> 3.0)
46
- sexp_processor (~> 4.0)
47
- flog (4.6.3)
48
- path_expander (~> 1.0)
49
- ruby_parser (~> 3.1, > 3.1.0)
50
- sexp_processor (~> 4.8)
51
- i18n (1.7.0)
52
- concurrent-ruby (~> 1.0)
53
- ice_nine (0.11.2)
54
- iniparse (1.4.4)
55
- jaro_winkler (1.5.3)
56
- json (2.2.0)
57
- kwalify (0.7.2)
58
- launchy (2.4.3)
59
- addressable (~> 2.3)
60
- minitest (5.12.2)
61
- overcommit (0.51.0)
62
- childprocess (>= 0.6.3, < 4)
63
- iniparse (~> 1.4)
64
- parallel (1.18.0)
65
- parser (2.6.5.0)
66
- ast (~> 2.4.0)
67
- path_expander (1.1.0)
68
- psych (3.1.0)
69
- public_suffix (4.0.1)
70
- rainbow (3.0.0)
71
- rake (13.0.0)
72
- reek (5.4.0)
73
- codeclimate-engine-rb (~> 0.4.0)
74
- kwalify (~> 0.7.0)
75
- parser (>= 2.5.0.0, < 2.7, != 2.5.1.1)
76
- psych (~> 3.1.0)
77
- rainbow (>= 2.0, < 4.0)
78
- repo-small-badge (0.2.7)
79
- victor (~> 0.2.8)
80
- rspec (3.9.0)
81
- rspec-core (~> 3.9.0)
82
- rspec-expectations (~> 3.9.0)
83
- rspec-mocks (~> 3.9.0)
84
- rspec-core (3.9.0)
85
- rspec-support (~> 3.9.0)
86
- rspec-expectations (3.9.0)
87
- diff-lcs (>= 1.2.0, < 2.0)
88
- rspec-support (~> 3.9.0)
89
- rspec-mocks (3.9.0)
90
- diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.9.0)
92
- rspec-support (3.9.0)
93
- rubocop (0.75.1)
94
- jaro_winkler (~> 1.5.1)
95
- parallel (~> 1.10)
96
- parser (>= 2.6)
97
- rainbow (>= 2.2.2, < 4.0)
98
- ruby-progressbar (~> 1.7)
99
- unicode-display_width (>= 1.4.0, < 1.7)
100
- ruby-progressbar (1.10.1)
101
- ruby_parser (3.14.0)
102
- sexp_processor (~> 4.9)
103
- rubycritic (4.1.0)
104
- flay (~> 2.8)
105
- flog (~> 4.4)
106
- launchy (= 2.4.3)
107
- parser (~> 2.6.0)
108
- rainbow (~> 3.0)
109
- reek (~> 5.0, < 6.0)
110
- ruby_parser (~> 3.8)
111
- tty-which (~> 0.4.0)
112
- virtus (~> 1.0)
113
- rubycritic-small-badge (0.2.1)
114
- repo-small-badge (~> 0.2.7)
115
- sexp_processor (4.13.0)
116
- simplecov (0.17.1)
117
- docile (~> 1.1)
118
- json (>= 1.8, < 3)
119
- simplecov-html (~> 0.10.0)
120
- simplecov-html (0.10.2)
121
- simplecov-small-badge (0.2.4)
122
- repo-small-badge (~> 0.2.7)
123
- simplecov (~> 0.17)
124
- thread_safe (0.3.6)
125
- timecop (0.9.1)
126
- tty-which (0.4.1)
127
- tzinfo (1.2.5)
128
- thread_safe (~> 0.1)
129
- unicode-display_width (1.6.0)
130
- victor (0.2.8)
131
- virtus (1.0.5)
132
- axiom-types (~> 0.1)
133
- coercible (~> 1.0)
134
- descendants_tracker (~> 0.0, >= 0.0.3)
135
- equalizer (~> 0.0, >= 0.0.9)
136
- zeitwerk (2.2.0)
137
-
138
- PLATFORMS
139
- ruby
140
-
141
- DEPENDENCIES
142
- bundler (~> 1.17.2)
143
- byebug (~> 11.0.1)
144
- overcommit (~> 0.51.0)
145
- rabbitmq_client!
146
- rake (~> 13.0.0)
147
- rspec (~> 3.9.0)
148
- rubocop (~> 0.75.1)
149
- rubycritic (~> 4.1.0)
150
- rubycritic-small-badge (~> 0.2.1)
151
- simplecov (~> 0.17.1)
152
- simplecov-small-badge (~> 0.2.4)
153
- timecop (~> 0.9.1)
154
-
155
- BUNDLED WITH
156
- 1.17.2