sinatra-effigy 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -2
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/sinatra/effigy.rb +1 -5
- data/sinatra-effigy.gemspec +3 -3
- metadata +3 -3
data/README.md
CHANGED
data/Rakefile
CHANGED
|
@@ -2,7 +2,7 @@ require 'jeweler'
|
|
|
2
2
|
|
|
3
3
|
Jeweler::Tasks.new do |gem|
|
|
4
4
|
gem.name = "sinatra-effigy"
|
|
5
|
-
gem.summary = "An Effigy
|
|
5
|
+
gem.summary = "An Effigy extension for Sinatra."
|
|
6
6
|
gem.description = "Ruby in .rb files. HTML in .html files."
|
|
7
7
|
gem.email = "dcroak@thoughtbot.com"
|
|
8
8
|
gem.homepage = "http://github.com/dancroak/sinatra-effigy"
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.6
|
data/lib/sinatra/effigy.rb
CHANGED
|
@@ -12,11 +12,7 @@ module Sinatra
|
|
|
12
12
|
gsub(' ', '_').
|
|
13
13
|
gsub(/\/(.)/) { "::#{$1.upcase}" }.
|
|
14
14
|
gsub(/(?:^|_)(.)/) { $1.upcase }
|
|
15
|
-
|
|
16
|
-
view = Object.const_get(camel_name).new(locals)
|
|
17
|
-
else
|
|
18
|
-
view = Object.const_get(camel_name).new
|
|
19
|
-
end
|
|
15
|
+
view = Object.const_get(camel_name).new(*locals)
|
|
20
16
|
template = File.read(File.join(options.root, "templates", "#{name}.html"))
|
|
21
17
|
view.render(template)
|
|
22
18
|
end
|
data/sinatra-effigy.gemspec
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{sinatra-effigy}
|
|
8
|
-
s.version = "0.0.
|
|
8
|
+
s.version = "0.0.6"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Dan Croak"]
|
|
12
|
-
s.date = %q{2010-01-
|
|
12
|
+
s.date = %q{2010-01-14}
|
|
13
13
|
s.description = %q{Ruby in .rb files. HTML in .html files.}
|
|
14
14
|
s.email = %q{dcroak@thoughtbot.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
|
|
|
29
29
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
30
30
|
s.require_paths = ["lib"]
|
|
31
31
|
s.rubygems_version = %q{1.3.5}
|
|
32
|
-
s.summary = %q{An Effigy
|
|
32
|
+
s.summary = %q{An Effigy extension for Sinatra.}
|
|
33
33
|
|
|
34
34
|
if s.respond_to? :specification_version then
|
|
35
35
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sinatra-effigy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dan Croak
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2010-01-
|
|
12
|
+
date: 2010-01-14 00:00:00 -05:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
@@ -76,6 +76,6 @@ rubyforge_project:
|
|
|
76
76
|
rubygems_version: 1.3.5
|
|
77
77
|
signing_key:
|
|
78
78
|
specification_version: 3
|
|
79
|
-
summary: An Effigy
|
|
79
|
+
summary: An Effigy extension for Sinatra.
|
|
80
80
|
test_files: []
|
|
81
81
|
|