metrics-graphics-rails 2.4.0 → 2.4.0.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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDczZGI1NzVkNDNlOWFmMWNmNGFiZDJmZTRhOGRlZGMxNTA2YzVkMA==
5
- data.tar.gz: !binary |-
6
- OGY5YmQ0OTIyZGNjYTdmYWRlNzVjYzA3NzRlOWIzMjk0NTY5NWI2Mw==
2
+ SHA1:
3
+ metadata.gz: 5c8c2a3704586d161775ce6f988890a266c21a90
4
+ data.tar.gz: 6d21a1bc5869e60835e83538669831bcea1518f3
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDQwZmU0MDk1ZGEwYWZhZjkwNzQ1N2Y4ZDUxMjBmMWMxYjk5NjE2MWQ5ZTY3
10
- YmEzNTM5MjAyZTMwZGMwYjQ0MjFhYjIzMmVhYzAwYWI2Yzc0YzFjZGE4NzBl
11
- ZGFlNWZiNDljN2UxNmQ5ZmNiMzFkZjRiNjIyYzJhY2M5N2VjYjM=
12
- data.tar.gz: !binary |-
13
- MWI1OTBiZjQ5MGJiNmM2OWQ5MWE3NDMyOTc3N2Q2ZmU1MTcwYzQyMmNlZWU1
14
- NzI5MjZkNDQ4M2VmY2RjZGI3YTFhNWJmMjQ2ZDNmMDE3YjA3ODljOGE3MWE1
15
- ZjA2MTkyNGJjNDExYmYzMzRhMmM4MTdiMDk5YWIzYTlmMmNiMGE=
6
+ metadata.gz: f9c588ffbf79cb47acb3ee22027fe6f64103bf15f8b8eb33be0ce7480468a00ae6755d0d7972081c317d3ae713ff74f843a7a23b6d858a7481c03cfaa1144d51
7
+ data.tar.gz: 15533246928009f992aea620ca06a236bf419c80525291a95eda35bc9904649087db9cb986a3485e81dc4e4e896c011c3f730ef0d54701b3b40913217cfea52f
@@ -1,4 +1,4 @@
1
1
  module MetricsGraphicsRails
2
- VERSION = '2.4.0'
2
+ VERSION = '2.4.0.2'
3
3
  end
4
4
 
@@ -14,6 +14,8 @@ module MetricsGraphicsRails
14
14
  height = options.fetch(:height) { 250 }
15
15
  time_format = options.fetch(:time_format) { '%Y-%m-%d' }
16
16
  is_multiple = data.first.is_a?(Array)
17
+ extra_options = options[:extra_options] || {}
18
+ extra_options_to_options = extra_options.map{ |k,v| "#{k}: #{v}," }.join('')
17
19
 
18
20
  javascript_tag <<-SCRIPT
19
21
  var data = #{json_data};
@@ -27,6 +29,7 @@ module MetricsGraphicsRails
27
29
  width: #{width},
28
30
  height: #{height},
29
31
  target: '#{target}',
32
+ #{extra_options_to_options}
30
33
  x_accessor: '#{x_accessor}',
31
34
  y_accessor: '#{y_accessor}'
32
35
  });
metadata CHANGED
@@ -1,20 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metrics-graphics-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Gil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-22 00:00:00.000000000 Z
11
+ date: 2015-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ! '>='
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  - - <
@@ -24,7 +24,7 @@ dependencies:
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ! '>='
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.1'
30
30
  - - <
@@ -34,14 +34,14 @@ dependencies:
34
34
  name: json
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ! '>='
37
+ - - '>='
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ! '>='
44
+ - - '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  description: metrics-graphics for the Rails Assets Pipeline
@@ -69,12 +69,12 @@ require_paths:
69
69
  - lib
70
70
  required_ruby_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ! '>='
72
+ - - '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
- - - ! '>='
77
+ - - '>='
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []