robot_sweatshop 0.2.0 → 0.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: edaa6abb2f131c571be0f100430763222e988055
4
- data.tar.gz: dd254380c37b2e7cc946d077e01f5114bf15f609
3
+ metadata.gz: 94213cf7a5098291271e0d6b1b053e822da20269
4
+ data.tar.gz: c6e7f4877c894243ccb386f339bbef0ed4fc822d
5
5
  SHA512:
6
- metadata.gz: 67a7804817f3f55a23e147a5cb2f15043b34cc906c6783a4bd55dce02ce846ee7d9b442b1c51d96477c27b173dfc9ab9ea59a476b549b096bb9bce508956c6fb
7
- data.tar.gz: d14b8909e070f2ac63346e233758f353e0345f61afe2e5f5fccf6f4afd6570024f9d8ef92ed3e1da1817f6c93e759b3a7ea4b62358d2b534f45d315c6528b298
6
+ metadata.gz: 42394c288d96179fd7dfc979e23eb44a5f9a75ea6bbdc43ea2c92c4180357df6c9b84ab0c09a0cf1632cbb59bcd1d3ac1092aea61450ce7e69867090f1fa33b9
7
+ data.tar.gz: aa468e0ca4eafb867b68ee9c68c3ee423156394921c85a95429b20ad5499ba42a345e645169a563950ea17c3bb994e67b6124b2acf2847f15550272771240d72
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ jobs/*.yaml
5
5
  Gemfile.lock
6
6
  .bundle
7
7
  vendor
8
+ coverage
data/.rubocop.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  AllCops:
2
2
  Exclude:
3
3
  - kintama/**/*
4
+ - vendor/**/*
4
5
 
5
6
  Style/Encoding:
6
7
  Enabled: false
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ [![Gem Version](https://badge.fury.io/rb/robot_sweatshop.svg)](http://badge.fury.io/rb/robot_sweatshop) [![Join the chat at https://gitter.im/JScott/robot_sweatshop](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/JScott/robot_sweatshop?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2
+
1
3
  # Robot Sweatshop
2
4
 
3
5
  [Jenkins](http://jenkins-ci.org/) is horrible to maintain and is problematic when automating installation and configuration. [Drone](https://drone.io/) assumes that you use Docker. [Travis-CI](https://travis-ci.org/recent) is difficult to self-host. All of these frameworks are highly opinionated in one way or another, forcing you to do things _their_ way.
@@ -10,7 +12,7 @@ Robot Sweatshop is a single-purpose CI server that runs collections of arbitrary
10
12
  - `gem install robot_sweatshop`
11
13
  - `sweatshop start` ([you may need sudo on OSX](https://github.com/JScott/robot_sweatshop/wiki))
12
14
  - `sweatshop job example --auto`
13
- - POST a Github payload to `localhost:8080/github/payload-for/example`
15
+ - POST a Github payload to `yourserver.com:8080/github/payload-for/example`
14
16
  - `cat .robot_sweatshop/log/job-worker.log`
15
17
 
16
18
  # Usage
data/Rakefile CHANGED
@@ -1,3 +1,11 @@
1
+ require 'bundler/setup'
2
+ require 'simplecov'
3
+
1
4
  task :test do
5
+ SimpleCov.command_name 'Kintama Tests'
6
+ SimpleCov.start do
7
+ add_filter "/vendor/"
8
+ add_filter "/kintama/"
9
+ end
2
10
  require_relative 'kintama/run_all'
3
11
  end
data/bin/sweatshop CHANGED
@@ -10,7 +10,7 @@ require_relative '../lib/sweatshop/config'
10
10
  require_relative '../lib/sweatshop/create-config-directories'
11
11
 
12
12
  program :name, 'Robot Sweatshop'
13
- program :version, '0.2.0'
13
+ program :version, '0.2.1'
14
14
  program :description, 'A lightweight, unopinionated CI server'
15
15
  program :help, 'Author', 'Justin Scott <jvscott@gmail.com>'
16
16
 
@@ -8,7 +8,7 @@ MonetaQueue.watched_queues.each do |queue|
8
8
  queues[queue] = MonetaQueue.new queue
9
9
  end
10
10
 
11
- @wait_time = ARGV[0].to_f || 0.5
11
+ @wait_time = ARGV[0].nil? ? 0.5 : ARGV[0].to_f
12
12
 
13
13
  loop do
14
14
  queues.each do |queue_name, queue|
data/robot_sweatshop.eye CHANGED
@@ -5,7 +5,7 @@ PID_PATH = CONFIG[:pidfile_directory]
5
5
  LOG_PATH = CONFIG[:logfile_directory]
6
6
 
7
7
  Eye.config do
8
- logger CONFIG[:log_file]
8
+ logger "#{CONFIG[:logfile_directory]}/eye.log"
9
9
  end
10
10
 
11
11
  Eye.application :robot_sweatshop do
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'robot_sweatshop'
3
- gem.version = '0.2.0'
3
+ gem.version = '0.2.1'
4
4
  gem.licenses = 'MIT'
5
5
  gem.authors = ['Justin Scott']
6
6
  gem.email = 'jvscott@gmail.com'
@@ -29,4 +29,5 @@ Gem::Specification.new do |gem|
29
29
  gem.add_development_dependency 'http'
30
30
  gem.add_development_dependency 'pry'
31
31
  gem.add_development_dependency 'pry-byebug'
32
+ gem.add_development_dependency 'simplecov'
32
33
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robot_sweatshop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Scott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-06 00:00:00.000000000 Z
11
+ date: 2015-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -192,6 +192,20 @@ dependencies:
192
192
  - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: simplecov
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :development
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
195
209
  description: A lightweight, unopinionated CI server.
196
210
  email: jvscott@gmail.com
197
211
  executables:
@@ -281,3 +295,4 @@ test_files:
281
295
  - kintama/data/test_job.yaml
282
296
  - kintama/shared/helpers.rb
283
297
  - kintama/shared/process_spawning.rb
298
+ has_rdoc: