leanback 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/leanback.gemspec +1 -1
- data/lib/leanback.rb +2 -2
- data/test/test_leanback.rb +2 -2
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -88,7 +88,7 @@ Now to find documents by email key (example: to find all contacts with email = '
|
|
88
88
|
# => [{"_id"=>"Nancy", "_rev"=>"1-d15a83d2a23b495c19df2595b636ecc8", "firstname"=>"Nancy", "lastname"=>"Lee",
|
89
89
|
"phone"=>"347-808-3734", "email"=>"nancy@mail.com", "gender"=>"female"}]
|
90
90
|
|
91
|
-
====How
|
91
|
+
====How it works
|
92
92
|
The method
|
93
93
|
Couchdb.add_finder(:database => 'contacts', :key => 'email')
|
94
94
|
creates a new design document in the contacts database called _design/email_finder with a view called find_by_email
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/leanback.gemspec
CHANGED
data/lib/leanback.rb
CHANGED
data/test/test_leanback.rb
CHANGED
@@ -25,7 +25,7 @@ class TestLeanback < Test::Unit::TestCase
|
|
25
25
|
|
26
26
|
should "find items by key" do
|
27
27
|
docs = Couchdb.find_by( :database => 'contacts', :email => 'nancy@mail.com')
|
28
|
-
puts docs.inspect
|
28
|
+
#puts docs.inspect
|
29
29
|
end
|
30
30
|
|
31
31
|
should "view document doc" do
|
@@ -39,7 +39,7 @@ class TestLeanback < Test::Unit::TestCase
|
|
39
39
|
view = { :database => "contacts", :design_doc => 'more_views', :view => 'get_email'}
|
40
40
|
puts 'viewing design doc...'
|
41
41
|
hash = Couchdb.find view
|
42
|
-
|
42
|
+
puts hash.inspect
|
43
43
|
end
|
44
44
|
|
45
45
|
should "Create a design doc/permanent view" do
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 1
|
9
|
+
version: 0.2.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Obi Akubue
|
@@ -135,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
135
135
|
requirements:
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
hash:
|
138
|
+
hash: 235560335
|
139
139
|
segments:
|
140
140
|
- 0
|
141
141
|
version: "0"
|