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.
@@ -1,13 +1,11 @@
1
- # Sinatra RDiscount Extension for Sinatra v1.0.0
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 -v1.0.0.0
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
- Jeweler::GemcutterTasks.new
22
+ Jeweler::GemcutterTasks.new
23
23
  rescue LoadError
24
24
  puts "Jeweler not available."
25
25
  puts "Install it with:"
@@ -1,5 +1,5 @@
1
1
  ---
2
- :major: 1
2
+ :major: 1
3
3
  :minor: 0
4
4
  :patch: 0
5
- :build: 1
5
+ :build: 2
@@ -1,7 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'sinatra'
3
3
 
4
- gem 'wbzyl-sinatra-rdiscount', '>=0.1.2'
5
4
  require 'sinatra/rdiscount'
6
5
 
7
6
  get "/?" do
@@ -3,7 +3,6 @@ require 'rubygems'
3
3
  require 'rack'
4
4
  require 'sinatra/base'
5
5
 
6
- gem 'wbzyl-sinatra-rdiscount', '>=0.1.2'
7
6
  require 'sinatra/rdiscount'
8
7
 
9
8
  class MApp < Sinatra::Base
@@ -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)
@@ -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.1"
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>, [">= 0"])
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>, [">= 0"])
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>, [">= 0"])
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.1
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: "0"
23
+ version: 0.9.4
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: erubis