queues-rabbit 0.1.0.pre

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: c930c4cfd93c6105dd18aa21506ec445a4474fda860b42c8efc8b591a612bd97
4
+ data.tar.gz: 386851ffc9733ecaab369562ad12b46dc5a53744b27d169dd5d52369174def7f
5
+ SHA512:
6
+ metadata.gz: 513a088c0cb63c77e629a1f68d84c10978a28f646d564b0d71e6d6a478b3ead1d7cdebd06679b711dd296a06943cdad6d6e6bfe01a37e86db5a4d468b4b49186
7
+ data.tar.gz: d90d46e6e55fb2499c33bd8bb5d37a30306d4c8e1a938a481e44769efd04e7d856a685311a77a0738546c7fc85ad8c16cf924874f405d0275f90c26819f76d89
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,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-02-25
4
+
5
+ - Initial 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/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.
data/README.md ADDED
@@ -0,0 +1,39 @@
1
+ # Queues::Rabbit
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/queues/rabbit`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'queues-rabbit'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install queues-rabbit
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/queues-rabbit.
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Queues
4
+ module Rabbit
5
+ VERSION = "0.1.0.pre"
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "rabbit/version"
4
+
5
+ module Queues
6
+ module Rabbit
7
+ class Error < StandardError; end
8
+ # Your code goes here...
9
+ end
10
+ end
@@ -0,0 +1,6 @@
1
+ module Queues
2
+ module Rabbit
3
+ VERSION: String
4
+ # See the writing guide of rbs: https://github.com/ruby/rbs#guides
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: queues-rabbit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre
5
+ platform: ruby
6
+ authors:
7
+ - Lapo
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-02-25 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: ''
14
+ email:
15
+ - lapoelisacci@gmail.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".rspec"
21
+ - ".rubocop.yml"
22
+ - CHANGELOG.md
23
+ - Gemfile
24
+ - LICENSE.txt
25
+ - README.md
26
+ - Rakefile
27
+ - lib/queues/rabbit.rb
28
+ - lib/queues/rabbit/version.rb
29
+ - sig/queues/rabbit.rbs
30
+ homepage: https://github.com/LapoElisacci/queues.git
31
+ licenses:
32
+ - MIT
33
+ metadata:
34
+ homepage_uri: https://github.com/LapoElisacci/queues.git
35
+ source_code_uri: https://github.com/LapoElisacci/queues-rabbit.git
36
+ changelog_uri: https://github.com/LapoElisacci/queues-rabbit/blob/main/CHANGELOG.md
37
+ post_install_message:
38
+ rdoc_options: []
39
+ require_paths:
40
+ - lib
41
+ required_ruby_version: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: 2.6.0
46
+ required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">"
49
+ - !ruby/object:Gem::Version
50
+ version: 1.3.1
51
+ requirements: []
52
+ rubygems_version: 3.2.22
53
+ signing_key:
54
+ specification_version: 4
55
+ summary: RabbitMQ Driver for Rails Queues
56
+ test_files: []