frank 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{frank}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["blahed", "nwah"]
12
- s.date = %q{2010-06-21}
12
+ s.date = %q{2010-06-28}
13
13
  s.description = %q{Rapidly develop static sites using any supported templating language}
14
14
  s.email = %q{travis.dunn@thisismedium.com}
15
15
  s.executables = ["frank", "frankout", "frankup"]
@@ -6,7 +6,7 @@ require 'frank/middleware/imager'
6
6
  require 'frank/middleware/refresh'
7
7
 
8
8
  module Frank
9
- VERSION = '0.3.0'
9
+ VERSION = '0.3.1'
10
10
 
11
11
  module Render; end
12
12
 
@@ -94,7 +94,7 @@ module Frank
94
94
  path.sub!(/^\/?(.*)$/, '/\1')
95
95
  path.sub!(/\/$/, '/index.html')
96
96
  path.sub!(/(\/[\w-]+)$/, '\1.html')
97
- path = to_file_path(path) if defined? @request
97
+ path = to_file_path(path) if defined? @request or path.match(/\/_[^\/]+$/)
98
98
 
99
99
  # regex for kinds that don't support meta
100
100
  # and define the meta delimiter
@@ -24,7 +24,7 @@ module Frank
24
24
  # catch a request for _img/0x0, get an image, resize it to given dims
25
25
  def call(env)
26
26
  path = env['PATH_INFO']
27
- image_path = File.expand_path(File.dirname(__FILE__)) + '/templates/imager/'
27
+ image_path = File.join(LIBDIR, 'frank/templates/imager/')
28
28
 
29
29
  if defined?(MiniMagick) && path.include?('_img')
30
30
  dims = '!' + path.split('/').last.match(/\d+x\d+/i).to_s
@@ -1,2 +1,2 @@
1
1
  %h1 hello worlds
2
- = render_partial('partial.haml')
2
+ = render_partial('partial')
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 0
9
- version: 0.3.0
8
+ - 1
9
+ version: 0.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - blahed
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-21 00:00:00 -04:00
18
+ date: 2010-06-28 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency