middleman 0.99.3.pre → 1.0.0.pre

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.99.3.pre
1
+ 1.0.0.pre
@@ -9,6 +9,8 @@ module Middleman::Features
9
9
  autoload :MinifyJavascript, "middleman/features/minify_javascript"
10
10
  autoload :Slickmap, "middleman/features/slickmap"
11
11
  autoload :SmushPNGs, "middleman/features/smush_pngs"
12
+ autoload :CodeRay, "middleman/features/code_ray"
13
+ # autoload :LiveReload, "middleman/features/live_reload"
12
14
 
13
15
  class << self
14
16
  def registered(app)
@@ -0,0 +1,12 @@
1
+ module Middleman::Features::CodeRay
2
+ class << self
3
+ def registered(app)
4
+ begin
5
+ require 'haml-coderay'
6
+ rescue LoadError
7
+ puts "CodeRay not available. Install it with: gem install haml-coderay"
8
+ end
9
+ end
10
+ alias :included :registered
11
+ end
12
+ end
@@ -0,0 +1,21 @@
1
+ module Middleman::Features::LiveReload
2
+ class << self
3
+ def registered(app)
4
+ return unless Middleman::Server.environment == :development
5
+
6
+ begin
7
+ require 'livereload'
8
+ rescue LoadError
9
+ puts "Livereload not available. Install it with: gem install livereload"
10
+ end
11
+
12
+ new_config = ::LiveReload::Config.new do |config|
13
+ config.exts = ::Tilt.mappings.keys
14
+ end
15
+
16
+ # Middleman::Server.public
17
+ ::LiveReload.run [Middleman::Server.views], new_config
18
+ end
19
+ alias :included :registered
20
+ end
21
+ end
@@ -128,6 +128,9 @@ module Middleman
128
128
  return result
129
129
  end
130
130
 
131
+ status 404
132
+ rescue Padrino::Rendering::TemplateNotFound
133
+ $stderr.puts "File not found: #{request.path}"
131
134
  status 404
132
135
  end
133
136
  end
@@ -1,6 +1,9 @@
1
1
  # Automatic sitemaps
2
2
  # activate :slickmap
3
3
 
4
+ # CodeRay syntax highlighting in Haml
5
+ # activate :code_ray
6
+
4
7
  # Automatic image dimension calculations
5
8
  # activate :automatic_image_sizes
6
9
 
@@ -51,6 +54,10 @@ configure :build do
51
54
 
52
55
  # Enable cache buster
53
56
  # activate :cache_buster
57
+
58
+ # Generate ugly/obfuscated HTML from Haml
59
+ # activate :ugly_haml
60
+
54
61
 
55
62
  # Or use a different image path
56
63
  # set :http_path, "/Content/images/"
data/middleman.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{middleman}
8
- s.version = "0.99.3.pre"
8
+ s.version = "1.0.0.pre"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Thomas Reynolds"]
12
- s.date = %q{2010-09-11}
12
+ s.date = %q{2010-09-21}
13
13
  s.email = %q{tdreyno@gmail.com}
14
14
  s.executables = ["mm-init", "mm-build", "mm-server"]
15
15
  s.extra_rdoc_files = [
@@ -83,8 +83,9 @@ Gem::Specification.new do |s|
83
83
  "lib/middleman/features/automatic_image_sizes.rb",
84
84
  "lib/middleman/features/automatic_image_sizes/fastimage.rb",
85
85
  "lib/middleman/features/cache_buster.rb",
86
+ "lib/middleman/features/code_ray.rb",
86
87
  "lib/middleman/features/default_helpers.rb",
87
- "lib/middleman/features/livereload.rb",
88
+ "lib/middleman/features/live_reload.rb",
88
89
  "lib/middleman/features/minify_css.rb",
89
90
  "lib/middleman/features/minify_javascript.rb",
90
91
  "lib/middleman/features/minify_javascript/rack.rb",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961916752
4
+ hash: 961915988
5
5
  prerelease: true
6
6
  segments:
7
+ - 1
8
+ - 0
7
9
  - 0
8
- - 99
9
- - 3
10
10
  - pre
11
- version: 0.99.3.pre
11
+ version: 1.0.0.pre
12
12
  platform: ruby
13
13
  authors:
14
14
  - Thomas Reynolds
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-09-11 00:00:00 -07:00
19
+ date: 2010-09-21 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -361,8 +361,9 @@ files:
361
361
  - lib/middleman/features/automatic_image_sizes.rb
362
362
  - lib/middleman/features/automatic_image_sizes/fastimage.rb
363
363
  - lib/middleman/features/cache_buster.rb
364
+ - lib/middleman/features/code_ray.rb
364
365
  - lib/middleman/features/default_helpers.rb
365
- - lib/middleman/features/livereload.rb
366
+ - lib/middleman/features/live_reload.rb
366
367
  - lib/middleman/features/minify_css.rb
367
368
  - lib/middleman/features/minify_javascript.rb
368
369
  - lib/middleman/features/minify_javascript/rack.rb
@@ -1,19 +0,0 @@
1
- module Middleman::Features::LiveReload
2
- def initialize(app, config)
3
- return unless Middleman::Server.environment == :development
4
-
5
- begin
6
- require 'livereload'
7
- rescue LoadError
8
- puts "Livereload not available. Install it with: gem install livereload"
9
- end
10
-
11
- new_config = ::LiveReload::Config.new do |config|
12
- config.exts = %w(haml sass scss coffee less builder)
13
- end
14
-
15
- ::LiveReload.run [Middleman::Server.public, Middleman::Server.views], new_config
16
- end
17
- end
18
-
19
- Middleman::Features.register :livereload, Middleman::Features::LiveReload