active_generator 5.1.0 → 5.2.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: 0ea2f69f57a857ee78fe624c6f573fac446897272a603782791fff30f550d827
4
- data.tar.gz: 3f905ef46130e0a5250026d81f1369d64ed72e7daba2c29b836c283424cdc872
3
+ metadata.gz: 9e70ca966bf875c238e485000e865bff41fc05ef38a711826599d34f5676645f
4
+ data.tar.gz: e1a04f48aac423b3860b6858431b83822b9f2cb4c36041d77ed67a3bb54ccfb6
5
5
  SHA512:
6
- metadata.gz: 6fc59cf493e9ec06a7a726754551f470fc7c0704b1275d92acafe88d2585d0d09f0ea4af369c57024d516fe015782f11bad024755e6c237c1e474b9ce720637c
7
- data.tar.gz: f82144372798a7ddeb0bdd878dcf8db7848fcdf4022afa0cb5997aa579321ffb6cf17740f40df57db3afa8e0612a4d79611cce684a614d2e7b07f49329e11c93
6
+ metadata.gz: d95db7163f43b6d31f66ecae9a65e5a54bad39664be6a6e9ebef1590ef4e4f323847899d5fbbbb944a27b6946475be1ef7733f29b478a827d31be57a376867c2
7
+ data.tar.gz: af63754831d5a2636801b19aeb10d92c45c2345fbb9aac81741f13ab0d768f20599cce822094d50390a1cd9b2d28b2956ba156bbcc644ff5ea4f137d0a279dff
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveGenerator
4
- VERSION ||= '5.1.0'
4
+ VERSION ||= '5.2.0'
5
5
  end
@@ -13,7 +13,9 @@ module Locale
13
13
 
14
14
  def create_mailer_file
15
15
  assert_valid_language!
16
- path = File.join("config/locales/#{language}/mailers", namespace_path, "#{file_name}.yml")
16
+
17
+ name = "#{file_name}_mailer.yml"
18
+ path = File.join("config/locales/#{language}/mailers", namespace_path, name)
17
19
 
18
20
  template('mailer.yml', path)
19
21
  end
@@ -10,7 +10,7 @@ module Erb
10
10
  include Rails::Base
11
11
 
12
12
  def generate_locale_file
13
- invoke('locale:view', [name]) if configuration.autoload_view_generator_locale
13
+ invoke('locale:view', [expanded_name]) if configuration.autoload_view_generator_locale
14
14
  end
15
15
 
16
16
  def generate_test_file
@@ -18,7 +18,13 @@ module Erb
18
18
 
19
19
  return if framework.nil?
20
20
 
21
- invoke("#{framework}:view", [name]) rescue nil
21
+ invoke("#{framework}:view", [expanded_name]) rescue nil
22
+ end
23
+
24
+ private
25
+
26
+ def expanded_name
27
+ "#{name}_mailer"
22
28
  end
23
29
 
24
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.0
4
+ version: 5.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez