sinatra-effigy 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -53,8 +53,8 @@ Create a view at /views/job.rb that responds to #transform:
53
53
  class JobView < Effigy::View
54
54
  attr_reader :job
55
55
 
56
- def initialize(*locals)
57
- @job = locals.first
56
+ def initialize(job)
57
+ @job = job
58
58
  end
59
59
 
60
60
  def transform
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 extenstion for Sinatra."
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.5
1
+ 0.0.6
@@ -12,11 +12,7 @@ module Sinatra
12
12
  gsub(' ', '_').
13
13
  gsub(/\/(.)/) { "::#{$1.upcase}" }.
14
14
  gsub(/(?:^|_)(.)/) { $1.upcase }
15
- if locals.any?
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
@@ -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.5"
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-13}
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 extenstion for Sinatra.}
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.5
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-13 00:00:00 -05:00
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 extenstion for Sinatra.
79
+ summary: An Effigy extension for Sinatra.
80
80
  test_files: []
81
81