couchrest 0.38 → 1.0.0.beta

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.
Files changed (77) hide show
  1. data/README.md +8 -8
  2. data/Rakefile +3 -4
  3. data/couchrest.gemspec +25 -105
  4. data/history.txt +5 -4
  5. data/lib/couchrest.rb +31 -52
  6. data/lib/couchrest/{core/database.rb → database.rb} +6 -11
  7. data/lib/couchrest/{core/design.rb → design.rb} +2 -2
  8. data/lib/couchrest/{core/document.rb → document.rb} +1 -1
  9. data/lib/couchrest/helper/attachments.rb +29 -0
  10. data/lib/couchrest/middlewares/logger.rb +3 -3
  11. data/lib/couchrest/monkeypatches.rb +1 -71
  12. data/lib/couchrest/{core/response.rb → response.rb} +0 -0
  13. data/lib/couchrest/{core/rest_api.rb → rest_api.rb} +8 -12
  14. data/lib/couchrest/{core/server.rb → server.rb} +0 -2
  15. data/spec/couchrest/{core/couchrest_spec.rb → couchrest_spec.rb} +15 -9
  16. data/spec/couchrest/{core/database_spec.rb → database_spec.rb} +4 -4
  17. data/spec/couchrest/{core/design_spec.rb → design_spec.rb} +2 -2
  18. data/spec/couchrest/{core/document_spec.rb → document_spec.rb} +1 -1
  19. data/spec/couchrest/{core/server_spec.rb → server_spec.rb} +2 -2
  20. data/spec/spec.opts +0 -1
  21. data/spec/spec_helper.rb +0 -4
  22. metadata +32 -133
  23. data/examples/model/example.rb +0 -144
  24. data/lib/couchrest/core/adapters/restclient.rb +0 -35
  25. data/lib/couchrest/core/http_abstraction.rb +0 -48
  26. data/lib/couchrest/core/view.rb +0 -4
  27. data/lib/couchrest/mixins.rb +0 -4
  28. data/lib/couchrest/mixins/attachments.rb +0 -31
  29. data/lib/couchrest/mixins/attribute_protection.rb +0 -74
  30. data/lib/couchrest/mixins/callbacks.rb +0 -532
  31. data/lib/couchrest/mixins/class_proxy.rb +0 -124
  32. data/lib/couchrest/mixins/collection.rb +0 -260
  33. data/lib/couchrest/mixins/design_doc.rb +0 -103
  34. data/lib/couchrest/mixins/document_queries.rb +0 -80
  35. data/lib/couchrest/mixins/extended_attachments.rb +0 -70
  36. data/lib/couchrest/mixins/extended_document_mixins.rb +0 -9
  37. data/lib/couchrest/mixins/properties.rb +0 -158
  38. data/lib/couchrest/mixins/validation.rb +0 -246
  39. data/lib/couchrest/mixins/views.rb +0 -173
  40. data/lib/couchrest/more/casted_model.rb +0 -58
  41. data/lib/couchrest/more/extended_document.rb +0 -310
  42. data/lib/couchrest/more/property.rb +0 -58
  43. data/lib/couchrest/more/typecast.rb +0 -180
  44. data/lib/couchrest/support/blank.rb +0 -42
  45. data/lib/couchrest/support/rails.rb +0 -42
  46. data/lib/couchrest/validation/auto_validate.rb +0 -157
  47. data/lib/couchrest/validation/contextual_validators.rb +0 -78
  48. data/lib/couchrest/validation/validation_errors.rb +0 -125
  49. data/lib/couchrest/validation/validators/absent_field_validator.rb +0 -74
  50. data/lib/couchrest/validation/validators/confirmation_validator.rb +0 -107
  51. data/lib/couchrest/validation/validators/format_validator.rb +0 -122
  52. data/lib/couchrest/validation/validators/formats/email.rb +0 -66
  53. data/lib/couchrest/validation/validators/formats/url.rb +0 -43
  54. data/lib/couchrest/validation/validators/generic_validator.rb +0 -120
  55. data/lib/couchrest/validation/validators/length_validator.rb +0 -139
  56. data/lib/couchrest/validation/validators/method_validator.rb +0 -89
  57. data/lib/couchrest/validation/validators/numeric_validator.rb +0 -109
  58. data/lib/couchrest/validation/validators/required_field_validator.rb +0 -114
  59. data/spec/couchrest/more/attribute_protection_spec.rb +0 -150
  60. data/spec/couchrest/more/casted_extended_doc_spec.rb +0 -73
  61. data/spec/couchrest/more/casted_model_spec.rb +0 -406
  62. data/spec/couchrest/more/extended_doc_attachment_spec.rb +0 -135
  63. data/spec/couchrest/more/extended_doc_inherited_spec.rb +0 -40
  64. data/spec/couchrest/more/extended_doc_spec.rb +0 -807
  65. data/spec/couchrest/more/extended_doc_subclass_spec.rb +0 -98
  66. data/spec/couchrest/more/extended_doc_view_spec.rb +0 -456
  67. data/spec/couchrest/more/property_spec.rb +0 -628
  68. data/spec/fixtures/more/article.rb +0 -35
  69. data/spec/fixtures/more/card.rb +0 -22
  70. data/spec/fixtures/more/cat.rb +0 -20
  71. data/spec/fixtures/more/course.rb +0 -22
  72. data/spec/fixtures/more/event.rb +0 -8
  73. data/spec/fixtures/more/invoice.rb +0 -17
  74. data/spec/fixtures/more/person.rb +0 -9
  75. data/spec/fixtures/more/question.rb +0 -6
  76. data/spec/fixtures/more/service.rb +0 -12
  77. data/spec/fixtures/more/user.rb +0 -22
@@ -2,7 +2,7 @@ require 'delegate'
2
2
 
3
3
  module CouchRest
4
4
  class Document < Response
5
- include CouchRest::Mixins::Attachments
5
+ include CouchRest::Attachments
6
6
 
7
7
  extlib_inheritable_accessor :database
8
8
  attr_accessor :database
@@ -0,0 +1,29 @@
1
+ module CouchRest
2
+ module Attachments
3
+
4
+ # saves an attachment directly to couchdb
5
+ def put_attachment(name, file, options={})
6
+ raise ArgumentError, "doc must be saved" unless self.rev
7
+ raise ArgumentError, "doc.database required to put_attachment" unless database
8
+ result = database.put_attachment(self, name, file, options)
9
+ self['_rev'] = result['rev']
10
+ result['ok']
11
+ end
12
+
13
+ # returns an attachment's data
14
+ def fetch_attachment(name)
15
+ raise ArgumentError, "doc must be saved" unless self.rev
16
+ raise ArgumentError, "doc.database required to put_attachment" unless database
17
+ database.fetch_attachment(self, name)
18
+ end
19
+
20
+ # deletes an attachment directly from couchdb
21
+ def delete_attachment(name, force=false)
22
+ raise ArgumentError, "doc.database required to delete_attachment" unless database
23
+ result = database.delete_attachment(self, name, force)
24
+ self['_rev'] = result['rev']
25
+ result['ok']
26
+ end
27
+
28
+ end
29
+ end
@@ -53,8 +53,8 @@ module CouchRest
53
53
  end
54
54
  end
55
55
 
56
- # inject our logger into CouchRest HTTP abstraction layer
57
- module HttpAbstraction
56
+ # inject our logger into key RestClient methods
57
+ module RestClient
58
58
 
59
59
  def self.get(uri, headers=nil)
60
60
  start_query = Time.now
@@ -260,4 +260,4 @@ end
260
260
  # end
261
261
  #
262
262
  # end
263
- # end
263
+ # end
@@ -1,5 +1,4 @@
1
1
  require File.join(File.dirname(__FILE__), 'support', 'class')
2
- require File.join(File.dirname(__FILE__), 'support', 'blank')
3
2
  require 'timeout'
4
3
 
5
4
  # This file must be loaded after the JSON gem and any other library that beats up the Time class.
@@ -15,16 +14,6 @@ class Time
15
14
  %("#{u.strftime("%Y/%m/%d %H:%M:%S +0000")}")
16
15
  end
17
16
 
18
- # Decodes the JSON time format to a UTC time.
19
- # Based on Time.parse from ActiveSupport. ActiveSupport's version
20
- # is more complete, returning a time in your current timezone,
21
- # rather than keeping the time in UTC. YMMV.
22
- # def self.parse string, fallback=nil
23
- # d = DateTime.parse(string).new_offset
24
- # self.utc(d.year, d.month, d.day, d.hour, d.min, d.sec)
25
- # rescue
26
- # fallback
27
- # end
28
17
  end
29
18
 
30
19
  # Monkey patch for faster net/http io
@@ -51,63 +40,4 @@ if RUBY_VERSION.to_f < 1.9
51
40
  end
52
41
  end
53
42
 
54
- # module RestClient
55
- # # def self.copy(url, headers={})
56
- # # Request.execute(:method => :copy,
57
- # # :url => url,
58
- # # :headers => headers)
59
- # # end
60
- #
61
- # # class Request
62
- # #
63
- # # def establish_connection(uri)
64
- # # Thread.current[:connection].finish if (Thread.current[:connection] && Thread.current[:connection].started?)
65
- # # p net_http_class
66
- # # net = net_http_class.new(uri.host, uri.port)
67
- # # net.use_ssl = uri.is_a?(URI::HTTPS)
68
- # # net.verify_mode = OpenSSL::SSL::VERIFY_NONE
69
- # # Thread.current[:connection] = net
70
- # # Thread.current[:connection].start
71
- # # Thread.current[:connection]
72
- # # end
73
- # #
74
- # # def transmit(uri, req, payload)
75
- # # setup_credentials(req)
76
- # #
77
- # # Thread.current[:host] ||= uri.host
78
- # # Thread.current[:port] ||= uri.port
79
- # #
80
- # # if (Thread.current[:connection].nil? || (Thread.current[:host] != uri.host))
81
- # # p "establishing a connection"
82
- # # establish_connection(uri)
83
- # # end
84
- # #
85
- # # display_log request_log
86
- # # http = Thread.current[:connection]
87
- # # http.read_timeout = @timeout if @timeout
88
- # #
89
- # # begin
90
- # # res = http.request(req, payload)
91
- # # rescue
92
- # # p "Net::HTTP connection failed, reconnecting"
93
- # # establish_connection(uri)
94
- # # http = Thread.current[:connection]
95
- # # require 'ruby-debug'
96
- # # req.body_stream = nil
97
- # #
98
- # # res = http.request(req, payload)
99
- # # display_log response_log(res)
100
- # # result res
101
- # # else
102
- # # display_log response_log(res)
103
- # # process_result res
104
- # # end
105
- # #
106
- # # rescue EOFError
107
- # # raise RestClient::ServerBrokeConnection
108
- # # rescue Timeout::Error
109
- # # raise RestClient::RequestTimeout
110
- # # end
111
- # # end
112
- #
113
- # end
43
+
@@ -1,16 +1,9 @@
1
1
  module RestAPI
2
2
 
3
- def default_headers
4
- {
5
- :content_type => :json,
6
- :accept => :json
7
- }
8
- end
9
-
10
3
  def put(uri, doc = nil)
11
4
  payload = doc.to_json if doc
12
5
  begin
13
- JSON.parse(HttpAbstraction.put(uri, payload, default_headers))
6
+ JSON.parse(RestClient.put(uri, payload))
14
7
  rescue Exception => e
15
8
  if $DEBUG
16
9
  raise "Error while sending a PUT request #{uri}\npayload: #{payload.inspect}\n#{e}"
@@ -22,7 +15,7 @@ module RestAPI
22
15
 
23
16
  def get(uri)
24
17
  begin
25
- JSON.parse(HttpAbstraction.get(uri, default_headers), :max_nesting => false)
18
+ JSON.parse(RestClient.get(uri), :max_nesting => false)
26
19
  rescue => e
27
20
  if $DEBUG
28
21
  raise "Error while sending a GET request #{uri}\n: #{e}"
@@ -35,7 +28,7 @@ module RestAPI
35
28
  def post(uri, doc = nil)
36
29
  payload = doc.to_json if doc
37
30
  begin
38
- JSON.parse(HttpAbstraction.post(uri, payload, default_headers))
31
+ JSON.parse(RestClient.post(uri, payload))
39
32
  rescue Exception => e
40
33
  if $DEBUG
41
34
  raise "Error while sending a POST request #{uri}\npayload: #{payload.inspect}\n#{e}"
@@ -46,11 +39,14 @@ module RestAPI
46
39
  end
47
40
 
48
41
  def delete(uri)
49
- JSON.parse(HttpAbstraction.delete(uri, default_headers))
42
+ JSON.parse(RestClient.delete(uri))
50
43
  end
51
44
 
52
45
  def copy(uri, destination)
53
- JSON.parse(HttpAbstraction.copy(uri, default_headers.merge('Destination' => destination)))
46
+ JSON.parse(RestClient::Request.execute( :method => :copy,
47
+ :url => uri,
48
+ :headers => {'Destination' => destination}
49
+ ).to_s)
54
50
  end
55
51
 
56
52
  end
@@ -73,8 +73,6 @@ module CouchRest
73
73
  # Restart the CouchDB instance
74
74
  def restart!
75
75
  CouchRest.post "#{@uri}/_restart"
76
- rescue RestClient::ServerBrokeConnection
77
- # Shouldn't really happen, but does in CouchDB 1.0.0
78
76
  end
79
77
 
80
78
  # Retrive an unused UUID from CouchDB. Server instances manage caching a list of unused UUIDs.
@@ -1,4 +1,4 @@
1
- require File.expand_path("../../../spec_helper", __FILE__)
1
+ require File.expand_path("../../spec_helper", __FILE__)
2
2
 
3
3
  describe CouchRest do
4
4
 
@@ -28,13 +28,6 @@ describe CouchRest do
28
28
 
29
29
  it "should restart" do
30
30
  @cr.restart!
31
- begin
32
- @cr.info
33
- rescue
34
- # Give the couchdb time to restart
35
- sleep 0.2
36
- retry
37
- end
38
31
  end
39
32
 
40
33
  it "should provide one-time access to uuids" do
@@ -181,11 +174,24 @@ describe CouchRest do
181
174
  describe "using a proxy for RestClient connections" do
182
175
  it "should set proxy url for RestClient" do
183
176
  CouchRest.proxy 'http://localhost:8888/'
184
- proxy_uri = URI.parse(HttpAbstraction.proxy)
177
+ proxy_uri = URI.parse(RestClient.proxy)
185
178
  proxy_uri.host.should eql( 'localhost' )
186
179
  proxy_uri.port.should eql( 8888 )
187
180
  CouchRest.proxy nil
188
181
  end
189
182
  end
190
183
 
184
+
185
+ describe "Including old ExtendedDocument library" do
186
+
187
+ it "should raise an exception" do
188
+ lambda do
189
+ class TestDoc < CouchRest::ExtendedDocument
190
+ attr_reader :fail
191
+ end
192
+ end.should raise_error(RuntimeError)
193
+ end
194
+
195
+ end
196
+
191
197
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path("../../../spec_helper", __FILE__)
1
+ require File.expand_path("../../spec_helper", __FILE__)
2
2
 
3
3
  describe CouchRest::Database do
4
4
  before(:each) do
@@ -391,7 +391,7 @@ describe CouchRest::Database do
391
391
 
392
392
  it "should force a delete even if we get a 409" do
393
393
  @doc['new_attribute'] = 'something new'
394
- @db.put_attachment(@doc, 'test', File.open(File.join(File.dirname(__FILE__), '..', '..', 'fixtures', 'attachments', 'test.html')).read)
394
+ @db.put_attachment(@doc, 'test', File.open(File.join(FIXTURE_PATH, 'attachments', 'test.html')).read)
395
395
  # at this point the revision number changed, if we try to save doc one more time
396
396
  # we would get a 409.
397
397
  lambda{ @db.save_doc(@doc) }.should raise_error
@@ -761,14 +761,14 @@ describe CouchRest::Database do
761
761
 
762
762
  shared_examples_for "continuously replicated" do
763
763
  it "contains the document from the original database" do
764
- sleep(1.5) # Allow some time to replicate
764
+ sleep(1) # Allow some time to replicate
765
765
  doc = @other_db.get('test_doc')
766
766
  doc['some-value'].should == 'foo'
767
767
  end
768
768
 
769
769
  it "contains documents saved after replication initiated" do
770
770
  @db.save_doc({'_id' => 'test_doc_after', 'some-value' => 'bar'})
771
- sleep(1.5) # Allow some time to replicate
771
+ sleep(1) # Allow some time to replicate
772
772
  doc = @other_db.get('test_doc_after')
773
773
  doc['some-value'].should == 'bar'
774
774
  end
@@ -1,4 +1,4 @@
1
- require File.expand_path("../../../spec_helper", __FILE__)
1
+ require File.expand_path("../../spec_helper", __FILE__)
2
2
 
3
3
  describe CouchRest::Design do
4
4
 
@@ -135,4 +135,4 @@ describe CouchRest::Design do
135
135
  end
136
136
  end
137
137
 
138
- end
138
+ end
@@ -1,4 +1,4 @@
1
- require File.expand_path("../../../spec_helper", __FILE__)
1
+ require File.expand_path("../../spec_helper", __FILE__)
2
2
 
3
3
  class Video < CouchRest::Document; end
4
4
 
@@ -1,4 +1,4 @@
1
- require File.expand_path("../../../spec_helper", __FILE__)
1
+ require File.expand_path("../../spec_helper", __FILE__)
2
2
 
3
3
  describe CouchRest::Server do
4
4
 
@@ -32,4 +32,4 @@ describe CouchRest::Server do
32
32
  end
33
33
  end
34
34
 
35
- end
35
+ end
@@ -3,4 +3,3 @@
3
3
  progress
4
4
  --loadby
5
5
  mtime
6
- --reverse
@@ -16,10 +16,6 @@ unless defined?(FIXTURE_PATH)
16
16
  DB = TEST_SERVER.database(TESTDB)
17
17
  end
18
18
 
19
- class Basic < CouchRest::ExtendedDocument
20
- use_database TEST_SERVER.default_database
21
- end
22
-
23
19
  def reset_test_db!
24
20
  DB.recreate! rescue nil
25
21
  DB
metadata CHANGED
@@ -1,11 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchrest
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ prerelease: true
5
5
  segments:
6
+ - 1
7
+ - 0
6
8
  - 0
7
- - 38
8
- version: "0.38"
9
+ - beta
10
+ version: 1.0.0.beta
9
11
  platform: ruby
10
12
  authors:
11
13
  - J. Chris Anderson
@@ -16,52 +18,23 @@ autorequire:
16
18
  bindir: bin
17
19
  cert_chain: []
18
20
 
19
- date: 2010-07-28 00:00:00 -03:00
21
+ date: 2010-06-15 00:00:00 -03:00
20
22
  default_executable:
21
23
  dependencies:
22
24
  - !ruby/object:Gem::Dependency
23
25
  name: rest-client
24
26
  prerelease: false
25
27
  requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- segments:
31
- - 0
32
- - 5
33
- version: "0.5"
34
- type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: mime-types
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
28
  requirements:
42
29
  - - ">="
43
30
  - !ruby/object:Gem::Version
44
31
  segments:
45
32
  - 1
46
- - 15
47
- version: "1.15"
48
- type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: json
52
- prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
54
- none: false
55
- requirements:
56
- - - "="
57
- - !ruby/object:Gem::Version
58
- segments:
33
+ - 5
59
34
  - 1
60
- - 2
61
- - 4
62
- version: 1.2.4
35
+ version: 1.5.1
63
36
  type: :runtime
64
- version_requirements: *id003
37
+ version_requirements: *id001
65
38
  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.
66
39
  email: jchris@apache.org
67
40
  executables: []
@@ -78,7 +51,6 @@ files:
78
51
  - Rakefile
79
52
  - THANKS.md
80
53
  - couchrest.gemspec
81
- - examples/model/example.rb
82
54
  - examples/word_count/markov
83
55
  - examples/word_count/views/books/chunked-map.js
84
56
  - examples/word_count/views/books/united-map.js
@@ -93,82 +65,29 @@ files:
93
65
  - lib/couchrest.rb
94
66
  - lib/couchrest/commands/generate.rb
95
67
  - lib/couchrest/commands/push.rb
96
- - lib/couchrest/core/adapters/restclient.rb
97
- - lib/couchrest/core/database.rb
98
- - lib/couchrest/core/design.rb
99
- - lib/couchrest/core/document.rb
100
- - lib/couchrest/core/http_abstraction.rb
101
- - lib/couchrest/core/response.rb
102
- - lib/couchrest/core/rest_api.rb
103
- - lib/couchrest/core/server.rb
104
- - lib/couchrest/core/view.rb
68
+ - lib/couchrest/database.rb
69
+ - lib/couchrest/design.rb
70
+ - lib/couchrest/document.rb
71
+ - lib/couchrest/helper/attachments.rb
105
72
  - lib/couchrest/helper/pager.rb
106
73
  - lib/couchrest/helper/streamer.rb
107
74
  - lib/couchrest/helper/upgrade.rb
108
75
  - lib/couchrest/middlewares/logger.rb
109
- - lib/couchrest/mixins.rb
110
- - lib/couchrest/mixins/attachments.rb
111
- - lib/couchrest/mixins/attribute_protection.rb
112
- - lib/couchrest/mixins/callbacks.rb
113
- - lib/couchrest/mixins/class_proxy.rb
114
- - lib/couchrest/mixins/collection.rb
115
- - lib/couchrest/mixins/design_doc.rb
116
- - lib/couchrest/mixins/document_queries.rb
117
- - lib/couchrest/mixins/extended_attachments.rb
118
- - lib/couchrest/mixins/extended_document_mixins.rb
119
- - lib/couchrest/mixins/properties.rb
120
- - lib/couchrest/mixins/validation.rb
121
- - lib/couchrest/mixins/views.rb
122
76
  - lib/couchrest/monkeypatches.rb
123
- - lib/couchrest/more/casted_model.rb
124
- - lib/couchrest/more/extended_document.rb
125
- - lib/couchrest/more/property.rb
126
- - lib/couchrest/more/typecast.rb
127
- - lib/couchrest/support/blank.rb
77
+ - lib/couchrest/response.rb
78
+ - lib/couchrest/rest_api.rb
79
+ - lib/couchrest/server.rb
128
80
  - lib/couchrest/support/class.rb
129
- - lib/couchrest/support/rails.rb
130
- - lib/couchrest/validation/auto_validate.rb
131
- - lib/couchrest/validation/contextual_validators.rb
132
- - lib/couchrest/validation/validation_errors.rb
133
- - lib/couchrest/validation/validators/absent_field_validator.rb
134
- - lib/couchrest/validation/validators/confirmation_validator.rb
135
- - lib/couchrest/validation/validators/format_validator.rb
136
- - lib/couchrest/validation/validators/formats/email.rb
137
- - lib/couchrest/validation/validators/formats/url.rb
138
- - lib/couchrest/validation/validators/generic_validator.rb
139
- - lib/couchrest/validation/validators/length_validator.rb
140
- - lib/couchrest/validation/validators/method_validator.rb
141
- - lib/couchrest/validation/validators/numeric_validator.rb
142
- - lib/couchrest/validation/validators/required_field_validator.rb
143
- - spec/couchrest/core/couchrest_spec.rb
144
- - spec/couchrest/core/database_spec.rb
145
- - spec/couchrest/core/design_spec.rb
146
- - spec/couchrest/core/document_spec.rb
147
- - spec/couchrest/core/server_spec.rb
81
+ - spec/couchrest/couchrest_spec.rb
82
+ - spec/couchrest/database_spec.rb
83
+ - spec/couchrest/design_spec.rb
84
+ - spec/couchrest/document_spec.rb
148
85
  - spec/couchrest/helpers/pager_spec.rb
149
86
  - spec/couchrest/helpers/streamer_spec.rb
150
- - spec/couchrest/more/attribute_protection_spec.rb
151
- - spec/couchrest/more/casted_extended_doc_spec.rb
152
- - spec/couchrest/more/casted_model_spec.rb
153
- - spec/couchrest/more/extended_doc_attachment_spec.rb
154
- - spec/couchrest/more/extended_doc_inherited_spec.rb
155
- - spec/couchrest/more/extended_doc_spec.rb
156
- - spec/couchrest/more/extended_doc_subclass_spec.rb
157
- - spec/couchrest/more/extended_doc_view_spec.rb
158
- - spec/couchrest/more/property_spec.rb
87
+ - spec/couchrest/server_spec.rb
159
88
  - spec/fixtures/attachments/README
160
89
  - spec/fixtures/attachments/couchdb.png
161
90
  - spec/fixtures/attachments/test.html
162
- - spec/fixtures/more/article.rb
163
- - spec/fixtures/more/card.rb
164
- - spec/fixtures/more/cat.rb
165
- - spec/fixtures/more/course.rb
166
- - spec/fixtures/more/event.rb
167
- - spec/fixtures/more/invoice.rb
168
- - spec/fixtures/more/person.rb
169
- - spec/fixtures/more/question.rb
170
- - spec/fixtures/more/service.rb
171
- - spec/fixtures/more/user.rb
172
91
  - spec/fixtures/views/lib.js
173
92
  - spec/fixtures/views/test_view/lib.js
174
93
  - spec/fixtures/views/test_view/only-map.js
@@ -188,7 +107,6 @@ rdoc_options:
188
107
  require_paths:
189
108
  - lib
190
109
  required_ruby_version: !ruby/object:Gem::Requirement
191
- none: false
192
110
  requirements:
193
111
  - - ">="
194
112
  - !ruby/object:Gem::Version
@@ -196,49 +114,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
196
114
  - 0
197
115
  version: "0"
198
116
  required_rubygems_version: !ruby/object:Gem::Requirement
199
- none: false
200
117
  requirements:
201
- - - ">="
118
+ - - ">"
202
119
  - !ruby/object:Gem::Version
203
120
  segments:
204
- - 0
205
- version: "0"
121
+ - 1
122
+ - 3
123
+ - 1
124
+ version: 1.3.1
206
125
  requirements: []
207
126
 
208
127
  rubyforge_project:
209
- rubygems_version: 1.3.7
128
+ rubygems_version: 1.3.6
210
129
  signing_key:
211
130
  specification_version: 3
212
131
  summary: Lean and RESTful interface to CouchDB.
213
132
  test_files:
214
- - spec/couchrest/core/couchrest_spec.rb
215
- - spec/couchrest/core/database_spec.rb
216
- - spec/couchrest/core/design_spec.rb
217
- - spec/couchrest/core/document_spec.rb
218
- - spec/couchrest/core/server_spec.rb
133
+ - spec/couchrest/couchrest_spec.rb
134
+ - spec/couchrest/database_spec.rb
135
+ - spec/couchrest/design_spec.rb
136
+ - spec/couchrest/document_spec.rb
219
137
  - spec/couchrest/helpers/pager_spec.rb
220
138
  - spec/couchrest/helpers/streamer_spec.rb
221
- - spec/couchrest/more/attribute_protection_spec.rb
222
- - spec/couchrest/more/casted_extended_doc_spec.rb
223
- - spec/couchrest/more/casted_model_spec.rb
224
- - spec/couchrest/more/extended_doc_attachment_spec.rb
225
- - spec/couchrest/more/extended_doc_inherited_spec.rb
226
- - spec/couchrest/more/extended_doc_spec.rb
227
- - spec/couchrest/more/extended_doc_subclass_spec.rb
228
- - spec/couchrest/more/extended_doc_view_spec.rb
229
- - spec/couchrest/more/property_spec.rb
230
- - spec/fixtures/more/article.rb
231
- - spec/fixtures/more/card.rb
232
- - spec/fixtures/more/cat.rb
233
- - spec/fixtures/more/course.rb
234
- - spec/fixtures/more/event.rb
235
- - spec/fixtures/more/invoice.rb
236
- - spec/fixtures/more/person.rb
237
- - spec/fixtures/more/question.rb
238
- - spec/fixtures/more/service.rb
239
- - spec/fixtures/more/user.rb
139
+ - spec/couchrest/server_spec.rb
240
140
  - spec/spec_helper.rb
241
- - examples/model/example.rb
242
141
  - examples/word_count/word_count.rb
243
142
  - examples/word_count/word_count_query.rb
244
143
  - examples/word_count/word_count_views.rb