condenser-rails 1.0.rc1 → 1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/condenser/rails/version.rb +1 -1
- data/lib/condenser/railtie.rb +4 -11
- metadata +11 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0c419ad379a67d3d2e658714879e59e7ada8e26f58dc10de23ba3bd515211f05
|
4
|
+
data.tar.gz: 902dbacc50a1ebcf167c83d59934f03bdda56eb19d4ae5a0dddddbb6039cab8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e3d16c118ee6e711a2a8d890ab30c184e5d94cf30c505f40f2d19dbb39ab1bf5799d9165279ae840e90f3c984d1548e77fbbcbaf288d2f47011b4d1ccb776d7
|
7
|
+
data.tar.gz: ce4dfa5dfd6bb82a5e99bb95287806b3e155fb3e08433d6166a6e29bd4ac706e30aa11ed862e1bf52f66e7bbaceb38a867f07249f76a2c82112515f4ae3fc638
|
data/lib/condenser/railtie.rb
CHANGED
@@ -58,14 +58,9 @@ class Condenser::Railtie < ::Rails::Railtie
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
module SassFunctions
|
62
|
-
def asset_path(path, options = {})
|
63
|
-
SassC::Script::Value::String.new(condenser_context.asset_path(path.value, options), :string)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
61
|
config.assets = OrderedOptions.new
|
68
62
|
config.assets._blocks = []
|
63
|
+
config.assets._pipeline = nil
|
69
64
|
config.assets.path = []
|
70
65
|
config.assets.precompile = %w(application.css application.js **/*.jpg **/*.png **/*.gif)
|
71
66
|
config.assets.prefix = "/assets"
|
@@ -124,15 +119,13 @@ class Condenser::Railtie < ::Rails::Railtie
|
|
124
119
|
::Rails.logger.warn "Application uninitialized: Try calling YourApp::Application.initialize!"
|
125
120
|
end
|
126
121
|
|
127
|
-
env = Condenser.new(pipeline: false, logger: ::Rails.logger)
|
122
|
+
env = Condenser.new(pipeline: false, logger: ::Rails.logger, base: app.root.to_s)
|
128
123
|
config = app.config
|
129
124
|
|
130
125
|
if config.assets._pipeline
|
131
|
-
|
126
|
+
config.assets._pipeline.call(env)
|
132
127
|
else
|
133
|
-
env.register_transformer 'text/scss', 'text/css', Condenser::ScssTransformer.new
|
134
|
-
functions: Condenser::Railtie::SassFunctions
|
135
|
-
})
|
128
|
+
env.register_transformer 'text/scss', 'text/css', Condenser::ScssTransformer.new
|
136
129
|
|
137
130
|
if ::Rails.env == 'development'
|
138
131
|
env.register_preprocessor 'application/javascript', Condenser::JSAnalyzer
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: condenser-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: '1.1'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Bracy
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: condenser
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: '1.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: actionpack
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,20 +108,6 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: uglifier
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: minitest-reporters
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,7 +122,7 @@ dependencies:
|
|
136
122
|
- - ">="
|
137
123
|
- !ruby/object:Gem::Version
|
138
124
|
version: '0'
|
139
|
-
description:
|
125
|
+
description:
|
140
126
|
email: jonbracy@gmail.com
|
141
127
|
executables: []
|
142
128
|
extensions: []
|
@@ -155,7 +141,7 @@ homepage: https://github.com/malomalo/condenser-rails
|
|
155
141
|
licenses:
|
156
142
|
- MIT
|
157
143
|
metadata: {}
|
158
|
-
post_install_message:
|
144
|
+
post_install_message:
|
159
145
|
rdoc_options: []
|
160
146
|
require_paths:
|
161
147
|
- lib
|
@@ -166,12 +152,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
166
152
|
version: 2.5.0
|
167
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
154
|
requirements:
|
169
|
-
- - "
|
155
|
+
- - ">="
|
170
156
|
- !ruby/object:Gem::Version
|
171
|
-
version:
|
157
|
+
version: '0'
|
172
158
|
requirements: []
|
173
|
-
rubygems_version: 3.
|
174
|
-
signing_key:
|
159
|
+
rubygems_version: 3.4.13
|
160
|
+
signing_key:
|
175
161
|
specification_version: 4
|
176
162
|
summary: Condenser integration for Rails
|
177
163
|
test_files: []
|