eac_rails_utils 0.8.0 → 0.9.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/Rakefile +2 -0
- data/app/helpers/eac_rails_utils/formatter_helper.rb +2 -0
- data/app/helpers/eac_rails_utils/links_helper.rb +4 -1
- data/app/helpers/eac_rails_utils/open_graph_protocol_helper.rb +2 -0
- data/lib/eac/common_form_helper.rb +3 -0
- data/lib/eac/common_form_helper/form_builder.rb +2 -0
- data/lib/eac/common_form_helper/form_builder/association_select_field.rb +4 -1
- data/lib/eac/common_form_helper/form_builder/common_text_fields.rb +3 -2
- data/lib/eac/common_form_helper/form_builder/currency_field.rb +13 -11
- data/lib/eac/common_form_helper/form_builder/date_field.rb +2 -0
- data/lib/eac/common_form_helper/form_builder/fields_for.rb +2 -0
- data/lib/eac/common_form_helper/form_builder/file_field.rb +1 -0
- data/lib/eac/common_form_helper/form_builder/radio_select_field.rb +4 -1
- data/lib/eac/common_form_helper/form_builder/searchable_association_field.rb +6 -2
- data/lib/eac/common_form_helper/form_builder/select_field.rb +2 -0
- data/lib/eac/common_form_helper/form_builder/time_field.rb +1 -0
- data/lib/eac/common_form_helper/form_builder/year_month_field.rb +1 -0
- data/lib/eac/cpf_validator.rb +7 -3
- data/lib/eac/data_table_helper.rb +1 -0
- data/lib/eac/data_table_helper/column.rb +5 -2
- data/lib/eac/data_table_helper/data_table.rb +11 -9
- data/lib/eac/data_table_helper/setup.rb +1 -0
- data/lib/eac/htmlbeautifier.rb +2 -0
- data/lib/eac/inequality_queries.rb +2 -1
- data/lib/eac/menus_helper.rb +5 -1
- data/lib/eac/menus_helper/bootstrap_gui_builder.rb +7 -4
- data/lib/eac/menus_helper/data_builder.rb +6 -1
- data/lib/eac/menus_helper/gui_builder.rb +5 -2
- data/lib/eac/model.rb +8 -5
- data/lib/eac/no_presence_validator.rb +2 -2
- data/lib/eac/test_utils.rb +17 -12
- data/lib/eac_rails_utils.rb +4 -5
- data/lib/eac_rails_utils/engine.rb +1 -0
- data/lib/eac_rails_utils/patches/action_controller_base.rb +1 -0
- data/lib/eac_rails_utils/patches/model_attribute_required.rb +3 -0
- data/lib/eac_rails_utils/patches/ofx_parser.rb +5 -4
- data/lib/eac_rails_utils/tableless_model.rb +6 -4
- data/lib/eac_rails_utils/version.rb +2 -1
- data/test/app/helpers/eac_rails_utils/formatter_helper_test.rb +1 -0
- data/test/dummy/Rakefile +3 -1
- data/test/dummy/app/models/job.rb +2 -0
- data/test/dummy/app/models/user.rb +2 -0
- data/test/dummy/config.ru +2 -0
- data/test/dummy/config/application.rb +3 -1
- data/test/dummy/config/boot.rb +3 -1
- data/test/dummy/config/environment.rb +3 -1
- data/test/dummy/config/environments/test.rb +2 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/db/migrate/20160415125333_create_users.rb +2 -0
- data/test/dummy/db/migrate/20160415143123_create_jobs.rb +2 -0
- data/test/dummy/db/migrate/20160415143229_add_job_to_users.rb +2 -0
- data/test/lib/eac/common_form_helper_test.rb +2 -0
- data/test/lib/eac/cpf_validator_test.rb +2 -0
- data/test/lib/eac/{data_table_test_helper.rb → data_table_test_helper_test.rb} +2 -1
- data/test/lib/eac/model_test.rb +2 -0
- data/test/lib/eac_rails_utils/patches/model_attribute_required_test.rb +2 -0
- data/test/lib/eac_rails_utils/tableless_model_test.rb +1 -1
- data/test/test_helper.rb +3 -1
- metadata +65 -51
- data/lib/eac/parsers/files_test.rb +0 -63
- data/lib/eac/source_target_fixtures.rb +0 -66
- data/test/lib/eac/parsers/files_test_test.rb +0 -27
- data/test/lib/eac/parsers/ok_test_files/a.source.yaml +0 -1
- data/test/lib/eac/parsers/ok_test_files/a.target.yaml +0 -1
- data/test/lib/eac/parsers/ok_test_files/b.source.yaml +0 -1
- data/test/lib/eac/parsers/ok_test_files/b.target.yaml +0 -1
- data/test/lib/eac/source_target_fixtures_test.rb +0 -41
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Eac
|
2
4
|
module MenusHelper
|
3
5
|
class DataBuilder
|
@@ -12,7 +14,8 @@ module Eac
|
|
12
14
|
private
|
13
15
|
|
14
16
|
def build_entries(entries, level)
|
15
|
-
|
17
|
+
raise 'Argument "entries" is not a hash' unless entries.is_a?(Hash)
|
18
|
+
|
16
19
|
r = entries.map { |k, v| build_entry(k, v, level) }.select { |e| e }
|
17
20
|
r.empty? ? nil : r
|
18
21
|
end
|
@@ -28,12 +31,14 @@ module Eac
|
|
28
31
|
def build_group(label, menu_entries, level)
|
29
32
|
e = build_entries(menu_entries, level + 1)
|
30
33
|
return nil unless e
|
34
|
+
|
31
35
|
{ type: :group, label: label, children: e, level: level }
|
32
36
|
end
|
33
37
|
|
34
38
|
def build_item(label, value, level)
|
35
39
|
path, options = menu_item_options(value)
|
36
40
|
return nil unless can_access_path?(path, options[:link_method])
|
41
|
+
|
37
42
|
{ type: :item, label: label, path: path, options: options, level: level }
|
38
43
|
end
|
39
44
|
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Eac
|
2
4
|
module MenusHelper
|
3
5
|
class GuiBuilder
|
@@ -6,7 +8,8 @@ module Eac
|
|
6
8
|
end
|
7
9
|
|
8
10
|
def build(entries, options = {})
|
9
|
-
|
11
|
+
raise 'Argument "entries" is not a array' unless entries.is_a?(Array)
|
12
|
+
|
10
13
|
@view.content_tag(:ul, options) do
|
11
14
|
b = ActiveSupport::SafeBuffer.new
|
12
15
|
entries.map { |v| menu_entry(v) }.each { |e| b << e }
|
@@ -22,7 +25,7 @@ module Eac
|
|
22
25
|
elsif entry[:type] == :item
|
23
26
|
menu_item(entry[:label], entry[:path], entry[:options])
|
24
27
|
else
|
25
|
-
|
28
|
+
raise "Unknown menu entry type: \"#{entry[:type]}\""
|
26
29
|
end
|
27
30
|
end
|
28
31
|
|
data/lib/eac/model.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Eac
|
2
4
|
module Model
|
3
5
|
# Adiciona as mensagens de erro de record. As mensagens de uma coluna X em record
|
@@ -22,7 +24,8 @@ module Eac
|
|
22
24
|
end
|
23
25
|
|
24
26
|
def fetch_column_errors(record, record_column, self_column, options = {})
|
25
|
-
return if options[:skip]
|
27
|
+
return if options[:skip]&.include?(record_column)
|
28
|
+
|
26
29
|
record.errors[record_column].each do |message|
|
27
30
|
fetch_error_column_message(self_column, message, options[:default_column],
|
28
31
|
"#{record.class.human_attribute_name(record_column)}: ")
|
@@ -35,9 +38,8 @@ module Eac
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def save_or_raise
|
38
|
-
unless save
|
39
|
-
|
40
|
-
end
|
41
|
+
raise "Falha ao tentar salvar #{self.class.name}: #{errors_to_string}" unless save
|
42
|
+
|
41
43
|
self
|
42
44
|
end
|
43
45
|
|
@@ -57,13 +59,14 @@ module Eac
|
|
57
59
|
# ainda não a possui
|
58
60
|
def add_error_message(column, message)
|
59
61
|
return if errors[column].include?(message)
|
62
|
+
|
60
63
|
errors.add(column, message)
|
61
64
|
end
|
62
65
|
|
63
66
|
# Produz uma lista de campos-mensagens, em ordem de preferência,
|
64
67
|
# que podem receber uma mensagem de falha.
|
65
68
|
def build_self_columns_messages(column, message, default_column,
|
66
|
-
|
69
|
+
default_column_message_prefix)
|
67
70
|
r = { column => message }
|
68
71
|
m = /^(.+)_id$/.match(column)
|
69
72
|
if m
|
@@ -1,11 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
1
|
# frozen_string_literal: true
|
2
|
+
|
4
3
|
module Eac
|
5
4
|
# https://stackoverflow.com/questions/10070786/rails-3-validation-presence-false
|
6
5
|
class NoPresenceValidator < ActiveModel::EachValidator
|
7
6
|
def validate_each(record, attribute, _value)
|
8
7
|
return if record.send(attribute).blank?
|
8
|
+
|
9
9
|
record.errors[attribute] << (options[:message] || 'must be blank')
|
10
10
|
end
|
11
11
|
end
|
data/lib/eac/test_utils.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module Eac
|
3
4
|
module TestUtils
|
4
5
|
# Add more helper methods to be used by all tests here...
|
@@ -27,8 +28,8 @@ module Eac
|
|
27
28
|
def assert_column_changes(ppp, expected_valid_result, changes)
|
28
29
|
changes.each do |k, v|
|
29
30
|
ppp.send("#{k}=", v)
|
30
|
-
assert_equal expected_valid_result, ppp.valid?,
|
31
|
-
|
31
|
+
assert_equal expected_valid_result, ppp.valid?,
|
32
|
+
"\"#{k}\" change should be " + (expected_valid_result ? 'valid' : 'invalid')
|
32
33
|
assert_not ppp.errors[k].empty? unless expected_valid_result
|
33
34
|
ppp.restore_attributes
|
34
35
|
end
|
@@ -39,18 +40,22 @@ module Eac
|
|
39
40
|
def all_combinations(attrs)
|
40
41
|
combs = [{}]
|
41
42
|
attrs.each do |attr_name, value|
|
42
|
-
|
43
|
-
assert_not value.nil?, "#{attr_name}=#{value}"
|
44
|
-
[nil, value].each do |vv|
|
45
|
-
combs.each do |c|
|
46
|
-
cc = c.dup
|
47
|
-
cc[attr_name] = vv
|
48
|
-
new_comb << cc
|
49
|
-
end
|
50
|
-
end
|
51
|
-
combs = new_comb
|
43
|
+
combs = all_combinations_new_combination(attr_name, value, combs)
|
52
44
|
end
|
53
45
|
combs
|
54
46
|
end
|
47
|
+
|
48
|
+
def all_combinations_new_combination(attr_name, value, combs)
|
49
|
+
new_comb = []
|
50
|
+
assert_not value.nil?, "#{attr_name}=#{value}"
|
51
|
+
[nil, value].each do |vv|
|
52
|
+
combs.each do |c|
|
53
|
+
cc = c.dup
|
54
|
+
cc[attr_name] = vv
|
55
|
+
new_comb << cc
|
56
|
+
end
|
57
|
+
end
|
58
|
+
new_comb
|
59
|
+
end
|
55
60
|
end
|
56
61
|
end
|
data/lib/eac_rails_utils.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'active_support/dependencies'
|
3
4
|
|
4
5
|
module EacRailsUtils
|
@@ -35,11 +36,9 @@ module EacRailsUtils
|
|
35
36
|
require 'eac/menus_helper/gui_builder'
|
36
37
|
require 'eac/model'
|
37
38
|
require 'eac/no_presence_validator'
|
38
|
-
require 'eac/parsers/files_test'
|
39
|
-
require 'eac/source_target_fixtures'
|
40
39
|
require 'eac/test_utils'
|
41
40
|
|
42
|
-
ActionView::Base.
|
43
|
-
ActionView::Base.
|
44
|
-
ActionView::Base.
|
41
|
+
ActionView::Base.include Eac::CommonFormHelper
|
42
|
+
ActionView::Base.include Eac::DataTableHelper
|
43
|
+
ActionView::Base.include Eac::MenusHelper
|
45
44
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'active_record'
|
2
4
|
|
3
5
|
module EacRailsUtils
|
@@ -27,5 +29,6 @@ end
|
|
27
29
|
|
28
30
|
[::ActiveRecord::Base, ::ActiveModel::Model].each do |c|
|
29
31
|
next if c.included_modules.include? ::EacRailsUtils::Patches::ModelAttributeRequired
|
32
|
+
|
30
33
|
c.include ::EacRailsUtils::Patches::ModelAttributeRequired
|
31
34
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
require 'ofx-parser'
|
3
4
|
|
4
5
|
module EacRailsUtils
|
@@ -14,9 +15,9 @@ module EacRailsUtils
|
|
14
15
|
end
|
15
16
|
|
16
17
|
module ClassMethods
|
17
|
-
def build_transaction(
|
18
|
+
def build_transaction(transaction)
|
18
19
|
r = super
|
19
|
-
r.currate = (
|
20
|
+
r.currate = (transaction / 'CURRENCY/CURRATE').inner_text
|
20
21
|
r
|
21
22
|
end
|
22
23
|
end
|
@@ -32,11 +33,11 @@ end
|
|
32
33
|
unless ::OfxParser::OfxParser.included_modules.include?(
|
33
34
|
::EacRailsUtils::Patches::OfxParser::OfxParser
|
34
35
|
)
|
35
|
-
::OfxParser::OfxParser.
|
36
|
+
::OfxParser::OfxParser.include ::EacRailsUtils::Patches::OfxParser::OfxParser
|
36
37
|
end
|
37
38
|
|
38
39
|
unless ::OfxParser::Transaction.included_modules.include?(
|
39
40
|
::EacRailsUtils::Patches::OfxParser::Transaction
|
40
41
|
)
|
41
|
-
::OfxParser::Transaction.
|
42
|
+
::OfxParser::Transaction.include ::EacRailsUtils::Patches::OfxParser::Transaction
|
42
43
|
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
+
|
2
3
|
module EacRailsUtils
|
3
4
|
class TablelessModel
|
4
5
|
include ActiveModel::Model
|
@@ -34,7 +35,7 @@ module EacRailsUtils
|
|
34
35
|
end
|
35
36
|
|
36
37
|
class AttributesBuilder
|
37
|
-
DATE_TIME_FIELDS = %i
|
38
|
+
DATE_TIME_FIELDS = %i[year month day hour min sec].freeze
|
38
39
|
|
39
40
|
def initialize(model_class, values)
|
40
41
|
@model_class = model_class
|
@@ -59,9 +60,9 @@ module EacRailsUtils
|
|
59
60
|
|
60
61
|
def parse_array_attr_key(key)
|
61
62
|
m = /\A(.+)\(([0-9]+)(.)\)\z/.match(key)
|
62
|
-
|
63
|
-
|
64
|
-
|
63
|
+
return unless m
|
64
|
+
|
65
|
+
::OpenStruct.new(key: m[1], index: m[2].to_i - 1, converter: array_value_converter(m[3]))
|
65
66
|
end
|
66
67
|
|
67
68
|
def array_value_set(array_attr, value)
|
@@ -83,6 +84,7 @@ module EacRailsUtils
|
|
83
84
|
def date_time_attribute?(key)
|
84
85
|
attr = @model_class.attributes[key]
|
85
86
|
return false unless attr
|
87
|
+
|
86
88
|
raise attr.to_s
|
87
89
|
end
|
88
90
|
end
|
data/test/dummy/Rakefile
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
4
|
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
3
5
|
|
4
|
-
require File.expand_path('
|
6
|
+
require File.expand_path('config/application', __dir__)
|
5
7
|
|
6
8
|
Rails.application.load_tasks
|
data/test/dummy/config.ru
CHANGED
data/test/dummy/config/boot.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Set up gems listed in the Gemfile.
|
2
|
-
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('
|
4
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
|
3
5
|
|
4
6
|
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
data/test/dummy/config/routes.rb
CHANGED
data/test/lib/eac/model_test.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
ENV['RAILS_ENV'] = 'test'
|
2
|
-
require File.expand_path('
|
4
|
+
require File.expand_path('../test/dummy/config/environment.rb', __dir__)
|
3
5
|
require 'rails/test_help'
|
4
6
|
|
5
7
|
module ActiveSupport
|
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.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- E.A.C.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel-associations
|
@@ -25,25 +25,19 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.1.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: bootstrap-sass
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '4.2'
|
34
31
|
- - ">="
|
35
32
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
33
|
+
version: 3.3.6
|
37
34
|
type: :runtime
|
38
35
|
prerelease: false
|
39
36
|
version_requirements: !ruby/object:Gem::Requirement
|
40
37
|
requirements:
|
41
|
-
- - "~>"
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: '4.2'
|
44
38
|
- - ">="
|
45
39
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
40
|
+
version: 3.3.6
|
47
41
|
- !ruby/object:Gem::Dependency
|
48
42
|
name: htmlbeautifier
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -59,33 +53,39 @@ dependencies:
|
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: 1.1.1
|
61
55
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
56
|
+
name: ofx-parser
|
63
57
|
requirement: !ruby/object:Gem::Requirement
|
64
58
|
requirements:
|
65
59
|
- - ">="
|
66
60
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
61
|
+
version: 1.1.0
|
68
62
|
type: :runtime
|
69
63
|
prerelease: false
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
71
65
|
requirements:
|
72
66
|
- - ">="
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
68
|
+
version: 1.1.0
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
70
|
+
name: rails
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
78
72
|
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '4.2'
|
79
76
|
- - ">="
|
80
77
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
78
|
+
version: 4.2.1
|
82
79
|
type: :runtime
|
83
80
|
prerelease: false
|
84
81
|
version_requirements: !ruby/object:Gem::Requirement
|
85
82
|
requirements:
|
83
|
+
- - "~>"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '4.2'
|
86
86
|
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 4.2.1
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: virtus
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,6 +114,34 @@ dependencies:
|
|
114
114
|
- - ">="
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rubocop
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: 0.80.0
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: 0.80.0
|
131
|
+
- !ruby/object:Gem::Dependency
|
132
|
+
name: rubocop-rails
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
134
|
+
requirements:
|
135
|
+
- - "~>"
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: 2.4.2
|
138
|
+
type: :development
|
139
|
+
prerelease: false
|
140
|
+
version_requirements: !ruby/object:Gem::Requirement
|
141
|
+
requirements:
|
142
|
+
- - "~>"
|
143
|
+
- !ruby/object:Gem::Version
|
144
|
+
version: 2.4.2
|
117
145
|
- !ruby/object:Gem::Dependency
|
118
146
|
name: sqlite3
|
119
147
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,8 +203,6 @@ files:
|
|
175
203
|
- lib/eac/menus_helper/gui_builder.rb
|
176
204
|
- lib/eac/model.rb
|
177
205
|
- lib/eac/no_presence_validator.rb
|
178
|
-
- lib/eac/parsers/files_test.rb
|
179
|
-
- lib/eac/source_target_fixtures.rb
|
180
206
|
- lib/eac/test_utils.rb
|
181
207
|
- lib/eac_rails_utils.rb
|
182
208
|
- lib/eac_rails_utils/engine.rb
|
@@ -204,14 +230,8 @@ files:
|
|
204
230
|
- test/dummy/db/schema.rb
|
205
231
|
- test/lib/eac/common_form_helper_test.rb
|
206
232
|
- test/lib/eac/cpf_validator_test.rb
|
207
|
-
- test/lib/eac/
|
233
|
+
- test/lib/eac/data_table_test_helper_test.rb
|
208
234
|
- test/lib/eac/model_test.rb
|
209
|
-
- test/lib/eac/parsers/files_test_test.rb
|
210
|
-
- test/lib/eac/parsers/ok_test_files/a.source.yaml
|
211
|
-
- test/lib/eac/parsers/ok_test_files/a.target.yaml
|
212
|
-
- test/lib/eac/parsers/ok_test_files/b.source.yaml
|
213
|
-
- test/lib/eac/parsers/ok_test_files/b.target.yaml
|
214
|
-
- test/lib/eac/source_target_fixtures_test.rb
|
215
235
|
- test/lib/eac/source_target_fixtures_test_files/a.source.html
|
216
236
|
- test/lib/eac/source_target_fixtures_test_files/a.target.yaml
|
217
237
|
- test/lib/eac/source_target_fixtures_test_files/b.source.html
|
@@ -243,37 +263,31 @@ signing_key:
|
|
243
263
|
specification_version: 4
|
244
264
|
summary: Código reutilizável para as aplicações Rails da E.A.C..
|
245
265
|
test_files:
|
246
|
-
- test/
|
247
|
-
- test/
|
248
|
-
- test/
|
249
|
-
- test/lib/eac/data_table_test_helper.rb
|
250
|
-
- test/lib/eac/cpf_validator_test.rb
|
251
|
-
- test/lib/eac/model_test.rb
|
252
|
-
- test/lib/eac/common_form_helper_test.rb
|
253
|
-
- test/lib/eac/source_target_fixtures_test_files/a.target.yaml
|
254
|
-
- test/lib/eac/source_target_fixtures_test_files/b.source.html
|
255
|
-
- test/lib/eac/source_target_fixtures_test_files/c.target.yaml
|
256
|
-
- test/lib/eac/source_target_fixtures_test_files/a.source.html
|
257
|
-
- test/lib/eac/parsers/files_test_test.rb
|
258
|
-
- test/lib/eac/parsers/ok_test_files/a.target.yaml
|
259
|
-
- test/lib/eac/parsers/ok_test_files/b.source.yaml
|
260
|
-
- test/lib/eac/parsers/ok_test_files/b.target.yaml
|
261
|
-
- test/lib/eac/parsers/ok_test_files/a.source.yaml
|
262
|
-
- test/dummy/config/routes.rb
|
266
|
+
- test/dummy/Rakefile
|
267
|
+
- test/dummy/config.ru
|
268
|
+
- test/dummy/config/boot.rb
|
263
269
|
- test/dummy/config/database.yml
|
264
270
|
- test/dummy/config/secrets.yml
|
265
271
|
- test/dummy/config/locales/pt-BR.yml
|
266
|
-
- test/dummy/config/environment.rb
|
267
|
-
- test/dummy/config/boot.rb
|
268
272
|
- test/dummy/config/application.rb
|
269
273
|
- test/dummy/config/environments/test.rb
|
270
|
-
- test/dummy/
|
271
|
-
- test/dummy/config.
|
272
|
-
- test/dummy/app/models/user.rb
|
273
|
-
- test/dummy/app/models/job.rb
|
274
|
+
- test/dummy/config/environment.rb
|
275
|
+
- test/dummy/config/routes.rb
|
274
276
|
- test/dummy/db/schema.rb
|
275
|
-
- test/dummy/db/migrate/20160415125333_create_users.rb
|
276
277
|
- test/dummy/db/migrate/20160415143123_create_jobs.rb
|
277
278
|
- test/dummy/db/migrate/20160415143229_add_job_to_users.rb
|
278
|
-
- test/
|
279
|
+
- test/dummy/db/migrate/20160415125333_create_users.rb
|
280
|
+
- test/dummy/app/models/job.rb
|
281
|
+
- test/dummy/app/models/user.rb
|
279
282
|
- test/test_helper.rb
|
283
|
+
- test/app/helpers/eac_rails_utils/formatter_helper_test.rb
|
284
|
+
- test/lib/eac_rails_utils/patches/model_attribute_required_test.rb
|
285
|
+
- test/lib/eac_rails_utils/tableless_model_test.rb
|
286
|
+
- test/lib/eac/common_form_helper_test.rb
|
287
|
+
- test/lib/eac/data_table_test_helper_test.rb
|
288
|
+
- test/lib/eac/cpf_validator_test.rb
|
289
|
+
- test/lib/eac/source_target_fixtures_test_files/c.target.yaml
|
290
|
+
- test/lib/eac/source_target_fixtures_test_files/b.source.html
|
291
|
+
- test/lib/eac/source_target_fixtures_test_files/a.target.yaml
|
292
|
+
- test/lib/eac/source_target_fixtures_test_files/a.source.html
|
293
|
+
- test/lib/eac/model_test.rb
|