grape-activerecord 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/grape/activerecord/rake.rb +1 -0
- data/lib/grape/activerecord/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db11e3967b8ac70e5ee7004d84b1042f2f410ad8
|
4
|
+
data.tar.gz: 95572451c379d669fa4300abbbb9ebbebf172034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7773eafa3fcec4a436a98cd6cc6afaa0b823b9683255f141548972b41efa755f8bff244847aa7ac0da797d22d1ba80f014d3167a49df8dde33506a73d910abc3
|
7
|
+
data.tar.gz: 298980ee980a37fa068d63434abfcb64c8c583dbcf8401d9d1629930624abf94e86fb942b0c9d0809383328b1112e9fc175b00d0b2a48d8ba06334397ece3202
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ grape-activerecord looks for your database configuration in:
|
|
17
17
|
|
18
18
|
But if your app has more particular needs, we've got you covered:
|
19
19
|
|
20
|
-
Grape::ActiveRecord.database_file = "db.yml"
|
20
|
+
Grape::ActiveRecord.database_file = "elsewhere/db.yml"
|
21
21
|
Grape::ActiveRecord.database_url = "postgres://user:pass@host/db"
|
22
22
|
Grape::ActiveRecord.database = {adapter: "postgresql", host: "localhost", database: "db", username: "user", password: "pass", encoding: "utf8", pool: 10, timeout: 5000}
|
23
23
|
|
@@ -34,6 +34,9 @@ This will give you most of the standard `db:` tasks you get in Rails. Run `bundl
|
|
34
34
|
require "bundler/setup"
|
35
35
|
require "grape/activerecord/rake"
|
36
36
|
|
37
|
+
# NOTE If you set a custom db config in your app, you'll need to set it in your Rakefile too
|
38
|
+
# Grape::ActiveRecord.database_file = "elsewhere/db.yml"
|
39
|
+
|
37
40
|
namespace :db do
|
38
41
|
# Some db tasks require your app code to be loaded
|
39
42
|
task :environment do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: grape-activerecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordan Hollinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grape
|