eac_rails_base0 0.37.1 → 0.38.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: deda16453b358aef277c27ad13d099b7a10c7940c8c842f351a0ef50175ebba2
|
|
4
|
+
data.tar.gz: cf51ff5fb091a53f0a111ae5e670996ffeab9de3f3aac7c9497eb408d83becc2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 052c5fc7eddc528fa566a24800ae2e0a0b8de374740ad51bf8c85952b78255b5d526ecaa4af75af60dd64e193a0cd62716461498a71fba3fc87402ff9b8ec69e
|
|
7
|
+
data.tar.gz: 997e7368ca4af670ba2fd1fddd077b9fbb09bd0163615714e1ff7c4fbe72917e2b3e54ff0817e837c0c08581e74955a01ccfc471ac3e67207a9f405811425ce0
|
|
@@ -5,6 +5,7 @@ module EacRailsBase0
|
|
|
5
5
|
include ::CanCanDry::ControllerAuthorization
|
|
6
6
|
|
|
7
7
|
layout 'eac_rails_base0/application'
|
|
8
|
+
helper ::EacRailsBase0::AppVersionHelper
|
|
8
9
|
helper ::EacRailsBase0::LayoutHelper
|
|
9
10
|
helper ::EacRailsUtils::FormatterHelper
|
|
10
11
|
helper ::EacRailsUtils::LinksHelper
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacRailsBase0
|
|
4
|
+
module AppVersionHelper
|
|
5
|
+
def base0_app_version
|
|
6
|
+
base0_app_version_by_environment_variable ||
|
|
7
|
+
base0_app_version_by_version_file ||
|
|
8
|
+
::I18n.t('eac_rails_base0.app_version.unsetted')
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
def base0_app_version_by_environment_variable
|
|
12
|
+
ENV['APP_VERSION'].to_s.strip.presence
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def base0_app_version_by_version_file
|
|
16
|
+
::Rails.root.children.find { |file| file.basename.to_path.downcase == 'version' }
|
|
17
|
+
.if_present { |file| file.read.presence }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
data/config/locales/pt-BR.yml
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.38.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: 2020-07-
|
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aranha
|
|
@@ -515,6 +515,7 @@ files:
|
|
|
515
515
|
- app/assets/stylesheets/eac_rails_base0/components.scss
|
|
516
516
|
- app/assets/stylesheets/eac_rails_base0/default_configuration.scss
|
|
517
517
|
- app/controllers/eac_rails_base0/application_controller.rb
|
|
518
|
+
- app/helpers/eac_rails_base0/app_version_helper.rb
|
|
518
519
|
- app/helpers/eac_rails_base0/layout_helper.rb
|
|
519
520
|
- app/helpers/eac_rails_base0/panel_default_helper.rb
|
|
520
521
|
- app/uploaders/eac_rails_base0/default_file_uploader.rb
|