ddd_domain 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: 679dde06900e3110bb2a7579b1aefa588497609f88439660317e70680b45ddcf
4
- data.tar.gz: f027613d3bdde2e06be8f6fb5b2b9a9df60f4968e3e7b8a478e488d1db7aed34
3
+ metadata.gz: 72b5644958153fa25e1700fd658f71bd401498828e45f14521c59c7af744bf3c
4
+ data.tar.gz: c9487867564cad97bdc7d1b41c03a75b51748ac781a4954b02e5ede7d287633f
5
5
  SHA512:
6
- metadata.gz: 01b6ac522a755f23ebb5eb995bc1e7d56b8130890bfbca4a869fd04e76266bb34caad1b4c3c2b37beeb4eb3e5b6b984aef3ef5087c53b9870c6a836dbe59ab28
7
- data.tar.gz: a4ca6387a3405d96a8de456e5f8b707dc429f98dd05179ec4a59ac602a6b69d7bac4842089318e6f94582fbb7b7129b4fbccfd5ac5fe8c5cf7d328e9112fcf8f
6
+ metadata.gz: b330af4ddc1b25fd8f9d5d3e70be7ef2329633573a45d5f45a96e5f4a87f5c9bc7beb0c5f312b16988211e5c404a2612d824833b1df17edcaeefaf512d335c24
7
+ data.tar.gz: b895ee1d71f4c6d53ca899973214ac39fdc8ed6c5558590cea9c6d414291c6df06bbbadfd96dfc008c1d199c7081ee632bb44d11fe36e687313935b017d8472c
@@ -1,3 +1,3 @@
1
1
  module DddDomain
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -5,20 +5,17 @@ class DomainsGenerator < Rails::Generators::NamedBase
5
5
  empty_directory "app/domains/#{file_name}"
6
6
  create_file "app/domains/#{file_name}/.keep"
7
7
 
8
- if File.exists? "config/application.rb"
9
- inject_into_file 'config/application.rb', :before => " end\nend" do
8
+ if File.exists? "config/initializers/ddd_domain.rb"
9
+ inject_into_file 'config/initializers/ddd_domain.rb' do
10
10
  <<-"RUBY"
11
-
12
- # Configure load paths for DDD domain #{file_name}
13
- config.autoload_paths += %W(\#{config.root}/app/domains/#{file_name})
11
+ Rails.configuration do |config|
12
+ config.paths.add 'app/domains/#{file_name}', eager_load: true
13
+ end
14
14
  RUBY
15
15
  end
16
- elsif File.exists? "lib/#{namespace.to_s.underscore}/engine.rb"
17
- inject_into_file "lib/#{namespace.to_s.underscore}/engine.rb", :before => " end\nend" do
18
- <<-"RUBY"
19
-
20
- config.autoload_paths += %W(\#{config.root}/app/domains/#{file_name})
21
- RUBY
16
+ else
17
+ inject_into_file 'config/initializers/ddd_domain.rb', :before => "end" do
18
+ config.paths.add 'app/domains/#{file_name}', eager_load: true
22
19
  end
23
20
  end
24
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ddd_domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUNABARA Masao