leanback 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -0
- data/VERSION +1 -1
- data/leanback.gemspec +11 -11
- data/lib/leanback.rb +1 -4
- data/spec/admin_party/database_spec.rb +27 -25
- data/spec/no_admin_party/database_spec.rb +8 -8
- data/spec/no_admin_party/non_admin_user_spec.rb +1 -1
- data/test/main.rb +70 -8
- data/test/my_views.json +1 -4
- metadata +104 -74
data/README.md
CHANGED
@@ -10,6 +10,9 @@ This project is still under development. Not complete by any means. I made this
|
|
10
10
|
* Use a minimalist Ruby DSL to access CouchDB
|
11
11
|
* provide a very easy way to persist and retrieve data
|
12
12
|
|
13
|
+
##Compatibility
|
14
|
+
Upgraded and tested on CouchDB 1.2.0. CouchDB 1.0.1 should still work fine.
|
15
|
+
|
13
16
|
##Usage
|
14
17
|
|
15
18
|
|
@@ -18,6 +21,8 @@ This project is still under development. Not complete by any means. I made this
|
|
18
21
|
+ [Installation](http://www.whisperservers.com/leanback/leanback/installation/)
|
19
22
|
|
20
23
|
+ [Basic CouchDB Operations](http://www.whisperservers.com/leanback/basic-couchdb-operations/)
|
24
|
+
|
25
|
+
+ [Find Documents by Key](http://www.whisperservers.com/leanback/find-documents-by-key/)
|
21
26
|
|
22
27
|
+ Working with [CouchDB Views](http://www.whisperservers.com/leanback/design-documents-and-permanent-views/)
|
23
28
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/leanback.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.3.
|
7
|
+
s.name = "leanback"
|
8
|
+
s.version = "0.3.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = [
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
11
|
+
s.authors = ["Obi Akubue"]
|
12
|
+
s.date = "2012-12-02"
|
13
|
+
s.description = "lightweight Ruby interface to CouchDB"
|
14
|
+
s.email = "obioraakubue@yahoo.com"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.md"
|
@@ -36,11 +36,11 @@ Gem::Specification.new do |s|
|
|
36
36
|
"test/my_views.json",
|
37
37
|
"test/test_leanback.rb"
|
38
38
|
]
|
39
|
-
s.homepage =
|
40
|
-
s.licenses = [
|
41
|
-
s.require_paths = [
|
42
|
-
s.rubygems_version =
|
43
|
-
s.summary =
|
39
|
+
s.homepage = "http://github.com/obi-a/leanback"
|
40
|
+
s.licenses = ["MIT"]
|
41
|
+
s.require_paths = ["lib"]
|
42
|
+
s.rubygems_version = "1.8.24"
|
43
|
+
s.summary = "lightweight Ruby interface to CouchDB"
|
44
44
|
s.test_files = [
|
45
45
|
"spec/admin_party/database_spec.rb",
|
46
46
|
"spec/no_admin_party/database_spec.rb",
|
data/lib/leanback.rb
CHANGED
@@ -348,10 +348,7 @@ def self.add_finder(options,auth_session = "")
|
|
348
348
|
"language" : "javascript",
|
349
349
|
"views" :{
|
350
350
|
"find_by_'+key+'" : {
|
351
|
-
"map" : "function(doc){
|
352
|
-
if(doc.'+key+')
|
353
|
-
emit(doc.'+key+',doc);
|
354
|
-
}"
|
351
|
+
"map" : "function(doc){ if(doc.'+key+') emit(doc.'+key+',doc);}"
|
355
352
|
}
|
356
353
|
}
|
357
354
|
}'
|
@@ -4,8 +4,9 @@ require 'spec_base.rb'
|
|
4
4
|
|
5
5
|
describe "CouchDB admin party " do
|
6
6
|
|
7
|
+
|
7
8
|
it "should create and delete a database" do
|
8
|
-
|
9
|
+
hash = Couchdb.create('staff')
|
9
10
|
hash.to_s.should == '{"ok"=>true}'
|
10
11
|
hash = Couchdb.all
|
11
12
|
hash.include?("staff").should == true
|
@@ -23,14 +24,15 @@ it "should create a database add a finder method to it and then delete the datab
|
|
23
24
|
doc = {:database => 'mobsters', :doc_id => '_design/email_finder'}
|
24
25
|
hash = Couchdb.view doc
|
25
26
|
hash["_id"].should == '_design/email_finder'
|
26
|
-
|
27
|
-
|
27
|
+
Couchdb.delete 'mobsters'
|
28
|
+
end
|
29
|
+
|
28
30
|
|
29
31
|
it "find items by key" do
|
30
|
-
docs = Couchdb.find_by({:database => '
|
32
|
+
docs = Couchdb.find_by({:database => 'friends', :lastname => 'winner'})
|
31
33
|
d = docs[0]
|
32
34
|
d["lastname"].should == "winner"
|
33
|
-
Couchdb.delete_doc({:database => '
|
35
|
+
Couchdb.delete_doc({:database => 'friends', :doc_id => '_design/lastname_finder'})
|
34
36
|
end
|
35
37
|
|
36
38
|
it "should create and view document doc" do
|
@@ -40,17 +42,17 @@ it "should create and view document doc" do
|
|
40
42
|
:email =>'james@mail.com',
|
41
43
|
:age =>'34',
|
42
44
|
:gender =>'male'}
|
43
|
-
doc = {:database => '
|
45
|
+
doc = {:database => 'friends', :doc_id => 'john', :data => data}
|
44
46
|
Couchdb.create_doc doc
|
45
47
|
|
46
|
-
doc = {:database => '
|
48
|
+
doc = {:database => 'friends', :doc_id => 'john'}
|
47
49
|
hash = Couchdb.view doc
|
48
50
|
hash["_id"].should == 'john'
|
49
51
|
end
|
50
52
|
|
51
53
|
it "should query a permanent view that doesn't exist and handle exception" do
|
52
54
|
begin
|
53
|
-
view = { :database => "
|
55
|
+
view = { :database => "friends", :design_doc => 'more_views', :view => 'get_user_email'}
|
54
56
|
Couchdb.find view
|
55
57
|
rescue CouchdbException => e
|
56
58
|
e.to_s.should == "CouchDB: Error - not_found. Reason - deleted"
|
@@ -59,7 +61,7 @@ it "should query a permanent view that doesn't exist and handle exception" do
|
|
59
61
|
end
|
60
62
|
|
61
63
|
it "should query a permanent view and create the view on the fly, if it doesn't already exist" do
|
62
|
-
view = {:database => '
|
64
|
+
view = {:database => 'friends',
|
63
65
|
:design_doc => 'my_views',
|
64
66
|
:view => 'get_emails',
|
65
67
|
:json_doc => '/home/obi/bin/my_views.json'}
|
@@ -68,10 +70,10 @@ it "should query a permanent view and create the view on the fly, if it doesn't
|
|
68
70
|
docs[0].include?("Email").should == true
|
69
71
|
docs[0].include?("Name").should == true
|
70
72
|
#verify that the view was created
|
71
|
-
doc = {:database => '
|
73
|
+
doc = {:database => 'friends', :doc_id => '_design/my_views'}
|
72
74
|
hash = Couchdb.view doc
|
73
75
|
hash["_id"].should == '_design/my_views'
|
74
|
-
Couchdb.delete_doc({:database => '
|
76
|
+
Couchdb.delete_doc({:database => 'friends', :doc_id => '_design/my_views'})
|
75
77
|
end
|
76
78
|
|
77
79
|
it "should query a permanent view by key and create the view on the fly, if it doesn't already exist" do
|
@@ -93,57 +95,57 @@ it "should query a permanent view by key and create the view on the fly, if it d
|
|
93
95
|
end
|
94
96
|
|
95
97
|
it "should create a design doc/permanent view and query it" do
|
96
|
-
doc = { :database => '
|
98
|
+
doc = { :database => 'friends', :design_doc => 'more_views', :json_doc => '/home/obi/bin/leanback/test/my_views.json' }
|
97
99
|
hash = Couchdb.create_design doc
|
98
100
|
hash["id"].should == '_design/more_views'
|
99
101
|
hash["ok"].should == true
|
100
102
|
|
101
|
-
view = { :database => "
|
103
|
+
view = { :database => "friends", :design_doc => 'more_views', :view => 'get_email'}
|
102
104
|
hash = Couchdb.find view
|
103
105
|
hash[0].has_key?("Firstname").should == true
|
104
106
|
hash[0].has_key?("Lastname").should == true
|
105
107
|
hash[0].has_key?("Email").should == true
|
106
108
|
|
107
|
-
doc = {:database => '
|
109
|
+
doc = {:database => 'friends', :doc_id => '_design/more_views'}
|
108
110
|
hash = Couchdb.view doc
|
109
111
|
hash["_id"].should == '_design/more_views'
|
110
|
-
Couchdb.delete_doc({:database => '
|
112
|
+
Couchdb.delete_doc({:database => 'friends', :doc_id => '_design/more_views'})
|
111
113
|
end
|
112
114
|
|
113
115
|
it "should return a list of all databases in the system" do
|
114
116
|
databases = Couchdb.all
|
115
|
-
databases.include?("
|
117
|
+
databases.include?("friends").should == true
|
116
118
|
end
|
117
119
|
|
118
120
|
it "should create a document" do
|
119
121
|
data = {:firstname => 'Nancy', :lastname =>'Lee', :phone => '347-808-3734',:email =>'nancy@mail.com',:gender => 'female'}
|
120
|
-
doc = {:database => '
|
122
|
+
doc = {:database => 'friends', :doc_id => 'Nancy', :data => data}
|
121
123
|
hash = Couchdb.create_doc doc
|
122
124
|
hash["id"].should == 'Nancy'
|
123
125
|
hash["ok"].should == true
|
124
126
|
|
125
|
-
doc = {:database => '
|
127
|
+
doc = {:database => 'friends', :doc_id => 'Nancy'}
|
126
128
|
hash = Couchdb.view doc
|
127
129
|
hash["_id"].should == 'Nancy'
|
128
130
|
hash["firstname"].should == 'Nancy'
|
129
131
|
hash["lastname"].should == 'Lee'
|
130
132
|
hash["phone"].should == '347-808-3734'
|
131
|
-
Couchdb.delete_doc({:database => '
|
133
|
+
Couchdb.delete_doc({:database => 'friends', :doc_id => 'Nancy'})
|
132
134
|
end
|
133
135
|
|
134
136
|
it "should update the document" do
|
135
137
|
data = {:age => "41", :lastname => "Stevens" }
|
136
|
-
doc = { :database => '
|
138
|
+
doc = { :database => 'friends', :doc_id => 'john', :data => data}
|
137
139
|
hash = Couchdb.update_doc doc
|
138
140
|
hash["id"].should == 'john'
|
139
141
|
hash["ok"].should == true
|
140
142
|
|
141
|
-
doc = {:database => '
|
143
|
+
doc = {:database => 'friends', :doc_id => 'john'}
|
142
144
|
hash = Couchdb.view doc
|
143
145
|
hash["_id"].should == 'john'
|
144
146
|
hash["age"].should == '41'
|
145
147
|
hash["lastname"].should == 'Stevens'
|
146
|
-
Couchdb.delete_doc({:database => '
|
148
|
+
Couchdb.delete_doc({:database => 'friends', :doc_id => 'john'})
|
147
149
|
end
|
148
150
|
|
149
151
|
|
@@ -153,15 +155,15 @@ it "should delete a document after creating it" do
|
|
153
155
|
:phone => '212-234-1234',
|
154
156
|
:email =>'james@mail.com'}
|
155
157
|
|
156
|
-
doc = {:database => '
|
158
|
+
doc = {:database => 'friends', :doc_id => 'Sun', :data => data}
|
157
159
|
Couchdb.create_doc doc
|
158
160
|
|
159
|
-
doc = {:database => '
|
161
|
+
doc = {:database => 'friends', :doc_id => 'Sun'}
|
160
162
|
hash = Couchdb.delete_doc doc
|
161
163
|
hash["id"].should == 'Sun'
|
162
164
|
hash["ok"].should == true
|
163
165
|
begin
|
164
|
-
doc = {:database => '
|
166
|
+
doc = {:database => 'friends', :doc_id => 'Sun'}
|
165
167
|
Couchdb.view doc
|
166
168
|
rescue CouchdbException => e
|
167
169
|
e.to_s.should == "CouchDB: Error - not_found. Reason - deleted"
|
@@ -15,25 +15,25 @@ Couchdb.port = "6980"
|
|
15
15
|
describe "CouchDB " do
|
16
16
|
|
17
17
|
it "should create and delete a database" do
|
18
|
-
hash = Couchdb.create('
|
18
|
+
hash = Couchdb.create('employees',@@auth_session)
|
19
19
|
hash.to_s.should == '{"ok"=>true}'
|
20
20
|
hash = Couchdb.all
|
21
|
-
hash.include?("
|
22
|
-
hash = Couchdb.delete '
|
23
|
-
hash.include?("
|
21
|
+
hash.include?("employees").should == true
|
22
|
+
hash = Couchdb.delete 'employees',@@auth_session
|
23
|
+
hash.include?("employees").should == false
|
24
24
|
end
|
25
25
|
|
26
26
|
it "should create a database add a finder method to it and then delete the database" do
|
27
|
-
Couchdb.create('
|
28
|
-
hash = Couchdb.add_finder({:database => '
|
27
|
+
Couchdb.create('wiseguys',@@auth_session)
|
28
|
+
hash = Couchdb.add_finder({:database => 'wiseguys', :key => 'email'},@@auth_session)
|
29
29
|
hash.include?("_design/email_finder").should == true
|
30
30
|
hash.include?("true").should == true
|
31
31
|
hash.include?("rev").should == true
|
32
32
|
|
33
|
-
doc = {:database => '
|
33
|
+
doc = {:database => 'wiseguys', :doc_id => '_design/email_finder'}
|
34
34
|
hash = Couchdb.view doc
|
35
35
|
hash["_id"].should == '_design/email_finder'
|
36
|
-
Couchdb.delete '
|
36
|
+
Couchdb.delete 'wiseguys',@@auth_session
|
37
37
|
end
|
38
38
|
|
39
39
|
it "find items by key" do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_base.rb'
|
2
2
|
|
3
3
|
#a day in the life of the non-admin user
|
4
|
-
hash = Couchdb.login(username = '
|
4
|
+
hash = Couchdb.login(username = 'david',password ='trusted')
|
5
5
|
@@auth_session = hash["AuthSession"]
|
6
6
|
|
7
7
|
hash = Couchdb.login(username = 'obi',password ='trusted')
|
data/test/main.rb
CHANGED
@@ -2,27 +2,89 @@ path = File.expand_path(File.dirname(__FILE__))
|
|
2
2
|
|
3
3
|
require path + "/helper.rb"
|
4
4
|
|
5
|
-
auth_session = "b2JpOjRFQzE5QThGOl1vWmoCx68CKvF2eJKrZnkCFv1c"
|
5
|
+
#auth_session = "b2JpOjRFQzE5QThGOl1vWmoCx68CKvF2eJKrZnkCFv1c"
|
6
6
|
|
7
7
|
|
8
8
|
data = {:section => "admins",
|
9
9
|
:key => "obi",
|
10
10
|
:value => "trusted"}
|
11
|
-
#Couchdb.set_config data
|
12
11
|
|
13
|
-
hash = Couchdb.
|
12
|
+
#hash = Couchdb.delete 'staff'
|
13
|
+
|
14
14
|
#puts hash.inspect
|
15
15
|
|
16
|
+
hash = Couchdb.login(username = 'obi',password ='trusted')
|
16
17
|
auth_session = hash["AuthSession"]
|
17
18
|
|
19
|
+
#user = { :username => "david", :password => "trusted", :roles => []}
|
20
|
+
#Couchdb.add_user(user, auth_session )
|
21
|
+
|
22
|
+
hash = Couchdb.delete 'staff',auth_session
|
23
|
+
|
24
|
+
#puts auth_session
|
25
|
+
|
26
|
+
#Couchdb.create 'contacts',auth_session
|
27
|
+
|
28
|
+
data = {:firstname => 'Linda',
|
29
|
+
:lastname =>'smith',
|
30
|
+
:phone => '212-234-1234',
|
31
|
+
:email =>'john@mail.com'}
|
32
|
+
|
33
|
+
doc = {:database => 'contacts', :doc_id => 'Linda', :data => data}
|
34
|
+
#Couchdb.create_doc doc,auth_session
|
35
|
+
|
36
|
+
data = {:email => "linda@mail.com" }
|
37
|
+
doc = { :database => 'contacts', :doc_id => 'Linda', :data => data}
|
38
|
+
#Couchdb.update_doc doc,auth_session
|
39
|
+
|
40
|
+
|
41
|
+
doc = {:database => 'contacts', :doc_id => 'Linda'}
|
42
|
+
#x= Couchdb.view doc,auth_session
|
43
|
+
|
44
|
+
#puts x.inspect
|
45
|
+
|
46
|
+
data = {:firstname => 'Linda',
|
47
|
+
:lastname =>'smith',
|
48
|
+
:email => 'linda@mail.com',
|
49
|
+
:gender=>'female',
|
50
|
+
:phone =>'718-245-5611',
|
51
|
+
:_rev=>'2-d663618eda3268b83f96140b8250bc9e'}
|
52
|
+
|
53
|
+
doc = {:database => 'contacts', :doc_id => 'Linda', :data => data}
|
54
|
+
#Couchdb.edit_doc doc,auth_session
|
55
|
+
|
56
|
+
doc = {:database => 'contacts', :doc_id => 'Linda'}
|
57
|
+
#x= Couchdb.view doc,auth_session
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
#puts x.inspect
|
62
|
+
|
63
|
+
#x = Couchdb.find_by({:database => 'contacts', :email => 'linda@mail.com'} , auth_session)
|
64
|
+
|
65
|
+
#puts x.inspect
|
66
|
+
|
67
|
+
|
68
|
+
#Couchdb.delete 'contacts',auth_session
|
69
|
+
|
70
|
+
#Couchdb.set_config data
|
71
|
+
|
72
|
+
#hash = Couchdb.login(username = 'obi',password ='trusted')
|
73
|
+
#puts hash.inspect
|
74
|
+
|
75
|
+
#auth_session = hash["AuthSession"]
|
76
|
+
|
77
|
+
|
78
|
+
#hash = Couchdb.add_finder({:database => 'mobsters', :key => 'email'})
|
79
|
+
|
18
80
|
new_password = 'ninja'
|
19
|
-
puts new_password
|
20
|
-
puts Couchdb.change_password(username = 'kent', new_password, auth_session)
|
81
|
+
#puts new_password
|
82
|
+
#puts Couchdb.change_password(username = 'kent', new_password, auth_session)
|
21
83
|
|
22
|
-
hash = Couchdb.login(username ,new_password)
|
23
|
-
user_auth_session = hash["AuthSession"]
|
84
|
+
#hash = Couchdb.login(username ,new_password)
|
85
|
+
#user_auth_session = hash["AuthSession"]
|
24
86
|
|
25
|
-
puts user_auth_session
|
87
|
+
#puts user_auth_session
|
26
88
|
|
27
89
|
#data = {:section => "httpd",
|
28
90
|
# :key => "port"}
|
data/test/my_views.json
CHANGED
@@ -2,10 +2,7 @@
|
|
2
2
|
"language" : "javascript",
|
3
3
|
"views" :{
|
4
4
|
"get_email" : {
|
5
|
-
"map" : "function(doc){
|
6
|
-
if(doc.lastname && doc.email)
|
7
|
-
emit(doc.id,{Firstname: doc.firstname, Lastname: doc.lastname, Email: doc.email});
|
8
|
-
}"
|
5
|
+
"map" : "function(doc){ if(doc.lastname && doc.email) emit(doc.id,{Firstname: doc.firstname, Lastname: doc.lastname, Email: doc.email}); }"
|
9
6
|
}
|
10
7
|
}
|
11
8
|
}
|
metadata
CHANGED
@@ -1,104 +1,136 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: leanback
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.3.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Obi Akubue
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-12-02 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: rest-client
|
17
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
18
17
|
none: false
|
19
|
-
requirements:
|
20
|
-
- -
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version:
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
27
31
|
name: yajl-ruby
|
28
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
29
33
|
none: false
|
30
|
-
requirements:
|
31
|
-
- -
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version:
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
38
47
|
name: shoulda
|
39
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
40
49
|
none: false
|
41
|
-
requirements:
|
42
|
-
- -
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version:
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
45
54
|
type: :development
|
46
55
|
prerelease: false
|
47
|
-
version_requirements:
|
48
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
49
63
|
name: bundler
|
50
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
51
65
|
none: false
|
52
|
-
requirements:
|
66
|
+
requirements:
|
53
67
|
- - ~>
|
54
|
-
- !ruby/object:Gem::Version
|
68
|
+
- !ruby/object:Gem::Version
|
55
69
|
version: 1.0.0
|
56
70
|
type: :development
|
57
71
|
prerelease: false
|
58
|
-
version_requirements:
|
59
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 1.0.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
60
79
|
name: jeweler
|
61
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
62
81
|
none: false
|
63
|
-
requirements:
|
82
|
+
requirements:
|
64
83
|
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
84
|
+
- !ruby/object:Gem::Version
|
66
85
|
version: 1.5.2
|
67
86
|
type: :development
|
68
87
|
prerelease: false
|
69
|
-
version_requirements:
|
70
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.5.2
|
94
|
+
- !ruby/object:Gem::Dependency
|
71
95
|
name: rcov
|
72
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
73
97
|
none: false
|
74
|
-
requirements:
|
75
|
-
- -
|
76
|
-
- !ruby/object:Gem::Version
|
77
|
-
version:
|
98
|
+
requirements:
|
99
|
+
- - ! '>='
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
78
102
|
type: :development
|
79
103
|
prerelease: false
|
80
|
-
version_requirements:
|
81
|
-
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
- !ruby/object:Gem::Dependency
|
82
111
|
name: rspec
|
83
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
84
113
|
none: false
|
85
|
-
requirements:
|
86
|
-
- -
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version:
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
89
118
|
type: :development
|
90
119
|
prerelease: false
|
91
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
92
126
|
description: lightweight Ruby interface to CouchDB
|
93
127
|
email: obioraakubue@yahoo.com
|
94
128
|
executables: []
|
95
|
-
|
96
129
|
extensions: []
|
97
|
-
|
98
|
-
extra_rdoc_files:
|
130
|
+
extra_rdoc_files:
|
99
131
|
- LICENSE.txt
|
100
132
|
- README.md
|
101
|
-
files:
|
133
|
+
files:
|
102
134
|
- .document
|
103
135
|
- Changelog.rdoc
|
104
136
|
- Gemfile
|
@@ -118,36 +150,34 @@ files:
|
|
118
150
|
- test/my_views.json
|
119
151
|
- test/test_leanback.rb
|
120
152
|
homepage: http://github.com/obi-a/leanback
|
121
|
-
licenses:
|
153
|
+
licenses:
|
122
154
|
- MIT
|
123
155
|
post_install_message:
|
124
156
|
rdoc_options: []
|
125
|
-
|
126
|
-
require_paths:
|
157
|
+
require_paths:
|
127
158
|
- lib
|
128
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
129
160
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
|
134
|
-
segments:
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
segments:
|
135
166
|
- 0
|
136
|
-
|
137
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
+
hash: 1267076556477492408
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
169
|
none: false
|
139
|
-
requirements:
|
140
|
-
- -
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version:
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
143
174
|
requirements: []
|
144
|
-
|
145
175
|
rubyforge_project:
|
146
|
-
rubygems_version: 1.8.
|
176
|
+
rubygems_version: 1.8.24
|
147
177
|
signing_key:
|
148
178
|
specification_version: 3
|
149
179
|
summary: lightweight Ruby interface to CouchDB
|
150
|
-
test_files:
|
180
|
+
test_files:
|
151
181
|
- spec/admin_party/database_spec.rb
|
152
182
|
- spec/no_admin_party/database_spec.rb
|
153
183
|
- spec/no_admin_party/non_admin_user_spec.rb
|