robot_sweatshop 0.4.0 → 0.4.1
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/bin/sweatshop +1 -1
- data/bin/sweatshop-conveyor +2 -3
- data/lib/README.md +4 -1
- data/robot_sweatshop.gemspec +1 -2
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e026c2ff6a2218361dddedb3850946354f20b44
|
4
|
+
data.tar.gz: f238495f3e55f95373d9bb6b2e33be82eab796fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e819ad72e4b7dbf0c2ebafba3a3a68d9e7cb604b9e333200d97c805632f4689c1c38d4e4d02e64feb17cfb5bb3c8c87db120c04746186e2db11ff8ed318046af
|
7
|
+
data.tar.gz: 601cf0fcbfa32a794e2b04b119bf456abbb3b1b1413c4d8e0804a4d078ae03ed5e4978cccb6a83d2caa110dc5b8e8ea93992e95c89db0ca16a54e7b7fd4b9414
|
data/bin/sweatshop
CHANGED
@@ -8,7 +8,7 @@ require 'robot_sweatshop/config'
|
|
8
8
|
require 'robot_sweatshop/create-config-directories'
|
9
9
|
|
10
10
|
program :name, 'Robot Sweatshop'
|
11
|
-
program :version, '0.4.
|
11
|
+
program :version, '0.4.1'
|
12
12
|
program :description, 'A lightweight, unopinionated CI server'
|
13
13
|
program :help, 'Author', 'Justin Scott <jvscott@gmail.com>'
|
14
14
|
|
data/bin/sweatshop-conveyor
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
require 'bundler/setup'
|
3
3
|
require 'ezmq'
|
4
4
|
require 'stubborn_queue'
|
5
|
-
require 'oj'
|
6
5
|
require 'contracts'
|
7
6
|
require 'robot_sweatshop/config'
|
8
7
|
require 'robot_sweatshop/connections'
|
@@ -20,7 +19,7 @@ include Contracts
|
|
20
19
|
Contract Hash => Fixnum
|
21
20
|
def enqueue(item)
|
22
21
|
puts "enqueue #{item}"
|
23
|
-
@items.enqueue
|
22
|
+
@items.enqueue item
|
24
23
|
end
|
25
24
|
|
26
25
|
Contract None => Or[Fixnum,nil]
|
@@ -32,7 +31,7 @@ end
|
|
32
31
|
Contract Fixnum => Hash
|
33
32
|
def lookup(id)
|
34
33
|
puts "lookup #{id}"
|
35
|
-
|
34
|
+
@items.lookup(id)
|
36
35
|
end
|
37
36
|
|
38
37
|
Contract Fixnum => Bool
|
data/lib/README.md
CHANGED
@@ -5,11 +5,14 @@ input -> conveyor
|
|
5
5
|
{ payload:, user_agent:, job_name: }
|
6
6
|
|
7
7
|
assembler <-> conveyor
|
8
|
+
{ method:, data: } <-> data
|
8
9
|
|
9
10
|
assembler <-> payload-parser
|
10
|
-
assembler <-> job-dictionary
|
11
11
|
{ payload:, user_agent: } <-> { payload:, error: }
|
12
12
|
|
13
|
+
assembler <-> job-dictionary
|
14
|
+
{ job_name: } <-> { payload:, error: }
|
15
|
+
|
13
16
|
assembler -> worker
|
14
17
|
{ context:, commands:, job_name:, job_id }
|
15
18
|
```
|
data/robot_sweatshop.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'robot_sweatshop'
|
3
|
-
gem.version = '0.4.
|
3
|
+
gem.version = '0.4.1'
|
4
4
|
gem.licenses = 'MIT'
|
5
5
|
gem.authors = ['Justin Scott']
|
6
6
|
gem.email = 'jvscott@gmail.com'
|
@@ -21,7 +21,6 @@ Gem::Specification.new do |gem|
|
|
21
21
|
gem.add_runtime_dependency 'eye'
|
22
22
|
gem.add_runtime_dependency 'colorize' # TODO: replace with rainbow
|
23
23
|
gem.add_runtime_dependency 'configatron'
|
24
|
-
gem.add_runtime_dependency 'moneta' # TODO: needed with stubborn_queue?
|
25
24
|
gem.add_runtime_dependency 'contracts'
|
26
25
|
gem.add_runtime_dependency 'sinatra'
|
27
26
|
gem.add_runtime_dependency 'ezmq'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robot_sweatshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Scott
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: moneta
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :runtime
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: contracts
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|