couchdb 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +2 -0
  2. data/Rakefile +1 -1
  3. data/lib/couchdb/design.rb +3 -2
  4. metadata +74 -46
@@ -4,6 +4,8 @@
4
4
  The intend of this project is to provide a plain, straight-forward abstraction of the CouchDB REST API. The resources
5
5
  exposed by the API are simply wrapped into classes.
6
6
 
7
+ {<img src="http://travis-ci.org/phifty/couchdb.png" />}[http://travis-ci.org/phifty/couchdb]
8
+
7
9
  == An example
8
10
 
9
11
  server = CouchDB::Server.new "localhost", 5984
data/Rakefile CHANGED
@@ -35,7 +35,7 @@ end
35
35
 
36
36
  desc "Run all specs in spec directory"
37
37
  RSpec::Core::RakeTask.new do |task|
38
- task.pattern = "spec/gom/**/*_spec.rb"
38
+ task.pattern = "spec/lib/**/*_spec.rb"
39
39
  end
40
40
 
41
41
  namespace :spec do
@@ -16,11 +16,12 @@ module CouchDB
16
16
  end
17
17
 
18
18
  def id
19
- super.sub /^_design\//, ""
19
+ id = super
20
+ id ? id.sub(/^_design\//, "") : nil
20
21
  end
21
22
 
22
23
  def id=(value)
23
- super (value =~ /^_design\//) ? value : "_design/#{value}"
24
+ super((value =~ /^_design\//) ? value : "_design/#{value}")
24
25
  end
25
26
 
26
27
  def language
metadata CHANGED
@@ -1,58 +1,77 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: couchdb
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 21
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 2
9
+ - 1
10
+ version: 0.2.1
6
11
  platform: ruby
7
- authors:
8
- - Philipp Brüll
12
+ authors:
13
+ - "Philipp Br\xC3\xBCll"
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-08-26 00:00:00.000000000 +02:00
17
+
18
+ date: 2011-10-10 00:00:00 +02:00
13
19
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
16
22
  name: transport
17
- requirement: &20665540 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
18
25
  none: false
19
- requirements:
20
- - - ! '>='
21
- - !ruby/object:Gem::Version
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 21
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 1
22
34
  version: 1.0.1
23
35
  type: :runtime
24
- prerelease: false
25
- version_requirements: *20665540
26
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
27
38
  name: rspec
28
- requirement: &20664860 !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
29
41
  none: false
30
- requirements:
31
- - - ! '>='
32
- - !ruby/object:Gem::Version
33
- version: '2'
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ hash: 7
46
+ segments:
47
+ - 2
48
+ version: "2"
34
49
  type: :development
35
- prerelease: false
36
- version_requirements: *20664860
37
- - !ruby/object:Gem::Dependency
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
38
52
  name: reek
39
- requirement: &20664200 !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
40
55
  none: false
41
- requirements:
42
- - - ! '>='
43
- - !ruby/object:Gem::Version
44
- version: '1.2'
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 11
60
+ segments:
61
+ - 1
62
+ - 2
63
+ version: "1.2"
45
64
  type: :development
46
- prerelease: false
47
- version_requirements: *20664200
48
- description: A straight-forward client for CouchDB REST API. The resources exposed
49
- by the API are simply wrapped into classes.
65
+ version_requirements: *id003
66
+ description: A straight-forward client for CouchDB REST API. The resources exposed by the API are simply wrapped into classes.
50
67
  email: b.phifty@gmail.com
51
68
  executables: []
69
+
52
70
  extensions: []
53
- extra_rdoc_files:
71
+
72
+ extra_rdoc_files:
54
73
  - README.rdoc
55
- files:
74
+ files:
56
75
  - README.rdoc
57
76
  - LICENSE
58
77
  - Rakefile
@@ -84,29 +103,38 @@ files:
84
103
  has_rdoc: true
85
104
  homepage: http://github.com/phifty/couchdb
86
105
  licenses: []
106
+
87
107
  post_install_message:
88
108
  rdoc_options: []
89
- require_paths:
109
+
110
+ require_paths:
90
111
  - lib
91
- required_ruby_version: !ruby/object:Gem::Requirement
112
+ required_ruby_version: !ruby/object:Gem::Requirement
92
113
  none: false
93
- requirements:
94
- - - ! '>='
95
- - !ruby/object:Gem::Version
96
- version: '0'
97
- required_rubygems_version: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ hash: 3
118
+ segments:
119
+ - 0
120
+ version: "0"
121
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
122
  none: false
99
- requirements:
100
- - - ! '>='
101
- - !ruby/object:Gem::Version
102
- version: '0'
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
103
130
  requirements: []
131
+
104
132
  rubyforge_project: couchdb
105
133
  rubygems_version: 1.6.2
106
134
  signing_key:
107
135
  specification_version: 3
108
136
  summary: A straight-forward client for CouchDB REST API.
109
- test_files:
137
+ test_files:
110
138
  - spec/lib/couchdb/row_spec.rb
111
139
  - spec/lib/couchdb/database_spec.rb
112
140
  - spec/lib/couchdb/document_spec.rb