eac_active_scaffold 0.7.1 → 0.8.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/lib/eac_active_scaffold/engine.rb +0 -6
- data/lib/eac_active_scaffold/patches.rb +0 -2
- data/lib/eac_active_scaffold/rspec/controller_director/attribute_set.rb +0 -2
- data/lib/eac_active_scaffold/rspec/controller_director.rb +0 -2
- data/lib/eac_active_scaffold/rspec/setup.rb +0 -2
- data/lib/eac_active_scaffold/rspec/shared_contexts/active_scaffold_controller.rb +10 -7
- data/lib/eac_active_scaffold/version.rb +1 -1
- data/lib/eac_active_scaffold.rb +10 -0
- metadata +13 -26
- data/lib/eac_active_scaffold/rspec.rb +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b634445f882dc54a1ca50b8a2541a1f059ba392c05435e1e01b636467098cda
|
|
4
|
+
data.tar.gz: 671d15a7babac611fe76fe319c9cd123681fe3ee37941a9e3147451bfa0a644f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8189c241c60e52d5fa8e9422d1f86e567973311a40d5339000760ff632ad82a52a5620234f03219769b4d069ca44737890cd0d407b008a2a1bef7167095eebc0
|
|
7
|
+
data.tar.gz: 695711c5feb087a9be7345d935389192cb66f49af3eb05c6dcf8241c4ef870858750c503871868f867d2f98fda576922a3ae9a4281641f1870b2a6138dc28775
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'eac_ruby_utils'
|
|
4
|
-
require 'eac_rails_utils'
|
|
5
|
-
require 'active_scaffold'
|
|
6
|
-
require 'recordselect'
|
|
7
|
-
require 'eac_active_scaffold/patches'
|
|
8
|
-
|
|
9
3
|
module EacActiveScaffold
|
|
10
4
|
class Engine < ::Rails::Engine
|
|
11
5
|
include ::EacRailsUtils::EngineHelper
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
require 'eac_active_scaffold/rspec/controller_director'
|
|
4
|
-
|
|
5
3
|
RSpec.shared_context 'active_scaffold_controller' do |options| # rubocop:disable Metrics/BlockLength
|
|
6
4
|
director = EacActiveScaffold::Rspec::ControllerDirector.new(self, options)
|
|
7
5
|
|
|
@@ -35,15 +33,18 @@ RSpec.shared_context 'active_scaffold_controller' do |options| # rubocop:disable
|
|
|
35
33
|
end
|
|
36
34
|
|
|
37
35
|
it 'have a edit link for record' do
|
|
38
|
-
|
|
36
|
+
options = edit_link_args.extract_options!
|
|
37
|
+
expect(page).to have_link(*edit_link_args, **options)
|
|
39
38
|
end
|
|
40
39
|
|
|
41
40
|
it 'have a remove link for record' do
|
|
42
|
-
|
|
41
|
+
options = remove_link_args.extract_options!
|
|
42
|
+
expect(page).to have_link(*remove_link_args, **options)
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
it 'have a show link for record' do
|
|
46
|
-
|
|
46
|
+
options = show_link_args.extract_options!
|
|
47
|
+
expect(page).to have_link(*show_link_args, **options)
|
|
47
48
|
end
|
|
48
49
|
|
|
49
50
|
context 'when record is updated' do
|
|
@@ -51,7 +52,8 @@ RSpec.shared_context 'active_scaffold_controller' do |options| # rubocop:disable
|
|
|
51
52
|
|
|
52
53
|
before do
|
|
53
54
|
before_update_count
|
|
54
|
-
|
|
55
|
+
options = edit_link_args.extract_options!
|
|
56
|
+
click_link(*edit_link_args, **options)
|
|
55
57
|
director.attributes_set(self, director.valid_update_data)
|
|
56
58
|
click_on I18n.t('active_scaffold.update')
|
|
57
59
|
end
|
|
@@ -66,7 +68,8 @@ RSpec.shared_context 'active_scaffold_controller' do |options| # rubocop:disable
|
|
|
66
68
|
|
|
67
69
|
before do
|
|
68
70
|
before_destroy_count
|
|
69
|
-
|
|
71
|
+
options = remove_link_args.extract_options!
|
|
72
|
+
click_link(*remove_link_args, **options)
|
|
70
73
|
end
|
|
71
74
|
|
|
72
75
|
it 'decrements record count' do
|
data/lib/eac_active_scaffold.rb
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
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 EacActiveScaffold
|
|
4
9
|
end
|
|
5
10
|
|
|
11
|
+
require 'eac_rails_utils'
|
|
12
|
+
require 'active_scaffold'
|
|
13
|
+
require 'recordselect'
|
|
14
|
+
|
|
15
|
+
require 'eac_active_scaffold/patches'
|
|
6
16
|
require 'eac_active_scaffold/engine'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eac_active_scaffold
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Put here the authors
|
|
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: active_scaffold
|
|
@@ -36,40 +36,28 @@ dependencies:
|
|
|
36
36
|
requirements:
|
|
37
37
|
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: '0.
|
|
40
|
-
- - ">="
|
|
41
|
-
- !ruby/object:Gem::Version
|
|
42
|
-
version: 0.26.2
|
|
39
|
+
version: '0.27'
|
|
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.26.2
|
|
46
|
+
version: '0.27'
|
|
53
47
|
- !ruby/object:Gem::Dependency
|
|
54
48
|
name: eac_ruby_utils
|
|
55
49
|
requirement: !ruby/object:Gem::Requirement
|
|
56
50
|
requirements:
|
|
57
51
|
- - "~>"
|
|
58
52
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '0.
|
|
60
|
-
- - ">="
|
|
61
|
-
- !ruby/object:Gem::Version
|
|
62
|
-
version: 0.128.3
|
|
53
|
+
version: '0.130'
|
|
63
54
|
type: :runtime
|
|
64
55
|
prerelease: false
|
|
65
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
66
57
|
requirements:
|
|
67
58
|
- - "~>"
|
|
68
59
|
- !ruby/object:Gem::Version
|
|
69
|
-
version: '0.
|
|
70
|
-
- - ">="
|
|
71
|
-
- !ruby/object:Gem::Version
|
|
72
|
-
version: 0.128.3
|
|
60
|
+
version: '0.130'
|
|
73
61
|
- !ruby/object:Gem::Dependency
|
|
74
62
|
name: recordselect
|
|
75
63
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -104,8 +92,8 @@ dependencies:
|
|
|
104
92
|
- - "~>"
|
|
105
93
|
- !ruby/object:Gem::Version
|
|
106
94
|
version: '0.11'
|
|
107
|
-
description:
|
|
108
|
-
email:
|
|
95
|
+
description:
|
|
96
|
+
email:
|
|
109
97
|
executables: []
|
|
110
98
|
extensions: []
|
|
111
99
|
extra_rdoc_files: []
|
|
@@ -117,16 +105,15 @@ files:
|
|
|
117
105
|
- lib/eac_active_scaffold/engine.rb
|
|
118
106
|
- lib/eac_active_scaffold/patches.rb
|
|
119
107
|
- lib/eac_active_scaffold/patches/action_dispatch.rb
|
|
120
|
-
- lib/eac_active_scaffold/rspec.rb
|
|
121
108
|
- lib/eac_active_scaffold/rspec/controller_director.rb
|
|
122
109
|
- lib/eac_active_scaffold/rspec/controller_director/attribute_set.rb
|
|
123
110
|
- lib/eac_active_scaffold/rspec/setup.rb
|
|
124
111
|
- lib/eac_active_scaffold/rspec/shared_contexts/active_scaffold_controller.rb
|
|
125
112
|
- lib/eac_active_scaffold/version.rb
|
|
126
|
-
homepage:
|
|
113
|
+
homepage:
|
|
127
114
|
licenses: []
|
|
128
115
|
metadata: {}
|
|
129
|
-
post_install_message:
|
|
116
|
+
post_install_message:
|
|
130
117
|
rdoc_options: []
|
|
131
118
|
require_paths:
|
|
132
119
|
- lib
|
|
@@ -141,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
128
|
- !ruby/object:Gem::Version
|
|
142
129
|
version: '0'
|
|
143
130
|
requirements: []
|
|
144
|
-
rubygems_version: 3.
|
|
145
|
-
signing_key:
|
|
131
|
+
rubygems_version: 3.4.19
|
|
132
|
+
signing_key:
|
|
146
133
|
specification_version: 4
|
|
147
134
|
summary: Put here de description.
|
|
148
135
|
test_files: []
|