grape-activerecord 1.0.0 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2c64bed54671c981f10740dd8c9aff825139ecd
4
- data.tar.gz: 4767e1ec312989eca3fdf8402581953c34293ecb
3
+ metadata.gz: db11e3967b8ac70e5ee7004d84b1042f2f410ad8
4
+ data.tar.gz: 95572451c379d669fa4300abbbb9ebbebf172034
5
5
  SHA512:
6
- metadata.gz: 6f4408ff1a8c8a2509b8e3e9a4118be9c456d2b5b3ce7b2e625a25970054ad6218332b6e29a6c8223caeb41d7262cf982b06290460941e8384b21e502efe4782
7
- data.tar.gz: 5c749482c3f5a820ae9f93b5f9cd614293bbe3ef3b9a8a052e6f12fd362b039b78f1d29eead8df8c25f84a50fb1f13ea35e72fc3ba2cec984e8854bcb773818d
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
@@ -1,3 +1,4 @@
1
1
  load "active_record/railties/databases.rake"
2
+ require "grape/activerecord"
2
3
  require "grape/activerecord/rake/activerecord_#{ActiveRecord::VERSION::MAJOR}"
3
4
  load "grape/activerecord/tasks.rake"
@@ -1,6 +1,6 @@
1
1
  module Grape
2
2
  module ActiveRecord
3
3
  # Gem version
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
6
6
  end
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.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-01 00:00:00.000000000 Z
11
+ date: 2015-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grape