condenser-rails 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcaba08537cdb45c90f7d1e2c899af0d4a405538ba9277c01b945b9592f169d2
4
- data.tar.gz: afe90aa86f685ed3f7e96a4273aa453d74d20231370a4b056fa2cd974be49413
3
+ metadata.gz: 0c419ad379a67d3d2e658714879e59e7ada8e26f58dc10de23ba3bd515211f05
4
+ data.tar.gz: 902dbacc50a1ebcf167c83d59934f03bdda56eb19d4ae5a0dddddbb6039cab8f
5
5
  SHA512:
6
- metadata.gz: 3efa07e03c561a54c347f4a111c982556febe4f172fca436e6b3f0d85a01b1a1f1e3063fc1a2057de0a32e25a1d9514117ce58891b0e8db7cb3e4ee39d4141a8
7
- data.tar.gz: 37a44b6922f19ff17b9acac7a7340c273e80ce9985d3bb905044a0a6f53db3a309138a219362d5a3dddbcf782c447742d8d1a030e50cb86dc259f3326dfa989c
6
+ metadata.gz: 9e3d16c118ee6e711a2a8d890ab30c184e5d94cf30c505f40f2d19dbb39ab1bf5799d9165279ae840e90f3c984d1548e77fbbcbaf288d2f47011b4d1ccb776d7
7
+ data.tar.gz: ce4dfa5dfd6bb82a5e99bb95287806b3e155fb3e08433d6166a6e29bd4ac706e30aa11ed862e1bf52f66e7bbaceb38a867f07249f76a2c82112515f4ae3fc638
@@ -1,5 +1,5 @@
1
1
  class Condenser
2
2
  module Rails
3
- VERSION = "1.0"
3
+ VERSION = "1.1"
4
4
  end
5
5
  end
@@ -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"
@@ -128,11 +123,9 @@ class Condenser::Railtie < ::Rails::Railtie
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.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bracy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-04 00:00:00.000000000 Z
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.0.rc1
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.0.rc1
26
+ version: '1.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: actionpack
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -156,7 +156,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
156
  - !ruby/object:Gem::Version
157
157
  version: '0'
158
158
  requirements: []
159
- rubygems_version: 3.1.4
159
+ rubygems_version: 3.4.13
160
160
  signing_key:
161
161
  specification_version: 4
162
162
  summary: Condenser integration for Rails