gris 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 550e4f144b637368714bd390e68c236e0a67aae7
4
- data.tar.gz: 2160f95e41f042d8f695a11d6a93291c22cd04f3
3
+ metadata.gz: 55ae6febff9cf2532144a37b41d2d4fbb613ff34
4
+ data.tar.gz: a3d0a3d7c8df09f003d40a375c798205f56e2aa4
5
5
  SHA512:
6
- metadata.gz: d8dc4e8525516860bbea7fa3801638aefe3af742f51ca37dff86fc3d82fd5a3d50afd5d35632123cf5b6ced2378ae8690e0a71b18511c8c01e7c00a0418d6cbb
7
- data.tar.gz: 274ef5d32c0e21e8ab21d77e0e6f859fe9c5ffc5155b00b52d5c73fa8bb18b09d36061459aceef15cef14600be70722570c83657de4323aa2db4190f2330837a
6
+ metadata.gz: 36fa488ffa15e6b5bdb8609f49c4c1238f2d053eeacb114ea129ce2d6fd8cb2635db4421dbd0233b584a40c101621bf82cc7aaa53a803e1beb9b9367fbc0a45a
7
+ data.tar.gz: f5a3058a2b00e558c017fbbbafe029335adf37585673b2c2cd6be1973f5794183a55bd6468870b07008fc3a4935527606d94b256d09f728eecec7c8518ec683d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gris (0.5.0)
4
+ gris (0.5.1)
5
5
  activesupport (~> 4.2, >= 4.2.0)
6
6
  chronic (~> 0.10.0)
7
7
  dalli (~> 2.7)
@@ -164,7 +164,7 @@ GEM
164
164
  thread_safe (0.3.5)
165
165
  tzinfo (1.2.2)
166
166
  thread_safe (~> 0.1)
167
- uber (0.0.14)
167
+ uber (0.0.15)
168
168
  uri_template (0.7.0)
169
169
  virtus (1.0.5)
170
170
  axiom-types (~> 0.1)
@@ -187,6 +187,3 @@ DEPENDENCIES
187
187
  hyperclient
188
188
  rspec (~> 3.3)
189
189
  rubocop
190
-
191
- BUNDLED WITH
192
- 1.10.6
@@ -3,8 +3,8 @@ require File.expand_path('../boot', __FILE__)
3
3
  # autoload initalizers
4
4
  Dir['./config/initializers/**/*.rb'].map { |file| require file }
5
5
 
6
- # autoload app
7
- relative_load_paths = %w(app/endpoints app/presenters app/models)
6
+ # Autoload directories within /app
7
+ relative_load_paths = Dir.glob 'app/**/*/'
8
8
  ActiveSupport::Dependencies.autoload_paths += relative_load_paths
9
9
 
10
10
  module <%= app_name.classify %>
@@ -1,5 +1,5 @@
1
1
  module Gris
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
 
4
4
  class Version
5
5
  class << self
@@ -59,6 +59,21 @@ describe Gris::Generators::ScaffoldGenerator do
59
59
  expect(gemfile).to match(/gem 'gris_paginator'/)
60
60
  end
61
61
 
62
+ it 'generates a config/application.rb file' do
63
+ expect(File).to exist("#{app_path}/config/application.rb")
64
+ end
65
+
66
+ context 'config/application.rb' do
67
+ let(:config_application_file) { File.read("#{app_path}/config/application.rb") }
68
+
69
+ it 'adds directories in /app to ActiveSupport::Dependencies.autoload_paths' do
70
+ expect(config_application_file).to include "relative_load_paths = Dir.glob 'app/**/*/'"
71
+ expect(config_application_file).to include(
72
+ 'ActiveSupport::Dependencies.autoload_paths += relative_load_paths'
73
+ )
74
+ end
75
+ end
76
+
62
77
  it 'generates an application endpoint' do
63
78
  expect(File).to exist("#{app_path}/app/endpoints/application_endpoint.rb")
64
79
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gris
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Fareed
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-29 00:00:00.000000000 Z
11
+ date: 2015-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor