adzap-mustache-rails 0.3.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/action_view/template/handlers/mustache.rb +3 -3
- metadata +24 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0e594f7fc24af17cb251e53964f33fbbb5410dfc434664930d8e474e6b3dc3a
|
4
|
+
data.tar.gz: f75d73ac684a2e80b5a6a18a2b206d7bc35f8bff0e4ca470b5380eb3eabbdef2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0fac3a7bf95322f8f4922793e86440f3d57f7c00ca678dbb56a43d0b3679f3801a06e3162be9d45c2911051b7fa0606c5e93e6690b21da92ebed41add12c7e8
|
7
|
+
data.tar.gz: adf706f9e1ef1578c4f76ad050c80f3a706c8d0600223002be994ca4d71fef74ab597a9f090fb77710a38a01f9d2579152f2e2acbb5afc69c15a492f3ad4ffec
|
@@ -21,14 +21,14 @@ module ActionView
|
|
21
21
|
# template - ActionView::Template object
|
22
22
|
#
|
23
23
|
# Returns String of Ruby code to be evaled.
|
24
|
-
def self.call(template)
|
24
|
+
def self.call(template, source)
|
25
25
|
# Use standard mustache parser to generate tokens
|
26
|
-
tokens = ::Mustache::Parser.new.compile(
|
26
|
+
tokens = ::Mustache::Parser.new.compile(source)
|
27
27
|
|
28
28
|
# Use custom generator to generate the compiled ruby
|
29
29
|
src = ActionView::Mustache::Generator.new.compile(tokens)
|
30
30
|
|
31
|
-
digest = Digest::MD5.hexdigest(
|
31
|
+
digest = Digest::MD5.hexdigest(source)[0, 10]
|
32
32
|
set_cache_key = "merge({:template_cache_key => \"#{digest}\"})"
|
33
33
|
|
34
34
|
<<-RUBY
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: adzap-mustache-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Meehan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -16,20 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "
|
19
|
+
version: '6.0'
|
20
|
+
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: '7'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - "
|
29
|
+
version: '6.0'
|
30
|
+
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version:
|
32
|
+
version: '7'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: mustache
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: 1.1.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: test-unit
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - ">="
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: rake
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,7 +72,7 @@ dependencies:
|
|
58
72
|
- - ">="
|
59
73
|
- !ruby/object:Gem::Version
|
60
74
|
version: '0'
|
61
|
-
description: Implements Mustache views and templates for Rails
|
75
|
+
description: Implements Mustache views and templates for Rails 6.x
|
62
76
|
email: adam.meehan@gmail.com
|
63
77
|
executables: []
|
64
78
|
extensions: []
|
@@ -100,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
114
|
- !ruby/object:Gem::Version
|
101
115
|
version: '0'
|
102
116
|
requirements: []
|
103
|
-
rubygems_version: 3.
|
117
|
+
rubygems_version: 3.1.6
|
104
118
|
signing_key:
|
105
119
|
specification_version: 4
|
106
120
|
summary: Mustache Rails adapter
|