leanback 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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 the Find by key works
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.0
1
+ 0.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{leanback}
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Obi Akubue"]
@@ -128,8 +128,8 @@ def self.find(doc,key=nil)
128
128
  end
129
129
  return rows
130
130
  rescue => e
131
- puts e.inspect
132
- #hash = Yajl::Parser.parse(e.response.to_s)
131
+ #puts e.inspect
132
+ hash = Yajl::Parser.parse(e.response.to_s)
133
133
  end
134
134
  end
135
135
 
@@ -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
- #puts hash.inspect
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
- - 0
9
- version: 0.2.0
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: 929290637
138
+ hash: 235560335
139
139
  segments:
140
140
  - 0
141
141
  version: "0"