leanback 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -5
- data/Gemfile.lock +0 -13
- data/VERSION +1 -1
- data/leanback.gemspec +3 -6
- data/lib/leanback.rb +1 -2
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc085ec6e164beeabaeccdd80f191249dcc44b6a
|
4
|
+
data.tar.gz: a5324161b606705ce1dbd8a1d4fda8d524f4847e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c94f50ce7c4e28754476a9cbd53703b024053f277ba68fe00c27121018dbb065c8fa1b05161c491b204998e1eaccb9e12dd7cc860540777dedf21815c799f12
|
7
|
+
data.tar.gz: 7947ed72739f35ba60d82ba50a03fb714616dc53b6afd0ccab45106c16f0f6a422e36cffeefc22381f9c8877803372710ba9a9750f481fc6b2b69aeabd5b5a3f
|
data/Gemfile
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
source "http://rubygems.org"
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
gem "json_pure", "~> 1.8.3"
|
3
|
+
gem "rest-client"
|
4
|
+
gem "json_pure", "~> 1.8.3"
|
6
5
|
|
7
|
-
# Add dependencies to develop your gem here.
|
8
|
-
# Include everything needed to run rake, tests, features, etc.
|
9
6
|
group :development do
|
10
7
|
gem "pry"
|
11
8
|
gem "bundler"
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,7 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
activesupport (4.0.2)
|
5
|
-
i18n (~> 0.6, >= 0.6.4)
|
6
|
-
minitest (~> 4.2)
|
7
|
-
multi_json (~> 1.3)
|
8
|
-
thread_safe (~> 0.1)
|
9
|
-
tzinfo (~> 0.3.37)
|
10
4
|
addressable (2.3.6)
|
11
|
-
atomic (1.1.16)
|
12
5
|
builder (3.2.2)
|
13
6
|
coderay (1.1.0)
|
14
7
|
diff-lcs (1.1.2)
|
@@ -24,7 +17,6 @@ GEM
|
|
24
17
|
oauth2
|
25
18
|
hashie (2.1.1)
|
26
19
|
highline (1.6.21)
|
27
|
-
i18n (0.6.9)
|
28
20
|
jeweler (1.8.8)
|
29
21
|
builder
|
30
22
|
bundler (~> 1.0)
|
@@ -40,7 +32,6 @@ GEM
|
|
40
32
|
multi_json (>= 1.5)
|
41
33
|
method_source (0.8.2)
|
42
34
|
mime-types (1.25.1)
|
43
|
-
minitest (4.7.5)
|
44
35
|
multi_json (1.9.2)
|
45
36
|
multi_xml (0.5.5)
|
46
37
|
multipart-post (1.2.0)
|
@@ -70,15 +61,11 @@ GEM
|
|
70
61
|
diff-lcs (~> 1.1.2)
|
71
62
|
rspec-mocks (2.6.0)
|
72
63
|
slop (3.4.7)
|
73
|
-
thread_safe (0.3.1)
|
74
|
-
atomic (>= 1.1.7, < 2)
|
75
|
-
tzinfo (0.3.38)
|
76
64
|
|
77
65
|
PLATFORMS
|
78
66
|
ruby
|
79
67
|
|
80
68
|
DEPENDENCIES
|
81
|
-
activesupport
|
82
69
|
bundler
|
83
70
|
jeweler (~> 1.8.7)
|
84
71
|
json_pure (~> 1.8.3)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/leanback.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: leanback 0.5.
|
5
|
+
# stub: leanback 0.5.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "leanback"
|
9
|
-
s.version = "0.5.
|
9
|
+
s.version = "0.5.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Obi Akubue"]
|
14
|
-
s.date = "2016-03-
|
14
|
+
s.date = "2016-03-09"
|
15
15
|
s.description = "Simple Ruby interface to CouchDB"
|
16
16
|
s.email = "obioraakubue@yahoo.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -41,7 +41,6 @@ Gem::Specification.new do |s|
|
|
41
41
|
s.specification_version = 4
|
42
42
|
|
43
43
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 0"])
|
45
44
|
s.add_runtime_dependency(%q<rest-client>, [">= 0"])
|
46
45
|
s.add_runtime_dependency(%q<json_pure>, ["~> 1.8.3"])
|
47
46
|
s.add_development_dependency(%q<pry>, [">= 0"])
|
@@ -49,7 +48,6 @@ Gem::Specification.new do |s|
|
|
49
48
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.7"])
|
50
49
|
s.add_development_dependency(%q<rspec>, [">= 0"])
|
51
50
|
else
|
52
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
53
51
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
54
52
|
s.add_dependency(%q<json_pure>, ["~> 1.8.3"])
|
55
53
|
s.add_dependency(%q<pry>, [">= 0"])
|
@@ -58,7 +56,6 @@ Gem::Specification.new do |s|
|
|
58
56
|
s.add_dependency(%q<rspec>, [">= 0"])
|
59
57
|
end
|
60
58
|
else
|
61
|
-
s.add_dependency(%q<activesupport>, [">= 0"])
|
62
59
|
s.add_dependency(%q<rest-client>, [">= 0"])
|
63
60
|
s.add_dependency(%q<json_pure>, ["~> 1.8.3"])
|
64
61
|
s.add_dependency(%q<pry>, [">= 0"])
|
data/lib/leanback.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rest_client'
|
2
2
|
require 'json/pure'
|
3
|
-
require 'active_support/all'
|
4
3
|
|
5
4
|
module Leanback
|
6
5
|
class InvalidDatabaseName < StandardError; end
|
@@ -52,7 +51,7 @@ module Leanback
|
|
52
51
|
update_doc(doc_id, document_with_rev)
|
53
52
|
end
|
54
53
|
def view(design_doc_name, view_name, options = {})
|
55
|
-
api_request { RestClient.get "#{address_port}/#{db_uri}/#{URI.escape(design_doc_name)}/_view/#{URI.escape(view_name)}?#{options
|
54
|
+
api_request { RestClient.get "#{address_port}/#{db_uri}/#{URI.escape(design_doc_name)}/_view/#{URI.escape(view_name)}?#{URI.encode_www_form(options)}", cookies }
|
56
55
|
end
|
57
56
|
def where(hash, options = {})
|
58
57
|
search_term = hash.values
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leanback
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Obi Akubue
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: activesupport
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rest-client
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|