sinatra_more 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
data/TODO CHANGED
@@ -1,5 +1,6 @@
1
1
  = UNFINISHED
2
2
 
3
+ * fix content_block_tag to eliminate need for concat option
3
4
  * image_tag should start in images_path (or /images)
4
5
  * I have got to add tests, basically create dummy sinatra applications and use Webrat
5
6
  * Become total warden solution (basically just require warden gem installed, do everything else)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.10
1
+ 0.0.11
@@ -1,4 +1,6 @@
1
- Dir.glob(File.dirname(__FILE__) + '/markup_plugin/**/*.rb').each { |f| require f }
1
+ require File.dirname(__FILE__) + '/markup_plugin/form_builder/abstract_form_builder'
2
+ require File.dirname(__FILE__) + '/markup_plugin/form_builder/standard_form_builder'
3
+ Dir[File.dirname(__FILE__) + '/markup_plugin/*.rb'].each {|file| load file }
2
4
 
3
5
  module SinatraMore
4
6
  module MarkupPlugin
@@ -46,7 +46,7 @@ module SinatraMore
46
46
  # resolve_template_engine('users/new') => :haml
47
47
  def resolve_template_engine(template_path)
48
48
  resolved_template_path = File.join(self.options.views, template_path + ".*")
49
- template_file = Dir.glob(resolved_template_path).first
49
+ template_file = Dir[resolved_template_path].first
50
50
  raise "Template path '#{template_path}' could not be located in views!" unless template_file
51
51
  template_engine = File.extname(template_file)[1..-1].to_sym
52
52
  end
@@ -1,4 +1,4 @@
1
- Dir.glob(File.dirname(__FILE__) + '/render_plugin/**/*.rb').each { |f| require f }
1
+ Dir[File.dirname(__FILE__) + '/render_plugin/**/*.rb'].each {|file| load file }
2
2
 
3
3
  module SinatraMore
4
4
  module RenderPlugin
@@ -1,4 +1,4 @@
1
- Dir.glob(File.dirname(__FILE__) + '/warden_plugin/**/*.rb').each { |f| require f }
1
+ Dir[File.dirname(__FILE__) + '/warden_plugin/**/*.rb'].each {|file| load file }
2
2
 
3
3
  module SinatraMore
4
4
  module WardenPlugin
data/sinatra_more.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sinatra_more}
8
- s.version = "0.0.10"
8
+ s.version = "0.0.11"
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"]
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.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi