middleman 2.0.0.rc99 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,8 +1,9 @@
1
- # middleman
1
+ Middleman [![Build Status](http://travis-ci.org/tdreyno/middleman.png)](http://travis-ci.org/tdreyno/middleman)
2
+ =========
2
3
 
3
- The 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.
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.
4
5
 
5
- [![Build Status](http://travis-ci.org/tdreyno/middleman.png)](http://travis-ci.org/tdreyno/middleman)
6
+ [![Click here to lend your support to Middleman](http://www.pledgie.com/campaigns/15807.png)](http://www.pledgie.com/campaigns/15807)
6
7
 
7
8
  ## Getting Started
8
9
 
@@ -17,7 +17,7 @@ Feature: Builder
17
17
  Then "images/Child folder/regular_file(example).txt" should exist at "test-app"
18
18
  And cleanup built app at "test-app"
19
19
 
20
- Scenario: Force relative assets
21
- Given a built app at "relative-app" with flags "--relative"
22
- Then "stylesheets/relative_assets.css" should exist at "relative-app" and include "../"
23
- And cleanup built app at "relative-app"
20
+ # Scenario: Force relative assets
21
+ # Given a built app at "relative-app" with flags "--relative"
22
+ # Then "stylesheets/relative_assets.css" should exist at "relative-app" and include "../"
23
+ # And cleanup built app at "relative-app"
@@ -161,3 +161,5 @@ module Middleman
161
161
  sandbox
162
162
  end
163
163
  end
164
+
165
+ require "middleman/version"
@@ -19,6 +19,7 @@ module Middleman
19
19
  method_option "js_dir", :default => "javascripts", :desc => 'The path to the javascript files'
20
20
  method_option "images_dir", :default => "images", :desc => 'The path to the image files'
21
21
  method_option "rack", :type => :boolean, :default => false, :desc => 'Include a config.ru file'
22
+ method_option "bundler", :type => :boolean, :default => false, :desc => 'Create a Gemfile and use Bundler to manage gems'
22
23
  def init(name)
23
24
  key = options[:template].to_sym
24
25
  unless Middleman::Templates.registered_templates.has_key?(key)
@@ -23,6 +23,23 @@ module Middleman::Templates
23
23
  class_option :css_dir, :default => "stylesheets"
24
24
  class_option :js_dir, :default => "javascripts"
25
25
  class_option :images_dir, :default => "images"
26
+ class_option :rack, :type => :boolean, :default => false
27
+ class_option :bundler, :type => :boolean, :default => false
28
+
29
+ def generate_rack
30
+ if options[:rack]
31
+ template "shared/config.ru", File.join(location, "config.ru")
32
+ end
33
+ end
34
+
35
+ def generate_bundler
36
+ if options[:bundler]
37
+ template "shared/Gemfile.tt", File.join(location, "Gemfile")
38
+
39
+ say_status :run, "bundle install"
40
+ print `cd #{location} && "#{Gem.ruby}" -rubygems "#{Gem.bin_path('bundler', 'bundle')}" install`
41
+ end
42
+ end
26
43
  end
27
44
  end
28
45
 
@@ -5,13 +5,16 @@ class Middleman::Templates::Blog < Middleman::Templates::Base
5
5
 
6
6
  def build_scaffold
7
7
  template "blog/config.tt", File.join(location, "config.rb")
8
- template "blog/config.ru", File.join(location, "config.ru")
9
8
  directory "blog/source", File.join(location, "source")
10
9
 
11
10
  empty_directory File.join(location, "source", options[:css_dir])
12
11
  empty_directory File.join(location, "source", options[:js_dir])
13
12
  empty_directory File.join(location, "source", options[:images_dir])
14
13
  end
14
+
15
+ def generate_rack
16
+ template "blog/config.ru", File.join(location, "config.ru")
17
+ end
15
18
  end
16
19
 
17
20
  Middleman::Templates.register(:blog, Middleman::Templates::Blog)
@@ -5,9 +5,6 @@ class Middleman::Templates::Default < Middleman::Templates::Base
5
5
 
6
6
  def build_scaffold
7
7
  template "shared/config.tt", File.join(location, "config.rb")
8
- if options[:rack]
9
- template "shared/config.ru", File.join(location, "config.ru")
10
- end
11
8
  copy_file "default/source/index.html.erb", File.join(location, "source/index.html.erb")
12
9
  copy_file "default/source/layout.erb", File.join(location, "source/layout.erb")
13
10
  empty_directory File.join(location, "source", options[:css_dir])
@@ -0,0 +1,3 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem "middleman", "~><%= Middleman::VERSION %>"
@@ -1,3 +1,3 @@
1
1
  module Middleman
2
- VERSION = "2.0.0.rc99"
2
+ VERSION = "2.0.0"
3
3
  end
@@ -9,13 +9,31 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Thomas Reynolds"]
10
10
  s.email = ["me@tdreyno.com"]
11
11
  s.homepage = "http://middlemanapp.com"
12
- s.summary = "A static site generator based on Sinatra. Providing Haml, Sass, Compass, CoffeeScript and including minification, compression and cache busting."
12
+ s.summary = "Hand-crafted frontend development"
13
+ s.description = "A static site generator based on Sinatra. Providing dozens of templating languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache busting, Yaml data (and more) an easy part of your development cycle."
13
14
 
14
15
  s.files = `git ls-files`.split("\n")
15
16
  s.test_files = `git ls-files -- {fixtures,features}/*`.split("\n")
16
17
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
18
  s.require_paths = ["lib"]
18
19
 
20
+ # TODO remove for 2.1.x
21
+ s.post_install_message =<<eos
22
+ ********************************************************************************
23
+
24
+ Welcome to Middleman 2.0
25
+
26
+ In addition to many new features, some backwards-incompatible
27
+ changes have been made to the structure of Middleman sites.
28
+
29
+ Before running you old, v1.x project on Middleman 2.0,
30
+ review the Migration guide:
31
+
32
+ http://middlemanapp.com/guides/migrating
33
+
34
+ ********************************************************************************
35
+ eos
36
+
19
37
  s.add_runtime_dependency("rack", ["~> 1.3.0"])
20
38
  s.add_runtime_dependency("thin", ["~> 1.2.11"])
21
39
  s.add_runtime_dependency("thor", ["~> 0.14.0"])
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424147
5
- prerelease: 6
4
+ hash: 15
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
9
  - 0
10
- - rc
11
- - 99
12
- version: 2.0.0.rc99
10
+ version: 2.0.0
13
11
  platform: ruby
14
12
  authors:
15
13
  - Thomas Reynolds
@@ -17,7 +15,7 @@ autorequire:
17
15
  bindir: bin
18
16
  cert_chain: []
19
17
 
20
- date: 2011-08-06 00:00:00 Z
18
+ date: 2011-08-08 00:00:00 Z
21
19
  dependencies:
22
20
  - !ruby/object:Gem::Dependency
23
21
  name: rack
@@ -397,7 +395,7 @@ dependencies:
397
395
  version: 2.6.0
398
396
  type: :development
399
397
  version_requirements: *id023
400
- description:
398
+ description: A static site generator based on Sinatra. Providing dozens of templating languages (Haml, Sass, Compass, Slim, CoffeeScript, and more). Makes minification, compression, cache busting, Yaml data (and more) an easy part of your development cycle.
401
399
  email:
402
400
  - me@tdreyno.com
403
401
  executables:
@@ -598,6 +596,7 @@ files:
598
596
  - lib/middleman/templates/html5/source/test/qunit/qunit.js
599
597
  - lib/middleman/templates/html5/source/test/tests.js
600
598
  - lib/middleman/templates/local.rb
599
+ - lib/middleman/templates/shared/Gemfile.tt
601
600
  - lib/middleman/templates/shared/config.ru
602
601
  - lib/middleman/templates/shared/config.tt
603
602
  - lib/middleman/version.rb
@@ -605,7 +604,21 @@ files:
605
604
  homepage: http://middlemanapp.com
606
605
  licenses: []
607
606
 
608
- post_install_message:
607
+ post_install_message: |
608
+ ********************************************************************************
609
+
610
+ Welcome to Middleman 2.0
611
+
612
+ In addition to many new features, some backwards-incompatible
613
+ changes have been made to the structure of Middleman sites.
614
+
615
+ Before running you old, v1.x project on Middleman 2.0,
616
+ review the Migration guide:
617
+
618
+ http://middlemanapp.com/guides/migrating
619
+
620
+ ********************************************************************************
621
+
609
622
  rdoc_options: []
610
623
 
611
624
  require_paths:
@@ -622,21 +635,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
622
635
  required_rubygems_version: !ruby/object:Gem::Requirement
623
636
  none: false
624
637
  requirements:
625
- - - ">"
638
+ - - ">="
626
639
  - !ruby/object:Gem::Version
627
- hash: 25
640
+ hash: 3
628
641
  segments:
629
- - 1
630
- - 3
631
- - 1
632
- version: 1.3.1
642
+ - 0
643
+ version: "0"
633
644
  requirements: []
634
645
 
635
646
  rubyforge_project:
636
647
  rubygems_version: 1.8.6
637
648
  signing_key:
638
649
  specification_version: 3
639
- summary: A static site generator based on Sinatra. Providing Haml, Sass, Compass, CoffeeScript and including minification, compression and cache busting.
650
+ summary: Hand-crafted frontend development
640
651
  test_files:
641
652
  - features/asset_host.feature
642
653
  - features/automatic_image_sizes.feature