opal-highcharts 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/opal/highcharts/base.rb +2 -2
- data/lib/opal/highcharts/chart.rb +2 -2
- data/lib/opal/highcharts/series.rb +1 -1
- data/lib/opal/highcharts/version.rb +1 -1
- data/opal-highcharts.gemspec +3 -3
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f81ed5d10754ee8a70cc09109da65637c6d95e6a
|
4
|
+
data.tar.gz: 7fecaea64303bb3cceffecc6cae3dff852eb6f72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ddcd6d4486e035818469b64da7c54e0dc494f825d576d1f53079109d6a0a90cddf441c40c80eb3e562057b915fc67c5e0d4cf95ff9f3c67d6046c608f25be83
|
7
|
+
data.tar.gz: ab9ca6a526caa07435c06d019fa0a917faf0b6a31f8e707f055ac88e3af6ce0affa0a04a6681e6f81a3b666154a71fa21d680c78c6f6dd56a32314afe2f87abe
|
data/.gitignore
CHANGED
data/lib/opal/highcharts/base.rb
CHANGED
@@ -16,7 +16,7 @@ module Highcharts
|
|
16
16
|
|
17
17
|
# Patch of Native.alias_native to provide us
|
18
18
|
# with ability to specify:
|
19
|
-
# alias_native :ruby_name, :js_name,
|
19
|
+
# alias_native :ruby_name, :js_name, as_array_of: Class
|
20
20
|
# which will map the elements of the native array
|
21
21
|
# to elements type Class.
|
22
22
|
def alias_native(new, old = new, options = {})
|
@@ -25,7 +25,7 @@ module Highcharts
|
|
25
25
|
`#@native[#{old[0 .. -2]}] = #{Native.convert(value)}`
|
26
26
|
value
|
27
27
|
end
|
28
|
-
elsif klass = options[:
|
28
|
+
elsif klass = options[:as_array_of]
|
29
29
|
define_method new do |*args, &block|
|
30
30
|
if value = Native.call(@native, old, *args, &block)
|
31
31
|
value.map{ |e| klass.new(e) }
|
@@ -65,7 +65,7 @@ module Highcharts
|
|
65
65
|
|
66
66
|
# Removes the chart and purges memory.
|
67
67
|
# @see http://api.highcharts.com/highcharts#Chart.destroy
|
68
|
-
alias_native :destroy
|
68
|
+
alias_native :destroy, :destroy
|
69
69
|
|
70
70
|
# When the chart is drilled down to a child series,
|
71
71
|
# chart.drill_up will drill up to the parent series.
|
@@ -117,7 +117,7 @@ module Highcharts
|
|
117
117
|
# Returns an array of the series in the chart.
|
118
118
|
# @see http://api.highcharts.com/highstock#Chart.series
|
119
119
|
# @return [Array<Series>]
|
120
|
-
alias_native :series, :series,
|
120
|
+
alias_native :series, :series, as_array_of: Series # requires ##alias_native patch
|
121
121
|
|
122
122
|
|
123
123
|
# Change the title (but not subtitle) of the chart.
|
@@ -6,7 +6,7 @@ module Highcharts
|
|
6
6
|
|
7
7
|
alias_native :add_point, :addPoint
|
8
8
|
alias_native :chart, :chart, as: Chart
|
9
|
-
alias_native :data, :data,
|
9
|
+
alias_native :data, :data, as_array_of: Point
|
10
10
|
alias_native :hide
|
11
11
|
alias_native :name
|
12
12
|
alias_native :options # TODO: determine class for series options
|
data/opal-highcharts.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.authors = [ 'Colin Gunn' ]
|
8
8
|
spec.email = [ 'colgunn@icloud.com' ]
|
9
9
|
spec.homepage = 'http://github.com/balmoral/opal-highcharts'
|
10
|
-
spec.summary = 'Opal
|
11
|
-
spec.description = 'Opal
|
10
|
+
spec.summary = 'Ruby Opal wrapper for Highcharts/Highstock JS.'
|
11
|
+
spec.description = 'Ruby Opal wrapper for Highcharts/Highstock JS.'
|
12
12
|
spec.license = 'MIT'
|
13
13
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0")
|
@@ -16,7 +16,7 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
|
19
|
+
spec.required_ruby_version = '>= 1.9.3'
|
20
20
|
spec.add_runtime_dependency 'opal', '>= 0.8.0', '< 0.9.0'
|
21
21
|
# spec.add_development_dependency 'opal-rspec', '~> 0.4.0'
|
22
22
|
# spec.add_development_dependency 'yard'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opal-highcharts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colin Gunn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opal
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 0.9.0
|
33
|
-
description: Opal
|
33
|
+
description: Ruby Opal wrapper for Highcharts/Highstock JS.
|
34
34
|
email:
|
35
35
|
- colgunn@icloud.com
|
36
36
|
executables: []
|
@@ -69,7 +69,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
70
70
|
- - ">="
|
71
71
|
- !ruby/object:Gem::Version
|
72
|
-
version:
|
72
|
+
version: 1.9.3
|
73
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - ">="
|
@@ -80,7 +80,7 @@ rubyforge_project:
|
|
80
80
|
rubygems_version: 2.4.6
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
|
-
summary: Opal
|
83
|
+
summary: Ruby Opal wrapper for Highcharts/Highstock JS.
|
84
84
|
test_files:
|
85
85
|
- spec/spec_helper.rb
|
86
86
|
has_rdoc:
|