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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d6e83da161685e8a7d25ad41705a38f95d828903
4
- data.tar.gz: de8048f0f7416e410f5c870233a284d04db55817
3
+ metadata.gz: 0e80d6f69a115672a8062b2f4e86a588900f9a3a
4
+ data.tar.gz: 5b5d64d7de245c1b942358cf369321a4324c7228
5
5
  SHA512:
6
- metadata.gz: 6775d5dd39542891c25b6aa5e78c3f0bf28b77c6a3357a2fbbcfa3c204b3d1a07c84c0017fa27df78b050943ab0bd297e90bc0def93c440745c323a9b58fdadf
7
- data.tar.gz: de492b163ecd31eb3f8f33230603491b01ae45438a57f8476bc3814aad25ab9762a4341a2ae510321b052a95b777fc3b7e9a19ec1275e9151fab4e974a85e565
6
+ metadata.gz: ee83d0d7e5dd0cd89d9b311897938052be51fdf88428ea7ce0894c3e88b1ab6a7793e91b084b834c8a72d44a125d578ef518cad8a11d3a4896df97832bce782e
7
+ data.tar.gz: f3ae8ba2e41e692a08b4b9d680725bc82202b582ac8c1ed06124fe5ac5ad03507ba98926624aef13489f2f4667879cee0a3b82aa8671effe434c31eee8d2415a
@@ -1,3 +1,3 @@
1
1
  module Mustdown
2
- VERSION = '0.2.0'
2
+ VERSION = '1.0.0'
3
3
  end
data/lib/mustdown.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'bundler/setup'
2
2
 
3
3
  require 'redcarpet'
4
- require 'mustache'
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
- Mustache.render(template, resource)
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.2.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-04-11 00:00:00.000000000 Z
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: mustache
42
+ name: handlebars
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
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: '1.0'
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