guard-blink1 0.0.2 → 0.0.3
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.
- data/README.md +11 -1
- data/guard-blink1.gemspec +1 -1
- data/lib/guard_blink1.rb +1 -2
- data/test/guard_blink1_test.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -2,6 +2,8 @@
|
|
2
2
|
## About
|
3
3
|
|
4
4
|
This gem allows you to use your [blink1 from thingm](http://thingm.com/products/blink-1.html) along with [guard](https://github.com/guard/guard) to show if your tests are failing (red) or passing (green)
|
5
|
+
|
6
|
+
### Background
|
5
7
|
|
6
8
|
After reading this [guard-dev post](https://groups.google.com/forum/?fromgroups=#!searchin/guard-dev/notification/guard-dev/wz5zlLJUEQA/gji7B9FS1UAJ) I decided to use the resultant [Guard File notification](https://github.com/guard/guard#file) born out of that very discussion.
|
7
9
|
|
@@ -56,8 +58,16 @@ As we're using an intermediary file called .guard_result you'll probably want to
|
|
56
58
|
|
57
59
|
Now get back to coding with your blink1 as your Red/Green testing buddy :)
|
58
60
|
|
59
|
-
|
61
|
+
|
62
|
+
## Credit
|
63
|
+
|
64
|
+
Many thanks to:
|
60
65
|
|
66
|
+
* [amiel](https://gist.github.com/amiel) and his [gist](https://gist.github.com/amiel/5258723) which gave me inspiration to create this gem.
|
67
|
+
* [ngs](https://github.com/ngs) for creating the wonderful blink1 ruby gem, [rb-blink1](https://github.com/ngs/rb-blink1)
|
68
|
+
* All the Ruby guys & gals around the world :)
|
69
|
+
|
70
|
+
## Contributing/Making it better/Fixing my bugs ;)
|
61
71
|
|
62
72
|
1. Create your feature branch (`git checkout -b my-new-feature`)
|
63
73
|
2. Make changes whilst running guard (of course), & make sure all tests are green.
|
data/guard-blink1.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'guard-blink1'
|
3
|
-
s.version = '0.0.
|
3
|
+
s.version = '0.0.3'
|
4
4
|
s.date = '2013-05-10'
|
5
5
|
s.description = "guard output to blink1"
|
6
6
|
s.summary = "expects first line from guard result file, user guard file notification & guard-shell to outputs relevant colour to blink1"
|
data/lib/guard_blink1.rb
CHANGED
@@ -6,7 +6,7 @@ class GuardBlink1
|
|
6
6
|
COLOURS = {
|
7
7
|
'success' => '#0F0',
|
8
8
|
'failed' => '#F00',
|
9
|
-
'pending' => '#
|
9
|
+
'pending' => '#FFC300',
|
10
10
|
'off' => '#000',
|
11
11
|
'default' => '#777',
|
12
12
|
}
|
@@ -14,7 +14,6 @@ class GuardBlink1
|
|
14
14
|
class << self
|
15
15
|
def blink_colour(status)
|
16
16
|
colour = get_colour(status)
|
17
|
-
puts "BLINK: #{colour}"
|
18
17
|
set_colour(colour)
|
19
18
|
end
|
20
19
|
|
data/test/guard_blink1_test.rb
CHANGED
@@ -5,7 +5,7 @@ class GuardBlink1Test < Test::Unit::TestCase
|
|
5
5
|
def test_get_colour
|
6
6
|
assert_equal "#0F0", GuardBlink1.get_colour("success")
|
7
7
|
assert_equal "#F00", GuardBlink1.get_colour("failed")
|
8
|
-
assert_equal "#
|
8
|
+
assert_equal "#FFC300", GuardBlink1.get_colour("pending")
|
9
9
|
assert_equal "#000", GuardBlink1.get_colour("off")
|
10
10
|
assert_equal "#777", GuardBlink1.get_colour("default")
|
11
11
|
end
|