eac_rails_base0 0.17.0 → 0.18.0
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/app/assets/stylesheets/eac_rails_base0/components.scss +7 -0
- data/app/helpers/eac_rails_base0/links_helper.rb +8 -0
- data/config/initializers/action_mailer.rb +2 -1
- data/config/locales/pt-BR.yml +1 -0
- data/lib/eac_rails_base0.rb +1 -0
- data/lib/eac_rails_base0/boolean_value.rb +14 -0
- data/lib/eac_rails_base0/version.rb +1 -1
- data/lib/tasks/eac_rails_base0.rake +5 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db7d72469c74258a5817c75f23dfb83c3b61e658698111a3c208fc86ed24c392
|
4
|
+
data.tar.gz: '08ce1e65a2a613ec5d335971b8b6fa2457a701fe375aa1178f4ddc43f1103ac5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2570a6984f7eecfc9878177d1f25d0d67ee7967b229b8e02bd377b76e72437f16f35f352797e91eed1ff2b4b688764459e7ea5d6bdbe55c8f1bcb1c5acb188e
|
7
|
+
data.tar.gz: 79a66e4d4442d1104a2aae3849c2ed436a9d63e870bf696fc6411a75183354bc21c52e1cbe180de11160928f5f0a2add21409c6cd45c12d503c93c24834ec93c
|
@@ -27,6 +27,14 @@ module EacRailsBase0
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
def short_show_link(object)
|
31
|
+
value_or_sign(object, '') do |value|
|
32
|
+
link_to '', object_path(value),
|
33
|
+
class: 'show_link', target: '_blank',
|
34
|
+
title: ::I18n.t('eac_rails_base0.links.show_object', label: value.to_s)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
30
38
|
def object_path(object, action = nil)
|
31
39
|
path = "#{object.class.name.underscore.tr('/', '_')}_url"
|
32
40
|
path = "#{action}_#{path}" if action.present?
|
@@ -7,7 +7,8 @@ Rails.application.configure do
|
|
7
7
|
user_name: ENV['action_mailer_smtp_username'],
|
8
8
|
password: ENV['action_mailer_smtp_password'],
|
9
9
|
authentication: ENV['action_mailer_smtp_authentication'],
|
10
|
-
enable_starttls_auto:
|
10
|
+
enable_starttls_auto:
|
11
|
+
::EacRailsBase0::BooleanValue.to_b(ENV['action_mailer_smtp_enable_starttls_auto'])
|
11
12
|
}
|
12
13
|
%i(host port).each do |option|
|
13
14
|
value = ENV["action_mailer_default_url_#{option}"]
|
data/config/locales/pt-BR.yml
CHANGED
data/lib/eac_rails_base0.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_rails_base0
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Esquilo Azul Company
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05
|
11
|
+
date: 2019-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha
|
@@ -460,6 +460,7 @@ files:
|
|
460
460
|
- lib/eac_rails_base0/app_generator/templates/config/environments/test.rb
|
461
461
|
- lib/eac_rails_base0/app_generator/templates/config/routes.rb
|
462
462
|
- lib/eac_rails_base0/app_generator/templates/lib/local_plugins.rb
|
463
|
+
- lib/eac_rails_base0/boolean_value.rb
|
463
464
|
- lib/eac_rails_base0/engine.rb
|
464
465
|
- lib/eac_rails_base0/patches/url_for_patch.rb
|
465
466
|
- lib/eac_rails_base0/spec_helper.rb
|
@@ -477,6 +478,7 @@ files:
|
|
477
478
|
- lib/generators/eac_rails_base0/rubocop/rubocop_generator.rb
|
478
479
|
- lib/generators/eac_rails_base0/rubocop/templates/rubocop.rb
|
479
480
|
- lib/generators/eac_rails_base0_generator.rb
|
481
|
+
- lib/tasks/eac_rails_base0.rake
|
480
482
|
homepage: https://github.com/esquilo-azul/eac_rails_base0
|
481
483
|
licenses:
|
482
484
|
- MIT
|