wbzyl-sinatra-rdiscount 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -30,9 +30,6 @@ Another example could be find in the *examples* directory. Run it with:
30
30
 
31
31
  rackup -p 4567 config.ru
32
32
 
33
- and visit *http://localhost:4567/hello2* to contemplate the sheer
34
- beauty of the rendered "Hello RDiscount".
35
-
36
33
 
37
34
  ## Template Languages (*update to The Sinatra Book*)
38
35
 
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 4
3
- :major: 0
4
2
  :minor: 1
3
+ :patch: 5
4
+ :major: 0
data/examples/app.rb CHANGED
@@ -4,12 +4,12 @@ require 'sinatra'
4
4
  gem 'wbzyl-sinatra-rdiscount', '>=0.1.2'
5
5
  require 'sinatra/rdiscount'
6
6
 
7
- get "/hello" do
7
+ get "/?" do
8
8
  @name = "RDiscount"
9
9
  rdiscount :hello, :layout => false
10
10
  end
11
11
 
12
- get "/hello2" do
12
+ get "/2" do
13
13
  @name = "RDiscount"
14
14
  rdiscount :hello2, :layout => :layout2
15
15
  end
data/examples/config.ru CHANGED
@@ -1,7 +1,4 @@
1
- # run with: thin --rackup config.ru -p 4567 start
1
+ # run i: rackup config.ru -p 4567
2
2
 
3
3
  require 'app'
4
-
5
- use Rack::Static, :urls => ["/stylesheets"], :root => "public"
6
-
7
4
  run Sinatra::Application
data/examples/mapp.rb CHANGED
@@ -9,7 +9,7 @@ require 'sinatra/rdiscount'
9
9
  class MApp < Sinatra::Base
10
10
  helpers Sinatra::RDiscount
11
11
 
12
- get '/' do
12
+ get '/?' do
13
13
  rdiscount "## hello form modular app"
14
14
  end
15
15
  end
@@ -1,4 +1,4 @@
1
1
  # Hello {%= @name %}
2
2
 
3
- Try `localhost:4567/hello2` to get styled page
4
- with intro to *Markdown*.
3
+ Try [http://localhost:4567/2](http://localhost:4567/2)
4
+ to get styled page with intro to *Markdown*.
@@ -12,7 +12,7 @@ module Sinatra
12
12
 
13
13
  private
14
14
 
15
- def render_rdiscount(template, data, options, locals, &block)
15
+ def render_rdiscount(data, options, locals, &block)
16
16
  if block_given?
17
17
  # render layout
18
18
  instance = ::Erubis::Eruby.new(data)
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{sinatra-rdiscount}
5
- s.version = "0.1.4"
5
+ s.version = "0.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Wlodek Bzyl"]
9
- s.date = %q{2009-05-22}
9
+ s.date = %q{2009-06-29}
10
10
  s.description = %q{Sinatra extension providing RDiscount templates for Sinatra application.}
11
11
  s.email = %q{matwb@univ.gda.pl}
12
12
  s.extra_rdoc_files = [
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.homepage = %q{http://github.com/wbzyl/sinatra-rdiscount}
37
37
  s.rdoc_options = ["--charset=UTF-8"]
38
38
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.3}
39
+ s.rubygems_version = %q{1.3.4}
40
40
  s.summary = %q{Sinatra extension providing RDiscount templates for Sinatra application.}
41
41
  s.test_files = [
42
42
  "test/test_helper.rb",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wbzyl-sinatra-rdiscount
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wlodek Bzyl
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-22 00:00:00 -07:00
12
+ date: 2009-06-29 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency