ibrain-core 0.1.2 → 0.1.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 +4 -4
- data/lib/generators/ibrain/install/install_generator.rb +4 -15
- data/lib/ibrain/core/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77b55d552570271ff6defb94a2f5f990816d29966703112050987bd7f5ef8b1e
|
|
4
|
+
data.tar.gz: 0b7c63567310a31fb93c7d277c8216ee7be843e9a7bf4c16117317493c20bf1d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46264a7f0478a26389829084b8a12c7cfc6a7da3cf8920d7edc06e7acc14fe951f97ac8ff39547d7d1874fae87dcecd25043c206ead022eb0caf0752bbe13b98
|
|
7
|
+
data.tar.gz: 7259f9823c599f96c600adb64fa0effa65dbece73df38357aa93da0aa47654d40dad625a7308b5f12d709833dac7ea83bdcf0ecd60389b9434e09c69315ef28e
|
|
@@ -35,17 +35,6 @@ module Ibrain
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def configure_application
|
|
38
|
-
application <<-RUBY
|
|
39
|
-
# Load application's model / class decorators
|
|
40
|
-
initializer 'ibrain.decorators' do |app|
|
|
41
|
-
config.to_prepare do
|
|
42
|
-
Dir.glob(Rails.root.join('app/**/*_decorator*.rb')) do |path|
|
|
43
|
-
require_dependency(path)
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
RUBY
|
|
48
|
-
|
|
49
38
|
if !options[:enforce_available_locales].nil?
|
|
50
39
|
application <<-RUBY
|
|
51
40
|
I18n.enforce_available_locales = #{options[:enforce_available_locales]}
|
|
@@ -135,10 +124,10 @@ module Ibrain
|
|
|
135
124
|
|
|
136
125
|
def add_files
|
|
137
126
|
template 'config/initializers/ibrain.rb.tt', 'config/initializers/ibrain.rb', { skip: true }
|
|
138
|
-
template 'config/initializers/cors.tt', 'config/initializers/cors.rb'
|
|
139
|
-
template 'config/puma.tt', 'config/puma.rb'
|
|
140
|
-
yml_template 'config/database.tt', 'config/database.yml'
|
|
141
|
-
template 'rubocop.yml.tt', '.rubocop.yml'
|
|
127
|
+
template 'config/initializers/cors.tt', 'config/initializers/cors.rb'
|
|
128
|
+
template 'config/puma.tt', 'config/puma.rb'
|
|
129
|
+
yml_template 'config/database.tt', 'config/database.yml'
|
|
130
|
+
template 'rubocop.yml.tt', '.rubocop.yml' if options[:with_rubocop]
|
|
142
131
|
|
|
143
132
|
if options[:with_graphql]
|
|
144
133
|
template 'graphql/app_schema.rb.tt', 'app/graphql/app_schema.rb', { skip: true }
|
data/lib/ibrain/core/version.rb
CHANGED