blinkstick-rspec-formatter 0.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 434f27c95f27852bb22cd6361119abf134e01977
4
+ data.tar.gz: 95aab00a76403fa8ca97c4d48ba8d8fb5749ff81
5
+ SHA512:
6
+ metadata.gz: df1617e59113adca619987ee630972e1c6b82e54a22209a487d2f667ae85a5aea3160fe6341e7e79bd4bd5313f7c9b58547f85081f8d58e40d9646e1c6fbe9c5
7
+ data.tar.gz: 63b6dd2723558077a532a8588104fed18b6086285aadc325fbc4c0b85e0cb3fc128afe0c988290bea1382e9eae5631b2621da1588b3df3b837c4b5171629ad3b
@@ -0,0 +1,29 @@
1
+ require "rspec/core/formatters/progress_formatter"
2
+ require "blinkstick"
3
+
4
+ module RSpec
5
+ module Core
6
+ module Formatters
7
+
8
+ class BlinkStickFormatter < ProgressFormatter
9
+
10
+ def example_passed(example)
11
+ blinkstick.color = Color::RGB::Green
12
+ super(example)
13
+ blinkstick.off
14
+ end
15
+
16
+ def eaxmple_failed(example)
17
+ blinkstick.color = Color::RGB::Red
18
+ super(example)
19
+ blinkstick.off
20
+ end
21
+
22
+ def blinkstick
23
+ @blinkstick ||= BlinkStick.find_all.first
24
+ end
25
+
26
+ end
27
+ end
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,73 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blinkstick-rspec-formatter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Erik Benoist <ebenoist@gmail.com>
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-01-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: blinkstick
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: color
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.4.2
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.4.2
41
+ description: |2
42
+ BlinkStick Rspec Formatter causes a connected blinkstick to blink green or red as each spec passes or fails.
43
+ ```
44
+ email: ebenoist@gmal.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - lib/rspec/core/formatters/blink_stick_formatter.rb
50
+ homepage: http://github.com/ebenoist/blinkstick-rspec-formatter
51
+ licenses: []
52
+ metadata: {}
53
+ post_install_message:
54
+ rdoc_options: []
55
+ require_paths:
56
+ - lib
57
+ required_ruby_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ requirements: []
68
+ rubyforge_project:
69
+ rubygems_version: 2.0.6
70
+ signing_key:
71
+ specification_version: 4
72
+ summary: BlinkStick Rspec Formatter
73
+ test_files: []