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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86a3fc3bf8c02edbee77905a250bb1a7bc47c0c4f6ae4d1236f44fcc6fefc2b2
4
- data.tar.gz: 46f8858f5c4ee6846d3b2b5841f5b310412070833fdeb6a93d8a30a187037a4f
3
+ metadata.gz: e0e594f7fc24af17cb251e53964f33fbbb5410dfc434664930d8e474e6b3dc3a
4
+ data.tar.gz: f75d73ac684a2e80b5a6a18a2b206d7bc35f8bff0e4ca470b5380eb3eabbdef2
5
5
  SHA512:
6
- metadata.gz: 1cae847b8e3ae0e2034d1005731327bb44d7a155bc56db12ef3db27601773ef389fbcf17d3f5d147576b7e0f7ea037bbc3f72c4196121e906176ec1ec286a23c
7
- data.tar.gz: 7e03505c6265b8eeba1a11d77067ec2fb6aaa3eda1508ebe5075e9d496a828627ed2263bdfc325e392898952c41a7812b1d6282ce5cc2aef3b1806bffc7aab29
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(template.source)
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(template.source)[0, 10]
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.3.2
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: 2020-06-30 00:00:00.000000000 Z
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: '3.2'
20
- - - "~>"
19
+ version: '6.0'
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 5.2.0
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: '3.2'
30
- - - "~>"
29
+ version: '6.0'
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 5.2.0
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 4.0
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.0.3
117
+ rubygems_version: 3.1.6
104
118
  signing_key:
105
119
  specification_version: 4
106
120
  summary: Mustache Rails adapter