eac_active_scaffold 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8a2b84385c6c948f7c05ca29443e6cec6bb25c54ed58ae92ab5b88ba5f48e5d6
4
+ data.tar.gz: 118cf74e6afa4413383cdcb4fb47ef50f2e6cdd4ae348f6f16e53d34649bf738
5
+ SHA512:
6
+ metadata.gz: cbad4f89cda4b72dd36a1b104f6b6f165c300ce43930055fcf1fb86cb0af120d07036e262fa42338d269d484a0ff321a7fdc2151235cf7cbdc534dfc35b7af0b
7
+ data.tar.gz: 0e255fe1f85fc499047fe066b6cdb78c4e3059e64796f7e7c41853aa0b920ca9d22082a43e3f6212e7614e0a1037f483e5021a82fa231f96e2ece79fbf895468
@@ -0,0 +1 @@
1
+ //= require active_scaffold
@@ -0,0 +1,4 @@
1
+ /*
2
+ *= require_self
3
+ *= require active_scaffold
4
+ */
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'active_scaffold'
4
+ require 'eac_active_scaffold/patches'
5
+
6
+ module EacActiveScaffold
7
+ class Engine < ::Rails::Engine; end
8
+ end
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EacActiveScaffold
4
+ module Patches
5
+ module ActionDispatch
6
+ ACTIVE_SCAFFOLD_DEFAULT_CONCERN_NAME = :active_scaffold
7
+
8
+ def active_scaffold
9
+ active_scaffold_concern_set
10
+ active_scaffold_concern_name
11
+ end
12
+
13
+ def active_scaffold_concern_set
14
+ return if @concerns.key?(active_scaffold_concern_name)
15
+
16
+ concern(active_scaffold_concern_name,
17
+ ::ActiveScaffold::Routing::Basic.new(association: true))
18
+ end
19
+
20
+ def active_scaffold_concern_name
21
+ ACTIVE_SCAFFOLD_DEFAULT_CONCERN_NAME
22
+ end
23
+ end
24
+ end
25
+ end
26
+
27
+ require 'action_dispatch/routing/mapper'
28
+ ::ActionDispatch::Routing::Mapper.include(
29
+ ::EacActiveScaffold::Patches::ActionDispatch
30
+ )
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacActiveScaffold
6
+ module Patches
7
+ require_sub __FILE__, base: nil, require_dependency: false
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EacActiveScaffold
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacActiveScaffold
6
+ require_sub __FILE__, base: nil, require_dependency: false
7
+ end
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: eac_active_scaffold
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Put here the authors
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2021-09-04 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: active_scaffold
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 3.5.5
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 3.5.5
27
+ - !ruby/object:Gem::Dependency
28
+ name: eac_ruby_utils
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.74'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.74'
41
+ - !ruby/object:Gem::Dependency
42
+ name: eac_ruby_gem_support
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.4'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.4'
55
+ description:
56
+ email:
57
+ executables: []
58
+ extensions: []
59
+ extra_rdoc_files: []
60
+ files:
61
+ - app/assets/javascripts/eac_active_scaffold.js
62
+ - app/assets/stylesheets/eac_active_scaffold.css
63
+ - lib/eac_active_scaffold.rb
64
+ - lib/eac_active_scaffold/engine.rb
65
+ - lib/eac_active_scaffold/patches.rb
66
+ - lib/eac_active_scaffold/patches/action_dispatch.rb
67
+ - lib/eac_active_scaffold/version.rb
68
+ homepage:
69
+ licenses: []
70
+ metadata: {}
71
+ post_install_message:
72
+ rdoc_options: []
73
+ require_paths:
74
+ - lib
75
+ required_ruby_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubygems_version: 3.1.6
87
+ signing_key:
88
+ specification_version: 4
89
+ summary: Put here de description.
90
+ test_files: []