grape-cli 0.2.2 → 0.2.3

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: 98a78fca4ad2ed7b4ff0011f4d7136bfe6631532
4
- data.tar.gz: 12c6e20d4701ce4f12ff982a77459eb7ac7f6f80
3
+ metadata.gz: e6f1ddc1ce1080a8a050e9cf4f4a2390c145396a
4
+ data.tar.gz: 8cf6e709f10e48f99d5ccda274c925ec1e093851
5
5
  SHA512:
6
- metadata.gz: 5547baf4b7274cba44ae79d402b0b153059c56706f949774d79dab8aab814a5a9ec82aff244a4f9d03396b9a2714453fd0f57068f070d1a16c223ba9f64d6d36
7
- data.tar.gz: 9ba742abb0f7b2d49949a0be5e4d2476adda1e42856a2f0ead89198429a23ebff08bd933c4c2717ff408dc2ce339baa166e1c73cc7dac64f5874d80d09a7706c
6
+ metadata.gz: 25db299c2db7bfb3952600e39318a1a0ceb11b4dd45a8549bbc81fc01abe5b4645a0375019981728bc0e0b27ba3d75e917fee4d95fecd64a8be22802f4a4f54d
7
+ data.tar.gz: 542a10a843736e01c9bb5e567cd1449df36b4e86c42d0cf69ee32c76f773c22c39e98b149b557e845a7b9e8116c1e624ec5e27425dd8617a8de5a66d86652628
@@ -34,7 +34,11 @@ task :environment do
34
34
  require File.expand_path('../config/environment', __FILE__)
35
35
  end
36
36
 
37
- task db: :environment
37
+ namespace :db do
38
+ task :environment do
39
+ require File.expand_path('../config/environment', __FILE__)
40
+ end
41
+ end
38
42
 
39
43
  task routes: :environment do
40
44
  <%= config[:app_name] %>::API.routes.each do |route|
@@ -5,6 +5,8 @@ require 'boot'
5
5
 
6
6
  Bundler.require :default, ENV['RACK_ENV']
7
7
 
8
+ Grape::ActiveRecord.configure_from_file!(File.expand_path('../database.yml', __FILE__))
9
+
8
10
  Dir[File.expand_path('../../app/models/*.rb', __FILE__)].each { |file| require file }
9
11
  Dir[File.expand_path('../../app/resources/*.rb', __FILE__)].each { |file| require file }
10
12
 
@@ -1,3 +1,3 @@
1
1
  module GrapeCli
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grape-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - wswidzinski
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2015-10-04 00:00:00.000000000 Z
14
+ date: 2016-06-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: thor