adzap-mustache-rails 0.3.1 → 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: 37247f2dd9d60df447b587a1b335b96dc917f3e414399d6521f73d51778cb722
4
- data.tar.gz: d5a0afcc7d2adaf2bcdc942ac926aec313b322c4bd0b52abc5606fd0d612f5db
3
+ metadata.gz: e0e594f7fc24af17cb251e53964f33fbbb5410dfc434664930d8e474e6b3dc3a
4
+ data.tar.gz: f75d73ac684a2e80b5a6a18a2b206d7bc35f8bff0e4ca470b5380eb3eabbdef2
5
5
  SHA512:
6
- metadata.gz: d33caad6821ed11a2b21984be503842e5bfc159d220ae6502cc3c6a60bcf30c56ce308809f35a822cc7bb2e33419bba3d0d72b508c908fbcdbd9f626569ba22b
7
- data.tar.gz: e739aed95ebf6e45151d5b8ae96b80febb19d844fdd11f7b5dd52c65b2228c4941b6fbc65094c7ab9ea9c3747686cf900936fe58cc20e5ae4915732efde000f3
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.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Meehan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-03 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'
19
+ version: '6.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '5.2'
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'
29
+ version: '6.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '5.2'
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: []
@@ -85,7 +99,7 @@ files:
85
99
  homepage: https://github.com/adzap/mustache-rails
86
100
  licenses: []
87
101
  metadata: {}
88
- post_install_message:
102
+ post_install_message:
89
103
  rdoc_options: []
90
104
  require_paths:
91
105
  - lib
@@ -100,8 +114,8 @@ 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.6
104
- signing_key:
117
+ rubygems_version: 3.1.6
118
+ signing_key:
105
119
  specification_version: 4
106
120
  summary: Mustache Rails adapter
107
121
  test_files: []