haml_coffee_assets 1.18.0 → 1.19.0

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
- SHA1:
3
- metadata.gz: ea92d1734c75b52c55da86b35a0ed6526ef2d8b4
4
- data.tar.gz: 51ed13e4defc83bc40bf622a520506cfb4688d34
2
+ SHA256:
3
+ metadata.gz: d33fc6ea36cd0382ca9b29dec3e84f90dab547d5b8ddc39b66c87220ca5cc75c
4
+ data.tar.gz: 4810434b00ae506af8686f6d2d7da6519b20ccb00d309ac32cb951d8ee31b186
5
5
  SHA512:
6
- metadata.gz: ff544eab8d75b2cb4d163a9fdee95000a655912b1c206774087101d6bee0c4c0ced01e2499ecd3e1e7d166da5f30f9b34edac832cb99aa93983a3126eae0fd5c
7
- data.tar.gz: 55f842a099219ac837591abbc7b0dbc68585aea0419e95051b3a8d94e986fa832c3e47bc75b0e96b0c33f2e7e7326b348e3e65402e342a012697a93d55867700
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/sstephenson/sprockets/blob/master/lib/sprockets/jst_processor.rb). Because
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[:name]
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
@@ -1,5 +1,5 @@
1
1
  # coding: UTF-8
2
2
 
3
3
  module HamlCoffeeAssets
4
- VERSION = '1.18.0' unless defined?(HamlCoffeeAssets::VERSION)
4
+ VERSION = '1.19.0' unless defined?(HamlCoffeeAssets::VERSION)
5
5
  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.18.0
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: 2017-06-23 00:00:00.000000000 Z
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
- rubyforge_project: haml_coffee_assets
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