sinatra-rdiscount 1.0.0.1 → 1.0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +2 -5
- data/Rakefile +2 -2
- data/VERSION.yml +2 -2
- data/examples/app.rb +0 -1
- data/examples/mapp.rb +0 -1
- data/lib/sinatra/rdiscount.rb +2 -2
- data/sinatra-rdiscount.gemspec +4 -4
- metadata +3 -3
data/README.markdown
CHANGED
@@ -1,13 +1,11 @@
|
|
1
|
-
# Sinatra RDiscount Extension for Sinatra
|
2
|
-
|
3
|
-
**Important:** work in progress.
|
1
|
+
# Sinatra RDiscount Extension for Sinatra v0.9.4
|
4
2
|
|
5
3
|
The *sinatra-rdiscount* extension provides `rdiscount` helper method
|
6
4
|
for rendering RDiscount templates.
|
7
5
|
|
8
6
|
To install it, run:
|
9
7
|
|
10
|
-
sudo gem install sinatra-rdiscount -
|
8
|
+
sudo gem install -v0.9.4.0 sinatra-rdiscount -s http://gemcutter.com
|
11
9
|
|
12
10
|
To test it, create a simple Sinatra application:
|
13
11
|
|
@@ -15,7 +13,6 @@ To test it, create a simple Sinatra application:
|
|
15
13
|
require 'rubygems'
|
16
14
|
require 'sinatra'
|
17
15
|
|
18
|
-
gem 'sinatra-rdiscount', '=1.0.0.0'
|
19
16
|
require 'sinatra/rdiscount'
|
20
17
|
|
21
18
|
get "/" do
|
data/Rakefile
CHANGED
@@ -12,14 +12,14 @@ begin
|
|
12
12
|
gem.description = gem.summary
|
13
13
|
gem.authors = ["Wlodek Bzyl"]
|
14
14
|
|
15
|
-
gem.add_runtime_dependency 'sinatra'
|
15
|
+
gem.add_runtime_dependency 'sinatra', '=0.9.4'
|
16
16
|
gem.add_runtime_dependency 'erubis', '>=2.6.5'
|
17
17
|
gem.add_runtime_dependency 'rdiscount', '>=1.5.8'
|
18
18
|
|
19
19
|
gem.add_development_dependency 'rack', '>=1.1.0'
|
20
20
|
gem.add_development_dependency 'rack-test', '>=0.5.3'
|
21
21
|
end
|
22
|
-
|
22
|
+
Jeweler::GemcutterTasks.new
|
23
23
|
rescue LoadError
|
24
24
|
puts "Jeweler not available."
|
25
25
|
puts "Install it with:"
|
data/VERSION.yml
CHANGED
data/examples/app.rb
CHANGED
data/examples/mapp.rb
CHANGED
data/lib/sinatra/rdiscount.rb
CHANGED
@@ -5,14 +5,14 @@ require 'sinatra/base'
|
|
5
5
|
|
6
6
|
module Sinatra
|
7
7
|
module RDiscount
|
8
|
-
|
8
|
+
|
9
9
|
def rdiscount(template, options={}, locals={})
|
10
10
|
render :rdiscount, template, options, locals
|
11
11
|
end
|
12
12
|
|
13
13
|
private
|
14
14
|
|
15
|
-
def render_rdiscount(data, options, locals, &block)
|
15
|
+
def render_rdiscount(template, data, options, locals, &block)
|
16
16
|
if block_given?
|
17
17
|
# render layout
|
18
18
|
instance = ::Erubis::Eruby.new(data)
|
data/sinatra-rdiscount.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sinatra-rdiscount}
|
8
|
-
s.version = "1.0.0.
|
8
|
+
s.version = "1.0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Wlodek Bzyl"]
|
@@ -53,20 +53,20 @@ Gem::Specification.new do |s|
|
|
53
53
|
s.specification_version = 3
|
54
54
|
|
55
55
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
56
|
-
s.add_runtime_dependency(%q<sinatra>, ["
|
56
|
+
s.add_runtime_dependency(%q<sinatra>, ["= 0.9.4"])
|
57
57
|
s.add_runtime_dependency(%q<erubis>, [">= 2.6.5"])
|
58
58
|
s.add_runtime_dependency(%q<rdiscount>, [">= 1.5.8"])
|
59
59
|
s.add_development_dependency(%q<rack>, [">= 1.1.0"])
|
60
60
|
s.add_development_dependency(%q<rack-test>, [">= 0.5.3"])
|
61
61
|
else
|
62
|
-
s.add_dependency(%q<sinatra>, ["
|
62
|
+
s.add_dependency(%q<sinatra>, ["= 0.9.4"])
|
63
63
|
s.add_dependency(%q<erubis>, [">= 2.6.5"])
|
64
64
|
s.add_dependency(%q<rdiscount>, [">= 1.5.8"])
|
65
65
|
s.add_dependency(%q<rack>, [">= 1.1.0"])
|
66
66
|
s.add_dependency(%q<rack-test>, [">= 0.5.3"])
|
67
67
|
end
|
68
68
|
else
|
69
|
-
s.add_dependency(%q<sinatra>, ["
|
69
|
+
s.add_dependency(%q<sinatra>, ["= 0.9.4"])
|
70
70
|
s.add_dependency(%q<erubis>, [">= 2.6.5"])
|
71
71
|
s.add_dependency(%q<rdiscount>, [">= 1.5.8"])
|
72
72
|
s.add_dependency(%q<rack>, [">= 1.1.0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-rdiscount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wlodek Bzyl
|
@@ -18,9 +18,9 @@ dependencies:
|
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
|
-
- - "
|
21
|
+
- - "="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version:
|
23
|
+
version: 0.9.4
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: erubis
|