grosser-db_graph 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +3 -3
- data/VERSION.yml +1 -1
- data/lib/db_graph/line.rb +1 -0
- metadata +2 -2
data/README.markdown
CHANGED
@@ -19,14 +19,14 @@ Or as Rails plugin:
|
|
19
19
|
|
20
20
|
Usage
|
21
21
|
=====
|
22
|
-
Static interface for single lines
|
23
22
|
DBGraph::Line.url(:weeks, User, :created_at, :at=>Time.now)
|
24
23
|
|
25
24
|
Or instance interface for multiple lines
|
25
|
+
#everything
|
26
26
|
g = DBGraph::Line.new(:weeks)
|
27
27
|
|
28
|
-
#
|
29
|
-
g = DBGraph::Line.new(:weeks, :at=>Time.parse('2009-01-02'))
|
28
|
+
#selected interval (:at is expanded to a interval, here: 2009-2010)
|
29
|
+
g = DBGraph::Line.new(:weeks, :at=>Time.parse('2009-01-02'), :show_legend=>false)
|
30
30
|
|
31
31
|
g.add(User, :created_at)
|
32
32
|
g.add(Item, :sold_at, :label=>'Things we sold')
|
data/VERSION.yml
CHANGED
data/lib/db_graph/line.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grosser-db_graph
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-29 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|