geckoboard 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/geckoboard/version.rb +1 -1
- data/lib/geckoboard.rb +1 -1
- data/spec/lib/geckoboard_spec.rb +2 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca28759d411f33162f2238151dfa23898d76736
|
4
|
+
data.tar.gz: 0fda9d8356eefa1bd54134977297cd16acf11432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b312ec844becea0eb13b2685cb8e3941231146f4faeb8a55473842191040622062d1863255230b71eb0c73195156b4fa5bbf7b504446e71936cde111cc42184c
|
7
|
+
data.tar.gz: 5b0736a96aa00889306e7bce3c02eb75dc7c7049f06c6179fb7aac99a3db24fbe8258274cc8b3b55e6ec0760d427e466536a80693aed375d1c073bf1997d8cf8
|
data/lib/geckoboard/version.rb
CHANGED
data/lib/geckoboard.rb
CHANGED
@@ -24,7 +24,7 @@ class Geckoboard
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def self.list_item text, description, other_attributes = {}
|
27
|
-
|
27
|
+
other_attributes.merge({title: { text: text }, description: description})
|
28
28
|
end
|
29
29
|
|
30
30
|
def self.rag(red, amber, green)
|
data/spec/lib/geckoboard_spec.rb
CHANGED
@@ -90,14 +90,13 @@ describe Geckoboard do
|
|
90
90
|
let(:text) { 'text' }
|
91
91
|
let(:description) { 'description' }
|
92
92
|
let(:list_item) { Geckoboard.list_item(text, description) }
|
93
|
-
let(:parsed_list_item) { JSON.parse(list_item) }
|
94
93
|
|
95
94
|
it 'should have text' do
|
96
|
-
expect(
|
95
|
+
expect(list_item[:title][:text]).to eq text
|
97
96
|
end
|
98
97
|
|
99
98
|
it 'should have description' do
|
100
|
-
expect(
|
99
|
+
expect(list_item[:description]).to eq description
|
101
100
|
end
|
102
101
|
end
|
103
102
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geckoboard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nayeem Syed
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|