merb_relaxdb 1.1 → 1.11
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/Rakefile +1 -1
- data/lib/merb_relaxdb/connection.rb +2 -2
- metadata +21 -10
data/Rakefile
CHANGED
|
@@ -10,7 +10,7 @@ module Merb
|
|
|
10
10
|
def connect
|
|
11
11
|
begin
|
|
12
12
|
configure_db
|
|
13
|
-
Merb.logger.info "RelaxDB
|
|
13
|
+
Merb.logger.info "RelaxDB: #{::RelaxDB.db.uri}/_design/#{::RelaxDB.dd}"
|
|
14
14
|
rescue => e
|
|
15
15
|
uri = ::RelaxDB.db ? ::RelaxDB.db.uri : "<initialisation error>"
|
|
16
16
|
Merb.logger.fatal "RelaxDB could not connect to CouchDB at #{uri} \n\tRoot cause:#{e}\n#{e.backtrace.join("\n")}"
|
|
@@ -24,7 +24,7 @@ module Merb
|
|
|
24
24
|
config = full_config[Merb.environment.to_sym]
|
|
25
25
|
config[:logger] = Merb.logger
|
|
26
26
|
::RelaxDB.configure(config)
|
|
27
|
-
::RelaxDB.
|
|
27
|
+
::RelaxDB.db.name = config[:db]
|
|
28
28
|
else
|
|
29
29
|
copy_sample_config
|
|
30
30
|
Merb.logger.error! "No couchdb.yml file found in #{Merb.root}/config."
|
metadata
CHANGED
|
@@ -4,8 +4,8 @@ version: !ruby/object:Gem::Version
|
|
|
4
4
|
prerelease: false
|
|
5
5
|
segments:
|
|
6
6
|
- 1
|
|
7
|
-
-
|
|
8
|
-
version: "1.
|
|
7
|
+
- 11
|
|
8
|
+
version: "1.11"
|
|
9
9
|
platform: ruby
|
|
10
10
|
authors:
|
|
11
11
|
- Paul Carey
|
|
@@ -13,24 +13,35 @@ autorequire: merb_relaxdb
|
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
15
|
|
|
16
|
-
date: 2010-04-
|
|
16
|
+
date: 2010-04-10 00:00:00 +01:00
|
|
17
17
|
default_executable:
|
|
18
|
-
dependencies:
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
dependencies:
|
|
19
|
+
- !ruby/object:Gem::Dependency
|
|
20
|
+
name: merb-core
|
|
21
|
+
prerelease: false
|
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - ">="
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
segments:
|
|
27
|
+
- 1
|
|
28
|
+
- 0
|
|
29
|
+
version: "1.0"
|
|
30
|
+
type: :runtime
|
|
31
|
+
version_requirements: *id001
|
|
32
|
+
description:
|
|
21
33
|
email: paul.p.carey@gmail.com
|
|
22
34
|
executables: []
|
|
23
35
|
|
|
24
36
|
extensions: []
|
|
25
37
|
|
|
26
|
-
extra_rdoc_files:
|
|
27
|
-
|
|
28
|
-
- LICENSE
|
|
38
|
+
extra_rdoc_files: []
|
|
39
|
+
|
|
29
40
|
files:
|
|
30
41
|
- LICENSE
|
|
42
|
+
- Generators
|
|
31
43
|
- README.textile
|
|
32
44
|
- Rakefile
|
|
33
|
-
- Generators
|
|
34
45
|
- lib/generators/model.rb
|
|
35
46
|
- lib/generators/templates/model/app/models/%file_name%.rb
|
|
36
47
|
- lib/merb_relaxdb/connection.rb
|