capistrano3-delayed-job 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +56 -0
- data/README.md +7 -12
- data/Rakefile +0 -1
- data/capistrano3-delayed-job.gemspec +14 -7
- data/lib/capistrano/delayed-job.rb +2 -1
- data/lib/capistrano/delayed_job.rb +1 -0
- data/lib/capistrano/tasks/{delayed-job.rake → delayed_job.rake} +7 -1
- metadata +43 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 208242ae221650f600d11e49bcef622b4a2f8ff2
|
4
|
+
data.tar.gz: 5a00c1528b2fd8bd1a27ff9bca1674d118a4aafa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9641db7e60e0cc30e962ff5541be6930218bca13cf7ba788c52222a20cbd66158480c39365c37a740252d5db087fa1e63e064380fc89e87d974084825d1d124
|
7
|
+
data.tar.gz: 47689dd4119cd20311ce29f1fa76f1663c66a8ed391385c65b1bbfbfb9b0df6ec2f7f6f1441f8df192fecfb4f696aff1cfc4d62fb19b2b7dd4fa566d68feeef3
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
# Should just disable for 'lib/capistrano/tasks/delayed_job.rake'
|
2
|
+
|
3
|
+
Metrics/AbcSize:
|
4
|
+
Max: 16
|
5
|
+
|
6
|
+
Metrics/MethodLength:
|
7
|
+
Max: 10
|
8
|
+
|
9
|
+
Metrics/CyclomaticComplexity:
|
10
|
+
Max: 7
|
11
|
+
|
12
|
+
Metrics/PerceivedComplexity:
|
13
|
+
Max: 7
|
14
|
+
|
15
|
+
Metrics/LineLength:
|
16
|
+
Max: 120
|
17
|
+
|
18
|
+
Style/FileName:
|
19
|
+
Exclude:
|
20
|
+
- 'lib/capistrano3-delayed-job.rb'
|
21
|
+
- 'lib/capistrano/delayed-job.rb'
|
22
|
+
|
23
|
+
Style/PercentLiteralDelimiters:
|
24
|
+
PreferredDelimiters:
|
25
|
+
'%': '{}'
|
26
|
+
'%i': '[]'
|
27
|
+
'%q': '{}'
|
28
|
+
'%Q': '{}'
|
29
|
+
'%r': '{}'
|
30
|
+
'%s': ()
|
31
|
+
'%w': '[]'
|
32
|
+
'%W': '[]'
|
33
|
+
'%x': ()
|
34
|
+
|
35
|
+
Style/StringLiterals:
|
36
|
+
Enabled: false
|
37
|
+
|
38
|
+
Style/SpaceAfterComma: # really want a way to allow Array(something)[-1,1]
|
39
|
+
Enabled: false
|
40
|
+
|
41
|
+
Style/SpaceAroundEqualsInParameterDefault:
|
42
|
+
EnforcedStyle: no_space
|
43
|
+
|
44
|
+
Style/SpaceAroundOperators:
|
45
|
+
AllowForAlignment: true
|
46
|
+
Enabled: false
|
47
|
+
|
48
|
+
Style/SpaceInsideBlockBraces:
|
49
|
+
EnforcedStyle: space
|
50
|
+
EnforcedStyleForEmptyBraces: no_space
|
51
|
+
# Space between { and |. Overrides EnforcedStyle if there is a conflict.
|
52
|
+
SpaceBeforeBlockParameters: false
|
53
|
+
|
54
|
+
Style/UnneededPercentQ:
|
55
|
+
Exclude:
|
56
|
+
- 'capistrano3-delayed-job.gemspec'
|
data/README.md
CHANGED
@@ -1,10 +1,3 @@
|
|
1
|
-
# MAINTAINER WANTED
|
2
|
-
|
3
|
-
If someone is using this gem on a daily basis and want to help maintain it, please let us know on the issues.
|
4
|
-
We are moving away from capistrano deployments so in the short time we are not using this gem anymore.
|
5
|
-
|
6
|
-
Thanks!
|
7
|
-
|
8
1
|
# Capistrano::DelayedJob [![Gem Version](https://badge.fury.io/rb/capistrano3-delayed-job.png)](http://badge.fury.io/rb/capistrano3-delayed-job)
|
9
2
|
|
10
3
|
Delayed Job support for Capistrano 3.x
|
@@ -29,7 +22,7 @@ Or install it yourself as:
|
|
29
22
|
Require in `Capfile` to use the default task:
|
30
23
|
|
31
24
|
```ruby
|
32
|
-
require 'capistrano/
|
25
|
+
require 'capistrano/delayed_job'
|
33
26
|
```
|
34
27
|
|
35
28
|
You will get the following tasks
|
@@ -121,7 +114,7 @@ end
|
|
121
114
|
```
|
122
115
|
|
123
116
|
Following setting is recommended to avoid stop/restart problem.
|
124
|
-
See [#16](https://github.com/platanus/capistrano3-delayed-job/issues/16) or [#22](https://github.com/platanus/capistrano3-delayed-job/pull/22) for more detail.
|
117
|
+
See [Issue #16](https://github.com/platanus/capistrano3-delayed-job/issues/16) or [PR #22](https://github.com/platanus/capistrano3-delayed-job/pull/22) for more detail.
|
125
118
|
|
126
119
|
```ruby
|
127
120
|
set: linked_dirs, %w(tmp/pids)
|
@@ -141,11 +134,13 @@ set :delayed_job_pid_dir, '/tmp'
|
|
141
134
|
|
142
135
|
## Credits
|
143
136
|
|
144
|
-
Thank you [contributors](https://github.com/
|
137
|
+
Thank you [contributors](https://github.com/AgileConsultingLLC/capistrano3-delayed-job/graphs/contributors)!
|
145
138
|
|
146
|
-
|
139
|
+
capistrano3-delayed-job is maintained [Rob Biedenharn](https://github.com/rab) and
|
140
|
+
[![Logo of Agile Consulting LLC](http://agileconsultingllc.com/agile-logo-small.png "Agile Consulting LLC")](http://agileconsultingllc.com/)
|
147
141
|
|
148
|
-
|
142
|
+
Originally developed by [platanus](http://platan.us).
|
143
|
+
[<img src="http://platan.us/gravatar_with_text.png" alt="Platanus" width="125"/>](http://platan.us/)
|
149
144
|
|
150
145
|
## License
|
151
146
|
|
data/Rakefile
CHANGED
@@ -4,20 +4,27 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "capistrano3-delayed-job"
|
7
|
-
spec.version = "1.7.
|
8
|
-
spec.authors = ["
|
9
|
-
|
7
|
+
spec.version = "1.7.2"
|
8
|
+
spec.authors = ["Rob Biedenharn",
|
9
|
+
"Juan Ignacio Donoso",
|
10
|
+
"Agustin Feuerhake",
|
11
|
+
"Ignacio Baixas"]
|
12
|
+
spec.email = ["rob_biedenharn@alum.mit.edu",
|
13
|
+
"juan.ignacio@platan.us",
|
14
|
+
"agustin@platan.us",
|
15
|
+
"ignacio@platan.us"]
|
10
16
|
spec.summary = %q{Adds support for delayed_jobs to Capistrano 3.x}
|
11
|
-
spec.description = %q{
|
12
|
-
spec.homepage = ""
|
17
|
+
spec.description = %q{Manage start/stop/restart/status of DelayedJob workers using Capistrano 3}
|
18
|
+
spec.homepage = "https://github.com/AgileConsultingLLC/capistrano3-delayed-job"
|
13
19
|
spec.license = "MIT"
|
14
20
|
|
15
21
|
spec.files = `git ls-files -z`.split("\x0")
|
16
|
-
spec.executables = spec.files.grep(%r{^bin/}) {
|
22
|
+
spec.executables = spec.files.grep(%r{^bin/}) {|f| File.basename(f) }
|
17
23
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
18
24
|
spec.require_paths = ["lib"]
|
19
25
|
|
20
|
-
spec.add_dependency 'capistrano', '>= 3.0.0'
|
26
|
+
spec.add_dependency 'capistrano', '~> 3.0', '>= 3.0.0'
|
21
27
|
|
22
28
|
spec.add_development_dependency "rake", "~> 10.0"
|
29
|
+
spec.add_development_dependency "rubocop", "~> 0.0", '>= 0.39.0'
|
23
30
|
end
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
warn %{"require 'capistrano/delayed-job'" is deprecated; please use "require 'capistrano/delayed_job'" in #{Kernel.caller(1,1).first}} # rubocop:disable Metrics/LineLength
|
2
|
+
require_relative 'delayed_job'
|
@@ -0,0 +1 @@
|
|
1
|
+
load File.expand_path('../tasks/delayed_job.rake', __FILE__)
|
@@ -1,3 +1,7 @@
|
|
1
|
+
# rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity
|
2
|
+
# rubocop:disable Metrics/PerceivedComplexity, Style/EmptyLinesAroundBlockBody
|
3
|
+
# rubocop:disable Style/SpaceInsideParens
|
4
|
+
|
1
5
|
namespace :delayed_job do
|
2
6
|
|
3
7
|
def delayed_job_args
|
@@ -8,7 +12,9 @@ namespace :delayed_job do
|
|
8
12
|
args << "--prefix=#{fetch(:delayed_job_prefix)}" unless fetch(:delayed_job_prefix).nil?
|
9
13
|
args << "--pid-dir=#{fetch(:delayed_job_pid_dir)}" unless fetch(:delayed_job_pid_dir).nil?
|
10
14
|
args << "--log-dir=#{fetch(:delayed_log_dir)}" unless fetch(:delayed_log_dir).nil?
|
11
|
-
|
15
|
+
unless fetch(:delayed_job_pools).nil?
|
16
|
+
args << fetch(:delayed_job_pools, {}).map {|k,v| "--pool='#{k}:#{v}'" }.join(' ')
|
17
|
+
end
|
12
18
|
args.join(' ')
|
13
19
|
end
|
14
20
|
|
metadata
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano3-delayed-job
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Rob Biedenharn
|
7
8
|
- Juan Ignacio Donoso
|
8
9
|
- Agustin Feuerhake
|
9
10
|
- Ignacio Baixas
|
@@ -16,49 +17,79 @@ dependencies:
|
|
16
17
|
name: capistrano
|
17
18
|
requirement: !ruby/object:Gem::Requirement
|
18
19
|
requirements:
|
19
|
-
- -
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
23
|
+
- - ">="
|
20
24
|
- !ruby/object:Gem::Version
|
21
25
|
version: 3.0.0
|
22
26
|
type: :runtime
|
23
27
|
prerelease: false
|
24
28
|
version_requirements: !ruby/object:Gem::Requirement
|
25
29
|
requirements:
|
26
|
-
- -
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.0'
|
33
|
+
- - ">="
|
27
34
|
- !ruby/object:Gem::Version
|
28
35
|
version: 3.0.0
|
29
36
|
- !ruby/object:Gem::Dependency
|
30
37
|
name: rake
|
31
38
|
requirement: !ruby/object:Gem::Requirement
|
32
39
|
requirements:
|
33
|
-
- - ~>
|
40
|
+
- - "~>"
|
34
41
|
- !ruby/object:Gem::Version
|
35
42
|
version: '10.0'
|
36
43
|
type: :development
|
37
44
|
prerelease: false
|
38
45
|
version_requirements: !ruby/object:Gem::Requirement
|
39
46
|
requirements:
|
40
|
-
- - ~>
|
47
|
+
- - "~>"
|
41
48
|
- !ruby/object:Gem::Version
|
42
49
|
version: '10.0'
|
43
|
-
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
name: rubocop
|
52
|
+
requirement: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0.0'
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 0.39.0
|
60
|
+
type: :development
|
61
|
+
prerelease: false
|
62
|
+
version_requirements: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - "~>"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '0.0'
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.39.0
|
70
|
+
description: Manage start/stop/restart/status of DelayedJob workers using Capistrano
|
71
|
+
3
|
44
72
|
email:
|
73
|
+
- rob_biedenharn@alum.mit.edu
|
45
74
|
- juan.ignacio@platan.us
|
46
75
|
- agustin@platan.us
|
47
|
-
- ignacio@
|
76
|
+
- ignacio@platan.us
|
48
77
|
executables: []
|
49
78
|
extensions: []
|
50
79
|
extra_rdoc_files: []
|
51
80
|
files:
|
52
|
-
- .gitignore
|
81
|
+
- ".gitignore"
|
82
|
+
- ".rubocop.yml"
|
53
83
|
- Gemfile
|
54
84
|
- LICENSE.txt
|
55
85
|
- README.md
|
56
86
|
- Rakefile
|
57
87
|
- capistrano3-delayed-job.gemspec
|
58
88
|
- lib/capistrano/delayed-job.rb
|
59
|
-
- lib/capistrano/
|
89
|
+
- lib/capistrano/delayed_job.rb
|
90
|
+
- lib/capistrano/tasks/delayed_job.rake
|
60
91
|
- lib/capistrano3-delayed-job.rb
|
61
|
-
homepage:
|
92
|
+
homepage: https://github.com/AgileConsultingLLC/capistrano3-delayed-job
|
62
93
|
licenses:
|
63
94
|
- MIT
|
64
95
|
metadata: {}
|
@@ -68,12 +99,12 @@ require_paths:
|
|
68
99
|
- lib
|
69
100
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
101
|
requirements:
|
71
|
-
- -
|
102
|
+
- - ">="
|
72
103
|
- !ruby/object:Gem::Version
|
73
104
|
version: '0'
|
74
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
106
|
requirements:
|
76
|
-
- -
|
107
|
+
- - ">="
|
77
108
|
- !ruby/object:Gem::Version
|
78
109
|
version: '0'
|
79
110
|
requirements: []
|
@@ -83,4 +114,3 @@ signing_key:
|
|
83
114
|
specification_version: 4
|
84
115
|
summary: Adds support for delayed_jobs to Capistrano 3.x
|
85
116
|
test_files: []
|
86
|
-
has_rdoc:
|