couch-quilt 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc ADDED
@@ -0,0 +1,19 @@
1
+ == 0.3.0
2
+
3
+ * fixed and changed array mapping
4
+ * rolled out json mapping to module
5
+
6
+ == 0.2.3
7
+
8
+ * support _uuids
9
+ * changed array mapping from 000 to 0i
10
+
11
+ == 0.2.2
12
+
13
+ * fixed list for databases without design documents
14
+ * --debug option
15
+ * changed command line argument order
16
+
17
+ == 0.2.1
18
+
19
+ * First release
@@ -1,27 +1,23 @@
1
- Quilt
2
- =====
1
+ == Quilt
3
2
 
4
3
  Read and write CouchDB documents via FUSE userspace filesystem
5
4
 
6
5
 
7
- Install dependencies
8
- --------------------
6
+ == Install dependencies
9
7
 
10
- apt-get install ruby rubygems libfusefs-ruby
8
+ apt-get install ruby rubygems libfusefs-ruby
11
9
 
12
10
 
13
- Install Quilt
14
- -------------
11
+ == Install Quilt
15
12
 
16
- gem install couch-quilt
13
+ gem install couch-quilt
17
14
 
18
15
 
19
- Getting started
20
- ---------------
16
+ == Getting started
21
17
 
22
18
  start quilt by typing
23
19
 
24
- couchquilt mountpoint [server] [--debug]
20
+ couchquilt mountpoint [server] [--debug]
25
21
 
26
22
 
27
23
  Your mapped CouchDB will now be available at *mountpoint*.
@@ -30,4 +26,4 @@ You can create databases and documents with mkdir, add properties via echo >> an
30
26
  Databases and documents can be deleted via a touch /database_id/_delete or /database_id/document_id/_delete.
31
27
 
32
28
 
33
- Read more on the [projectpage](http://jo.github.com/quilt/).
29
+ Read more on http://jo.github.com/quilt.
data/Rakefile CHANGED
@@ -30,6 +30,9 @@ begin
30
30
  s.description = "Access CouchDB JSON documents from filesystem."
31
31
  s.authors = ['Johannes Jörg Schmidt']
32
32
  s.rubyforge_project = "couch-quilt"
33
+ s.add_dependency "rest-client", ">= 1.4.1"
34
+ s.add_dependency "json_pure", ">= 1.2.2"
35
+ s.add_development_dependency "rspec", ">= 1.2.9"
33
36
  #s.files = FileList["[A-Z]*(.rdoc)", "{bin,lib,spec}/**/*", "README.md", "INSTALL", "Rakefile"]
34
37
  end
35
38
 
data/couch-quilt.gemspec CHANGED
@@ -5,22 +5,23 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{couch-quilt}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Johannes J\303\266rg Schmidt"]
12
- s.date = %q{2010-02-26}
12
+ s.date = %q{2010-03-17}
13
13
  s.default_executable = %q{couchquilt}
14
14
  s.description = %q{Access CouchDB JSON documents from filesystem.}
15
15
  s.email = %q{schmidt@netzmerk.com}
16
16
  s.executables = ["couchquilt"]
17
17
  s.extra_rdoc_files = [
18
- "README.md"
18
+ "README.rdoc"
19
19
  ]
20
20
  s.files = [
21
21
  ".gitignore",
22
+ "CHANGELOG.rdoc",
22
23
  "INSTALL",
23
- "README.md",
24
+ "README.rdoc",
24
25
  "Rakefile",
25
26
  "bin/couchquilt",
26
27
  "couch-quilt.gemspec",
@@ -38,7 +39,7 @@ Gem::Specification.new do |s|
38
39
  s.rdoc_options = ["--charset=UTF-8"]
39
40
  s.require_paths = ["lib"]
40
41
  s.rubyforge_project = %q{couch-quilt}
41
- s.rubygems_version = %q{1.3.5}
42
+ s.rubygems_version = %q{1.3.6}
42
43
  s.summary = %q{Access CouchDB from filesystem.}
43
44
  s.test_files = [
44
45
  "spec/spec_helper.rb",
@@ -51,9 +52,18 @@ Gem::Specification.new do |s|
51
52
  s.specification_version = 3
52
53
 
53
54
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
55
+ s.add_runtime_dependency(%q<rest-client>, [">= 1.4.1"])
56
+ s.add_runtime_dependency(%q<json_pure>, [">= 1.2.2"])
57
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
54
58
  else
59
+ s.add_dependency(%q<rest-client>, [">= 1.4.1"])
60
+ s.add_dependency(%q<json_pure>, [">= 1.2.2"])
61
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
55
62
  end
56
63
  else
64
+ s.add_dependency(%q<rest-client>, [">= 1.4.1"])
65
+ s.add_dependency(%q<json_pure>, [">= 1.2.2"])
66
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
57
67
  end
58
68
  end
59
69
 
@@ -8,7 +8,7 @@ module Couchquilt
8
8
  # initiates a GET request and returns the JSON parsed response
9
9
  def get(path)
10
10
  response = RestClient.get(url_for(path))
11
- JSON.parse(response) rescue response
11
+ JSON.parse(response.body) rescue response.body
12
12
  rescue RestClient::ResourceNotFound
13
13
  nil
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Couchquilt
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch-quilt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 3
8
+ - 1
9
+ version: 0.3.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - "Johannes J\xC3\xB6rg Schmidt"
@@ -9,10 +14,51 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2010-02-26 00:00:00 +01:00
17
+ date: 2010-03-17 00:00:00 +01:00
13
18
  default_executable: couchquilt
14
- dependencies: []
15
-
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rest-client
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 4
30
+ - 1
31
+ version: 1.4.1
32
+ type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: json_pure
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 1
43
+ - 2
44
+ - 2
45
+ version: 1.2.2
46
+ type: :runtime
47
+ version_requirements: *id002
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec
50
+ prerelease: false
51
+ requirement: &id003 !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ segments:
56
+ - 1
57
+ - 2
58
+ - 9
59
+ version: 1.2.9
60
+ type: :development
61
+ version_requirements: *id003
16
62
  description: Access CouchDB JSON documents from filesystem.
17
63
  email: schmidt@netzmerk.com
18
64
  executables:
@@ -20,11 +66,12 @@ executables:
20
66
  extensions: []
21
67
 
22
68
  extra_rdoc_files:
23
- - README.md
69
+ - README.rdoc
24
70
  files:
25
71
  - .gitignore
72
+ - CHANGELOG.rdoc
26
73
  - INSTALL
27
- - README.md
74
+ - README.rdoc
28
75
  - Rakefile
29
76
  - bin/couchquilt
30
77
  - couch-quilt.gemspec
@@ -50,18 +97,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
97
  requirements:
51
98
  - - ">="
52
99
  - !ruby/object:Gem::Version
100
+ segments:
101
+ - 0
53
102
  version: "0"
54
- version:
55
103
  required_rubygems_version: !ruby/object:Gem::Requirement
56
104
  requirements:
57
105
  - - ">="
58
106
  - !ruby/object:Gem::Version
107
+ segments:
108
+ - 0
59
109
  version: "0"
60
- version:
61
110
  requirements: []
62
111
 
63
112
  rubyforge_project: couch-quilt
64
- rubygems_version: 1.3.5
113
+ rubygems_version: 1.3.6
65
114
  signing_key:
66
115
  specification_version: 3
67
116
  summary: Access CouchDB from filesystem.