markdown_preview 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
data/lib/markdown_preview.rb
CHANGED
@@ -8,16 +8,11 @@ module MarkdownPreview
|
|
8
8
|
|
9
9
|
module ClassMethods
|
10
10
|
# The controller declaration to enable markdown_preview certain actions.
|
11
|
-
# Takes
|
12
|
-
# can send to a before_filter (only, except etc)
|
11
|
+
# Takes any normal params you can send to a before_filter (only, except etc)
|
13
12
|
def uses_markdown_preview(options = {})
|
14
|
-
configuration = MarkdownPreview::Configuration.new(options.delete(:options), options.delete(:raw_options))
|
15
13
|
|
16
14
|
# Set instance vars in the current class
|
17
15
|
proc = Proc.new do |c|
|
18
|
-
configurations = c.instance_variable_get(:@markdown_preview_configurations) || []
|
19
|
-
configurations << configuration
|
20
|
-
c.instance_variable_set(:@markdown_preview_configurations, configurations)
|
21
16
|
c.instance_variable_set(:@uses_markdown_preview, true)
|
22
17
|
end
|
23
18
|
|
data/markdown_preview.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.platform = Gem::Platform::RUBY
|
3
3
|
s.name = 'markdown_preview'
|
4
|
-
s.version = '0.1.
|
4
|
+
s.version = '0.1.6'
|
5
5
|
s.authors = ["Jeff McFadden"]
|
6
6
|
s.email = "jeff.mcfadden@gmail.com"
|
7
7
|
s.homepage = "http://github.com/jeffmcfadden/markdown_preview"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown_preview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11
|
12
|
+
date: 2011-12-11 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rdiscount
|
16
|
-
requirement: &
|
16
|
+
requirement: &70205353992600 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70205353992600
|
25
25
|
description: Gem that allows easy preview of your textarea content as markdown.
|
26
26
|
email: jeff.mcfadden@gmail.com
|
27
27
|
executables: []
|
@@ -38,7 +38,6 @@ files:
|
|
38
38
|
- lib/markdown_preview/assets/markdown_preview/markdown_preview.css
|
39
39
|
- lib/markdown_preview/assets/markdown_preview/markdown_preview.js
|
40
40
|
- lib/markdown_preview/base.rb
|
41
|
-
- lib/markdown_preview/configuration.rb
|
42
41
|
- lib/markdown_preview/exceptions.rb
|
43
42
|
- lib/markdown_preview/helpers.rb
|
44
43
|
- lib/tasks/markdown_preview.rake
|