ddd_domain 1.1.0 → 1.1.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
  SHA256:
3
- metadata.gz: 72b5644958153fa25e1700fd658f71bd401498828e45f14521c59c7af744bf3c
4
- data.tar.gz: c9487867564cad97bdc7d1b41c03a75b51748ac781a4954b02e5ede7d287633f
3
+ metadata.gz: 8655ebcc1282f629d085634b9060c92d5bb2ec952c30405a12b5e0e779437179
4
+ data.tar.gz: 5a6e5a2cdbbde6c6c90b5202c2ef3fc204d297d9e8426b57c14b5967eab086a5
5
5
  SHA512:
6
- metadata.gz: b330af4ddc1b25fd8f9d5d3e70be7ef2329633573a45d5f45a96e5f4a87f5c9bc7beb0c5f312b16988211e5c404a2612d824833b1df17edcaeefaf512d335c24
7
- data.tar.gz: b895ee1d71f4c6d53ca899973214ac39fdc8ed6c5558590cea9c6d414291c6df06bbbadfd96dfc008c1d199c7081ee632bb44d11fe36e687313935b017d8472c
6
+ metadata.gz: d95ab0b07796e8a30c38c634be4c05d5ff423fa255d71c84f784b03d9fb43ce2105e28db522e12b0b9fc01619d57f7bd1e19b71bf517afca10fb84f0d9d2e3fb
7
+ data.tar.gz: 53f6bd0c71eb2d4f6642ffcc1a8bdf1724ff6a68d30e6c3681672867d2e8739d2f1d5409b1f6c6824d978cafebae0e52a5fcfe087c827a77edecf8a682ff2098
@@ -1,3 +1,3 @@
1
1
  module DddDomain
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -6,17 +6,19 @@ class DomainsGenerator < Rails::Generators::NamedBase
6
6
  create_file "app/domains/#{file_name}/.keep"
7
7
 
8
8
  if File.exists? "config/initializers/ddd_domain.rb"
9
- inject_into_file 'config/initializers/ddd_domain.rb' do
9
+ inject_into_file 'config/initializers/ddd_domain.rb', :before => "end" do
10
10
  <<-"RUBY"
11
+ config.paths.add 'app/domains/#{file_name}', eager_load: true
12
+ RUBY
13
+ end
14
+ else
15
+ create_file 'config/initializers/ddd_domain.rb' do
16
+ <<~"RUBY"
11
17
  Rails.configuration do |config|
12
18
  config.paths.add 'app/domains/#{file_name}', eager_load: true
13
19
  end
14
20
  RUBY
15
21
  end
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
19
- end
20
22
  end
21
23
  end
22
24
  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.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FUNABARA Masao