metrics-graphics-rails 2.4.0.2 → 2.4.0.3

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,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5c8c2a3704586d161775ce6f988890a266c21a90
4
- data.tar.gz: 6d21a1bc5869e60835e83538669831bcea1518f3
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MGRkZDNkMzIxMzA2MDgzOTBiMmZjZTQyZmViNjIxMjQxYmZmOThlOQ==
5
+ data.tar.gz: !binary |-
6
+ YWMwOGRjZWM3OWEwOTk4MjQ0ZTk2ZDk3NDk2NWRmNjU5ZDEzZGMzYQ==
5
7
  SHA512:
6
- metadata.gz: f9c588ffbf79cb47acb3ee22027fe6f64103bf15f8b8eb33be0ce7480468a00ae6755d0d7972081c317d3ae713ff74f843a7a23b6d858a7481c03cfaa1144d51
7
- data.tar.gz: 15533246928009f992aea620ca06a236bf419c80525291a95eda35bc9904649087db9cb986a3485e81dc4e4e896c011c3f730ef0d54701b3b40913217cfea52f
8
+ metadata.gz: !binary |-
9
+ MjZmODQ5MGQ4ZDc2MzNmYTk0ZmQ2YThjN2FlNjNkNjkwMjE1ZTY5M2ViMTFh
10
+ MDMxNjIxZjhlMjEwODJiNjFhMTc4N2Q2YzZmNGUyN2FkMDhlOGNhM2I5MDRi
11
+ YTUxM2E0YjUyZmJmY2YzZDQzYmQzOTdiNmE5N2E4MWFiMzU1YzY=
12
+ data.tar.gz: !binary |-
13
+ YjhiOTQ5NDIzNjJjNTNlYzkwODYyMzA3NzEzYzUwZTY2MTgyMGIyYjcxMWQ4
14
+ NjMxMTk5ZWUxMDIyMGQ3MTNmNzEwNjYwNWVkMmM4OTIyMTJjNTExMzQ4YmIy
15
+ ODJlZWYzZDliMGFjMDk4MmFhYmQ2ZTg1MDFmZGUxOGYxMmZkMDE=
@@ -1,4 +1,3 @@
1
1
  module MetricsGraphicsRails
2
- VERSION = '2.4.0.2'
2
+ VERSION = '2.4.0.3'
3
3
  end
4
-
@@ -20,7 +20,7 @@ module MetricsGraphicsRails
20
20
  javascript_tag <<-SCRIPT
21
21
  var data = #{json_data};
22
22
 
23
- #{convert_data_js(data, time_format, is_multiple)}
23
+ #{convert_data_js(data, x_accessor, time_format, is_multiple)}
24
24
 
25
25
  MG.data_graphic({
26
26
  title: "#{title}",
@@ -38,18 +38,16 @@ module MetricsGraphicsRails
38
38
 
39
39
  private
40
40
 
41
- def convert_data_js(data, time_format, is_multiple)
41
+ def convert_data_js(data, x_accessor, time_format, is_multiple)
42
42
  if is_multiple
43
43
  <<-CONVERT
44
44
  for (var i = 0; i < data.length; i++) {
45
- data[i] = MG.convert.date(data[i], 'date', '#{time_format}');
45
+ data[i] = MG.convert.date(data[i], '#{x_accessor}', '#{time_format}');
46
46
  }
47
47
  CONVERT
48
48
  else
49
- "MG.convert.date(data, 'date', '#{time_format}');"
49
+ "MG.convert.date(data, '#{x_accessor}', '#{time_format}');"
50
50
  end
51
51
  end
52
52
  end
53
53
  end
54
-
55
-
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.2
4
+ version: 2.4.0.3
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-06-04 00:00:00.000000000 Z
11
+ date: 2015-09-22 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: []