metrics-graphics-rails 2.4.0.2 → 2.4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/metrics-graphics-rails/version.rb +1 -2
- data/lib/metrics-graphics-rails/view_helpers.rb +4 -6
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MGRkZDNkMzIxMzA2MDgzOTBiMmZjZTQyZmViNjIxMjQxYmZmOThlOQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YWMwOGRjZWM3OWEwOTk4MjQ0ZTk2ZDk3NDk2NWRmNjU5ZDEzZGMzYQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjZmODQ5MGQ4ZDc2MzNmYTk0ZmQ2YThjN2FlNjNkNjkwMjE1ZTY5M2ViMTFh
|
10
|
+
MDMxNjIxZjhlMjEwODJiNjFhMTc4N2Q2YzZmNGUyN2FkMDhlOGNhM2I5MDRi
|
11
|
+
YTUxM2E0YjUyZmJmY2YzZDQzYmQzOTdiNmE5N2E4MWFiMzU1YzY=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YjhiOTQ5NDIzNjJjNTNlYzkwODYyMzA3NzEzYzUwZTY2MTgyMGIyYjcxMWQ4
|
14
|
+
NjMxMTk5ZWUxMDIyMGQ3MTNmNzEwNjYwNWVkMmM4OTIyMTJjNTExMzQ4YmIy
|
15
|
+
ODJlZWYzZDliMGFjMDk4MmFhYmQ2ZTg1MDFmZGUxOGYxMmZkMDE=
|
@@ -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], '
|
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, '
|
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.
|
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-
|
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: []
|