queues 0.1.0.beta → 0.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -168
- data/CHANGELOG.md +4 -2
- data/README.md +14 -9
- data/Rakefile +3 -3
- data/lib/queues/version.rb +1 -1
- data/lib/queues.rb +1 -2
- metadata +3 -22
- data/Gemfile.lock +0 -197
- data/lib/generators/queues_generator.rb +0 -21
- data/lib/generators/templates/README +0 -6
- data/lib/generators/templates/application_queue.rb +0 -5
- data/lib/queues/api.rb +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63384a6ef2def07877c4f4e8ba9f1cf6b6a127ac339f8b5366bfedfc48bd4c3a
|
4
|
+
data.tar.gz: 7f008feb5fd5c78f6fa22b028a557a1810530d1fc239126086f23c3b461ac537
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a76c6b5ac6fc59bc6548ee87c60d3267d1b6c80fcf71d3233f21b793567c0dcde446d56404f946b3d10f6450a1012af0ad7dd1b6f0ba8e545889f01911e0c11
|
7
|
+
data.tar.gz: 802dc4e408d4f1014addaeac2ea978c043ba44895e25f3306d9d0278ba9965306c66b5aa1b1e05a86e1d91a76743c35ebacb4a86e9865c482eaf69a5d12c6af9
|
data/.rubocop.yml
CHANGED
@@ -1,175 +1,13 @@
|
|
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
1
|
AllCops:
|
13
|
-
TargetRubyVersion: 2.
|
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
|
2
|
+
TargetRubyVersion: 2.6
|
90
3
|
|
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
4
|
Style/StringLiterals:
|
133
5
|
Enabled: true
|
134
|
-
EnforcedStyle:
|
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
|
6
|
+
EnforcedStyle: double_quotes
|
151
7
|
|
152
|
-
|
153
|
-
Lint/RequireParentheses:
|
8
|
+
Style/StringLiteralsInInterpolation:
|
154
9
|
Enabled: true
|
10
|
+
EnforcedStyle: double_quotes
|
155
11
|
|
156
|
-
|
157
|
-
|
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
|
12
|
+
Layout/LineLength:
|
13
|
+
Max: 120
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
#
|
2
|
-
![](https://img.shields.io/static/v1?label=Language&message=Ruby&color=red)
|
3
|
-
![](https://img.shields.io/static/v1?label=Latest&message=0.1.0.beta&color=blue)
|
1
|
+
# Queues
|
4
2
|
|
5
|
-
|
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`. 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
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -16,18 +16,23 @@ And then execute:
|
|
16
16
|
|
17
17
|
$ bundle install
|
18
18
|
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install queues
|
22
|
+
|
19
23
|
## Usage
|
20
24
|
|
21
|
-
|
22
|
-
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
23
28
|
|
24
|
-
|
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.
|
25
30
|
|
26
|
-
|
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).
|
27
32
|
|
28
33
|
## Contributing
|
29
34
|
|
30
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/queues.
|
31
36
|
|
32
37
|
## License
|
33
38
|
|
data/Rakefile
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require "bundler/gem_tasks"
|
4
|
+
require "rspec/core/rake_task"
|
5
5
|
|
6
6
|
RSpec::Core::RakeTask.new(:spec)
|
7
7
|
|
8
|
-
require
|
8
|
+
require "rubocop/rake_task"
|
9
9
|
|
10
10
|
RuboCop::RakeTask.new
|
11
11
|
|
data/lib/queues/version.rb
CHANGED
data/lib/queues.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: queues
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lapo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
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'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '5'
|
11
|
+
date: 2022-02-25 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
27
13
|
description: ''
|
28
14
|
email:
|
29
15
|
- lapoelisacci@gmail.com
|
@@ -35,15 +21,10 @@ files:
|
|
35
21
|
- ".rubocop.yml"
|
36
22
|
- CHANGELOG.md
|
37
23
|
- Gemfile
|
38
|
-
- Gemfile.lock
|
39
24
|
- LICENSE.txt
|
40
25
|
- README.md
|
41
26
|
- Rakefile
|
42
|
-
- lib/generators/queues_generator.rb
|
43
|
-
- lib/generators/templates/README
|
44
|
-
- lib/generators/templates/application_queue.rb
|
45
27
|
- lib/queues.rb
|
46
|
-
- lib/queues/api.rb
|
47
28
|
- lib/queues/version.rb
|
48
29
|
- sig/queues.rbs
|
49
30
|
homepage: https://github.com/LapoElisacci/queues.git
|
data/Gemfile.lock
DELETED
@@ -1,197 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
queues (0.1.0.pre)
|
5
|
-
rails (>= 5)
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actioncable (7.0.2.2)
|
11
|
-
actionpack (= 7.0.2.2)
|
12
|
-
activesupport (= 7.0.2.2)
|
13
|
-
nio4r (~> 2.0)
|
14
|
-
websocket-driver (>= 0.6.1)
|
15
|
-
actionmailbox (7.0.2.2)
|
16
|
-
actionpack (= 7.0.2.2)
|
17
|
-
activejob (= 7.0.2.2)
|
18
|
-
activerecord (= 7.0.2.2)
|
19
|
-
activestorage (= 7.0.2.2)
|
20
|
-
activesupport (= 7.0.2.2)
|
21
|
-
mail (>= 2.7.1)
|
22
|
-
net-imap
|
23
|
-
net-pop
|
24
|
-
net-smtp
|
25
|
-
actionmailer (7.0.2.2)
|
26
|
-
actionpack (= 7.0.2.2)
|
27
|
-
actionview (= 7.0.2.2)
|
28
|
-
activejob (= 7.0.2.2)
|
29
|
-
activesupport (= 7.0.2.2)
|
30
|
-
mail (~> 2.5, >= 2.5.4)
|
31
|
-
net-imap
|
32
|
-
net-pop
|
33
|
-
net-smtp
|
34
|
-
rails-dom-testing (~> 2.0)
|
35
|
-
actionpack (7.0.2.2)
|
36
|
-
actionview (= 7.0.2.2)
|
37
|
-
activesupport (= 7.0.2.2)
|
38
|
-
rack (~> 2.0, >= 2.2.0)
|
39
|
-
rack-test (>= 0.6.3)
|
40
|
-
rails-dom-testing (~> 2.0)
|
41
|
-
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
42
|
-
actiontext (7.0.2.2)
|
43
|
-
actionpack (= 7.0.2.2)
|
44
|
-
activerecord (= 7.0.2.2)
|
45
|
-
activestorage (= 7.0.2.2)
|
46
|
-
activesupport (= 7.0.2.2)
|
47
|
-
globalid (>= 0.6.0)
|
48
|
-
nokogiri (>= 1.8.5)
|
49
|
-
actionview (7.0.2.2)
|
50
|
-
activesupport (= 7.0.2.2)
|
51
|
-
builder (~> 3.1)
|
52
|
-
erubi (~> 1.4)
|
53
|
-
rails-dom-testing (~> 2.0)
|
54
|
-
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
55
|
-
activejob (7.0.2.2)
|
56
|
-
activesupport (= 7.0.2.2)
|
57
|
-
globalid (>= 0.3.6)
|
58
|
-
activemodel (7.0.2.2)
|
59
|
-
activesupport (= 7.0.2.2)
|
60
|
-
activerecord (7.0.2.2)
|
61
|
-
activemodel (= 7.0.2.2)
|
62
|
-
activesupport (= 7.0.2.2)
|
63
|
-
activestorage (7.0.2.2)
|
64
|
-
actionpack (= 7.0.2.2)
|
65
|
-
activejob (= 7.0.2.2)
|
66
|
-
activerecord (= 7.0.2.2)
|
67
|
-
activesupport (= 7.0.2.2)
|
68
|
-
marcel (~> 1.0)
|
69
|
-
mini_mime (>= 1.1.0)
|
70
|
-
activesupport (7.0.2.2)
|
71
|
-
concurrent-ruby (~> 1.0, >= 1.0.2)
|
72
|
-
i18n (>= 1.6, < 2)
|
73
|
-
minitest (>= 5.1)
|
74
|
-
tzinfo (~> 2.0)
|
75
|
-
ast (2.4.2)
|
76
|
-
builder (3.2.4)
|
77
|
-
concurrent-ruby (1.1.9)
|
78
|
-
crass (1.0.6)
|
79
|
-
diff-lcs (1.5.0)
|
80
|
-
digest (3.1.0)
|
81
|
-
erubi (1.10.0)
|
82
|
-
globalid (1.0.0)
|
83
|
-
activesupport (>= 5.0)
|
84
|
-
i18n (1.10.0)
|
85
|
-
concurrent-ruby (~> 1.0)
|
86
|
-
io-wait (0.2.1)
|
87
|
-
loofah (2.14.0)
|
88
|
-
crass (~> 1.0.2)
|
89
|
-
nokogiri (>= 1.5.9)
|
90
|
-
mail (2.7.1)
|
91
|
-
mini_mime (>= 0.1.1)
|
92
|
-
marcel (1.0.2)
|
93
|
-
method_source (1.0.0)
|
94
|
-
mini_mime (1.1.2)
|
95
|
-
minitest (5.15.0)
|
96
|
-
net-imap (0.2.3)
|
97
|
-
digest
|
98
|
-
net-protocol
|
99
|
-
strscan
|
100
|
-
net-pop (0.1.1)
|
101
|
-
digest
|
102
|
-
net-protocol
|
103
|
-
timeout
|
104
|
-
net-protocol (0.1.2)
|
105
|
-
io-wait
|
106
|
-
timeout
|
107
|
-
net-smtp (0.3.1)
|
108
|
-
digest
|
109
|
-
net-protocol
|
110
|
-
timeout
|
111
|
-
nio4r (2.5.8)
|
112
|
-
nokogiri (1.13.3-x86_64-darwin)
|
113
|
-
racc (~> 1.4)
|
114
|
-
parallel (1.21.0)
|
115
|
-
parser (3.1.1.0)
|
116
|
-
ast (~> 2.4.1)
|
117
|
-
racc (1.6.0)
|
118
|
-
rack (2.2.3)
|
119
|
-
rack-test (1.1.0)
|
120
|
-
rack (>= 1.0, < 3)
|
121
|
-
rails (7.0.2.2)
|
122
|
-
actioncable (= 7.0.2.2)
|
123
|
-
actionmailbox (= 7.0.2.2)
|
124
|
-
actionmailer (= 7.0.2.2)
|
125
|
-
actionpack (= 7.0.2.2)
|
126
|
-
actiontext (= 7.0.2.2)
|
127
|
-
actionview (= 7.0.2.2)
|
128
|
-
activejob (= 7.0.2.2)
|
129
|
-
activemodel (= 7.0.2.2)
|
130
|
-
activerecord (= 7.0.2.2)
|
131
|
-
activestorage (= 7.0.2.2)
|
132
|
-
activesupport (= 7.0.2.2)
|
133
|
-
bundler (>= 1.15.0)
|
134
|
-
railties (= 7.0.2.2)
|
135
|
-
rails-dom-testing (2.0.3)
|
136
|
-
activesupport (>= 4.2.0)
|
137
|
-
nokogiri (>= 1.6)
|
138
|
-
rails-html-sanitizer (1.4.2)
|
139
|
-
loofah (~> 2.3)
|
140
|
-
railties (7.0.2.2)
|
141
|
-
actionpack (= 7.0.2.2)
|
142
|
-
activesupport (= 7.0.2.2)
|
143
|
-
method_source
|
144
|
-
rake (>= 12.2)
|
145
|
-
thor (~> 1.0)
|
146
|
-
zeitwerk (~> 2.5)
|
147
|
-
rainbow (3.1.1)
|
148
|
-
rake (13.0.6)
|
149
|
-
regexp_parser (2.2.1)
|
150
|
-
rexml (3.2.5)
|
151
|
-
rspec (3.11.0)
|
152
|
-
rspec-core (~> 3.11.0)
|
153
|
-
rspec-expectations (~> 3.11.0)
|
154
|
-
rspec-mocks (~> 3.11.0)
|
155
|
-
rspec-core (3.11.0)
|
156
|
-
rspec-support (~> 3.11.0)
|
157
|
-
rspec-expectations (3.11.0)
|
158
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
159
|
-
rspec-support (~> 3.11.0)
|
160
|
-
rspec-mocks (3.11.0)
|
161
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
162
|
-
rspec-support (~> 3.11.0)
|
163
|
-
rspec-support (3.11.0)
|
164
|
-
rubocop (1.25.1)
|
165
|
-
parallel (~> 1.10)
|
166
|
-
parser (>= 3.1.0.0)
|
167
|
-
rainbow (>= 2.2.2, < 4.0)
|
168
|
-
regexp_parser (>= 1.8, < 3.0)
|
169
|
-
rexml
|
170
|
-
rubocop-ast (>= 1.15.1, < 2.0)
|
171
|
-
ruby-progressbar (~> 1.7)
|
172
|
-
unicode-display_width (>= 1.4.0, < 3.0)
|
173
|
-
rubocop-ast (1.16.0)
|
174
|
-
parser (>= 3.1.1.0)
|
175
|
-
ruby-progressbar (1.11.0)
|
176
|
-
strscan (3.0.1)
|
177
|
-
thor (1.2.1)
|
178
|
-
timeout (0.2.0)
|
179
|
-
tzinfo (2.0.4)
|
180
|
-
concurrent-ruby (~> 1.0)
|
181
|
-
unicode-display_width (2.1.0)
|
182
|
-
websocket-driver (0.7.5)
|
183
|
-
websocket-extensions (>= 0.1.0)
|
184
|
-
websocket-extensions (0.1.5)
|
185
|
-
zeitwerk (2.5.4)
|
186
|
-
|
187
|
-
PLATFORMS
|
188
|
-
x86_64-darwin-20
|
189
|
-
|
190
|
-
DEPENDENCIES
|
191
|
-
queues!
|
192
|
-
rake (~> 13.0)
|
193
|
-
rspec (~> 3.0)
|
194
|
-
rubocop (~> 1.21)
|
195
|
-
|
196
|
-
BUNDLED WITH
|
197
|
-
2.3.7
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'rails/generators'
|
4
|
-
|
5
|
-
# Creates the Queues initializer file for Rails apps.
|
6
|
-
#
|
7
|
-
# @example Invokation from terminal
|
8
|
-
# rails generate queues
|
9
|
-
#
|
10
|
-
class QueuesGenerator < Rails::Generators::Base
|
11
|
-
desc "Description:\n This prepares Rails for Queues"
|
12
|
-
|
13
|
-
source_root File.expand_path('templates', __dir__)
|
14
|
-
|
15
|
-
desc 'Initialize Rails for Queues'
|
16
|
-
|
17
|
-
def generate_layout
|
18
|
-
template 'application_queue.rb', 'app/queues/application_queue.rb'
|
19
|
-
readme 'README'
|
20
|
-
end
|
21
|
-
end
|
data/lib/queues/api.rb
DELETED