blinky_billd 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/.rspec +1 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +34 -0
- data/README.markdown +1 -0
- data/Rakefile +6 -0
- data/bin/blinky_billd +9 -0
- data/blinky_billd.gemspec +30 -0
- data/lib/blinky_billd/controller.rb +12 -0
- data/lib/blinky_billd/version.rb +3 -0
- data/spec/blinky_billd/controller_spec.rb +17 -0
- data/spec/spec_helper.rb +4 -0
- metadata +133 -0
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
blinky_billd (0.0.2)
|
5
|
+
billd
|
6
|
+
blinky
|
7
|
+
|
8
|
+
GEM
|
9
|
+
remote: http://rubygems.org/
|
10
|
+
specs:
|
11
|
+
billd (0.0.2)
|
12
|
+
nokogiri
|
13
|
+
blinky (0.0.3)
|
14
|
+
ruby-usb (>= 0.2.1)
|
15
|
+
diff-lcs (1.1.3)
|
16
|
+
nokogiri (1.5.2)
|
17
|
+
rake (0.9.2.2)
|
18
|
+
rspec (2.9.0)
|
19
|
+
rspec-core (~> 2.9.0)
|
20
|
+
rspec-expectations (~> 2.9.0)
|
21
|
+
rspec-mocks (~> 2.9.0)
|
22
|
+
rspec-core (2.9.0)
|
23
|
+
rspec-expectations (2.9.0)
|
24
|
+
diff-lcs (~> 1.1.3)
|
25
|
+
rspec-mocks (2.9.0)
|
26
|
+
ruby-usb (0.2.1)
|
27
|
+
|
28
|
+
PLATFORMS
|
29
|
+
ruby
|
30
|
+
|
31
|
+
DEPENDENCIES
|
32
|
+
blinky_billd!
|
33
|
+
rake
|
34
|
+
rspec
|
data/README.markdown
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
[![Build Status](https://secure.travis-ci.org/jamesottaway/blinky_billd.png)](http://travis-ci.org/jamesottaway/blinky_billd)
|
data/Rakefile
ADDED
data/bin/blinky_billd
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "blinky_billd/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "blinky_billd"
|
7
|
+
s.version = BlinkyBilld::VERSION
|
8
|
+
s.authors = ["James Ottaway"]
|
9
|
+
s.email = ["james@ottaway.mp"]
|
10
|
+
s.homepage = ""
|
11
|
+
s.summary = %q{Blinky + Billd}
|
12
|
+
s.description = %q{Blinky is great for controlling a build light, and Billd can tell you how healthy your builds are.
|
13
|
+
Wouldn't it be nice if they placed nicely together? Well now they do!}
|
14
|
+
|
15
|
+
s.rubyforge_project = "blinky_billd"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
|
22
|
+
# specify any dependencies here; for example:
|
23
|
+
# s.add_development_dependency "rspec"
|
24
|
+
# s.add_runtime_dependency "rest-client"
|
25
|
+
|
26
|
+
s.add_runtime_dependency 'blinky'
|
27
|
+
s.add_runtime_dependency 'billd'
|
28
|
+
s.add_development_dependency 'rake'
|
29
|
+
s.add_development_dependency 'rspec'
|
30
|
+
end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'blinky_billd/controller'
|
3
|
+
|
4
|
+
describe BlinkyBilld::Controller do
|
5
|
+
let(:blinky) { mock 'Blinky' }
|
6
|
+
let(:light) { mock 'Light' }
|
7
|
+
let(:billd_status) { mock 'Billd::Status' }
|
8
|
+
let(:uri) { '//build/status' }
|
9
|
+
|
10
|
+
before { Blinky.should_receive(:new).and_return(blinky) }
|
11
|
+
before { Billd::Status.should_receive(:new).with(uri).and_return(billd_status) }
|
12
|
+
before { billd_status.should_receive(:overall).and_return(:success_or_failure) }
|
13
|
+
before { blinky.should_receive(:light).and_return(light) }
|
14
|
+
before { light.should_receive(:success_or_failure) }
|
15
|
+
|
16
|
+
it { BlinkyBilld::Controller.run(uri) }
|
17
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,133 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: blinky_billd
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- James Ottaway
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-04-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: blinky
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: billd
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rake
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: ! "Blinky is great for controlling a build light, and Billd can tell
|
79
|
+
you how healthy your builds are.\n Wouldn't it be nice if they placed nicely
|
80
|
+
together? Well now they do!"
|
81
|
+
email:
|
82
|
+
- james@ottaway.mp
|
83
|
+
executables:
|
84
|
+
- blinky_billd
|
85
|
+
extensions: []
|
86
|
+
extra_rdoc_files: []
|
87
|
+
files:
|
88
|
+
- .gitignore
|
89
|
+
- .rspec
|
90
|
+
- .travis.yml
|
91
|
+
- Gemfile
|
92
|
+
- Gemfile.lock
|
93
|
+
- README.markdown
|
94
|
+
- Rakefile
|
95
|
+
- bin/blinky_billd
|
96
|
+
- blinky_billd.gemspec
|
97
|
+
- lib/blinky_billd/controller.rb
|
98
|
+
- lib/blinky_billd/version.rb
|
99
|
+
- spec/blinky_billd/controller_spec.rb
|
100
|
+
- spec/spec_helper.rb
|
101
|
+
homepage: ''
|
102
|
+
licenses: []
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
hash: 3021506433494223909
|
116
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
segments:
|
123
|
+
- 0
|
124
|
+
hash: 3021506433494223909
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project: blinky_billd
|
127
|
+
rubygems_version: 1.8.21
|
128
|
+
signing_key:
|
129
|
+
specification_version: 3
|
130
|
+
summary: Blinky + Billd
|
131
|
+
test_files:
|
132
|
+
- spec/blinky_billd/controller_spec.rb
|
133
|
+
- spec/spec_helper.rb
|