couchrest 1.0.0.beta → 1.0.0.beta2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -2
- data/couchrest.gemspec +7 -4
- data/lib/couchrest.rb +5 -9
- metadata +27 -4
data/Rakefile
CHANGED
@@ -25,9 +25,10 @@ begin
|
|
25
25
|
gemspec.files = %w( LICENSE README.md Rakefile THANKS.md history.txt couchrest.gemspec) + Dir["{examples,lib,spec,utils}/**/*"] - Dir["spec/tmp"]
|
26
26
|
gemspec.has_rdoc = true
|
27
27
|
gemspec.add_dependency("rest-client", ">= 1.5.1")
|
28
|
+
gemspec.add_dependency("json", "<= 1.4.2")
|
28
29
|
# gemspec.add_dependency("couchrest_extended_document", ">= 1.0.0")
|
29
30
|
gemspec.version = CouchRest::VERSION
|
30
|
-
gemspec.date = "
|
31
|
+
gemspec.date = "2010-07-01"
|
31
32
|
gemspec.require_path = "lib"
|
32
33
|
end
|
33
34
|
rescue LoadError
|
@@ -64,4 +65,4 @@ module Rake
|
|
64
65
|
end
|
65
66
|
|
66
67
|
Rake.remove_task("github:release")
|
67
|
-
Rake.remove_task("release")
|
68
|
+
Rake.remove_task("release")
|
data/couchrest.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{couchrest}
|
8
|
-
s.version = "1.0.0.
|
8
|
+
s.version = "1.0.0.beta2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["J. Chris Anderson", "Matt Aimonetti", "Marcos Tapajos", "Will Leinweber"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-07-01}
|
13
13
|
s.description = %q{CouchRest provides a simple interface on top of CouchDB's RESTful HTTP API, as well as including some utility scripts for managing views and attachments.}
|
14
14
|
s.email = %q{jchris@apache.org}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -73,7 +73,7 @@ Gem::Specification.new do |s|
|
|
73
73
|
s.homepage = %q{http://github.com/couchrest/couchrest}
|
74
74
|
s.rdoc_options = ["--charset=UTF-8"]
|
75
75
|
s.require_paths = ["lib"]
|
76
|
-
s.rubygems_version = %q{1.3.
|
76
|
+
s.rubygems_version = %q{1.3.7}
|
77
77
|
s.summary = %q{Lean and RESTful interface to CouchDB.}
|
78
78
|
s.test_files = [
|
79
79
|
"spec/couchrest/couchrest_spec.rb",
|
@@ -93,13 +93,16 @@ Gem::Specification.new do |s|
|
|
93
93
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
94
94
|
s.specification_version = 3
|
95
95
|
|
96
|
-
if Gem::Version.new(Gem::
|
96
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
97
97
|
s.add_runtime_dependency(%q<rest-client>, [">= 1.5.1"])
|
98
|
+
s.add_runtime_dependency(%q<json>, ["<= 1.4.2"])
|
98
99
|
else
|
99
100
|
s.add_dependency(%q<rest-client>, [">= 1.5.1"])
|
101
|
+
s.add_dependency(%q<json>, ["<= 1.4.2"])
|
100
102
|
end
|
101
103
|
else
|
102
104
|
s.add_dependency(%q<rest-client>, [">= 1.5.1"])
|
105
|
+
s.add_dependency(%q<json>, ["<= 1.4.2"])
|
103
106
|
end
|
104
107
|
end
|
105
108
|
|
data/lib/couchrest.rb
CHANGED
@@ -13,11 +13,9 @@
|
|
13
13
|
# limitations under the License.
|
14
14
|
|
15
15
|
require 'rubygems'
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
raise "No compatible json library found, install either json or json_pure gem" unless Kernel.const_defined?("JSON")
|
20
|
-
end
|
16
|
+
gem 'json', "<= 1.4.2"
|
17
|
+
require 'json'
|
18
|
+
gem 'rest-client', ">= 1.5.1"
|
21
19
|
require 'rest_client'
|
22
20
|
|
23
21
|
# Not sure why this is required, so removed until a reason is found!
|
@@ -30,7 +28,7 @@ require 'couchrest/rest_api'
|
|
30
28
|
|
31
29
|
# = CouchDB, close to the metal
|
32
30
|
module CouchRest
|
33
|
-
VERSION = '1.0.0.
|
31
|
+
VERSION = '1.0.0.beta2'
|
34
32
|
|
35
33
|
autoload :Server, 'couchrest/server'
|
36
34
|
autoload :Database, 'couchrest/database'
|
@@ -136,6 +134,4 @@ class CouchRest::ExtendedDocument < CouchRest::Document
|
|
136
134
|
raise "ExtendedDocument is no longer included in CouchRest base driver, see couchrest_extended_document gem"
|
137
135
|
end
|
138
136
|
|
139
|
-
end
|
140
|
-
|
141
|
-
|
137
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couchrest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: -1848230054
|
4
5
|
prerelease: true
|
5
6
|
segments:
|
6
7
|
- 1
|
7
8
|
- 0
|
8
9
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.0.
|
10
|
+
- beta2
|
11
|
+
version: 1.0.0.beta2
|
11
12
|
platform: ruby
|
12
13
|
authors:
|
13
14
|
- J. Chris Anderson
|
@@ -18,16 +19,18 @@ autorequire:
|
|
18
19
|
bindir: bin
|
19
20
|
cert_chain: []
|
20
21
|
|
21
|
-
date: 2010-
|
22
|
+
date: 2010-07-01 00:00:00 -03:00
|
22
23
|
default_executable:
|
23
24
|
dependencies:
|
24
25
|
- !ruby/object:Gem::Dependency
|
25
26
|
name: rest-client
|
26
27
|
prerelease: false
|
27
28
|
requirement: &id001 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
28
30
|
requirements:
|
29
31
|
- - ">="
|
30
32
|
- !ruby/object:Gem::Version
|
33
|
+
hash: 1
|
31
34
|
segments:
|
32
35
|
- 1
|
33
36
|
- 5
|
@@ -35,6 +38,22 @@ dependencies:
|
|
35
38
|
version: 1.5.1
|
36
39
|
type: :runtime
|
37
40
|
version_requirements: *id001
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: json
|
43
|
+
prerelease: false
|
44
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - <=
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
hash: 3
|
50
|
+
segments:
|
51
|
+
- 1
|
52
|
+
- 4
|
53
|
+
- 2
|
54
|
+
version: 1.4.2
|
55
|
+
type: :runtime
|
56
|
+
version_requirements: *id002
|
38
57
|
description: CouchRest provides a simple interface on top of CouchDB's RESTful HTTP API, as well as including some utility scripts for managing views and attachments.
|
39
58
|
email: jchris@apache.org
|
40
59
|
executables: []
|
@@ -107,16 +126,20 @@ rdoc_options:
|
|
107
126
|
require_paths:
|
108
127
|
- lib
|
109
128
|
required_ruby_version: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
110
130
|
requirements:
|
111
131
|
- - ">="
|
112
132
|
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
113
134
|
segments:
|
114
135
|
- 0
|
115
136
|
version: "0"
|
116
137
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
117
139
|
requirements:
|
118
140
|
- - ">"
|
119
141
|
- !ruby/object:Gem::Version
|
142
|
+
hash: 25
|
120
143
|
segments:
|
121
144
|
- 1
|
122
145
|
- 3
|
@@ -125,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
148
|
requirements: []
|
126
149
|
|
127
150
|
rubyforge_project:
|
128
|
-
rubygems_version: 1.3.
|
151
|
+
rubygems_version: 1.3.7
|
129
152
|
signing_key:
|
130
153
|
specification_version: 3
|
131
154
|
summary: Lean and RESTful interface to CouchDB.
|