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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79708932663895b34fe493508ba91ba429a8cda4
4
- data.tar.gz: 41058ee57144f13e9005e2bfc495f9fe1857dc16
3
+ metadata.gz: fca28759d411f33162f2238151dfa23898d76736
4
+ data.tar.gz: 0fda9d8356eefa1bd54134977297cd16acf11432
5
5
  SHA512:
6
- metadata.gz: 9a42d59818a9bae1f529b076b82a72a8cfc795a5aab95f4441206b08bcfedd255cce8dd1cf28f0aa2cc9622bbb76366d352b118dab703562519b29adc5c5492b
7
- data.tar.gz: f971f6475b4d18f78f21e4703bda60b18635e9233ced509fbe807f12284ea1dd2d2c7b8ed318ae1442830f05fd515da8f0c5a459fb17bdee5d058773baee8b0a
6
+ metadata.gz: b312ec844becea0eb13b2685cb8e3941231146f4faeb8a55473842191040622062d1863255230b71eb0c73195156b4fa5bbf7b504446e71936cde111cc42184c
7
+ data.tar.gz: 5b0736a96aa00889306e7bce3c02eb75dc7c7049f06c6179fb7aac99a3db24fbe8258274cc8b3b55e6ec0760d427e466536a80693aed375d1c073bf1997d8cf8
@@ -1,3 +1,3 @@
1
1
  class Geckoboard
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
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
- widget other_attributes.merge({title: { text: text }, description: description})
27
+ other_attributes.merge({title: { text: text }, description: description})
28
28
  end
29
29
 
30
30
  def self.rag(red, amber, green)
@@ -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(parsed_list_item['title']['text']).to eq text
95
+ expect(list_item[:title][:text]).to eq text
97
96
  end
98
97
 
99
98
  it 'should have description' do
100
- expect(parsed_list_item['description']).to eq description
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2014-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler