merb_relaxdb 1.1 → 1.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/merb_relaxdb/connection.rb +2 -2
  3. metadata +21 -10
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rake/gempackagetask'
3
3
 
4
4
  PLUGIN = "merb_relaxdb"
5
5
  GEM_NAME = "merb_relaxdb"
6
- GEM_VERSION = "1.1"
6
+ GEM_VERSION = "1.11"
7
7
  AUTHOR = "Paul Carey"
8
8
  EMAIL = "paul.p.carey@gmail.com"
9
9
  HOMEPAGE = "http://github.com/paulcarey/merb_relaxdb/"
@@ -10,7 +10,7 @@ module Merb
10
10
  def connect
11
11
  begin
12
12
  configure_db
13
- Merb.logger.info "RelaxDB connected to CouchDB #{::RelaxDB.db.uri}"
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.use_db(config[:db])
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
- - 1
8
- version: "1.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-29 00:00:00 +01:00
16
+ date: 2010-04-10 00:00:00 +01:00
17
17
  default_executable:
18
- dependencies: []
19
-
20
- description: Merb plugin that provides integration with CouchDB
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
- - README.textile
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