eac_active_scaffold 0.9.0 → 0.10.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/assets.rb +14 -0
- data/lib/eac_active_scaffold/engine.rb +14 -3
- data/lib/eac_active_scaffold/patches/action_dispatch.rb +0 -5
- data/lib/eac_active_scaffold/patches/active_scaffold/assets/css_deps_generator.rb +17 -0
- data/lib/eac_active_scaffold/patches/active_scaffold/assets/jquery_ui_theme_generator.rb +17 -0
- data/lib/eac_active_scaffold/version.rb +1 -1
- metadata +12 -4
- data/lib/eac_active_scaffold/patches.rb +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5547158da92350d4027b5e04d164d8a995807392ea84b620fb517b2e81f8beeb
|
|
4
|
+
data.tar.gz: 412f440e5b89d799ab4edfba617ecbbd7e9c6ce9d1eb585d737cddc1084c9f21
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e1305b0e99c42e67ebd1a1325be3932d7a69e69960488d98e216352d3ce06580d5e5154515605df92df8c3023daa3602749201227c586176d7bfa03eb7102b2
|
|
7
|
+
data.tar.gz: 05bd831c628e8e95bd08e8ebf4ecbd0e319c38594b2471e880b65fcf6df740d5ffdc60df0d887dce948f3da4d5791a2dc10de3d93a4526ec5eae251cf9f1dae8
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacActiveScaffold
|
|
4
|
+
module Assets
|
|
5
|
+
OUTPUT_DIRECTORY_SUBPATH = 'tmp/active_scaffold/assets'
|
|
6
|
+
|
|
7
|
+
class << self
|
|
8
|
+
# @return [Pathname]
|
|
9
|
+
def output_directory
|
|
10
|
+
::Rails.root.join(OUTPUT_DIRECTORY_SUBPATH).tap(&:mkpath)
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -3,13 +3,24 @@
|
|
|
3
3
|
require 'eac_rails_utils'
|
|
4
4
|
require 'eac_ruby_utils'
|
|
5
5
|
require 'active_scaffold'
|
|
6
|
-
require 'dartsass-sprockets'
|
|
6
|
+
require 'dartsass-sprockets' unless defined?(Propshaft)
|
|
7
7
|
require 'recordselect'
|
|
8
8
|
|
|
9
9
|
module EacActiveScaffold
|
|
10
10
|
class Engine < ::Rails::Engine
|
|
11
11
|
include ::EacRailsUtils::EngineHelper
|
|
12
|
+
|
|
13
|
+
initializer 'eac_active_scaffold.assets_output_directory' do |app|
|
|
14
|
+
next unless defined?(Propshaft)
|
|
15
|
+
|
|
16
|
+
app.config.assets.paths <<
|
|
17
|
+
::EacActiveScaffold::Assets.output_directory.to_path
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
initializer 'eac_active_scaffold.patches' do
|
|
21
|
+
::ActionDispatch::Routing::Mapper.include(::EacActiveScaffold::Patches::ActionDispatch)
|
|
22
|
+
::ActiveScaffold::Assets::CssDepsGenerator.prepend(::EacActiveScaffold::Patches::ActiveScaffold::Assets::CssDepsGenerator)
|
|
23
|
+
::ActiveScaffold::Assets::JqueryUiThemeGenerator.prepend(::EacActiveScaffold::Patches::ActiveScaffold::Assets::JqueryUiThemeGenerator)
|
|
24
|
+
end
|
|
12
25
|
end
|
|
13
26
|
end
|
|
14
|
-
|
|
15
|
-
require 'eac_active_scaffold/patches'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacActiveScaffold
|
|
4
|
+
module Patches
|
|
5
|
+
module ActiveScaffold
|
|
6
|
+
module Assets
|
|
7
|
+
module CssDepsGenerator
|
|
8
|
+
# @return [void]
|
|
9
|
+
def initialize
|
|
10
|
+
super
|
|
11
|
+
@css_path = ::EacActiveScaffold::Assets.output_directory.join('active_scaffold/deps.scss')
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EacActiveScaffold
|
|
4
|
+
module Patches
|
|
5
|
+
module ActiveScaffold
|
|
6
|
+
module Assets
|
|
7
|
+
module JqueryUiThemeGenerator
|
|
8
|
+
# @return [void]
|
|
9
|
+
def initialize
|
|
10
|
+
super
|
|
11
|
+
@theme_path = ::EacActiveScaffold::Assets.output_directory.join('active_scaffold/jquery-ui/theme.css')
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.10.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Put here the authors
|
|
@@ -55,14 +55,14 @@ dependencies:
|
|
|
55
55
|
requirements:
|
|
56
56
|
- - "~>"
|
|
57
57
|
- !ruby/object:Gem::Version
|
|
58
|
-
version: '0.
|
|
58
|
+
version: '0.33'
|
|
59
59
|
type: :runtime
|
|
60
60
|
prerelease: false
|
|
61
61
|
version_requirements: !ruby/object:Gem::Requirement
|
|
62
62
|
requirements:
|
|
63
63
|
- - "~>"
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: '0.
|
|
65
|
+
version: '0.33'
|
|
66
66
|
- !ruby/object:Gem::Dependency
|
|
67
67
|
name: eac_ruby_utils
|
|
68
68
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -110,6 +110,9 @@ dependencies:
|
|
|
110
110
|
- - "~>"
|
|
111
111
|
- !ruby/object:Gem::Version
|
|
112
112
|
version: '0.15'
|
|
113
|
+
- - ">="
|
|
114
|
+
- !ruby/object:Gem::Version
|
|
115
|
+
version: 0.15.2
|
|
113
116
|
type: :development
|
|
114
117
|
prerelease: false
|
|
115
118
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -117,6 +120,9 @@ dependencies:
|
|
|
117
120
|
- - "~>"
|
|
118
121
|
- !ruby/object:Gem::Version
|
|
119
122
|
version: '0.15'
|
|
123
|
+
- - ">="
|
|
124
|
+
- !ruby/object:Gem::Version
|
|
125
|
+
version: 0.15.2
|
|
120
126
|
executables: []
|
|
121
127
|
extensions: []
|
|
122
128
|
extra_rdoc_files: []
|
|
@@ -125,9 +131,11 @@ files:
|
|
|
125
131
|
- app/assets/stylesheets/eac_active_scaffold.scss
|
|
126
132
|
- config/locales/pt-BR.yml
|
|
127
133
|
- lib/eac_active_scaffold.rb
|
|
134
|
+
- lib/eac_active_scaffold/assets.rb
|
|
128
135
|
- lib/eac_active_scaffold/engine.rb
|
|
129
|
-
- lib/eac_active_scaffold/patches.rb
|
|
130
136
|
- lib/eac_active_scaffold/patches/action_dispatch.rb
|
|
137
|
+
- lib/eac_active_scaffold/patches/active_scaffold/assets/css_deps_generator.rb
|
|
138
|
+
- lib/eac_active_scaffold/patches/active_scaffold/assets/jquery_ui_theme_generator.rb
|
|
131
139
|
- lib/eac_active_scaffold/rspec/controller_director.rb
|
|
132
140
|
- lib/eac_active_scaffold/rspec/controller_director/attribute_set.rb
|
|
133
141
|
- lib/eac_active_scaffold/rspec/setup.rb
|