highcharts-js-rails 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## v0.1.4 (2012-03-17) ##
2
+
3
+ * Take into account the fact that sometimes the data passed to a Series may be an array of arrays.
4
+ * Remove Highcharts::VERSION constant.
5
+
1
6
  ## v0.1.3 (2012-03-17) ##
2
7
 
3
8
  * require Highcharts::Series.
@@ -1,10 +1,9 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
- require 'highcharts/version'
4
3
 
5
4
  Gem::Specification.new do |s|
6
5
  s.name = 'highcharts-js-rails'
7
- s.version = Highcharts::VERSION
6
+ s.version = '0.1.4'
8
7
  s.authors = ['Alex Robbin']
9
8
  s.email = ['agrobbin@gmail.com']
10
9
  s.homepage = 'https://github.com/agrobbin/highcharts-js-rails'
@@ -2,7 +2,7 @@ class Highcharts
2
2
  class Series < Base
3
3
 
4
4
  def to_json
5
- @options[:data] = options[:data].collect(&:to_f)
5
+ @options[:data] = options[:data].first.is_a?(Array) ? options[:data].collect {|d| [d.first, d.last.to_f]} : options[:data].collect(&:to_f)
6
6
  super
7
7
  end
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highcharts-js-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-17 00:00:00.000000000Z
12
+ date: 2012-03-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
16
- requirement: &70352064629440 !ruby/object:Gem::Requirement
16
+ requirement: &70162477888800 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70352064629440
24
+ version_requirements: *70162477888800
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70352064629020 !ruby/object:Gem::Requirement
27
+ requirement: &70162477888400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70352064629020
35
+ version_requirements: *70162477888400
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70352064628560 !ruby/object:Gem::Requirement
38
+ requirement: &70162477887940 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70352064628560
46
+ version_requirements: *70162477887940
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70352064628140 !ruby/object:Gem::Requirement
49
+ requirement: &70162477887520 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70352064628140
57
+ version_requirements: *70162477887520
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: simplecov
60
- requirement: &70352064627720 !ruby/object:Gem::Requirement
60
+ requirement: &70162477887100 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: '0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70352064627720
68
+ version_requirements: *70162477887100
69
69
  description: Easily configure a Highcharts JS chart for use in a Rails application
70
70
  email:
71
71
  - agrobbin@gmail.com
@@ -109,7 +109,6 @@ files:
109
109
  - lib/highcharts/series.rb
110
110
  - lib/highcharts/title.rb
111
111
  - lib/highcharts/tooltip.rb
112
- - lib/highcharts/version.rb
113
112
  - spec/highcharts/base_spec.rb
114
113
  - spec/spec_helper.rb
115
114
  - vendor/assets/javascripts/adapters/mootools.js
@@ -1,3 +0,0 @@
1
- class Highcharts
2
- VERSION = '0.1.3'
3
- end