robot-controller 2.0.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +83 -8
- data/.travis.yml +2 -4
- data/README.md +7 -7
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/robot-controller.gemspec +2 -2
- metadata +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1257971edaa1159cc8cf4d8e59dedfd385ccbca
|
4
|
+
data.tar.gz: 3e6b24f7300e3848cb1c72090280c09131d9cda6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4bf4ac00ad9331c801167cf26855a0a3f1dbeeb1df7033193e0e3b205b03e6244aad34638a72d85495566a4411d112181a0498cdd099ec77239f777d2c61332d
|
7
|
+
data.tar.gz: 3e2ceea49073885b9e568a3021800570706fbffa8b3445d9d7c463292b865a304f2afd8a9b8fdb1538f00b5b7e5e353cba018cce1f76706ca0774b76adc3bdbd
|
data/.rubocop_todo.yml
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
#
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2017-01-10 17:11:53 -0800 using RuboCop version 0.46.0.
|
3
4
|
# The point is for the user to remove these configuration records
|
4
5
|
# one by one as the offenses are removed from the code base.
|
5
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -7,7 +8,12 @@
|
|
7
8
|
|
8
9
|
# Offense count: 3
|
9
10
|
Metrics/AbcSize:
|
10
|
-
Max:
|
11
|
+
Max: 90
|
12
|
+
|
13
|
+
# Offense count: 2
|
14
|
+
# Configuration parameters: CountComments.
|
15
|
+
Metrics/BlockLength:
|
16
|
+
Max: 29
|
11
17
|
|
12
18
|
# Offense count: 1
|
13
19
|
Metrics/BlockNesting:
|
@@ -17,8 +23,9 @@ Metrics/BlockNesting:
|
|
17
23
|
Metrics/CyclomaticComplexity:
|
18
24
|
Max: 24
|
19
25
|
|
20
|
-
# Offense count:
|
21
|
-
# Configuration parameters: AllowURI, URISchemes.
|
26
|
+
# Offense count: 33
|
27
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
28
|
+
# URISchemes: http, https
|
22
29
|
Metrics/LineLength:
|
23
30
|
Max: 123
|
24
31
|
|
@@ -32,16 +39,84 @@ Metrics/PerceivedComplexity:
|
|
32
39
|
Max: 22
|
33
40
|
|
34
41
|
# Offense count: 1
|
35
|
-
# Configuration parameters:
|
42
|
+
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
|
36
43
|
Style/FileName:
|
37
|
-
|
44
|
+
Exclude:
|
45
|
+
- 'lib/robot-controller.rb'
|
38
46
|
|
39
47
|
# Offense count: 1
|
40
48
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
49
|
+
# SupportedStyles: format, sprintf, percent
|
41
50
|
Style/FormatString:
|
42
|
-
|
51
|
+
Exclude:
|
52
|
+
- 'lib/robot-controller/bluepill.rb'
|
53
|
+
|
54
|
+
# Offense count: 3
|
55
|
+
# Configuration parameters: MinBodyLength.
|
56
|
+
Style/GuardClause:
|
57
|
+
Exclude:
|
58
|
+
- 'lib/robot-controller/robots.rb'
|
59
|
+
- 'lib/robot-controller/verify.rb'
|
60
|
+
|
61
|
+
# Offense count: 15
|
62
|
+
# Cop supports --auto-correct.
|
63
|
+
# Configuration parameters: SupportedStyles, IndentationWidth.
|
64
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
65
|
+
Style/IndentArray:
|
66
|
+
EnforcedStyle: consistent
|
67
|
+
|
68
|
+
# Offense count: 1
|
69
|
+
# Cop supports --auto-correct.
|
70
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
71
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
72
|
+
Style/MultilineArrayBraceLayout:
|
73
|
+
Exclude:
|
74
|
+
- 'spec/unit/verify_spec.rb'
|
43
75
|
|
44
76
|
# Offense count: 5
|
45
77
|
# Cop supports --auto-correct.
|
46
78
|
Style/NumericLiterals:
|
47
79
|
MinDigits: 6
|
80
|
+
|
81
|
+
# Offense count: 5
|
82
|
+
# Cop supports --auto-correct.
|
83
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
84
|
+
# SupportedStyles: predicate, comparison
|
85
|
+
Style/NumericPredicate:
|
86
|
+
Exclude:
|
87
|
+
- 'spec/**/*'
|
88
|
+
- 'bin/controller'
|
89
|
+
- 'lib/robot-controller/verify.rb'
|
90
|
+
|
91
|
+
# Offense count: 14
|
92
|
+
# Cop supports --auto-correct.
|
93
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
94
|
+
# SupportedStyles: only_raise, only_fail, semantic
|
95
|
+
Style/SignalException:
|
96
|
+
Exclude:
|
97
|
+
- 'bin/controller'
|
98
|
+
- 'lib/robot-controller/robots.rb'
|
99
|
+
- 'lib/robot-controller/verify.rb'
|
100
|
+
|
101
|
+
# Offense count: 1
|
102
|
+
# Configuration parameters: Methods.
|
103
|
+
# Methods: {"reduce"=>["acc", "elem"]}, {"inject"=>["acc", "elem"]}
|
104
|
+
Style/SingleLineBlockParams:
|
105
|
+
Exclude:
|
106
|
+
- 'lib/robot-controller/verify.rb'
|
107
|
+
|
108
|
+
# Offense count: 2
|
109
|
+
# Cop supports --auto-correct.
|
110
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
|
111
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
112
|
+
Style/TernaryParentheses:
|
113
|
+
Exclude:
|
114
|
+
- 'lib/robot-controller/robots.rb'
|
115
|
+
- 'lib/robot-controller/verify.rb'
|
116
|
+
|
117
|
+
# Offense count: 7
|
118
|
+
# Cop supports --auto-correct.
|
119
|
+
Style/ZeroLengthPredicate:
|
120
|
+
Exclude:
|
121
|
+
- 'bin/controller'
|
122
|
+
- 'lib/robot-controller/verify.rb'
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
[](https://travis-ci.org/sul-dlss/robot-controller)
|
2
2
|
[](https://gemnasium.com/sul-dlss/robot-controller)
|
3
|
-
|
3
|
+
[](https://badge.fury.io/rb/robot-controller)
|
4
4
|
|
5
5
|
robot-controller
|
6
6
|
================
|
@@ -16,16 +16,16 @@ In your `Gemfile`, add:
|
|
16
16
|
In your `Rakefile`, add the following (if you don't want to include the environment unconditionally):
|
17
17
|
|
18
18
|
require 'robot-controller/tasks'
|
19
|
-
|
19
|
+
|
20
20
|
Create the following configuration files based on the examples in `example/config`:
|
21
21
|
|
22
22
|
config/environments/robots_development.yml
|
23
|
-
|
23
|
+
|
24
24
|
Then to use the controller to boot the robots:
|
25
25
|
|
26
26
|
bundle exec controller boot
|
27
|
-
|
28
|
-
If you want to *override* the bluepill configuration but still use the
|
27
|
+
|
28
|
+
If you want to *override* the bluepill configuration but still use the
|
29
29
|
controller (though NOT recommended), then add:
|
30
30
|
|
31
31
|
config/bluepill.rb
|
@@ -41,10 +41,10 @@ controller (though NOT recommended), then add:
|
|
41
41
|
controller boot # start bluepilld and jobs
|
42
42
|
controller status # check on status of jobs
|
43
43
|
controller verify # verify robots are running as configured
|
44
|
-
controller log robot01_01_dor_accessionWF_descriptive-metadata # view log for worker
|
44
|
+
controller log robot01_01_dor_accessionWF_descriptive-metadata # view log for worker
|
45
45
|
controller stop # stop jobs
|
46
46
|
controller quit # stop bluepilld
|
47
|
-
|
47
|
+
|
48
48
|
Environment:
|
49
49
|
BLUEPILL_BASEDIR - where bluepill stores its state (default: run/bluepill)
|
50
50
|
BLUEPILL_LOGFILE - output log (default: log/bluepill.log)
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0
|
1
|
+
2.1.0
|
data/robot-controller.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.required_rubygems_version = '>= 1.3.6'
|
24
24
|
|
25
25
|
s.add_dependency 'bluepill'
|
26
|
-
s.add_dependency 'resque', '~> 1.
|
27
|
-
s.add_dependency 'rake', '~> 10.3'
|
26
|
+
s.add_dependency 'resque', '~> 1.26'
|
27
|
+
s.add_dependency 'rake', '~> 10', '>= 10.3'
|
28
28
|
s.add_dependency 'whenever', '~> 0.9.2'
|
29
29
|
|
30
30
|
s.add_development_dependency 'pry'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robot-controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darren Hardy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bluepill
|
@@ -30,19 +30,22 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: '1.26'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: '1.26'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10'
|
48
|
+
- - ">="
|
46
49
|
- !ruby/object:Gem::Version
|
47
50
|
version: '10.3'
|
48
51
|
type: :runtime
|
@@ -50,6 +53,9 @@ dependencies:
|
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
55
|
- - "~>"
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '10'
|
58
|
+
- - ">="
|
53
59
|
- !ruby/object:Gem::Version
|
54
60
|
version: '10.3'
|
55
61
|
- !ruby/object:Gem::Dependency
|
@@ -224,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
224
230
|
version: 1.3.6
|
225
231
|
requirements: []
|
226
232
|
rubyforge_project:
|
227
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.5.2
|
228
234
|
signing_key:
|
229
235
|
specification_version: 4
|
230
236
|
summary: Monitors and controls running workflow robots off of priority queues and
|
@@ -236,4 +242,3 @@ test_files:
|
|
236
242
|
- spec/spec_helper.rb
|
237
243
|
- spec/unit/robots_spec.rb
|
238
244
|
- spec/unit/verify_spec.rb
|
239
|
-
has_rdoc: true
|