middleman 2.0.1.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -3,7 +3,7 @@ Middleman [![Build Status](http://travis-ci.org/tdreyno/middleman.png)](http://t
3
3
 
4
4
  Middleman is ever-vigilant against tag-soup, unreadable CSS and repetition. He stands-watch over your Haml, Sass, and CoffeeScript producing only the cleanest and most efficient markup.
5
5
 
6
- [![Click here to lend your support to Middleman](http://www.pledgie.com/campaigns/15807.png)](http://www.pledgie.com/campaigns/15807)
6
+ [![Click here to lend your support to Middleman](https://www.pledgie.com/campaigns/15807.png)](http://www.pledgie.com/campaigns/15807)
7
7
 
8
8
  ## Getting Started
9
9
 
data/lib/middleman.rb CHANGED
@@ -154,6 +154,23 @@ module Middleman
154
154
  autoload :DirectoryIndexes, "middleman/features/directory_indexes"
155
155
  end
156
156
 
157
+ EXTENSION_FILE = "middleman_init.rb"
158
+ def self.load_extensions_in_path
159
+ # If newer Rubygems
160
+ extensions = if Gem::Specification.respond_to? :select
161
+ ::Gem::Specification.select do |spec|
162
+ spec.contains_requirable_file?(EXTENSION_FILE)
163
+ end
164
+ else
165
+ ::Gem::GemPathSearcher.new.find_all(EXTENSION_FILE)
166
+ end
167
+
168
+ extensions.each do |spec|
169
+ require spec.name
170
+ $stderr.puts "require: #{spec.name}"
171
+ end
172
+ end
173
+
157
174
  def self.server(&block)
158
175
  sandbox = Class.new(Sinatra::Base)
159
176
  sandbox.register Base
@@ -178,3 +195,4 @@ module Middleman
178
195
  end
179
196
 
180
197
  require "middleman/version"
198
+ Middleman.load_extensions_in_path
@@ -46,6 +46,11 @@ module Middleman::CoreExtensions::Sprockets
46
46
  # rescue LoadError
47
47
  # end
48
48
  end
49
+
50
+ def javascript_exception_response(exception)
51
+ expire_index!
52
+ super(exception)
53
+ end
49
54
  end
50
55
 
51
56
  # class StylesheetEnvironment < MiddlemanEnvironment
@@ -59,5 +64,10 @@ module Middleman::CoreExtensions::Sprockets
59
64
  # stylesheets_path = File.join(File.expand_path(app.views), app.css_dir)
60
65
  # append_path stylesheets_path
61
66
  # end
67
+ #
68
+ # def css_exception_response(exception)
69
+ # expire_index!
70
+ # super(exception)
71
+ # end
62
72
  # end
63
73
  end
@@ -1,3 +1,3 @@
1
1
  module Middleman
2
- VERSION = "2.0.1.1"
2
+ VERSION = "2.0.2"
3
3
  end
data/middleman.gemspec CHANGED
@@ -8,6 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.name = "middleman"
9
9
  s.version = Middleman::VERSION
10
10
  s.platform = Gem::Platform::RUBY
11
+ s.license = "MIT"
11
12
  s.authors = ["Thomas Reynolds"]
12
13
  s.email = ["me@tdreyno.com"]
13
14
  s.homepage = "http://middlemanapp.com"
@@ -64,7 +65,7 @@ eos
64
65
  s.add_runtime_dependency("rb-fsevent", ["~> 0.4.2"])
65
66
  end
66
67
 
67
- s.add_runtime_dependency("guard", ["~> 0.5.1"])
68
+ s.add_runtime_dependency("guard", ["~> 0.6.2"])
68
69
  s.add_runtime_dependency("guard-livereload", ["~> 0.3.0"])
69
70
  s.add_development_dependency("coffee-filter", ["~> 0.1.1"])
70
71
  s.add_development_dependency("cucumber", ["~> 1.0.2"])
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 105
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- - 1
11
- version: 2.0.1.1
9
+ - 2
10
+ version: 2.0.2
12
11
  platform: ruby
13
12
  authors:
14
13
  - Thomas Reynolds
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-08-14 00:00:00 Z
18
+ date: 2011-08-19 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rack
@@ -332,12 +331,12 @@ dependencies:
332
331
  requirements:
333
332
  - - ~>
334
333
  - !ruby/object:Gem::Version
335
- hash: 9
334
+ hash: 3
336
335
  segments:
337
336
  - 0
338
- - 5
339
- - 1
340
- version: 0.5.1
337
+ - 6
338
+ - 2
339
+ version: 0.6.2
341
340
  type: :runtime
342
341
  version_requirements: *id019
343
342
  - !ruby/object:Gem::Dependency
@@ -630,8 +629,8 @@ files:
630
629
  - lib/middleman/version.rb
631
630
  - middleman.gemspec
632
631
  homepage: http://middlemanapp.com
633
- licenses: []
634
-
632
+ licenses:
633
+ - MIT
635
634
  post_install_message: |
636
635
  ********************************************************************************
637
636