robot_sweatshop 0.4.1 → 0.4.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: 8e026c2ff6a2218361dddedb3850946354f20b44
4
- data.tar.gz: f238495f3e55f95373d9bb6b2e33be82eab796fa
3
+ metadata.gz: c4ad8bb0e13b6949560dbc5540199d64ad5f0772
4
+ data.tar.gz: 181c02c2b6ca2c7b5f07e95e0c44a7257e32283f
5
5
  SHA512:
6
- metadata.gz: e819ad72e4b7dbf0c2ebafba3a3a68d9e7cb604b9e333200d97c805632f4689c1c38d4e4d02e64feb17cfb5bb3c8c87db120c04746186e2db11ff8ed318046af
7
- data.tar.gz: 601cf0fcbfa32a794e2b04b119bf456abbb3b1b1413c4d8e0804a4d078ae03ed5e4978cccb6a83d2caa110dc5b8e8ea93992e95c89db0ca16a54e7b7fd4b9414
6
+ metadata.gz: 5874e518f387f6d71e935f7cf93d1fbb660342baa1721981003a365dd9c1c0b1c2fd01aad267dda276cf512dcfad1d3108b661bbf90d30dc452a5273939ebe9e
7
+ data.tar.gz: 0131a56ffdac509ddcaab1d9c671ff9d9cf83012cd1d5522785631100cbab69cda8232d86ba79d77af94f0d43e84ddfdee36214e4a267b7e168d26e97583d874
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.1'
11
+ program :version, '0.4.2'
12
12
  program :description, 'A lightweight, unopinionated CI server'
13
13
  program :help, 'Author', 'Justin Scott <jvscott@gmail.com>'
14
14
 
data/bin/sweatshop-input CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'bundler/setup'
3
3
  require 'sinatra'
4
+ require 'sinatra/cross_origin'
4
5
  require 'ezmq'
5
6
  require 'robot_sweatshop/config'
6
7
  require 'robot_sweatshop/connections'
@@ -12,6 +13,7 @@ configure do
12
13
  set :run, true
13
14
  set :conveyor, EZMQ::Client.new(port: configatron.conveyor_port)
14
15
  settings.conveyor.serialize_with_json!
16
+ enable :cross_origin if configatron.http_cross_origin
15
17
  end
16
18
 
17
19
  get '/' do
data/config.defaults.yaml CHANGED
@@ -6,6 +6,7 @@ workspace_path: .robot_sweatshop/workspaces
6
6
  database_path: .robot_sweatshop/db
7
7
  http_port: 8080
8
8
  http_bind: 0.0.0.0
9
+ http_cross_origin: true
9
10
  conveyor_port: 5555
10
11
  payload_parser_port: 5556
11
12
  job_dictionary_port: 5557
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'robot_sweatshop'
3
- gem.version = '0.4.1'
3
+ gem.version = '0.4.2'
4
4
  gem.licenses = 'MIT'
5
5
  gem.authors = ['Justin Scott']
6
6
  gem.email = 'jvscott@gmail.com'
@@ -23,6 +23,7 @@ Gem::Specification.new do |gem|
23
23
  gem.add_runtime_dependency 'configatron'
24
24
  gem.add_runtime_dependency 'contracts'
25
25
  gem.add_runtime_dependency 'sinatra'
26
+ gem.add_runtime_dependency 'sinatra-cross_origin'
26
27
  gem.add_runtime_dependency 'ezmq'
27
28
  gem.add_runtime_dependency 'stubborn_queue'
28
29
  gem.add_runtime_dependency 'oj'
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.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Scott
@@ -122,6 +122,20 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sinatra-cross_origin
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: ezmq
127
141
  requirement: !ruby/object:Gem::Requirement