mustdown 0.2.0 → 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/mustdown/version.rb +1 -1
- data/lib/mustdown.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e80d6f69a115672a8062b2f4e86a588900f9a3a
|
4
|
+
data.tar.gz: 5b5d64d7de245c1b942358cf369321a4324c7228
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee83d0d7e5dd0cd89d9b311897938052be51fdf88428ea7ce0894c3e88b1ab6a7793e91b084b834c8a72d44a125d578ef518cad8a11d3a4896df97832bce782e
|
7
|
+
data.tar.gz: f3ae8ba2e41e692a08b4b9d680725bc82202b582ac8c1ed06124fe5ac5ad03507ba98926624aef13489f2f4667879cee0a3b82aa8671effe434c31eee8d2415a
|
data/lib/mustdown/version.rb
CHANGED
data/lib/mustdown.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'bundler/setup'
|
2
2
|
|
3
3
|
require 'redcarpet'
|
4
|
-
require '
|
4
|
+
require 'handlebars'
|
5
5
|
|
6
6
|
require 'mustdown/engine' if defined?(Rails)
|
7
7
|
|
@@ -140,7 +140,7 @@ module Mustdown
|
|
140
140
|
#
|
141
141
|
# Returns the rendered mustache String.
|
142
142
|
def mustache(template, resource)
|
143
|
-
|
143
|
+
Handlebars::Context.new.compile(template).call(resource)
|
144
144
|
end
|
145
145
|
|
146
146
|
# Public: Renders a mustache+markdown template.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mustdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon COURTOIS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -39,19 +39,19 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '3.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: handlebars
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '0.7'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '0.7'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: coveralls
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.4.5
|
133
|
+
rubygems_version: 2.4.5.1
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Rails helpers to use Markdown and Mustache all together
|