haml_coffee_assets 1.18.0 → 1.19.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 +5 -5
- data/README.md +1 -1
- data/lib/haml_coffee_assets/transformer.rb +5 -5
- data/lib/haml_coffee_assets/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d33fc6ea36cd0382ca9b29dec3e84f90dab547d5b8ddc39b66c87220ca5cc75c
|
|
4
|
+
data.tar.gz: 4810434b00ae506af8686f6d2d7da6519b20ccb00d309ac32cb951d8ee31b186
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 447e637da82634f30a4a459665dbc22addfe63d285c1590bdb98db948516039a72082b7f364f73861293cc52f16edaf9e54bcb3e6d6295dacda1c96426d7ef8d
|
|
7
|
+
data.tar.gz: 996fc5d75d6782cfd9379f1f99ce36bba561982d43deff7ef8fcf921c258d91668c697446b7fd54e9bd0800d7b626c7a2494a74a13a4965194aa03a811495c22
|
data/README.md
CHANGED
|
@@ -94,7 +94,7 @@ removed.
|
|
|
94
94
|
|
|
95
95
|
When you give your templates the extension `.jst.hamlc`, Haml Coffee Assets will only generate the template function,
|
|
96
96
|
which then in turn will be further processed by the
|
|
97
|
-
[Sprocket JST processor](https://github.com/
|
|
97
|
+
[Sprocket JST processor](https://github.com/rails/sprockets/blob/master/lib/sprockets/jst_processor.rb). Because
|
|
98
98
|
Haml Coffee Assets will not generate the template, you can't use the AMD support, template name filter and the JST
|
|
99
99
|
namespace definition is more cumbersome compared to the Haml Coffee template generation.
|
|
100
100
|
|
|
@@ -10,23 +10,23 @@ module HamlCoffeeAssets
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def render(context, empty_hash_wtf)
|
|
13
|
-
self.class.run(@filename, @source, context)
|
|
13
|
+
self.class.run(@filename, @filename, @source, context)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def self.run(filename, source, context)
|
|
16
|
+
def self.run(filename, name, source, context)
|
|
17
17
|
jst = !!(filename =~ /\.jst\.hamlc(?:\.|$)/)
|
|
18
|
-
name = filename
|
|
19
18
|
name = HamlCoffeeAssets.config.name_filter.call(name) if HamlCoffeeAssets.config.name_filter && !jst
|
|
20
19
|
|
|
21
20
|
HamlCoffeeAssets::Compiler.compile(name, source, !jst)
|
|
22
21
|
end
|
|
23
22
|
|
|
24
23
|
def self.call(input)
|
|
25
|
-
filename = input[:
|
|
24
|
+
filename = input[:filename]
|
|
25
|
+
name = input[:name]
|
|
26
26
|
source = input[:data]
|
|
27
27
|
context = input[:environment].context_class.new(input)
|
|
28
28
|
|
|
29
|
-
result = run(filename, source, context)
|
|
29
|
+
result = run(filename, name, source, context)
|
|
30
30
|
context.metadata.merge(data: result)
|
|
31
31
|
end
|
|
32
32
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: haml_coffee_assets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.19.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Kessler
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2021-02-25 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: coffee-script
|
|
@@ -266,8 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
266
266
|
- !ruby/object:Gem::Version
|
|
267
267
|
version: 1.3.6
|
|
268
268
|
requirements: []
|
|
269
|
-
|
|
270
|
-
rubygems_version: 2.6.10
|
|
269
|
+
rubygems_version: 3.0.8
|
|
271
270
|
signing_key:
|
|
272
271
|
specification_version: 4
|
|
273
272
|
summary: Haml CoffeeScript templates
|