couch_tomato 0.1.0 → 0.1.1

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.
data/README.md CHANGED
@@ -40,7 +40,7 @@ CouchDB makes it dead-simple to manage multiple databases. For large data-sets,
40
40
 
41
41
  ### Each view determines the model for its values
42
42
 
43
- Views return arbitrary hashes. Often a views' value is an entire document (or more correctly, utilize `emit(key, null)` combined with `:include_docs => true`). But, a views' value is also often completely independent of the structure of the underlying documents.
43
+ Views return arbitrary hashes. Often a view's value is an entire document (or more correctly, utilize `emit(key, null)` combined with `:include_docs => true`). But, a view's value is also often completely independent of the structure of the underlying documents.
44
44
 
45
45
  Define views on the database rather than inside a model (this is arguably more Couch-like). Each views declaration stipulates whether their results should be 'raw' hashes or a particular model type.
46
46
 
@@ -11,7 +11,7 @@ module CouchTomato
11
11
 
12
12
  fs_docs = fs_design_docs(database_name)
13
13
  db_docs = db_design_docs(db)
14
-
14
+
15
15
  fs_docs.each do |design_name, fs_doc|
16
16
  db_doc = db_docs[design_name]
17
17
 
@@ -107,6 +107,7 @@ module CouchTomato
107
107
  end
108
108
  end
109
109
  end
110
+
110
111
  end
111
112
 
112
113
  end
@@ -115,7 +116,7 @@ module CouchTomato
115
116
  private
116
117
 
117
118
  def self.path(db_name="")
118
- "#{Rails.root}/db/views/#{db_name}" if Rails
119
+ "#{Rails.root}/couchdb/views/#{db_name}" if Rails
119
120
  end
120
121
 
121
122
  def self.fs_database_names
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couch_tomato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Plastic Trophy
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-18 00:00:00 -07:00
12
+ date: 2009-10-20 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency