panic_board_data 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,10 +26,11 @@ module PanicBoardData
26
26
  'title' => title,
27
27
  'color' => formatted_color,
28
28
  'type' => type.to_s,
29
- 'total' => total.to_s,
29
+ 'total' => total,
30
30
  'datasequences' => formatted_data_sequences
31
31
  }
32
32
  the_graph.delete('color') if the_graph['color'] == ''
33
+ the_graph.delete('total') unless the_graph['total'] == true
33
34
  the_graph
34
35
  end
35
36
 
@@ -1,3 +1,3 @@
1
1
  module PanicBoardData
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -48,7 +48,7 @@ describe PanicBoardData::Graph do
48
48
  end
49
49
 
50
50
  it "should set the total" do
51
- @result['graph']['total'].must_equal 'true'
51
+ @result['graph']['total'].must_equal true
52
52
  end
53
53
 
54
54
  it "should set the type" do
@@ -97,7 +97,7 @@ describe PanicBoardData::Graph do
97
97
  end
98
98
 
99
99
  it "should set the total" do
100
- @result['graph']['total'].must_equal 'false'
100
+ @result['graph'].keys.include?('total').must_equal false
101
101
  end
102
102
 
103
103
  it "should set the type" do
@@ -156,7 +156,7 @@ describe PanicBoardData::Graph do
156
156
  end
157
157
 
158
158
  it "should set the total" do
159
- @result['graph']['total'].must_equal 'true'
159
+ @result['graph']['total'].must_equal true
160
160
  end
161
161
 
162
162
  it "should set the type" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panic_board_data
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:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-05 00:00:00.000000000 Z
12
+ date: 2013-06-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -141,7 +141,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  segments:
143
143
  - 0
144
- hash: 2655303414096831975
144
+ hash: -3334913484776755300
145
145
  required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  none: false
147
147
  requirements:
@@ -150,10 +150,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  segments:
152
152
  - 0
153
- hash: 2655303414096831975
153
+ hash: -3334913484776755300
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 1.8.24
156
+ rubygems_version: 1.8.25
157
157
  signing_key:
158
158
  specification_version: 3
159
159
  summary: Export data for Panic Board