merge more into core, use gem availability to autoload

i18n_v4
Thomas Reynolds 2013-05-08 11:37:55 -07:00
parent 27a9fa98f7
commit 9ebddeed1d
476 changed files with 81 additions and 141 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "middleman-more/lib/middleman-more/templates/smacss"]
path = middleman-more/lib/middleman-more/templates/smacss
[submodule "middleman-core/lib/middleman-more/templates/smacss"]
path = middleman-core/lib/middleman-more/templates/smacss
url = git@github.com:nsteiner/middleman-smacss.git

View File

@ -1,7 +1,6 @@
middleman-*/lib/**/*.rb
--exclude middleman-core/lib/middleman-core/vendor/
--exclude middleman-core/lib/middleman-core/extensions/automatic_image_sizes/fastimage.rb
--exclude middleman-more/lib/middleman-more/extensions/minify_css/cssmin.rb
--exclude middleman-core/lib/middleman-core/step_definitions
--exclude middleman-core/lib/middleman-core/templates/default/
--exclude middleman-core/lib/middleman-core/templates/html5/

View File

@ -1,6 +1,7 @@
master
===
* Move more into core, autoloaded if gems are available.
* DataStore may now be accessed like a hash with #[] and #has_key?. #880
* The i18n extension now supports providing localized templates as separate files, like index.es.html.haml. #816, #823
* The list of regular expressions for which files are ignored by the file watcher are now configurable.

View File

@ -1,9 +1,8 @@
source 'https://rubygems.org'
# Build and doc tools
gem "rake", "~> 10.0.3"
gem "yard", "~> 0.8.0"
gem "rake", "~> 10.0.3", :require => false
gem "yard", "~> 0.8.0", :require => false
# Test tools
gem "cucumber", "~> 1.3.1"
@ -12,7 +11,7 @@ gem "aruba", "~> 0.5.1"
gem "rspec", "~> 2.12"
# Optional middleman dependencies, included for tests
gem "haml", "~> 4.0.0" # Make sure to use Haml 4 for tests
gem "haml", "~> 4.0.0", :require => false # Make sure to use Haml 4 for tests
gem "sinatra", :require => false
gem "slim", :require => false
gem "liquid", :require => false
@ -30,6 +29,5 @@ end
# Middleman itself
gem "middleman-core", :path => "middleman-core"
gem "middleman-more", :path => "middleman-more"
gem "middleman-sprockets", :github => "middleman/middleman-sprockets"
gem "middleman", :path => "middleman"

View File

@ -7,7 +7,7 @@ require File.expand_path("../middleman-core/lib/middleman-core/version.rb", __FI
ROOT = File.expand_path(File.dirname(__FILE__))
GEM_NAME = 'middleman'
middleman_gems = %w(middleman-core middleman-more middleman)
middleman_gems = %w(middleman-core middleman)
GEM_PATHS = middleman_gems.freeze
def sh_rake(command)

View File

@ -1,2 +0,0 @@
--exclusions-file .cane-exclusions.yml
--no-doc

View File

@ -1,5 +0,0 @@
style:
- lib/middleman-core/vendor/hooks-0.2.0/lib/hooks/inheritable_attribute.rb
- lib/middleman-core/vendor/hooks-0.2.0/test/hooks_test.rb
- lib/middleman-core/vendor/hooks-0.2.0/test/inheritable_attribute_test.rb
- lib/middleman-core/vendor/hooks-0.2.0/lib/hooks.rb

View File

@ -1,7 +1,7 @@
Feature: Text Files Without Extensions Should Build and Preview
Scenario: Building Text Files with directory indexes
Given a successfully built app at "extensionless-text-files-app"
Given a successfully built app at "more-extensionless-text-files-app"
When I cd to "build"
Then the following files should exist:
| CNAME |
@ -13,7 +13,7 @@ Feature: Text Files Without Extensions Should Build and Preview
| README/index.html |
Scenario: Previewing Text Files
Given the Server is running at "extensionless-text-files-app"
Given the Server is running at "more-extensionless-text-files-app"
When I go to "/CNAME"
Then I should see "test.github.com"
When I go to "/LICENSE"

View File

@ -1,6 +1,6 @@
Feature: Setting page settings through frontmatter
Scenario: Setting layout, ignoring, and disabling directory indexes through frontmatter (build)
Given a successfully built app at "frontmatter-settings-app"
Given a successfully built app at "more-frontmatter-settings-app"
Then the following files should exist:
| build/proxied/index.html |
| build/no_index.html |
@ -11,7 +11,7 @@ Feature: Setting page settings through frontmatter
Scenario: Setting layout, ignoring, and disabling directory indexes through frontmatter (preview)
Given the Server is running at "frontmatter-settings-app"
Given the Server is running at "more-frontmatter-settings-app"
# When I go to "/proxied/"
# Then I should not see "File Not Found"
When I go to "/no_index.html"
@ -27,7 +27,7 @@ Feature: Setting page settings through frontmatter
Then I should see "File Not Found"
Scenario: Changing frontmatter in preview server
Given the Server is running at "frontmatter-settings-app"
Given the Server is running at "more-frontmatter-settings-app"
When I go to "/ignored/index.html"
Then I should see "File Not Found"
And the file "source/ignored.html.erb" has the contents

View File

@ -1,13 +1,13 @@
Feature: Ignoring paths
Scenario: Ignore with directory indexes (source file, build)
Given a fixture app "ignore-app"
Given a fixture app "more-ignore-app"
And a file named "config.rb" with:
"""
activate :directory_indexes
ignore 'about.html.erb'
ignore 'plain.html'
"""
And a successfully built app at "ignore-app"
And a successfully built app at "more-ignore-app"
Then the following files should exist:
| build/index.html |
And the following files should not exist:
@ -15,7 +15,7 @@ Feature: Ignoring paths
| build/plain/index.html |
Scenario: Ignore with directory indexes (source file, server)
Given a fixture app "ignore-app"
Given a fixture app "more-ignore-app"
And a file named "config.rb" with:
"""
activate :directory_indexes
@ -31,14 +31,14 @@ Feature: Ignoring paths
Then I should see "File Not Found"
Scenario: Ignore with directory indexes (output path splat, build)
Given a fixture app "ignore-app"
Given a fixture app "more-ignore-app"
And a file named "config.rb" with:
"""
activate :directory_indexes
ignore 'about*'
ignore 'plain*'
"""
And a successfully built app at "ignore-app"
And a successfully built app at "more-ignore-app"
Then the following files should exist:
| build/index.html |
And the following files should not exist:
@ -46,7 +46,7 @@ Feature: Ignoring paths
| build/plain/index.html |
Scenario: Ignore with directory indexes (output path splat, server)
Given a fixture app "ignore-app"
Given a fixture app "more-ignore-app"
And a file named "config.rb" with:
"""
activate :directory_indexes

View File

@ -1,7 +1,7 @@
Feature: More default extensions
Scenario: Default extensions preview
Given the Server is running at "implied-extensions-app"
Given the Server is running at "more-implied-extensions-app"
When I go to "/test.html"
Then I should see "Hello"
When I go to "/test2.html"
@ -20,8 +20,8 @@ Feature: More default extensions
Then I should see "color"
Scenario: Default extensions build
Given a fixture app "implied-extensions-app"
And a successfully built app at "implied-extensions-app"
Given a fixture app "more-implied-extensions-app"
And a successfully built app at "more-implied-extensions-app"
When I cd to "build"
Then the following files should exist:
| test.html |

View File

@ -2,17 +2,17 @@ Feature: Instance Vars
In order to share data with layouts and partials via instance variables
Scenario: Setting an instance var in a template should be visible in its layout
Given the Server is running at "instance-vars-app"
Given the Server is running at "more-instance-vars-app"
When I go to "/instance-var-set.html"
Then I should see "Var is 100"
Scenario: Setting an instance var in a template should be visible in a partial
Given the Server is running at "instance-vars-app"
Given the Server is running at "more-instance-vars-app"
When I go to "/instance-var-set.html"
Then I should see "My var is here!"
Scenario: Setting an instance var in one file should not be visible in another
Given the Server is running at "instance-vars-app"
Given the Server is running at "more-instance-vars-app"
When I go to "/instance-var-set.html"
When I go to "/no-instance-var.html"
Then I should see "No var..."

View File

@ -1,7 +1,7 @@
Feature: Step through sitemap as a tree
Feature: Step through sitemap as a tree (more)
Scenario: Root
Given the Server is running at "traversal-app"
Given the Server is running at "more-traversal-app"
When I go to "/index.html"
Then I should see "Path: index.html"
Then I should not see "Parent: index.html"
@ -10,7 +10,7 @@ Feature: Step through sitemap as a tree
Then I should not see "Child: proxied.html"
Scenario: Directories have children and a parent
Given the Server is running at "traversal-app"
Given the Server is running at "more-traversal-app"
When I go to "/sub/index.html"
Then I should see "Path: sub/index.html"
Then I should see "Parent: index.html"
@ -22,7 +22,7 @@ Feature: Step through sitemap as a tree
Then I should see "Sibling: root.html"
Scenario: Directory accessed without index.html
Given the Server is running at "traversal-app"
Given the Server is running at "more-traversal-app"
When I go to "/sub/"
Then I should see "Path: sub/index.html"
Then I should see "Parent: index.html"
@ -34,7 +34,7 @@ Feature: Step through sitemap as a tree
Then I should see "Sibling: root.html"
Scenario: Page has siblings, parent, and source file
Given the Server is running at "traversal-app"
Given the Server is running at "more-traversal-app"
When I go to "/sub/sibling/"
Then I should see "Parent: sub/index.html"
Then I should see "Sibling: sub/fake.html"
@ -44,7 +44,7 @@ Feature: Step through sitemap as a tree
Then I should see "Source: source/sub/sibling.html.erb"
Scenario: Proxied page has siblings, parent, and source file
Given the Server is running at "traversal-app"
Given the Server is running at "more-traversal-app"
When I go to "/sub/fake/"
Then I should see "Path: sub/fake.html"
Then I should see "Parent: sub/index.html"
@ -55,13 +55,13 @@ Feature: Step through sitemap as a tree
Then I should see "Source: source/proxied.html.erb"
Scenario: Child pages have data
Given the Server is running at "traversal-app"
Given the Server is running at "more-traversal-app"
When I go to "/directory-indexed"
Then I should see "Title of Sibling One"
Then I should see "Title of Sibling Two"
Scenario: When directory_index extension is active, child pages are found in named directory
Given the Server is running at "traversal-app"
Given the Server is running at "more-traversal-app"
When I go to "/directory-indexed"
Then I should see "Path: directory-indexed.html"
Then I should see "Parent: index.html"

View File

@ -19,4 +19,4 @@ Feature: SASS .sass-cache custom location
When I go to "/stylesheets/plain.css"
Then I should see "html, body, div, span, applet, object, iframe,"
Then a directory named "/tmp/middleman-more-custom-sass_cache_path" should exist
Then a directory named "/tmp/middleman-core-custom-sass_cache_path" should exist

View File

@ -1,6 +1,6 @@
Feature: Sass Updates and Partials
Scenario: The preview server should update stylesheets when Sass changes
Given the Server is running at "preview-app"
Given the Server is running at "more-preview-app"
And the file "source/stylesheets/plain.css.sass" has the contents
"""
red
@ -17,7 +17,7 @@ Feature: Sass Updates and Partials
Then I should see "color: blue;"
Scenario: The preview server should update stylesheets when Sass partials change
Given the Server is running at "preview-app"
Given the Server is running at "more-preview-app"
And the file "source/stylesheets/main.css.sass" has the contents
"""
@import partial.sass
@ -50,5 +50,5 @@ Feature: Sass Updates and Partials
And I should see "font-size: 18px"
Scenario: Sass partials should work when building
Given a successfully built app at "preview-app"
Given a successfully built app at "more-preview-app"
Then the file "build/stylesheets/main.css" should contain "font-size: 18px"

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 318 B

After

Width:  |  Height:  |  Size: 318 B

View File

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

View File

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

View File

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 334 B

View File

Before

Width:  |  Height:  |  Size: 216 B

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 43 B

After

Width:  |  Height:  |  Size: 43 B

Some files were not shown because too many files have changed in this diff Show More