eac_rails_utils 0.26.2 → 0.27.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/helpers/eac_rails_utils/common_form_helper/form_builder/date_field.rb +1 -1
- data/app/helpers/eac_rails_utils/common_form_helper/form_builder/searchable_association_field.rb +12 -12
- data/app/helpers/eac_rails_utils/common_form_helper/form_builder/time_field.rb +1 -1
- data/app/helpers/eac_rails_utils/common_form_helper/form_builder.rb +10 -15
- data/app/helpers/eac_rails_utils/common_form_helper.rb +1 -2
- data/app/helpers/eac_rails_utils/data_table_helper/column.rb +0 -2
- data/app/helpers/eac_rails_utils/data_table_helper/column_node.rb +0 -2
- data/app/helpers/eac_rails_utils/data_table_helper/data_table/value_cell.rb +0 -2
- data/app/helpers/eac_rails_utils/data_table_helper/data_table.rb +0 -2
- data/app/helpers/eac_rails_utils/data_table_helper/setup.rb +3 -3
- data/app/helpers/eac_rails_utils/data_table_helper.rb +0 -4
- data/app/helpers/eac_rails_utils/menus_helper/bootstrap_gui_builder.rb +14 -14
- data/app/helpers/eac_rails_utils/menus_helper/data_builder.rb +3 -3
- data/app/helpers/eac_rails_utils/menus_helper/gui_builder.rb +6 -6
- data/app/helpers/eac_rails_utils/menus_helper.rb +0 -4
- data/app/helpers/eac_rails_utils/open_graph_protocol_helper.rb +6 -6
- data/app/validators/eac_rails_utils/yaml_validator.rb +0 -2
- data/lib/eac_rails_utils/engine.rb +0 -9
- data/lib/eac_rails_utils/menus.rb +0 -1
- data/lib/eac_rails_utils/models/tableless.rb +1 -1
- data/lib/eac_rails_utils/models.rb +0 -1
- data/lib/eac_rails_utils/patches/rails_5_2.rb +0 -2
- data/lib/eac_rails_utils/patches.rb +1 -5
- data/lib/eac_rails_utils/rspec/setup.rb +0 -2
- data/lib/eac_rails_utils/rspec.rb +0 -1
- data/lib/eac_rails_utils/version.rb +1 -1
- data/lib/eac_rails_utils.rb +12 -0
- metadata +12 -20
- data/lib/eac_rails_utils/patches/active_model.rb +0 -3
- data/lib/eac_rails_utils/patches/numeric.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e9b18c0381b50349d93e12af861466abe12d03b90c252d59ccd230560e5cb0c2
|
|
4
|
+
data.tar.gz: b8794ce8ce0bab26a7bb06eff34f4113d5b7a8f9dd78fd551c66bfaa329f36dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 532c536d16a8ecdd092d28d6dde21f89b03dfe390bfd27985a35aa423dcb34adcf6bcd6983debb45d110da3cf032e8d3ece2c760df277d51e2cf654f64593f84
|
|
7
|
+
data.tar.gz: 192b30dc3b2e34f2ebab36cd9009941fc83e3c61cec0f296a284b74d70c49a3f9aa852bb79b6741375477419f4a06b2480f679a226000baf5236ffb20a6516e2
|
|
@@ -12,7 +12,7 @@ module EacRailsUtils
|
|
|
12
12
|
:order, :include_blank, :default, :selected, :disabled,
|
|
13
13
|
:prompt, :with_css_classes)
|
|
14
14
|
field(field_name, options) do
|
|
15
|
-
@helper.content_tag(:div, @form.date_select(field_name, field_options),
|
|
15
|
+
@helper.content_tag(:div, @form.date_select(field_name, field_options),
|
|
16
16
|
class: 'form-control-complex')
|
|
17
17
|
end
|
|
18
18
|
end
|
data/app/helpers/eac_rails_utils/common_form_helper/form_builder/searchable_association_field.rb
CHANGED
|
@@ -5,23 +5,23 @@ module EacRailsUtils
|
|
|
5
5
|
class FormBuilder
|
|
6
6
|
class SearchableAssociationField
|
|
7
7
|
def initialize(form_builder, field_name, options)
|
|
8
|
-
@form_builder = form_builder
|
|
9
|
-
@field_name = field_name
|
|
10
|
-
@options = options
|
|
8
|
+
@form_builder = form_builder
|
|
9
|
+
@field_name = field_name
|
|
10
|
+
@options = options
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def hidden_input
|
|
14
|
-
@form_builder.form.hidden_field(hidden_input_name, id: hidden_input_id)
|
|
14
|
+
@form_builder.form.hidden_field(hidden_input_name, id: hidden_input_id)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
def visible_input
|
|
18
|
-
@form_builder.helper.text_field_tag(visible_input_name, '', id: visible_input_id,
|
|
18
|
+
@form_builder.helper.text_field_tag(visible_input_name, '', id: visible_input_id,
|
|
19
19
|
class: 'form-control')
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
def javascript_tag
|
|
23
|
-
@form_builder.helper.content_tag(:script) do
|
|
24
|
-
@form_builder.helper.raw("new InputSearchable(#{json_options});")
|
|
23
|
+
@form_builder.helper.content_tag(:script) do
|
|
24
|
+
@form_builder.helper.raw("new InputSearchable(#{json_options});")
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -32,7 +32,7 @@ module EacRailsUtils
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def hidden_input_name
|
|
35
|
-
"#{@field_name}_id"
|
|
35
|
+
"#{@field_name}_id"
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def visible_input_id
|
|
@@ -40,11 +40,11 @@ module EacRailsUtils
|
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
def visible_input_name
|
|
43
|
-
"#{@field_name}_search"
|
|
43
|
+
"#{@field_name}_search"
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def association_column
|
|
47
|
-
@form_builder.model_instance&.send(@field_name)
|
|
47
|
+
@form_builder.model_instance&.send(@field_name)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
50
|
def initial_id
|
|
@@ -61,11 +61,11 @@ module EacRailsUtils
|
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def params
|
|
64
|
-
@form_builder.helper.params
|
|
64
|
+
@form_builder.helper.params
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
def url
|
|
68
|
-
@options[:url]
|
|
68
|
+
@options[:url]
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
def json_options
|
|
@@ -12,7 +12,7 @@ module EacRailsUtils
|
|
|
12
12
|
:order, :include_blank, :default, :selected, :disabled,
|
|
13
13
|
:prompt, :with_css_classes)
|
|
14
14
|
field(field_name, options) do
|
|
15
|
-
@helper.content_tag(:div, @form.time_select(field_name, field_options),
|
|
15
|
+
@helper.content_tag(:div, @form.time_select(field_name, field_options),
|
|
16
16
|
class: 'form-control-complex')
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -1,13 +1,8 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'eac_ruby_utils/require_sub'
|
|
4
|
-
require 'eac_rails_utils/models/validations'
|
|
5
|
-
|
|
6
3
|
module EacRailsUtils
|
|
7
4
|
module CommonFormHelper
|
|
8
5
|
class FormBuilder
|
|
9
|
-
::EacRubyUtils.require_sub __FILE__
|
|
10
|
-
|
|
11
6
|
include CommonTextFields
|
|
12
7
|
include CurrencyField
|
|
13
8
|
include DateField
|
|
@@ -21,9 +16,9 @@ module EacRailsUtils
|
|
|
21
16
|
attr_reader :form, :helper, :field_errors_showed
|
|
22
17
|
|
|
23
18
|
def initialize(form, helper)
|
|
24
|
-
@form = form
|
|
25
|
-
@helper = helper
|
|
26
|
-
@field_errors_showed = Set.new
|
|
19
|
+
@form = form
|
|
20
|
+
@helper = helper
|
|
21
|
+
@field_errors_showed = Set.new
|
|
27
22
|
end
|
|
28
23
|
|
|
29
24
|
def association_select_field(field_name, options = {})
|
|
@@ -36,15 +31,15 @@ module EacRailsUtils
|
|
|
36
31
|
end
|
|
37
32
|
|
|
38
33
|
def hidden_field(field_name, options = {})
|
|
39
|
-
@form.hidden_field(field_name, options)
|
|
34
|
+
@form.hidden_field(field_name, options)
|
|
40
35
|
end
|
|
41
36
|
|
|
42
37
|
def check_box_field(field_name, options = {})
|
|
43
|
-
field(field_name, options) { @form.check_box(field_name, options) }
|
|
38
|
+
field(field_name, options) { @form.check_box(field_name, options) }
|
|
44
39
|
end
|
|
45
40
|
|
|
46
41
|
def file_field(field_name, options = {})
|
|
47
|
-
field(field_name, options) { @form.file_field(field_name, options) }
|
|
42
|
+
field(field_name, options) { @form.file_field(field_name, options) }
|
|
48
43
|
end
|
|
49
44
|
|
|
50
45
|
def searchable_association_field(field_name, options = {})
|
|
@@ -57,7 +52,7 @@ module EacRailsUtils
|
|
|
57
52
|
private
|
|
58
53
|
|
|
59
54
|
def field(field_name, options)
|
|
60
|
-
@helper.content_tag(:div, class: 'form-group') do
|
|
55
|
+
@helper.content_tag(:div, class: 'form-group') do
|
|
61
56
|
s = field_label(field_name, options[:label], options[:required])
|
|
62
57
|
s << ' '
|
|
63
58
|
s << yield()
|
|
@@ -80,7 +75,7 @@ module EacRailsUtils
|
|
|
80
75
|
|
|
81
76
|
s = ActiveSupport::SafeBuffer.new
|
|
82
77
|
model_instance.errors.messages[field_name].each { |error| s << field_error(error) }
|
|
83
|
-
@field_errors_showed.add(field_name)
|
|
78
|
+
@field_errors_showed.add(field_name)
|
|
84
79
|
s
|
|
85
80
|
end
|
|
86
81
|
|
|
@@ -90,7 +85,7 @@ module EacRailsUtils
|
|
|
90
85
|
end
|
|
91
86
|
|
|
92
87
|
def field_error(error_message)
|
|
93
|
-
@helper.content_tag(:div, class: 'error') do
|
|
88
|
+
@helper.content_tag(:div, class: 'error') do
|
|
94
89
|
error_message
|
|
95
90
|
end
|
|
96
91
|
end
|
|
@@ -100,7 +95,7 @@ module EacRailsUtils
|
|
|
100
95
|
required = ::EacRailsUtils::Models::Validations
|
|
101
96
|
.column_required?(model_instance, field_name)
|
|
102
97
|
end
|
|
103
|
-
@form.label(field_name, label, class: required ? 'required' : 'optional')
|
|
98
|
+
@form.label(field_name, label, class: required ? 'required' : 'optional')
|
|
104
99
|
end
|
|
105
100
|
end
|
|
106
101
|
end
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require 'action_view/helpers/form_helper'
|
|
4
|
-
require '
|
|
4
|
+
require 'active_support/core_ext/string/output_safety'
|
|
5
5
|
|
|
6
6
|
module EacRailsUtils
|
|
7
7
|
module CommonFormHelper
|
|
8
8
|
common_concern do
|
|
9
9
|
include ::ActionView::Helpers::FormHelper
|
|
10
10
|
end
|
|
11
|
-
require_sub __FILE__
|
|
12
11
|
|
|
13
12
|
def common_form(model_instance, options = {}, &block)
|
|
14
13
|
submit_label = options.delete(:submit_label)
|
|
@@ -7,14 +7,14 @@ module EacRailsUtils
|
|
|
7
7
|
attr_accessor :paging
|
|
8
8
|
|
|
9
9
|
def initialize
|
|
10
|
-
@columns = []
|
|
11
|
-
@paging = true
|
|
10
|
+
@columns = []
|
|
11
|
+
@paging = true
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
# @return [EacRailsUtils::DataTableHelper::Column]
|
|
15
15
|
def column(*args, &block)
|
|
16
16
|
column = ::EacRailsUtils::DataTableHelper::Column.new(args, block)
|
|
17
|
-
@columns << column
|
|
17
|
+
@columns << column
|
|
18
18
|
column
|
|
19
19
|
end
|
|
20
20
|
end
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'eac_ruby_utils/require_sub'
|
|
4
|
-
|
|
5
3
|
module EacRailsUtils
|
|
6
4
|
module DataTableHelper
|
|
7
|
-
::EacRubyUtils.require_sub __FILE__
|
|
8
|
-
|
|
9
5
|
def data_table(dataset, &block)
|
|
10
6
|
::EacRailsUtils::DataTableHelper::DataTable.new(self, dataset, &block).output
|
|
11
7
|
end
|
|
@@ -5,14 +5,14 @@ module EacRailsUtils
|
|
|
5
5
|
# http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3
|
|
6
6
|
class BootstrapGuiBuilder
|
|
7
7
|
def initialize(view, options = {})
|
|
8
|
-
@view = view
|
|
9
|
-
@options = options
|
|
8
|
+
@view = view
|
|
9
|
+
@options = options
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def build(entries)
|
|
13
13
|
raise 'Argument "entries" is not a array' unless entries.is_a?(Array)
|
|
14
14
|
|
|
15
|
-
@view.content_tag(:ul, class: "nav navbar-nav #{@options[:class]}".strip) do
|
|
15
|
+
@view.content_tag(:ul, class: "nav navbar-nav #{@options[:class]}".strip) do
|
|
16
16
|
menu_entries(entries)
|
|
17
17
|
end
|
|
18
18
|
end
|
|
@@ -44,38 +44,38 @@ module EacRailsUtils
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
def menu_group_root(entry)
|
|
47
|
-
@view.content_tag(:li, class: 'dropdown') do
|
|
47
|
+
@view.content_tag(:li, class: 'dropdown') do
|
|
48
48
|
menu_group_root_button(entry) << menu_group_root_children(entry)
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
52
52
|
def menu_group_root_button(entry)
|
|
53
|
-
@view.content_tag(:a, :role => 'button', 'data-toggle' => 'dropdown',
|
|
54
|
-
:class => "btn #{@options[:button_class]}",
|
|
53
|
+
@view.content_tag(:a, :role => 'button', 'data-toggle' => 'dropdown',
|
|
54
|
+
:class => "btn #{@options[:button_class]}",
|
|
55
55
|
:'data-target' => '#') do
|
|
56
|
-
ActiveSupport::SafeBuffer.new(entry[:label]) << ' ' << @view.tag(:span, class: 'caret')
|
|
56
|
+
ActiveSupport::SafeBuffer.new(entry[:label]) << ' ' << @view.tag(:span, class: 'caret')
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
60
|
def menu_group_root_children(entry)
|
|
61
|
-
@view.content_tag(:ul, class: 'dropdown-menu multi-level', role: 'menu',
|
|
61
|
+
@view.content_tag(:ul, class: 'dropdown-menu multi-level', role: 'menu',
|
|
62
62
|
'aria-labelledby': 'dropdownMenu') do
|
|
63
63
|
menu_entries(entry[:children])
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
def menu_group_sub(entry)
|
|
68
|
-
@view.content_tag(:li, class: 'dropdown-submenu') do
|
|
69
|
-
@view.link_to(entry[:label], '#', tabindex: -1) <<
|
|
70
|
-
@view.content_tag(:ul, class: 'dropdown-menu') do
|
|
68
|
+
@view.content_tag(:li, class: 'dropdown-submenu') do
|
|
69
|
+
@view.link_to(entry[:label], '#', tabindex: -1) <<
|
|
70
|
+
@view.content_tag(:ul, class: 'dropdown-menu') do
|
|
71
71
|
menu_entries(entry[:children])
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
76
|
def menu_item(entry)
|
|
77
|
-
@view.content_tag(:li) do
|
|
78
|
-
@view.link_to(entry[:label], entry[:path], menu_item_options(entry))
|
|
77
|
+
@view.content_tag(:li) do
|
|
78
|
+
@view.link_to(entry[:label], entry[:path], menu_item_options(entry))
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
@@ -85,7 +85,7 @@ module EacRailsUtils
|
|
|
85
85
|
options[:method] = options[:link_method]
|
|
86
86
|
options.delete(:link_method)
|
|
87
87
|
end
|
|
88
|
-
options[:class] = @options[:button_class].to_s.strip if entry[:level].zero?
|
|
88
|
+
options[:class] = @options[:button_class].to_s.strip if entry[:level].zero?
|
|
89
89
|
options
|
|
90
90
|
end
|
|
91
91
|
end
|
|
@@ -4,7 +4,7 @@ module EacRailsUtils
|
|
|
4
4
|
module MenusHelper
|
|
5
5
|
class DataBuilder
|
|
6
6
|
def initialize(view)
|
|
7
|
-
@view = view
|
|
7
|
+
@view = view
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def build(entries)
|
|
@@ -51,8 +51,8 @@ module EacRailsUtils
|
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
def can_access_path?(path, method)
|
|
54
|
-
if @view.respond_to?(:can_by_path?)
|
|
55
|
-
@view.can_by_path?(path, method)
|
|
54
|
+
if @view.respond_to?(:can_by_path?)
|
|
55
|
+
@view.can_by_path?(path, method)
|
|
56
56
|
else
|
|
57
57
|
true
|
|
58
58
|
end
|
|
@@ -4,13 +4,13 @@ module EacRailsUtils
|
|
|
4
4
|
module MenusHelper
|
|
5
5
|
class GuiBuilder
|
|
6
6
|
def initialize(view)
|
|
7
|
-
@view = view
|
|
7
|
+
@view = view
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def build(entries, options = {})
|
|
11
11
|
raise 'Argument "entries" is not a array' unless entries.is_a?(Array)
|
|
12
12
|
|
|
13
|
-
@view.content_tag(:ul, options) do
|
|
13
|
+
@view.content_tag(:ul, options) do
|
|
14
14
|
b = ActiveSupport::SafeBuffer.new
|
|
15
15
|
entries.map { |v| menu_entry(v) }.each { |e| b << e }
|
|
16
16
|
b
|
|
@@ -30,14 +30,14 @@ module EacRailsUtils
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def menu_group(label, children)
|
|
33
|
-
@view.content_tag(:li) do
|
|
34
|
-
@view.link_to(label) << build(children)
|
|
33
|
+
@view.content_tag(:li) do
|
|
34
|
+
@view.link_to(label) << build(children)
|
|
35
35
|
end
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def menu_item(label, path, options)
|
|
39
|
-
@view.content_tag(:li) do
|
|
40
|
-
@view.link_to(label, path, menu_item_link_options(options))
|
|
39
|
+
@view.content_tag(:li) do
|
|
40
|
+
@view.link_to(label, path, menu_item_link_options(options))
|
|
41
41
|
end
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'eac_ruby_utils/require_sub'
|
|
4
|
-
|
|
5
3
|
module EacRailsUtils
|
|
6
4
|
module MenusHelper
|
|
7
|
-
::EacRubyUtils.require_sub __FILE__
|
|
8
|
-
|
|
9
5
|
def dropdown_menu(entries)
|
|
10
6
|
entries = DataBuilder.new(self).build(entries)
|
|
11
7
|
return nil unless entries
|
|
@@ -28,18 +28,18 @@ module EacRailsUtils
|
|
|
28
28
|
attr_reader :view
|
|
29
29
|
|
|
30
30
|
def initialize(view)
|
|
31
|
-
@view = view
|
|
32
|
-
@children = ::ActiveSupport::HashWithIndifferentAccess.new
|
|
31
|
+
@view = view
|
|
32
|
+
@children = ::ActiveSupport::HashWithIndifferentAccess.new
|
|
33
33
|
end
|
|
34
34
|
|
|
35
35
|
def child(child_suffix)
|
|
36
|
-
@children[child_suffix] ||= Entry.new(view, self, child_suffix)
|
|
36
|
+
@children[child_suffix] ||= Entry.new(view, self, child_suffix)
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
def children_tags
|
|
40
40
|
view.capture do
|
|
41
41
|
view.concat tag
|
|
42
|
-
@children.values.each do |child| # rubocop:disable
|
|
42
|
+
@children.values.each do |child| # rubocop:disable Style/HashEachMethods
|
|
43
43
|
view.concat(child.children_tags)
|
|
44
44
|
view.concat("\n")
|
|
45
45
|
end
|
|
@@ -60,8 +60,8 @@ module EacRailsUtils
|
|
|
60
60
|
|
|
61
61
|
def initialize(view, parent, suffix)
|
|
62
62
|
super(view)
|
|
63
|
-
@parent = parent
|
|
64
|
-
@suffix = suffix
|
|
63
|
+
@parent = parent
|
|
64
|
+
@suffix = suffix
|
|
65
65
|
end
|
|
66
66
|
|
|
67
67
|
def components
|
|
@@ -1,14 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'rails'
|
|
4
|
-
require 'active_model'
|
|
5
|
-
require 'active_record'
|
|
6
|
-
require 'eac_ruby_utils'
|
|
7
|
-
require 'virtus'
|
|
8
|
-
require 'eac_rails_utils/patches'
|
|
9
|
-
require 'nested_form_fields'
|
|
10
|
-
require 'eac_rails_utils/engine_helper'
|
|
11
|
-
|
|
12
3
|
module EacRailsUtils
|
|
13
4
|
class Engine < ::Rails::Engine
|
|
14
5
|
include ::EacRailsUtils::EngineHelper
|
data/lib/eac_rails_utils.rb
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'eac_ruby_utils'
|
|
4
|
+
EacRubyUtils::RootModuleSetup.perform __FILE__ do
|
|
5
|
+
ignore 'patches'
|
|
6
|
+
end
|
|
7
|
+
|
|
3
8
|
module EacRailsUtils
|
|
4
9
|
end
|
|
5
10
|
|
|
11
|
+
require 'rails'
|
|
12
|
+
require 'action_view' # Fix "require 'nested_form_fields'"
|
|
13
|
+
require 'active_record'
|
|
14
|
+
require 'nested_form_fields'
|
|
15
|
+
require 'virtus'
|
|
16
|
+
|
|
17
|
+
require 'eac_rails_utils/patches'
|
|
6
18
|
require 'eac_rails_utils/engine'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_rails_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.27.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- E.A.C.
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bootstrap-sass
|
|
@@ -36,22 +36,16 @@ dependencies:
|
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '0.
|
|
40
|
-
- - ">="
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: 0.128.3
|
|
39
|
+
version: '0.130'
|
|
43
40
|
type: :runtime
|
|
44
41
|
prerelease: false
|
|
45
42
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
43
|
requirements:
|
|
47
44
|
- - "~>"
|
|
48
45
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: '0.
|
|
50
|
-
- - ">="
|
|
51
|
-
- !ruby/object:Gem::Version
|
|
52
|
-
version: 0.128.3
|
|
46
|
+
version: '0.130'
|
|
53
47
|
- !ruby/object:Gem::Dependency
|
|
54
|
-
name:
|
|
48
|
+
name: railties
|
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
|
56
50
|
requirements:
|
|
57
51
|
- - ">="
|
|
@@ -112,8 +106,8 @@ dependencies:
|
|
|
112
106
|
- - "~>"
|
|
113
107
|
- !ruby/object:Gem::Version
|
|
114
108
|
version: '0.11'
|
|
115
|
-
description:
|
|
116
|
-
email:
|
|
109
|
+
description:
|
|
110
|
+
email:
|
|
117
111
|
executables: []
|
|
118
112
|
extensions: []
|
|
119
113
|
extra_rdoc_files: []
|
|
@@ -202,11 +196,9 @@ files:
|
|
|
202
196
|
- lib/eac_rails_utils/models/test_utils.rb
|
|
203
197
|
- lib/eac_rails_utils/models/validations.rb
|
|
204
198
|
- lib/eac_rails_utils/patches.rb
|
|
205
|
-
- lib/eac_rails_utils/patches/active_model.rb
|
|
206
199
|
- lib/eac_rails_utils/patches/active_model/naming.rb
|
|
207
200
|
- lib/eac_rails_utils/patches/active_model_associations.rb
|
|
208
201
|
- lib/eac_rails_utils/patches/application.rb
|
|
209
|
-
- lib/eac_rails_utils/patches/numeric.rb
|
|
210
202
|
- lib/eac_rails_utils/patches/numeric/number_helper.rb
|
|
211
203
|
- lib/eac_rails_utils/patches/rails_5_2.rb
|
|
212
204
|
- lib/eac_rails_utils/patches/rails_5_2/active_model_association_method_fix.rb
|
|
@@ -215,10 +207,10 @@ files:
|
|
|
215
207
|
- lib/eac_rails_utils/rspec/setup/models_utils.rb
|
|
216
208
|
- lib/eac_rails_utils/url_helper.rb
|
|
217
209
|
- lib/eac_rails_utils/version.rb
|
|
218
|
-
homepage:
|
|
210
|
+
homepage:
|
|
219
211
|
licenses: []
|
|
220
212
|
metadata: {}
|
|
221
|
-
post_install_message:
|
|
213
|
+
post_install_message:
|
|
222
214
|
rdoc_options: []
|
|
223
215
|
require_paths:
|
|
224
216
|
- lib
|
|
@@ -233,8 +225,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
233
225
|
- !ruby/object:Gem::Version
|
|
234
226
|
version: '0'
|
|
235
227
|
requirements: []
|
|
236
|
-
rubygems_version: 3.
|
|
237
|
-
signing_key:
|
|
228
|
+
rubygems_version: 3.4.19
|
|
229
|
+
signing_key:
|
|
238
230
|
specification_version: 4
|
|
239
231
|
summary: Código reutilizável para as aplicações Rails da E.A.C..
|
|
240
232
|
test_files: []
|