mustdown 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -0
- data/lib/mustdown/version.rb +1 -1
- data/lib/mustdown.rb +2 -2
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f84a1bca2c667e4d25496cce3d83acc36db23c8a
|
4
|
+
data.tar.gz: c3f49c4e55a762af44a04d5f28d5fc574cf8974e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18f7957dc258b5380b8f736c633c168eee6e78e53f8d9e0da8ad3893043a4805661137d25c13c9d15bce67c89df952db25b9135387ac1e48d8ae4eceaafb8fe3
|
7
|
+
data.tar.gz: ee5ece5112d4aadc6b93d9d9f8078d1ffe5abf983bf4faa48d231df7180b2dbf773ec467b6388d06d4dc47cb74c047fe07e731012cc677c0bb425c46e1e3aef4
|
data/README.md
CHANGED
@@ -148,3 +148,29 @@ Output:
|
|
148
148
|
<li><a href="https://github.com/github/gollum">Gollum</a></li>
|
149
149
|
</ul>
|
150
150
|
```
|
151
|
+
|
152
|
+
## Usage as a helper
|
153
|
+
|
154
|
+
### ActionMailer
|
155
|
+
|
156
|
+
It is possible to use Mustdown when composing your emails but to do so you need to reference it as a helper
|
157
|
+
|
158
|
+
``` ruby
|
159
|
+
class MyAwesomeMailer < ActionMailer::Base
|
160
|
+
helper :'mustdown/mustdown'
|
161
|
+
|
162
|
+
# ...
|
163
|
+
end
|
164
|
+
```
|
165
|
+
|
166
|
+
### Cells
|
167
|
+
|
168
|
+
If you try to use Mustdown with Cells, you need to add it as a helper like this:
|
169
|
+
|
170
|
+
``` ruby
|
171
|
+
class HomeListingsCell < Cell::Rails
|
172
|
+
helper :'mustdown/mustdown'
|
173
|
+
|
174
|
+
# ...
|
175
|
+
end
|
176
|
+
```
|
data/lib/mustdown/version.rb
CHANGED
data/lib/mustdown.rb
CHANGED
@@ -133,8 +133,8 @@ module Mustdown
|
|
133
133
|
#
|
134
134
|
# Returns the rendered markdown String.
|
135
135
|
def markdown(template, markdown_extensions = {}, renderer_options = {})
|
136
|
-
exts = markdown_extensions.merge(markdown_extensions)
|
137
|
-
opts = renderer_options.merge(renderer_options)
|
136
|
+
exts = self.markdown_extensions.merge(markdown_extensions)
|
137
|
+
opts = self.renderer_options.merge(renderer_options)
|
138
138
|
|
139
139
|
renderer = markdown_renderer.new(opts)
|
140
140
|
markdown = Redcarpet::Markdown.new(renderer, exts)
|
metadata
CHANGED
@@ -1,115 +1,115 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mustdown
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon COURTOIS
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-08-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 3.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 3.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: redcarpet
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 2.0.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.0.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mustache
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: 0.99.4
|
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
54
|
version: 0.99.4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: coveralls
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0.6'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.6'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: sqlite3
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rspec-rails
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Rails helpers to use Markdown and Mustache all together
|
98
98
|
email:
|
99
|
-
-
|
99
|
+
- scourtois_github@cubyx.fr
|
100
100
|
executables: []
|
101
101
|
extensions: []
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
|
+
- MIT-LICENSE
|
105
|
+
- README.md
|
106
|
+
- Rakefile
|
104
107
|
- app/helpers/mustdown/mustdown_helper.rb
|
105
108
|
- lib/generators/mustdown/install_generator.rb
|
106
109
|
- lib/generators/templates/mustdown.rb
|
110
|
+
- lib/mustdown.rb
|
107
111
|
- lib/mustdown/engine.rb
|
108
112
|
- lib/mustdown/version.rb
|
109
|
-
- lib/mustdown.rb
|
110
|
-
- MIT-LICENSE
|
111
|
-
- Rakefile
|
112
|
-
- README.md
|
113
113
|
homepage: http://github.com/simonc/mustdown
|
114
114
|
licenses:
|
115
115
|
- MIT
|
@@ -120,17 +120,17 @@ require_paths:
|
|
120
120
|
- lib
|
121
121
|
required_ruby_version: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
|
-
- -
|
128
|
+
- - ">="
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
132
|
rubyforge_project:
|
133
|
-
rubygems_version: 2.
|
133
|
+
rubygems_version: 2.2.2
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Rails helpers to use Markdown and Mustache all together
|