charted 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/charted.rb +2 -2
- metadata +2 -2
data/lib/charted.rb
CHANGED
@@ -19,7 +19,7 @@ DataMapper::Model.raise_on_save_failure = true
|
|
19
19
|
DataMapper::Property::String.length(255)
|
20
20
|
|
21
21
|
module Charted
|
22
|
-
VERSION = '0.0.
|
22
|
+
VERSION = '0.0.7'
|
23
23
|
GEOIP = GeoIP.new("#{File.dirname(__FILE__)}/../geoip.dat")
|
24
24
|
JS_FILE = "#{File.dirname(__FILE__)}/../public/charted/script.js"
|
25
25
|
|
@@ -492,7 +492,7 @@ module Charted
|
|
492
492
|
end
|
493
493
|
|
494
494
|
def add_truncated(table, rows)
|
495
|
-
rows = rows.sort_by { |r| r[
|
495
|
+
rows = rows.sort_by { |r| r[0].to_i }.reverse
|
496
496
|
if rows.length > 12
|
497
497
|
rows = rows[0..11]
|
498
498
|
rows << ['...', '...', '...']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charted
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: .
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-04-
|
12
|
+
date: 2013-04-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sinatra
|