queues-rabbit 0.1.0.beta

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c58e40e8dbe25821bf98ecb4991f7a60cc1eb6407a2d7c7c31aacd3a195d4235
4
+ data.tar.gz: 3d847b462ae575169df2060898d9b70eb9fb27f5413ee655d6a8e982d8ebf30c
5
+ SHA512:
6
+ metadata.gz: 2c4f8024b9af1b1996a71336a33e74dbb7936b5d5d59cb90aeb2cf97f80cb1584eef8d020cede67c1a41537eb61ba3de22443f5558fd2544e08585889051d109
7
+ data.tar.gz: 7194a44edf4b2e0168fb346bd8803419e1ad647c824cde2b097a199eeef16e67f8f7e8b2c646cc1c8fffb755ed1bbbd7b76d3f1c7d36d5be8cf4f1631871383a
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,175 @@
1
+ # Allow longer lines and methods
2
+ Layout/LineLength:
3
+ Max: 240
4
+
5
+ Metrics/MethodLength:
6
+ Max: 30
7
+
8
+ # Tests are declarative, no block length test
9
+ Metrics/BlockLength:
10
+ IgnoredMethods: ['describe', 'context', 'namespace']
11
+
12
+ AllCops:
13
+ TargetRubyVersion: 2.5
14
+ # RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
15
+ # to ignore them, so only the ones explicitly set in this file are enabled.
16
+ DisabledByDefault: true
17
+ Exclude:
18
+
19
+ # Prefer &&/|| over and/or.
20
+ Style/AndOr:
21
+ Enabled: true
22
+
23
+ # Align `when` with `case`.
24
+ Layout/CaseIndentation:
25
+ Enabled: true
26
+
27
+ # Align comments with method definitions.
28
+ Layout/CommentIndentation:
29
+ Enabled: true
30
+
31
+ Layout/ElseAlignment:
32
+ Enabled: true
33
+
34
+ # Align `end` with the matching keyword or starting expression except for
35
+ # assignments, where it should be aligned with the LHS.
36
+ Layout/EndAlignment:
37
+ Enabled: true
38
+ EnforcedStyleAlignWith: variable
39
+ AutoCorrect: true
40
+
41
+ Layout/EmptyLineAfterMagicComment:
42
+ Enabled: true
43
+
44
+ # In a regular class definition, no empty lines around the body.
45
+ Layout/EmptyLinesAroundClassBody:
46
+ Enabled: true
47
+
48
+ # In a regular method definition, no empty lines around the body.
49
+ Layout/EmptyLinesAroundMethodBody:
50
+ Enabled: true
51
+
52
+ # In a regular module definition, no empty lines around the body.
53
+ Layout/EmptyLinesAroundModuleBody:
54
+ Enabled: true
55
+
56
+ Layout/FirstArgumentIndentation:
57
+ Enabled: true
58
+
59
+ # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
60
+ Style/HashSyntax:
61
+ Enabled: true
62
+
63
+ # Method definitions after `private` or `protected` isolated calls need one
64
+ # extra level of indentation.
65
+ Layout/IndentationConsistency:
66
+ Enabled: true
67
+ EnforcedStyle: indented_internal_methods
68
+
69
+ # Two spaces, no tabs (for indentation).
70
+ Layout/IndentationWidth:
71
+ Enabled: true
72
+
73
+ Layout/LeadingCommentSpace:
74
+ Enabled: true
75
+
76
+ Layout/SpaceAfterColon:
77
+ Enabled: true
78
+
79
+ Layout/SpaceAfterComma:
80
+ Enabled: true
81
+
82
+ Layout/SpaceAroundEqualsInParameterDefault:
83
+ Enabled: true
84
+
85
+ Layout/SpaceAroundKeyword:
86
+ Enabled: true
87
+
88
+ Layout/SpaceAroundOperators:
89
+ Enabled: true
90
+
91
+ Layout/SpaceBeforeComma:
92
+ Enabled: true
93
+
94
+ Layout/SpaceBeforeFirstArg:
95
+ Enabled: true
96
+
97
+ Style/DefWithParentheses:
98
+ Enabled: true
99
+
100
+ # Defining a method with parameters needs parentheses.
101
+ Style/MethodDefParentheses:
102
+ Enabled: true
103
+
104
+ # Style/FrozenStringLiteralComment:
105
+ # Enabled: true
106
+ # EnforcedStyle: always
107
+ # Exclude:
108
+ # - 'actionview/test/**/*.builder'
109
+ # - 'actionview/test/**/*.ruby'
110
+ # - 'actionpack/test/**/*.builder'
111
+ # - 'actionpack/test/**/*.ruby'
112
+ # - 'activestorage/db/migrate/**/*.rb'
113
+ # - 'db/migrate/**/*.rb'
114
+ # - 'db/*.rb'
115
+
116
+ # Use `foo {}` not `foo{}`.
117
+ Layout/SpaceBeforeBlockBraces:
118
+ Enabled: true
119
+
120
+ # Use `foo { bar }` not `foo {bar}`.
121
+ Layout/SpaceInsideBlockBraces:
122
+ Enabled: true
123
+
124
+ # Use `{ a: 1 }` not `{a:1}`.
125
+ Layout/SpaceInsideHashLiteralBraces:
126
+ Enabled: true
127
+
128
+ Layout/SpaceInsideParens:
129
+ Enabled: true
130
+
131
+ # Check quotes usage according to lint rule below.
132
+ Style/StringLiterals:
133
+ Enabled: true
134
+ EnforcedStyle: single_quotes
135
+
136
+ # Detect hard tabs, no hard tabs.
137
+ Layout/IndentationStyle:
138
+ Enabled: true
139
+
140
+ # Blank lines should not have any spaces.
141
+ Layout/TrailingEmptyLines:
142
+ Enabled: true
143
+
144
+ # No trailing whitespace.
145
+ Layout/TrailingWhitespace:
146
+ Enabled: true
147
+
148
+ # Use quotes for string literals when they are enough.
149
+ Style/RedundantPercentQ:
150
+ Enabled: true
151
+
152
+ # Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
153
+ Lint/RequireParentheses:
154
+ Enabled: true
155
+
156
+ Lint/RedundantStringCoercion:
157
+ Enabled: true
158
+
159
+ # Supports --auto-correct
160
+ Style/RedundantSelf:
161
+ Description: Don't use self where it's not needed.
162
+ StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#no-self-unless-required
163
+ Enabled: true
164
+
165
+ Style/RedundantReturn:
166
+ Enabled: true
167
+ AllowMultipleReturnValues: true
168
+
169
+ Style/Semicolon:
170
+ Enabled: true
171
+ AllowAsExpressionSeparator: true
172
+
173
+ # Prefer Foo.method over Foo::method
174
+ Style/ColonMethodCall:
175
+ Enabled: true
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## [0.1.0.beta] - 2022-03-01
2
+
3
+ - Initial beta release
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in queues-rabbit.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+
12
+ gem "rubocop", "~> 1.21"
data/Gemfile.lock ADDED
@@ -0,0 +1,201 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ queues-rabbit (0.1.0.pre)
5
+ amqp-client (~> 1)
6
+ queues (= 0.1.0.beta)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ actioncable (7.0.2.2)
12
+ actionpack (= 7.0.2.2)
13
+ activesupport (= 7.0.2.2)
14
+ nio4r (~> 2.0)
15
+ websocket-driver (>= 0.6.1)
16
+ actionmailbox (7.0.2.2)
17
+ actionpack (= 7.0.2.2)
18
+ activejob (= 7.0.2.2)
19
+ activerecord (= 7.0.2.2)
20
+ activestorage (= 7.0.2.2)
21
+ activesupport (= 7.0.2.2)
22
+ mail (>= 2.7.1)
23
+ net-imap
24
+ net-pop
25
+ net-smtp
26
+ actionmailer (7.0.2.2)
27
+ actionpack (= 7.0.2.2)
28
+ actionview (= 7.0.2.2)
29
+ activejob (= 7.0.2.2)
30
+ activesupport (= 7.0.2.2)
31
+ mail (~> 2.5, >= 2.5.4)
32
+ net-imap
33
+ net-pop
34
+ net-smtp
35
+ rails-dom-testing (~> 2.0)
36
+ actionpack (7.0.2.2)
37
+ actionview (= 7.0.2.2)
38
+ activesupport (= 7.0.2.2)
39
+ rack (~> 2.0, >= 2.2.0)
40
+ rack-test (>= 0.6.3)
41
+ rails-dom-testing (~> 2.0)
42
+ rails-html-sanitizer (~> 1.0, >= 1.2.0)
43
+ actiontext (7.0.2.2)
44
+ actionpack (= 7.0.2.2)
45
+ activerecord (= 7.0.2.2)
46
+ activestorage (= 7.0.2.2)
47
+ activesupport (= 7.0.2.2)
48
+ globalid (>= 0.6.0)
49
+ nokogiri (>= 1.8.5)
50
+ actionview (7.0.2.2)
51
+ activesupport (= 7.0.2.2)
52
+ builder (~> 3.1)
53
+ erubi (~> 1.4)
54
+ rails-dom-testing (~> 2.0)
55
+ rails-html-sanitizer (~> 1.1, >= 1.2.0)
56
+ activejob (7.0.2.2)
57
+ activesupport (= 7.0.2.2)
58
+ globalid (>= 0.3.6)
59
+ activemodel (7.0.2.2)
60
+ activesupport (= 7.0.2.2)
61
+ activerecord (7.0.2.2)
62
+ activemodel (= 7.0.2.2)
63
+ activesupport (= 7.0.2.2)
64
+ activestorage (7.0.2.2)
65
+ actionpack (= 7.0.2.2)
66
+ activejob (= 7.0.2.2)
67
+ activerecord (= 7.0.2.2)
68
+ activesupport (= 7.0.2.2)
69
+ marcel (~> 1.0)
70
+ mini_mime (>= 1.1.0)
71
+ activesupport (7.0.2.2)
72
+ concurrent-ruby (~> 1.0, >= 1.0.2)
73
+ i18n (>= 1.6, < 2)
74
+ minitest (>= 5.1)
75
+ tzinfo (~> 2.0)
76
+ amqp-client (1.1.4)
77
+ ast (2.4.2)
78
+ builder (3.2.4)
79
+ concurrent-ruby (1.1.9)
80
+ crass (1.0.6)
81
+ diff-lcs (1.5.0)
82
+ digest (3.1.0)
83
+ erubi (1.10.0)
84
+ globalid (1.0.0)
85
+ activesupport (>= 5.0)
86
+ i18n (1.10.0)
87
+ concurrent-ruby (~> 1.0)
88
+ io-wait (0.2.1)
89
+ loofah (2.14.0)
90
+ crass (~> 1.0.2)
91
+ nokogiri (>= 1.5.9)
92
+ mail (2.7.1)
93
+ mini_mime (>= 0.1.1)
94
+ marcel (1.0.2)
95
+ method_source (1.0.0)
96
+ mini_mime (1.1.2)
97
+ minitest (5.15.0)
98
+ net-imap (0.2.3)
99
+ digest
100
+ net-protocol
101
+ strscan
102
+ net-pop (0.1.1)
103
+ digest
104
+ net-protocol
105
+ timeout
106
+ net-protocol (0.1.2)
107
+ io-wait
108
+ timeout
109
+ net-smtp (0.3.1)
110
+ digest
111
+ net-protocol
112
+ timeout
113
+ nio4r (2.5.8)
114
+ nokogiri (1.13.3-x86_64-darwin)
115
+ racc (~> 1.4)
116
+ parallel (1.21.0)
117
+ parser (3.1.1.0)
118
+ ast (~> 2.4.1)
119
+ queues (0.1.0.beta)
120
+ rails (>= 5)
121
+ racc (1.6.0)
122
+ rack (2.2.3)
123
+ rack-test (1.1.0)
124
+ rack (>= 1.0, < 3)
125
+ rails (7.0.2.2)
126
+ actioncable (= 7.0.2.2)
127
+ actionmailbox (= 7.0.2.2)
128
+ actionmailer (= 7.0.2.2)
129
+ actionpack (= 7.0.2.2)
130
+ actiontext (= 7.0.2.2)
131
+ actionview (= 7.0.2.2)
132
+ activejob (= 7.0.2.2)
133
+ activemodel (= 7.0.2.2)
134
+ activerecord (= 7.0.2.2)
135
+ activestorage (= 7.0.2.2)
136
+ activesupport (= 7.0.2.2)
137
+ bundler (>= 1.15.0)
138
+ railties (= 7.0.2.2)
139
+ rails-dom-testing (2.0.3)
140
+ activesupport (>= 4.2.0)
141
+ nokogiri (>= 1.6)
142
+ rails-html-sanitizer (1.4.2)
143
+ loofah (~> 2.3)
144
+ railties (7.0.2.2)
145
+ actionpack (= 7.0.2.2)
146
+ activesupport (= 7.0.2.2)
147
+ method_source
148
+ rake (>= 12.2)
149
+ thor (~> 1.0)
150
+ zeitwerk (~> 2.5)
151
+ rainbow (3.1.1)
152
+ rake (13.0.6)
153
+ regexp_parser (2.2.1)
154
+ rexml (3.2.5)
155
+ rspec (3.11.0)
156
+ rspec-core (~> 3.11.0)
157
+ rspec-expectations (~> 3.11.0)
158
+ rspec-mocks (~> 3.11.0)
159
+ rspec-core (3.11.0)
160
+ rspec-support (~> 3.11.0)
161
+ rspec-expectations (3.11.0)
162
+ diff-lcs (>= 1.2.0, < 2.0)
163
+ rspec-support (~> 3.11.0)
164
+ rspec-mocks (3.11.0)
165
+ diff-lcs (>= 1.2.0, < 2.0)
166
+ rspec-support (~> 3.11.0)
167
+ rspec-support (3.11.0)
168
+ rubocop (1.25.1)
169
+ parallel (~> 1.10)
170
+ parser (>= 3.1.0.0)
171
+ rainbow (>= 2.2.2, < 4.0)
172
+ regexp_parser (>= 1.8, < 3.0)
173
+ rexml
174
+ rubocop-ast (>= 1.15.1, < 2.0)
175
+ ruby-progressbar (~> 1.7)
176
+ unicode-display_width (>= 1.4.0, < 3.0)
177
+ rubocop-ast (1.16.0)
178
+ parser (>= 3.1.1.0)
179
+ ruby-progressbar (1.11.0)
180
+ strscan (3.0.1)
181
+ thor (1.2.1)
182
+ timeout (0.2.0)
183
+ tzinfo (2.0.4)
184
+ concurrent-ruby (~> 1.0)
185
+ unicode-display_width (2.1.0)
186
+ websocket-driver (0.7.5)
187
+ websocket-extensions (>= 0.1.0)
188
+ websocket-extensions (0.1.5)
189
+ zeitwerk (2.5.4)
190
+
191
+ PLATFORMS
192
+ x86_64-darwin-20
193
+
194
+ DEPENDENCIES
195
+ queues-rabbit!
196
+ rake (~> 13.0)
197
+ rspec (~> 3.0)
198
+ rubocop (~> 1.21)
199
+
200
+ BUNDLED WITH
201
+ 2.3.7
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Lapo
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.