robot-controller 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4aecc4e3e0802963a8bde215f896ae5cf46c1eb8
4
- data.tar.gz: c3e49d1dfb090a7bd99d000616990b4ffcdf4b7e
3
+ metadata.gz: de685bf1713c0024ed280fa7e35555af6062efa8
4
+ data.tar.gz: 57aa53a3c00e41b09788530c5be01598b4eb44af
5
5
  SHA512:
6
- metadata.gz: 13ef598d961e075c20b26919576dfaed18c850e41ecf9be31ad799b2a6cd6298f250a80e1c19b93a8e35aa5776c9c3cd4c1ebc92a6e453b337b99f5d47854c9d
7
- data.tar.gz: 0858eef295cd386ecfd652b10ad28fd8b7486dd682ed6c9058016cc4955bab4798addd85a79e2ddf1a6ba79fa8410e655833243d1bce89ee13a6ecb0367294d3
6
+ metadata.gz: 4815d7bbdfdf108604454f03b43fedcea8ba9cd29ac2ebe55a051df43254d4bd350d648c1d27c1762373c63c6e18b6d365751466fc75e007eae16bdb290ea2b0
7
+ data.tar.gz: a4be372dd98048c84fa21bdcfceace4a2a8cb32d696a4b0b766e72d70f56c3b4fa70c88d92cf204e50db0aa8fe2a7481f30c0e376d5d51b515c2f77af27e8ce9
data/README.md CHANGED
@@ -56,6 +56,7 @@ controller (though NOT recommended), then add:
56
56
  * `v1.0.1`: Add 'rake' as dependency
57
57
  * `v2.0.0`: Added 'verify' command
58
58
  * `v2.0.1`: Added rake robots:verify and support for whenever gem
59
+ * `v2.0.2`: Updated rake dependency
59
60
 
60
61
  ### `verify` command
61
62
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.1
1
+ 2.0.2
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
 
25
25
  s.add_dependency 'bluepill', '0.0.68' # pin bluepill to prevent nil status output regression
26
26
  s.add_dependency 'resque', '~> 1.25.2'
27
- s.add_dependency 'rake', '~> 10.3.2'
27
+ s.add_dependency 'rake', '~> 10.3'
28
28
  s.add_dependency 'whenever', '~> 0.9.2'
29
29
 
30
30
  s.add_development_dependency 'pry'
@@ -61,55 +61,44 @@ describe RobotController::Parser do
61
61
  end
62
62
 
63
63
  context 'instances_valid?' do
64
- subject do
65
- RobotController::Parser
66
- end
67
64
  it 'valid inputs' do
68
- expect(subject.instances_valid?(0)).to eq 1
69
- expect(subject.instances_valid?(1)).to eq 1
70
- expect(subject.instances_valid?(8)).to eq 8
71
- expect(subject.instances_valid?(16)).to eq 16
65
+ expect(described_class.instances_valid?(0)).to eq 1
66
+ expect(described_class.instances_valid?(1)).to eq 1
67
+ expect(described_class.instances_valid?(8)).to eq 8
68
+ expect(described_class.instances_valid?(16)).to eq 16
72
69
  end
73
70
 
74
71
  it 'invalid inputs' do
75
72
  expect do
76
- subject.instances_valid?(17)
73
+ described_class.instances_valid?(17)
77
74
  end.to raise_error RuntimeError
78
75
  end
79
76
  end
80
77
 
81
78
  context 'parse_lanes' do
82
- subject do
83
- RobotController::Parser
84
- end
85
-
86
- it 'valid inputs' do
87
- expect(subject.parse_lanes('*')).to eq ['*']
88
- expect(subject.parse_lanes('')).to eq ['default']
89
- expect(subject.parse_lanes('default')).to eq ['default']
90
- expect(subject.parse_lanes('A')).to eq ['A']
91
- expect(subject.parse_lanes('A,B')).to eq %w(A B)
79
+ it 'handles valid inputs' do
80
+ expect(described_class.parse_lanes('*')).to eq ['*']
81
+ expect(described_class.parse_lanes('')).to eq ['default']
82
+ expect(described_class.parse_lanes('default')).to eq ['default']
83
+ expect(described_class.parse_lanes('A')).to eq ['A']
84
+ expect(described_class.parse_lanes('A,B')).to eq %w(A B)
92
85
  end
93
86
 
94
- it 'tricky inputs' do
95
- expect(subject.parse_lanes(' ')).to eq ['default']
96
- expect(subject.parse_lanes(' , ')).to eq ['default']
97
- expect(subject.parse_lanes(' ,,')).to eq ['default']
98
- expect(subject.parse_lanes('A , B')).to eq %w(A B)
99
- expect(subject.parse_lanes('A-B')).to eq ['A-B']
100
- expect(subject.parse_lanes('A,B,A')).to eq %w(A B)
87
+ it 'handles tricky inputs' do
88
+ expect(described_class.parse_lanes(' ')).to eq ['default']
89
+ expect(described_class.parse_lanes(' , ')).to eq ['default']
90
+ expect(described_class.parse_lanes(' ,,')).to eq ['default']
91
+ expect(described_class.parse_lanes('A , B')).to eq %w(A B)
92
+ expect(described_class.parse_lanes('A-B')).to eq ['A-B']
93
+ expect(described_class.parse_lanes('A,B,A')).to eq %w(A B)
101
94
  end
102
95
  end
103
96
 
104
97
  context 'queue_names' do
105
- subject do
106
- RobotController::Parser
107
- end
108
-
109
- it 'valid inputs' do
110
- expect(subject.queue_names('z', '*')).to eq ['z_*']
111
- expect(subject.queue_names('z', 'default')).to eq ['z_default']
112
- expect(subject.queue_names('z', 'A,B,C')).to eq %w(z_A z_B z_C)
98
+ it 'handles valid inputs' do
99
+ expect(described_class.queue_names('z', '*')).to eq ['z_*']
100
+ expect(described_class.queue_names('z', 'default')).to eq ['z_default']
101
+ expect(described_class.queue_names('z', 'A,B,C')).to eq %w(z_A z_B z_C)
113
102
  end
114
103
  end
115
104
  end
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.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Darren Hardy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2015-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bluepill
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 10.3.2
47
+ version: '10.3'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: 10.3.2
54
+ version: '10.3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: whenever
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: 1.3.6
224
224
  requirements: []
225
225
  rubyforge_project:
226
- rubygems_version: 2.0.14
226
+ rubygems_version: 2.4.5
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: Monitors and controls running workflow robots off of priority queues and
@@ -234,3 +234,4 @@ test_files:
234
234
  - spec/spec_helper.rb
235
235
  - spec/unit/robots_spec.rb
236
236
  - spec/unit/verify_spec.rb
237
+ has_rdoc: true