mongo_mapper_connector 0.0.1 → 0.0.2
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 +1 -1
- data/lib/mongo_mapper_connector.rb +1 -1
- data/lib/mongo_mapper_connector/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -6,6 +6,6 @@ Just define your environment variables:
|
|
|
6
6
|
|
|
7
7
|
MONGO_HOST - Production mongo host, such as 'localhost' (defaults to localhost on development/test)
|
|
8
8
|
MONGO_PORT - Such as '27017' (defaults to 27017 on development/test)
|
|
9
|
-
|
|
9
|
+
MONGO_PREFIX - If this is 'ferret', your databases will be 'ferret-development', 'ferret-production'...
|
|
10
10
|
MONGO_USERNAME - Username for production database
|
|
11
11
|
MONGO_PASSWORD - Password for production database.
|
|
@@ -5,6 +5,6 @@ MongoMapper.connection =
|
|
|
5
5
|
Mongo::Connection.new 'localhost', 27017, :logger => Rails.logger
|
|
6
6
|
end
|
|
7
7
|
|
|
8
|
-
MongoMapper.database = [ENV['
|
|
8
|
+
MongoMapper.database = [ENV['MONGO_PREFIX'], Rails.env].join '-'
|
|
9
9
|
|
|
10
10
|
MongoMapper.database.authenticate(ENV['MONGO_USERNAME'], ENV['MONGO_PASSWORD']) if Rails.env.production?
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongo_mapper_connector
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 27
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.0.2
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Chris Hanks
|