middleman 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -63,6 +63,7 @@ Rake::RDocTask.new do |rdoc|
63
63
  rdoc.rdoc_files.include('README*')
64
64
  rdoc.rdoc_files.include('lib/**/*.rb')
65
65
  rdoc.rdoc_files.exclude('lib/middleman/features/sprockets+ruby19.rb')
66
+ rdoc.rdoc_files.exclude('lib/middleman/templater+dynamic_renderer.rb')
66
67
  end
67
68
 
68
69
  desc "Build and publish documentation using GitHub Pages."
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.9
1
+ 0.9.10
@@ -1,4 +1,5 @@
1
1
  require 'templater'
2
+ require 'middleman/templater+dynamic_renderer.rb'
2
3
  require 'rack/test' # Use Rack::Test to access Sinatra without starting up a full server
3
4
 
4
5
  # Placeholder for any methods the builder needs to abstract to allow feature integration
@@ -45,35 +46,4 @@ module Middleman
45
46
 
46
47
  add :build, ::Middleman::Builder
47
48
  end
48
- end
49
-
50
- # Monkey-patch to use a dynamic renderer
51
- class Templater::Actions::File
52
- def identical?
53
- if exists?
54
- return true if File.mtime(source) < File.mtime(destination)
55
- FileUtils.identical?(source, destination)
56
- else
57
- false
58
- end
59
- end
60
- end
61
-
62
- class Templater::Actions::Template
63
- def render
64
- # The default render just requests the page over Rack and writes the response
65
- request_path = destination.gsub(File.join(Dir.pwd, Middleman::Base.build_dir), "")
66
- browser = Rack::Test::Session.new(Rack::MockSession.new(Middleman::Base))
67
- browser.get(request_path)
68
- browser.last_response.body
69
- end
70
-
71
- def identical?
72
- if File.exists?(destination)
73
- return true if File.exists?(source) && File.mtime(source) < File.mtime(destination)
74
- File.read(destination) == render
75
- else
76
- false
77
- end
78
- end
79
49
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{middleman}
8
- s.version = "0.9.9"
8
+ s.version = "0.9.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Reynolds"]
@@ -69,12 +69,11 @@ Gem::Specification.new do |s|
69
69
  "spec/relative_assets_spec.rb",
70
70
  "spec/spec_helper.rb"
71
71
  ]
72
- s.has_rdoc = true
73
72
  s.homepage = %q{http://wiki.github.com/tdreyno/middleman}
74
73
  s.rdoc_options = ["--charset=UTF-8"]
75
74
  s.require_paths = ["lib"]
76
75
  s.rubyforge_project = %q{middleman}
77
- s.rubygems_version = %q{1.3.1}
76
+ s.rubygems_version = %q{1.3.5}
78
77
  s.summary = %q{A static site generator utilizing Haml, Sass and providing YUI compression and cache busting}
79
78
  s.test_files = [
80
79
  "spec/builder_spec.rb",
@@ -87,7 +86,7 @@ Gem::Specification.new do |s|
87
86
 
88
87
  if s.respond_to? :specification_version then
89
88
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
90
- s.specification_version = 2
89
+ s.specification_version = 3
91
90
 
92
91
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
93
92
  s.add_runtime_dependency(%q<templater>, [">= 0"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.9
4
+ version: 0.9.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -157,6 +157,8 @@ files:
157
157
  - spec/spec_helper.rb
158
158
  has_rdoc: true
159
159
  homepage: http://wiki.github.com/tdreyno/middleman
160
+ licenses: []
161
+
160
162
  post_install_message:
161
163
  rdoc_options:
162
164
  - --charset=UTF-8
@@ -177,9 +179,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
179
  requirements: []
178
180
 
179
181
  rubyforge_project: middleman
180
- rubygems_version: 1.3.1
182
+ rubygems_version: 1.3.5
181
183
  signing_key:
182
- specification_version: 2
184
+ specification_version: 3
183
185
  summary: A static site generator utilizing Haml, Sass and providing YUI compression and cache busting
184
186
  test_files:
185
187
  - spec/builder_spec.rb