sinatra_more 0.3.29 → 0.3.30

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.29
1
+ 0.3.30
@@ -21,7 +21,7 @@ class <%= @class_name %> < Sinatra::Application
21
21
  Dir[File.dirname(__FILE__) + '/initializers/*.rb'].each do |file|
22
22
  # Each initializer file contains a module called 'XxxxInitializer' (i.e HassleInitializer)
23
23
  require file
24
- file_class = File.basename(file, '.rb').classify
24
+ file_class = File.basename(file, '.rb').camelize
25
25
  register "#{file_class}Initializer".constantize
26
26
  end
27
27
 
@@ -43,7 +43,7 @@ module SinatraMore
43
43
  # meta_tag "text/html; charset=UTF-8", :http-equiv => "Content-Type" => <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
44
44
  def meta_tag(content, options={})
45
45
  options.reverse_merge!("content" => content)
46
- content_tag(:meta, '', options)
46
+ tag(:meta, options)
47
47
  end
48
48
 
49
49
  # Creates an image element with given url and options
@@ -26,7 +26,7 @@ module SinatraMore
26
26
  content = options.delete(:content)
27
27
  identity_tag_attributes.each { |attr| options[attr] = attr.to_s if options[attr] }
28
28
  html_attrs = options.collect { |a, v| v.blank? ? nil : "#{a}=\"#{v}\"" }.compact.join(" ")
29
- base_tag = (html_attrs.present? ? "<#{name} #{html_attrs}" : "<#{name}")
29
+ base_tag = (!html_attrs.blank? ? "<#{name} #{html_attrs}" : "<#{name}")
30
30
  base_tag << (content ? ">#{content}</#{name}>" : " />")
31
31
  end
32
32
 
data/sinatra_more.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sinatra_more}
8
- s.version = "0.3.29"
8
+ s.version = "0.3.30"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Nathan Esquenazi"]
12
- s.date = %q{2009-12-22}
12
+ s.date = %q{2009-12-31}
13
13
  s.default_executable = %q{sinatra_gen}
14
14
  s.description = %q{Expands sinatra with standard helpers and tools to allow for complex applications}
15
15
  s.email = %q{nesquena@gmail.com}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra_more
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.29
4
+ version: 0.3.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-22 00:00:00 -08:00
12
+ date: 2009-12-31 00:00:00 -08:00
13
13
  default_executable: sinatra_gen
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency