metrix_db 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -1
- data/lib/metrix_db/version.rb +1 -1
- data/lib/metrix_db.rb +1 -0
- data/spec/metrix_db/where_spec.rb +6 -0
- metadata +4 -4
data/README.md
CHANGED
@@ -28,8 +28,15 @@ Usage
|
|
28
28
|
Query
|
29
29
|
-----
|
30
30
|
|
31
|
-
MyDB.where(:col1 => 1, :col2 => 2) # nil or instance of MyDB.
|
31
|
+
mydb = MyDB.where(:col1 => 1, :col2 => 2) # nil or instance of MyDB.
|
32
|
+
mydb.col1 # => 1
|
33
|
+
mydb.col2 # => 2
|
32
34
|
|
35
|
+
or alias :one
|
36
|
+
|
37
|
+
mydb = MyDB.on(:col1 => 1) # nil or instance of MyDB.
|
38
|
+
mydb.col1 # => 1
|
39
|
+
mydb.col2 # => 2
|
33
40
|
|
34
41
|
|
35
42
|
|
data/lib/metrix_db/version.rb
CHANGED
data/lib/metrix_db.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metrix_db
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Allen Wei
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-03-
|
18
|
+
date: 2011-03-09 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|