opal-highcharts 0.1.1 → 0.1.2

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: 1d08409c708ece33c6ec981fe2a181258e31bd7e
4
- data.tar.gz: c102f3aedf955483d30a1b9002cc469b8430786a
3
+ metadata.gz: f81ed5d10754ee8a70cc09109da65637c6d95e6a
4
+ data.tar.gz: 7fecaea64303bb3cceffecc6cae3dff852eb6f72
5
5
  SHA512:
6
- metadata.gz: 09c83318246190c26ba317edd194012c676b9e33914afa64eaa32bb506ec642ca0db2a75b22a8b8c1321481b530ef94980a6295fb4677d91de6878502ce13c37
7
- data.tar.gz: 79d984e22a2f549f55cd7ae07899ff798c96265d35f39a8c9e9d60c2901180e01f20b553652fc5786e53ea48f27f68cf7e830145d06991fd2ca8c12e2f81a6a5
6
+ metadata.gz: 5ddcd6d4486e035818469b64da7c54e0dc494f825d576d1f53079109d6a0a90cddf441c40c80eb3e562057b915fc67c5e0d4cf95ff9f3c67d6046c608f25be83
7
+ data.tar.gz: ab9ca6a526caa07435c06d019fa0a917faf0b6a31f8e707f055ac88e3af6ce0affa0a04a6681e6f81a3b666154a71fa21d680c78c6f6dd56a32314afe2f87abe
data/.gitignore CHANGED
@@ -21,3 +21,4 @@ test/tmp
21
21
  test/version_tmp
22
22
  tmp
23
23
  highcharts.src.js
24
+ highcharts-more.src.js
@@ -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, array: Class
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[:array]
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, array: Series # requires ##alias_native patch
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, array: Point
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
@@ -1,7 +1,7 @@
1
1
  module Opal
2
2
 
3
3
  module Highcharts
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
6
6
 
7
7
  end
@@ -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 access to Highcharts and Highstock'
11
- spec.description = 'Opal DOM library for Highcharts and Highstock'
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.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-06 00:00:00.000000000 Z
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 DOM library for Highcharts and Highstock
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: '0'
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 access to Highcharts and Highstock
83
+ summary: Ruby Opal wrapper for Highcharts/Highstock JS.
84
84
  test_files:
85
85
  - spec/spec_helper.rb
86
86
  has_rdoc: