guard-blink1 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
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
- ## Contributing/Making it better/Fixing my bugs ;)
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.
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'guard-blink1'
3
- s.version = '0.0.2'
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"
@@ -6,7 +6,7 @@ class GuardBlink1
6
6
  COLOURS = {
7
7
  'success' => '#0F0',
8
8
  'failed' => '#F00',
9
- 'pending' => '#FF0',
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
 
@@ -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 "#FF0", GuardBlink1.get_colour("pending")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-blink1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: