middleman-more 3.0.0.alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +5 -0
- data/features/asset_host_compass.feature +7 -0
- data/features/cache_buster.feature +26 -0
- data/features/coffee-script.feature +17 -0
- data/features/content_for.feature +11 -0
- data/features/fonts.feature +13 -0
- data/features/ignore_already_minified.features +12 -0
- data/features/liquid.feature +11 -0
- data/features/markdown.feature +27 -0
- data/features/minify_css.feature +19 -0
- data/features/minify_javascript.feature +55 -0
- data/features/relative_assets.feature +50 -0
- data/features/sass_partials.feature +83 -0
- data/features/scss-support.feature +12 -0
- data/features/slim.feature +7 -0
- data/features/sprockets.feature +52 -0
- data/features/sprockets_gems.feature +10 -0
- data/features/support/env.rb +7 -0
- data/fixtures/already-minified-app/config.rb +2 -0
- data/fixtures/already-minified-app/source/javascripts/test.min.js +10 -0
- data/fixtures/already-minified-app/source/stylesheets/test.min.css +10 -0
- data/fixtures/asset-host-app/config.rb +6 -0
- data/fixtures/asset-host-app/source/.htaccess +1 -0
- data/fixtures/asset-host-app/source/images/blank.gif +0 -0
- data/fixtures/asset-host-app/source/stylesheets/asset_host.css.sass +3 -0
- data/fixtures/cache-buster-app/config.rb +0 -0
- data/fixtures/cache-buster-app/source/cache-buster.html.erb +2 -0
- data/fixtures/cache-buster-app/source/images/blank.gif +0 -0
- data/fixtures/cache-buster-app/source/stylesheets/relative_assets.css.sass +3 -0
- data/fixtures/cache-buster-app/source/stylesheets/site.css.sass +1 -0
- data/fixtures/coffeescript-app/config.rb +1 -0
- data/fixtures/coffeescript-app/source/inline-coffeescript.html.haml +3 -0
- data/fixtures/coffeescript-app/source/javascripts/broken-coffee.js.coffee +3 -0
- data/fixtures/coffeescript-app/source/javascripts/coffee_test.js.coffee +3 -0
- data/fixtures/content-for-app/config.rb +6 -0
- data/fixtures/content-for-app/source/content_for_haml.html.haml +4 -0
- data/fixtures/content-for-app/source/content_for_slim.html.slim +4 -0
- data/fixtures/content-for-app/source/layouts/content_for.erb +4 -0
- data/fixtures/fonts-app/config.rb +0 -0
- data/fixtures/fonts-app/source/fonts/StMarie-Thin.otf +0 -0
- data/fixtures/fonts-app/source/stylesheets/fonts.css.sass +3 -0
- data/fixtures/liquid-app/config.rb +0 -0
- data/fixtures/liquid-app/data/test.yml +4 -0
- data/fixtures/liquid-app/data/test2.json +4 -0
- data/fixtures/liquid-app/source/_liquid_partial.liquid +1 -0
- data/fixtures/liquid-app/source/data2.html.liquid +2 -0
- data/fixtures/liquid-app/source/liquid_master.html.liquid +1 -0
- data/fixtures/markdown-app/config.rb +9 -0
- data/fixtures/markdown-app/source/autolink.html.markdown +5 -0
- data/fixtures/markdown-app/source/fenced_code_blocks.html.markdown +7 -0
- data/fixtures/markdown-app/source/index.html.markdown +4 -0
- data/fixtures/markdown-app/source/no_intra_emphasis.html.markdown +5 -0
- data/fixtures/markdown-app/source/smarty_pants.html.markdown +5 -0
- data/fixtures/markdown-app/source/space_after_headers.html.markdown +5 -0
- data/fixtures/markdown-app/source/strikethrough.html.markdown +5 -0
- data/fixtures/markdown-app/source/superscript.html.markdown +5 -0
- data/fixtures/markdown-app/source/tables.html.markdown +8 -0
- data/fixtures/minify-css-app/config.rb +0 -0
- data/fixtures/minify-css-app/source/stylesheets/site.css.sass +1 -0
- data/fixtures/minify-js-app/config.rb +1 -0
- data/fixtures/minify-js-app/source/inline-coffeescript.html.haml +3 -0
- data/fixtures/minify-js-app/source/inline-js.html.haml +7 -0
- data/fixtures/minify-js-app/source/javascripts/coffee_test.js.coffee +3 -0
- data/fixtures/minify-js-app/source/javascripts/js_test.js +8 -0
- data/fixtures/passthrough-app/config.rb +17 -0
- data/fixtures/passthrough-app/source/.htaccess +1 -0
- data/fixtures/passthrough-app/source/inline-coffeescript.html.haml +3 -0
- data/fixtures/passthrough-app/source/inline-css.html.haml +4 -0
- data/fixtures/passthrough-app/source/inline-js.html.haml +7 -0
- data/fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee +3 -0
- data/fixtures/passthrough-app/source/javascripts/js_test.js +8 -0
- data/fixtures/passthrough-app/source/stylesheets/site.css.sass +1 -0
- data/fixtures/preview-app/config.rb +0 -0
- data/fixtures/preview-app/source/content.html.erb +1 -0
- data/fixtures/preview-app/source/layout.erb +1 -0
- data/fixtures/preview-app/source/stylesheets/_partial.sass +2 -0
- data/fixtures/preview-app/source/stylesheets/_partial2.css.sass +2 -0
- data/fixtures/preview-app/source/stylesheets/main.css.sass +4 -0
- data/fixtures/preview-app/source/stylesheets/main2.css.sass +4 -0
- data/fixtures/preview-app/source/stylesheets/plain.css.sass +2 -0
- data/fixtures/relative-app/config.rb +0 -0
- data/fixtures/relative-app/source/images/blank.gif +0 -0
- data/fixtures/relative-app/source/stylesheets/relative_assets.css.sass +3 -0
- data/fixtures/relative-assets-app/config.rb +0 -0
- data/fixtures/relative-assets-app/source/images/blank.gif +0 -0
- data/fixtures/relative-assets-app/source/img/blank.gif +0 -0
- data/fixtures/relative-assets-app/source/relative_image.html.erb +1 -0
- data/fixtures/relative-assets-app/source/stylesheets/relative_assets.css.sass +3 -0
- data/fixtures/scss-app/config.rb +0 -0
- data/fixtures/scss-app/source/stylesheets/layout.css.sass +2 -0
- data/fixtures/scss-app/source/stylesheets/site_scss.css.scss +1 -0
- data/fixtures/slim-app/config.rb +1 -0
- data/fixtures/slim-app/source/slim.html.slim +7 -0
- data/fixtures/sprockets-app/config.rb +2 -0
- data/fixtures/sprockets-app/source/library/css/bootstrap_include.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/css/plain.css +3 -0
- data/fixtures/sprockets-app/source/library/css/sprockets_base1.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/css/sprockets_base2.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/css/sprockets_sub.css.scss +1 -0
- data/fixtures/sprockets-app/source/library/js/jquery_include.js +1 -0
- data/fixtures/sprockets-app/source/library/js/plain.js +3 -0
- data/fixtures/sprockets-app/source/library/js/sprockets_base.js +5 -0
- data/fixtures/sprockets-app/source/library/js/sprockets_sub.js +3 -0
- data/fixtures/sprockets-app2/config.rb +0 -0
- data/fixtures/sprockets-app2/data/test.yml +4 -0
- data/fixtures/sprockets-app2/data/test2.json +4 -0
- data/fixtures/sprockets-app2/source/javascripts/multiple_engines.js.coffee.erb +1 -0
- data/fixtures/sprockets-app2/source/javascripts/sprockets_base.js +5 -0
- data/fixtures/sprockets-app2/source/javascripts/sprockets_sub.js +3 -0
- data/fixtures/sprockets-app2/source/stylesheets/sprockets_base1.css.scss +1 -0
- data/fixtures/sprockets-app2/source/stylesheets/sprockets_base2.css.scss +1 -0
- data/fixtures/sprockets-app2/source/stylesheets/sprockets_sub.css.scss +1 -0
- data/lib/middleman-more.rb +64 -0
- data/lib/middleman-more/core_extensions/compass.rb +75 -0
- data/lib/middleman-more/core_extensions/sprockets.rb +142 -0
- data/lib/middleman-more/extensions/cache_buster.rb +59 -0
- data/lib/middleman-more/extensions/minify_css.rb +17 -0
- data/lib/middleman-more/extensions/minify_css/cssmin.rb +55 -0
- data/lib/middleman-more/extensions/minify_javascript.rb +56 -0
- data/lib/middleman-more/extensions/relative_assets.rb +46 -0
- data/lib/middleman-more/renderers/haml.rb +13 -0
- data/lib/middleman-more/renderers/liquid.rb +21 -0
- data/lib/middleman-more/renderers/markdown.rb +28 -0
- data/lib/middleman-more/renderers/sass.rb +53 -0
- data/lib/middleman-more/renderers/slim.rb +15 -0
- data/middleman-more.gemspec +32 -0
- metadata +468 -0
@@ -0,0 +1,56 @@
|
|
1
|
+
module Middleman::Extensions
|
2
|
+
module MinifyJavascript
|
3
|
+
class << self
|
4
|
+
def registered(app)
|
5
|
+
app.after_configuration do
|
6
|
+
if !js_compressor
|
7
|
+
require 'uglifier'
|
8
|
+
set :js_compressor, ::Uglifier.new
|
9
|
+
end
|
10
|
+
|
11
|
+
use InlineJavascriptRack, :compressor => js_compressor
|
12
|
+
end
|
13
|
+
end
|
14
|
+
alias :included :registered
|
15
|
+
end
|
16
|
+
|
17
|
+
class InlineJavascriptRack
|
18
|
+
def initialize(app, options={})
|
19
|
+
@app = app
|
20
|
+
@compressor = options[:compressor]
|
21
|
+
end
|
22
|
+
|
23
|
+
def call(env)
|
24
|
+
status, headers, response = @app.call(env)
|
25
|
+
|
26
|
+
if env["PATH_INFO"].match(/\.html$/)
|
27
|
+
uncompressed_source = case(response)
|
28
|
+
when String
|
29
|
+
response
|
30
|
+
when Array
|
31
|
+
response.join
|
32
|
+
when Rack::Response
|
33
|
+
response.body.join
|
34
|
+
when Rack::File
|
35
|
+
File.read(response.path)
|
36
|
+
end
|
37
|
+
|
38
|
+
minified = uncompressed_source.gsub(/(<scri.*?\/\/<!\[CDATA\[\n)(.*?)(\/\/\]\].*?<\/script>)/m) do |m|
|
39
|
+
first = $1
|
40
|
+
uncompressed_source = $2
|
41
|
+
last = $3
|
42
|
+
minified_js = @compressor.compress(uncompressed_source)
|
43
|
+
|
44
|
+
first << minified_js << "\n" << last
|
45
|
+
end
|
46
|
+
headers["Content-Length"] = ::Rack::Utils.bytesize(minified).to_s
|
47
|
+
response = [minified]
|
48
|
+
end
|
49
|
+
|
50
|
+
[status, headers, response]
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
register :minify_javascript, MinifyJavascript
|
56
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
module Middleman::Extensions
|
2
|
+
module RelativeAssets
|
3
|
+
class << self
|
4
|
+
def registered(app)
|
5
|
+
app.compass_config do |config|
|
6
|
+
config.relative_assets = true
|
7
|
+
end
|
8
|
+
|
9
|
+
app.send :include, InstanceMethods
|
10
|
+
end
|
11
|
+
alias :included :registered
|
12
|
+
end
|
13
|
+
|
14
|
+
module InstanceMethods
|
15
|
+
def asset_url(path, prefix="")
|
16
|
+
begin
|
17
|
+
prefix = images_dir if prefix == http_images_path
|
18
|
+
rescue
|
19
|
+
end
|
20
|
+
|
21
|
+
if path.include?("://")
|
22
|
+
super(path, prefix)
|
23
|
+
elsif path[0,1] == "/"
|
24
|
+
path
|
25
|
+
else
|
26
|
+
path = File.join(prefix, path) if prefix.length > 0
|
27
|
+
request_path = @request_path.dup
|
28
|
+
request_path << index_file if path.match(%r{/$})
|
29
|
+
request_path.gsub!(%r{^/}, '')
|
30
|
+
parts = request_path.split('/')
|
31
|
+
|
32
|
+
if parts.length > 1
|
33
|
+
arry = []
|
34
|
+
(parts.length - 1).times { arry << ".." }
|
35
|
+
arry << path
|
36
|
+
File.join(*arry)
|
37
|
+
else
|
38
|
+
path
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
register :relative_assets, RelativeAssets
|
46
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module Middleman::Renderers::Liquid
|
2
|
+
class << self
|
3
|
+
def registered(app)
|
4
|
+
# Liquid is not included in the default gems,
|
5
|
+
# but we'll support it if available.
|
6
|
+
begin
|
7
|
+
require "liquid"
|
8
|
+
|
9
|
+
app.after_configuration do
|
10
|
+
Liquid::Template.file_system = Liquid::LocalFileSystem.new(source_dir)
|
11
|
+
|
12
|
+
provides_metadata %r{\.liquid$} do |path|
|
13
|
+
{ :locals => { :data => data.to_h } }
|
14
|
+
end
|
15
|
+
end
|
16
|
+
rescue LoadError
|
17
|
+
end
|
18
|
+
end
|
19
|
+
alias :included :registered
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module Middleman::Renderers::Markdown
|
2
|
+
class << self
|
3
|
+
def registered(app)
|
4
|
+
require "redcarpet"
|
5
|
+
|
6
|
+
# Forcably disable Redcarpet1 support.
|
7
|
+
# Tilt defaults to this if available, but the compat
|
8
|
+
# layer disables extensions.
|
9
|
+
Object.send(:remove_const, :RedcarpetCompat) if defined? ::RedcarpetCompat
|
10
|
+
|
11
|
+
app.set :markdown_engine, :redcarpet
|
12
|
+
app.set :markdown_engine_prefix, ::Tilt
|
13
|
+
|
14
|
+
app.after_configuration do
|
15
|
+
unless markdown_engine.nil?
|
16
|
+
if markdown_engine.is_a? Symbol
|
17
|
+
engine = engine.to_s
|
18
|
+
engine = engine == "rdiscount" ? "RDiscount" : engine.camelize
|
19
|
+
markdown_engine = markdown_engine_prefix.const_get("#{engine}Template")
|
20
|
+
end
|
21
|
+
|
22
|
+
::Tilt.prefer(markdown_engine)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
alias :included :registered
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
require "sprockets"
|
2
|
+
require "sprockets-sass"
|
3
|
+
require "sass"
|
4
|
+
|
5
|
+
module Middleman::Renderers::Sass
|
6
|
+
class << self
|
7
|
+
def registered(app)
|
8
|
+
# Default sass options
|
9
|
+
app.set :sass, {}
|
10
|
+
end
|
11
|
+
alias :included :registered
|
12
|
+
end
|
13
|
+
|
14
|
+
class SassPlusCSSFilenameTemplate < ::Sprockets::Sass::SassTemplate
|
15
|
+
# Add exception messaging
|
16
|
+
def evaluate(context, locals, &block)
|
17
|
+
begin
|
18
|
+
super
|
19
|
+
rescue Sass::SyntaxError => e
|
20
|
+
Sass::SyntaxError.exception_to_css(e, :full_exception => true)
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
protected
|
25
|
+
def sass_options
|
26
|
+
location_of_sass_file = if @context.build?
|
27
|
+
File.expand_path(@context.build_dir, @context.root)
|
28
|
+
else
|
29
|
+
File.expand_path(@context.source, @context.root)
|
30
|
+
end
|
31
|
+
|
32
|
+
parts = basename.split('.')
|
33
|
+
parts.pop
|
34
|
+
css_filename = File.join(location_of_sass_file, @context.css_dir, parts.join("."))
|
35
|
+
|
36
|
+
super.merge(:css_filename => css_filename)
|
37
|
+
end
|
38
|
+
end
|
39
|
+
::Sprockets.register_engine ".sass", SassPlusCSSFilenameTemplate
|
40
|
+
::Tilt.register 'sass', SassPlusCSSFilenameTemplate
|
41
|
+
::Tilt.prefer(SassPlusCSSFilenameTemplate)
|
42
|
+
|
43
|
+
class ScssPlusCSSFilenameTemplate < SassPlusCSSFilenameTemplate
|
44
|
+
# Define the expected syntax for the template
|
45
|
+
def syntax
|
46
|
+
:scss
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
::Sprockets.register_engine ".scss", ScssPlusCSSFilenameTemplate
|
51
|
+
::Tilt.register 'scss', ScssPlusCSSFilenameTemplate
|
52
|
+
::Tilt.prefer(ScssPlusCSSFilenameTemplate)
|
53
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Middleman::Renderers::Slim
|
2
|
+
class << self
|
3
|
+
def registered(app)
|
4
|
+
# Slim is not included in the default gems,
|
5
|
+
# but we'll support it if available.
|
6
|
+
begin
|
7
|
+
require "slim"
|
8
|
+
|
9
|
+
Slim::Engine.set_default_options(:buffer => '@_out_buf', :generator => Temple::Generators::StringBuffer) if defined?(Slim)
|
10
|
+
rescue LoadError
|
11
|
+
end
|
12
|
+
end
|
13
|
+
alias :included :registered
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require File.expand_path("../../middleman-core/lib/middleman-core/version.rb", __FILE__)
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "middleman-more"
|
7
|
+
s.version = Middleman::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.license = "MIT"
|
10
|
+
s.authors = ["Thomas Reynolds"]
|
11
|
+
s.email = ["me@tdreyno.com"]
|
12
|
+
s.homepage = "http://middlemanapp.com"
|
13
|
+
s.summary = "Hand-crafted frontend development"
|
14
|
+
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."
|
15
|
+
|
16
|
+
s.files = `git ls-files`.split("\n")
|
17
|
+
s.test_files = `git ls-files -- {fixtures,features}/*`.split("\n")
|
18
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
+
s.require_paths = ["lib"]
|
20
|
+
|
21
|
+
s.add_dependency("middleman-core", Middleman::VERSION)
|
22
|
+
s.add_dependency("uglifier", ["~> 1.2.0"])
|
23
|
+
s.add_dependency("haml", ["~> 3.1.0"])
|
24
|
+
s.add_dependency("sass", ["~> 3.1.7"])
|
25
|
+
s.add_dependency("compass", ["~> 0.11.3"])
|
26
|
+
s.add_dependency("coffee-script", ["~> 2.2.0"])
|
27
|
+
s.add_dependency("execjs", ["~> 1.2.7"])
|
28
|
+
s.add_dependency("sprockets", ["~> 2.1.0"])
|
29
|
+
s.add_dependency("sprockets-sass", ["~> 0.6.0"])
|
30
|
+
s.add_dependency("redcarpet", ["~> 2.0.0"])
|
31
|
+
end
|
32
|
+
|
metadata
ADDED
@@ -0,0 +1,468 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: middleman-more
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: -3702664398
|
5
|
+
prerelease: 6
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
- 0
|
10
|
+
- alpha
|
11
|
+
- 7
|
12
|
+
version: 3.0.0.alpha.7
|
13
|
+
platform: ruby
|
14
|
+
authors:
|
15
|
+
- Thomas Reynolds
|
16
|
+
autorequire:
|
17
|
+
bindir: bin
|
18
|
+
cert_chain: []
|
19
|
+
|
20
|
+
date: 2011-12-29 00:00:00 -08:00
|
21
|
+
default_executable:
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
24
|
+
prerelease: false
|
25
|
+
type: :runtime
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - "="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: -3702664398
|
32
|
+
segments:
|
33
|
+
- 3
|
34
|
+
- 0
|
35
|
+
- 0
|
36
|
+
- alpha
|
37
|
+
- 7
|
38
|
+
version: 3.0.0.alpha.7
|
39
|
+
name: middleman-core
|
40
|
+
version_requirements: *id001
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
prerelease: false
|
43
|
+
type: :runtime
|
44
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
45
|
+
none: false
|
46
|
+
requirements:
|
47
|
+
- - ~>
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
hash: 31
|
50
|
+
segments:
|
51
|
+
- 1
|
52
|
+
- 2
|
53
|
+
- 0
|
54
|
+
version: 1.2.0
|
55
|
+
name: uglifier
|
56
|
+
version_requirements: *id002
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
prerelease: false
|
59
|
+
type: :runtime
|
60
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
hash: 3
|
66
|
+
segments:
|
67
|
+
- 3
|
68
|
+
- 1
|
69
|
+
- 0
|
70
|
+
version: 3.1.0
|
71
|
+
name: haml
|
72
|
+
version_requirements: *id003
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
prerelease: false
|
75
|
+
type: :runtime
|
76
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
78
|
+
requirements:
|
79
|
+
- - ~>
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
hash: 13
|
82
|
+
segments:
|
83
|
+
- 3
|
84
|
+
- 1
|
85
|
+
- 7
|
86
|
+
version: 3.1.7
|
87
|
+
name: sass
|
88
|
+
version_requirements: *id004
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
prerelease: false
|
91
|
+
type: :runtime
|
92
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - ~>
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
hash: 53
|
98
|
+
segments:
|
99
|
+
- 0
|
100
|
+
- 11
|
101
|
+
- 3
|
102
|
+
version: 0.11.3
|
103
|
+
name: compass
|
104
|
+
version_requirements: *id005
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
prerelease: false
|
107
|
+
type: :runtime
|
108
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ~>
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 7
|
114
|
+
segments:
|
115
|
+
- 2
|
116
|
+
- 2
|
117
|
+
- 0
|
118
|
+
version: 2.2.0
|
119
|
+
name: coffee-script
|
120
|
+
version_requirements: *id006
|
121
|
+
- !ruby/object:Gem::Dependency
|
122
|
+
prerelease: false
|
123
|
+
type: :runtime
|
124
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
126
|
+
requirements:
|
127
|
+
- - ~>
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
hash: 17
|
130
|
+
segments:
|
131
|
+
- 1
|
132
|
+
- 2
|
133
|
+
- 7
|
134
|
+
version: 1.2.7
|
135
|
+
name: execjs
|
136
|
+
version_requirements: *id007
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
prerelease: false
|
139
|
+
type: :runtime
|
140
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
hash: 11
|
146
|
+
segments:
|
147
|
+
- 2
|
148
|
+
- 1
|
149
|
+
- 0
|
150
|
+
version: 2.1.0
|
151
|
+
name: sprockets
|
152
|
+
version_requirements: *id008
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
prerelease: false
|
155
|
+
type: :runtime
|
156
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ~>
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
hash: 7
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
- 6
|
165
|
+
- 0
|
166
|
+
version: 0.6.0
|
167
|
+
name: sprockets-sass
|
168
|
+
version_requirements: *id009
|
169
|
+
- !ruby/object:Gem::Dependency
|
170
|
+
prerelease: false
|
171
|
+
type: :runtime
|
172
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
173
|
+
none: false
|
174
|
+
requirements:
|
175
|
+
- - ~>
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
hash: 15
|
178
|
+
segments:
|
179
|
+
- 2
|
180
|
+
- 0
|
181
|
+
- 0
|
182
|
+
version: 2.0.0
|
183
|
+
name: redcarpet
|
184
|
+
version_requirements: *id010
|
185
|
+
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.
|
186
|
+
email:
|
187
|
+
- me@tdreyno.com
|
188
|
+
executables: []
|
189
|
+
|
190
|
+
extensions: []
|
191
|
+
|
192
|
+
extra_rdoc_files: []
|
193
|
+
|
194
|
+
files:
|
195
|
+
- Rakefile
|
196
|
+
- features/asset_host_compass.feature
|
197
|
+
- features/cache_buster.feature
|
198
|
+
- features/coffee-script.feature
|
199
|
+
- features/content_for.feature
|
200
|
+
- features/fonts.feature
|
201
|
+
- features/ignore_already_minified.features
|
202
|
+
- features/liquid.feature
|
203
|
+
- features/markdown.feature
|
204
|
+
- features/minify_css.feature
|
205
|
+
- features/minify_javascript.feature
|
206
|
+
- features/relative_assets.feature
|
207
|
+
- features/sass_partials.feature
|
208
|
+
- features/scss-support.feature
|
209
|
+
- features/slim.feature
|
210
|
+
- features/sprockets.feature
|
211
|
+
- features/sprockets_gems.feature
|
212
|
+
- features/support/env.rb
|
213
|
+
- fixtures/already-minified-app/config.rb
|
214
|
+
- fixtures/already-minified-app/source/javascripts/test.min.js
|
215
|
+
- fixtures/already-minified-app/source/stylesheets/test.min.css
|
216
|
+
- fixtures/asset-host-app/config.rb
|
217
|
+
- fixtures/asset-host-app/source/.htaccess
|
218
|
+
- fixtures/asset-host-app/source/images/blank.gif
|
219
|
+
- fixtures/asset-host-app/source/stylesheets/asset_host.css.sass
|
220
|
+
- fixtures/cache-buster-app/config.rb
|
221
|
+
- fixtures/cache-buster-app/source/cache-buster.html.erb
|
222
|
+
- fixtures/cache-buster-app/source/images/blank.gif
|
223
|
+
- fixtures/cache-buster-app/source/stylesheets/relative_assets.css.sass
|
224
|
+
- fixtures/cache-buster-app/source/stylesheets/site.css.sass
|
225
|
+
- fixtures/coffeescript-app/config.rb
|
226
|
+
- fixtures/coffeescript-app/source/inline-coffeescript.html.haml
|
227
|
+
- fixtures/coffeescript-app/source/javascripts/broken-coffee.js.coffee
|
228
|
+
- fixtures/coffeescript-app/source/javascripts/coffee_test.js.coffee
|
229
|
+
- fixtures/content-for-app/config.rb
|
230
|
+
- fixtures/content-for-app/source/content_for_haml.html.haml
|
231
|
+
- fixtures/content-for-app/source/content_for_slim.html.slim
|
232
|
+
- fixtures/content-for-app/source/layouts/content_for.erb
|
233
|
+
- fixtures/fonts-app/config.rb
|
234
|
+
- fixtures/fonts-app/source/fonts/StMarie-Thin.otf
|
235
|
+
- fixtures/fonts-app/source/stylesheets/fonts.css.sass
|
236
|
+
- fixtures/liquid-app/config.rb
|
237
|
+
- fixtures/liquid-app/data/test.yml
|
238
|
+
- fixtures/liquid-app/data/test2.json
|
239
|
+
- fixtures/liquid-app/source/_liquid_partial.liquid
|
240
|
+
- fixtures/liquid-app/source/data2.html.liquid
|
241
|
+
- fixtures/liquid-app/source/liquid_master.html.liquid
|
242
|
+
- fixtures/markdown-app/config.rb
|
243
|
+
- fixtures/markdown-app/source/autolink.html.markdown
|
244
|
+
- fixtures/markdown-app/source/fenced_code_blocks.html.markdown
|
245
|
+
- fixtures/markdown-app/source/index.html.markdown
|
246
|
+
- fixtures/markdown-app/source/no_intra_emphasis.html.markdown
|
247
|
+
- fixtures/markdown-app/source/smarty_pants.html.markdown
|
248
|
+
- fixtures/markdown-app/source/space_after_headers.html.markdown
|
249
|
+
- fixtures/markdown-app/source/strikethrough.html.markdown
|
250
|
+
- fixtures/markdown-app/source/superscript.html.markdown
|
251
|
+
- fixtures/markdown-app/source/tables.html.markdown
|
252
|
+
- fixtures/minify-css-app/config.rb
|
253
|
+
- fixtures/minify-css-app/source/stylesheets/site.css.sass
|
254
|
+
- fixtures/minify-js-app/config.rb
|
255
|
+
- fixtures/minify-js-app/source/inline-coffeescript.html.haml
|
256
|
+
- fixtures/minify-js-app/source/inline-js.html.haml
|
257
|
+
- fixtures/minify-js-app/source/javascripts/coffee_test.js.coffee
|
258
|
+
- fixtures/minify-js-app/source/javascripts/js_test.js
|
259
|
+
- fixtures/passthrough-app/config.rb
|
260
|
+
- fixtures/passthrough-app/source/.htaccess
|
261
|
+
- fixtures/passthrough-app/source/inline-coffeescript.html.haml
|
262
|
+
- fixtures/passthrough-app/source/inline-css.html.haml
|
263
|
+
- fixtures/passthrough-app/source/inline-js.html.haml
|
264
|
+
- fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee
|
265
|
+
- fixtures/passthrough-app/source/javascripts/js_test.js
|
266
|
+
- fixtures/passthrough-app/source/stylesheets/site.css.sass
|
267
|
+
- fixtures/preview-app/config.rb
|
268
|
+
- fixtures/preview-app/source/content.html.erb
|
269
|
+
- fixtures/preview-app/source/layout.erb
|
270
|
+
- fixtures/preview-app/source/stylesheets/_partial.sass
|
271
|
+
- fixtures/preview-app/source/stylesheets/_partial2.css.sass
|
272
|
+
- fixtures/preview-app/source/stylesheets/main.css.sass
|
273
|
+
- fixtures/preview-app/source/stylesheets/main2.css.sass
|
274
|
+
- fixtures/preview-app/source/stylesheets/plain.css.sass
|
275
|
+
- fixtures/relative-app/config.rb
|
276
|
+
- fixtures/relative-app/source/images/blank.gif
|
277
|
+
- fixtures/relative-app/source/stylesheets/relative_assets.css.sass
|
278
|
+
- fixtures/relative-assets-app/config.rb
|
279
|
+
- fixtures/relative-assets-app/source/images/blank.gif
|
280
|
+
- fixtures/relative-assets-app/source/img/blank.gif
|
281
|
+
- fixtures/relative-assets-app/source/relative_image.html.erb
|
282
|
+
- fixtures/relative-assets-app/source/stylesheets/relative_assets.css.sass
|
283
|
+
- fixtures/scss-app/config.rb
|
284
|
+
- fixtures/scss-app/source/stylesheets/layout.css.sass
|
285
|
+
- fixtures/scss-app/source/stylesheets/site_scss.css.scss
|
286
|
+
- fixtures/slim-app/config.rb
|
287
|
+
- fixtures/slim-app/source/slim.html.slim
|
288
|
+
- fixtures/sprockets-app/config.rb
|
289
|
+
- fixtures/sprockets-app/source/library/css/bootstrap_include.css.scss
|
290
|
+
- fixtures/sprockets-app/source/library/css/plain.css
|
291
|
+
- fixtures/sprockets-app/source/library/css/sprockets_base1.css.scss
|
292
|
+
- fixtures/sprockets-app/source/library/css/sprockets_base2.css.scss
|
293
|
+
- fixtures/sprockets-app/source/library/css/sprockets_sub.css.scss
|
294
|
+
- fixtures/sprockets-app/source/library/js/jquery_include.js
|
295
|
+
- fixtures/sprockets-app/source/library/js/plain.js
|
296
|
+
- fixtures/sprockets-app/source/library/js/sprockets_base.js
|
297
|
+
- fixtures/sprockets-app/source/library/js/sprockets_sub.js
|
298
|
+
- fixtures/sprockets-app2/config.rb
|
299
|
+
- fixtures/sprockets-app2/data/test.yml
|
300
|
+
- fixtures/sprockets-app2/data/test2.json
|
301
|
+
- fixtures/sprockets-app2/source/javascripts/multiple_engines.js.coffee.erb
|
302
|
+
- fixtures/sprockets-app2/source/javascripts/sprockets_base.js
|
303
|
+
- fixtures/sprockets-app2/source/javascripts/sprockets_sub.js
|
304
|
+
- fixtures/sprockets-app2/source/stylesheets/sprockets_base1.css.scss
|
305
|
+
- fixtures/sprockets-app2/source/stylesheets/sprockets_base2.css.scss
|
306
|
+
- fixtures/sprockets-app2/source/stylesheets/sprockets_sub.css.scss
|
307
|
+
- lib/middleman-more.rb
|
308
|
+
- lib/middleman-more/core_extensions/compass.rb
|
309
|
+
- lib/middleman-more/core_extensions/sprockets.rb
|
310
|
+
- lib/middleman-more/extensions/cache_buster.rb
|
311
|
+
- lib/middleman-more/extensions/minify_css.rb
|
312
|
+
- lib/middleman-more/extensions/minify_css/cssmin.rb
|
313
|
+
- lib/middleman-more/extensions/minify_javascript.rb
|
314
|
+
- lib/middleman-more/extensions/relative_assets.rb
|
315
|
+
- lib/middleman-more/renderers/haml.rb
|
316
|
+
- lib/middleman-more/renderers/liquid.rb
|
317
|
+
- lib/middleman-more/renderers/markdown.rb
|
318
|
+
- lib/middleman-more/renderers/sass.rb
|
319
|
+
- lib/middleman-more/renderers/slim.rb
|
320
|
+
- middleman-more.gemspec
|
321
|
+
has_rdoc: true
|
322
|
+
homepage: http://middlemanapp.com
|
323
|
+
licenses:
|
324
|
+
- MIT
|
325
|
+
post_install_message:
|
326
|
+
rdoc_options: []
|
327
|
+
|
328
|
+
require_paths:
|
329
|
+
- lib
|
330
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
331
|
+
none: false
|
332
|
+
requirements:
|
333
|
+
- - ">="
|
334
|
+
- !ruby/object:Gem::Version
|
335
|
+
hash: 3
|
336
|
+
segments:
|
337
|
+
- 0
|
338
|
+
version: "0"
|
339
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
340
|
+
none: false
|
341
|
+
requirements:
|
342
|
+
- - ">"
|
343
|
+
- !ruby/object:Gem::Version
|
344
|
+
hash: 25
|
345
|
+
segments:
|
346
|
+
- 1
|
347
|
+
- 3
|
348
|
+
- 1
|
349
|
+
version: 1.3.1
|
350
|
+
requirements: []
|
351
|
+
|
352
|
+
rubyforge_project:
|
353
|
+
rubygems_version: 1.6.2
|
354
|
+
signing_key:
|
355
|
+
specification_version: 3
|
356
|
+
summary: Hand-crafted frontend development
|
357
|
+
test_files:
|
358
|
+
- features/asset_host_compass.feature
|
359
|
+
- features/cache_buster.feature
|
360
|
+
- features/coffee-script.feature
|
361
|
+
- features/content_for.feature
|
362
|
+
- features/fonts.feature
|
363
|
+
- features/ignore_already_minified.features
|
364
|
+
- features/liquid.feature
|
365
|
+
- features/markdown.feature
|
366
|
+
- features/minify_css.feature
|
367
|
+
- features/minify_javascript.feature
|
368
|
+
- features/relative_assets.feature
|
369
|
+
- features/sass_partials.feature
|
370
|
+
- features/scss-support.feature
|
371
|
+
- features/slim.feature
|
372
|
+
- features/sprockets.feature
|
373
|
+
- features/sprockets_gems.feature
|
374
|
+
- features/support/env.rb
|
375
|
+
- fixtures/already-minified-app/config.rb
|
376
|
+
- fixtures/already-minified-app/source/javascripts/test.min.js
|
377
|
+
- fixtures/already-minified-app/source/stylesheets/test.min.css
|
378
|
+
- fixtures/asset-host-app/config.rb
|
379
|
+
- fixtures/asset-host-app/source/.htaccess
|
380
|
+
- fixtures/asset-host-app/source/images/blank.gif
|
381
|
+
- fixtures/asset-host-app/source/stylesheets/asset_host.css.sass
|
382
|
+
- fixtures/cache-buster-app/config.rb
|
383
|
+
- fixtures/cache-buster-app/source/cache-buster.html.erb
|
384
|
+
- fixtures/cache-buster-app/source/images/blank.gif
|
385
|
+
- fixtures/cache-buster-app/source/stylesheets/relative_assets.css.sass
|
386
|
+
- fixtures/cache-buster-app/source/stylesheets/site.css.sass
|
387
|
+
- fixtures/coffeescript-app/config.rb
|
388
|
+
- fixtures/coffeescript-app/source/inline-coffeescript.html.haml
|
389
|
+
- fixtures/coffeescript-app/source/javascripts/broken-coffee.js.coffee
|
390
|
+
- fixtures/coffeescript-app/source/javascripts/coffee_test.js.coffee
|
391
|
+
- fixtures/content-for-app/config.rb
|
392
|
+
- fixtures/content-for-app/source/content_for_haml.html.haml
|
393
|
+
- fixtures/content-for-app/source/content_for_slim.html.slim
|
394
|
+
- fixtures/content-for-app/source/layouts/content_for.erb
|
395
|
+
- fixtures/fonts-app/config.rb
|
396
|
+
- fixtures/fonts-app/source/fonts/StMarie-Thin.otf
|
397
|
+
- fixtures/fonts-app/source/stylesheets/fonts.css.sass
|
398
|
+
- fixtures/liquid-app/config.rb
|
399
|
+
- fixtures/liquid-app/data/test.yml
|
400
|
+
- fixtures/liquid-app/data/test2.json
|
401
|
+
- fixtures/liquid-app/source/_liquid_partial.liquid
|
402
|
+
- fixtures/liquid-app/source/data2.html.liquid
|
403
|
+
- fixtures/liquid-app/source/liquid_master.html.liquid
|
404
|
+
- fixtures/markdown-app/config.rb
|
405
|
+
- fixtures/markdown-app/source/autolink.html.markdown
|
406
|
+
- fixtures/markdown-app/source/fenced_code_blocks.html.markdown
|
407
|
+
- fixtures/markdown-app/source/index.html.markdown
|
408
|
+
- fixtures/markdown-app/source/no_intra_emphasis.html.markdown
|
409
|
+
- fixtures/markdown-app/source/smarty_pants.html.markdown
|
410
|
+
- fixtures/markdown-app/source/space_after_headers.html.markdown
|
411
|
+
- fixtures/markdown-app/source/strikethrough.html.markdown
|
412
|
+
- fixtures/markdown-app/source/superscript.html.markdown
|
413
|
+
- fixtures/markdown-app/source/tables.html.markdown
|
414
|
+
- fixtures/minify-css-app/config.rb
|
415
|
+
- fixtures/minify-css-app/source/stylesheets/site.css.sass
|
416
|
+
- fixtures/minify-js-app/config.rb
|
417
|
+
- fixtures/minify-js-app/source/inline-coffeescript.html.haml
|
418
|
+
- fixtures/minify-js-app/source/inline-js.html.haml
|
419
|
+
- fixtures/minify-js-app/source/javascripts/coffee_test.js.coffee
|
420
|
+
- fixtures/minify-js-app/source/javascripts/js_test.js
|
421
|
+
- fixtures/passthrough-app/config.rb
|
422
|
+
- fixtures/passthrough-app/source/.htaccess
|
423
|
+
- fixtures/passthrough-app/source/inline-coffeescript.html.haml
|
424
|
+
- fixtures/passthrough-app/source/inline-css.html.haml
|
425
|
+
- fixtures/passthrough-app/source/inline-js.html.haml
|
426
|
+
- fixtures/passthrough-app/source/javascripts/coffee_test.js.coffee
|
427
|
+
- fixtures/passthrough-app/source/javascripts/js_test.js
|
428
|
+
- fixtures/passthrough-app/source/stylesheets/site.css.sass
|
429
|
+
- fixtures/preview-app/config.rb
|
430
|
+
- fixtures/preview-app/source/content.html.erb
|
431
|
+
- fixtures/preview-app/source/layout.erb
|
432
|
+
- fixtures/preview-app/source/stylesheets/_partial.sass
|
433
|
+
- fixtures/preview-app/source/stylesheets/_partial2.css.sass
|
434
|
+
- fixtures/preview-app/source/stylesheets/main.css.sass
|
435
|
+
- fixtures/preview-app/source/stylesheets/main2.css.sass
|
436
|
+
- fixtures/preview-app/source/stylesheets/plain.css.sass
|
437
|
+
- fixtures/relative-app/config.rb
|
438
|
+
- fixtures/relative-app/source/images/blank.gif
|
439
|
+
- fixtures/relative-app/source/stylesheets/relative_assets.css.sass
|
440
|
+
- fixtures/relative-assets-app/config.rb
|
441
|
+
- fixtures/relative-assets-app/source/images/blank.gif
|
442
|
+
- fixtures/relative-assets-app/source/img/blank.gif
|
443
|
+
- fixtures/relative-assets-app/source/relative_image.html.erb
|
444
|
+
- fixtures/relative-assets-app/source/stylesheets/relative_assets.css.sass
|
445
|
+
- fixtures/scss-app/config.rb
|
446
|
+
- fixtures/scss-app/source/stylesheets/layout.css.sass
|
447
|
+
- fixtures/scss-app/source/stylesheets/site_scss.css.scss
|
448
|
+
- fixtures/slim-app/config.rb
|
449
|
+
- fixtures/slim-app/source/slim.html.slim
|
450
|
+
- fixtures/sprockets-app/config.rb
|
451
|
+
- fixtures/sprockets-app/source/library/css/bootstrap_include.css.scss
|
452
|
+
- fixtures/sprockets-app/source/library/css/plain.css
|
453
|
+
- fixtures/sprockets-app/source/library/css/sprockets_base1.css.scss
|
454
|
+
- fixtures/sprockets-app/source/library/css/sprockets_base2.css.scss
|
455
|
+
- fixtures/sprockets-app/source/library/css/sprockets_sub.css.scss
|
456
|
+
- fixtures/sprockets-app/source/library/js/jquery_include.js
|
457
|
+
- fixtures/sprockets-app/source/library/js/plain.js
|
458
|
+
- fixtures/sprockets-app/source/library/js/sprockets_base.js
|
459
|
+
- fixtures/sprockets-app/source/library/js/sprockets_sub.js
|
460
|
+
- fixtures/sprockets-app2/config.rb
|
461
|
+
- fixtures/sprockets-app2/data/test.yml
|
462
|
+
- fixtures/sprockets-app2/data/test2.json
|
463
|
+
- fixtures/sprockets-app2/source/javascripts/multiple_engines.js.coffee.erb
|
464
|
+
- fixtures/sprockets-app2/source/javascripts/sprockets_base.js
|
465
|
+
- fixtures/sprockets-app2/source/javascripts/sprockets_sub.js
|
466
|
+
- fixtures/sprockets-app2/source/stylesheets/sprockets_base1.css.scss
|
467
|
+
- fixtures/sprockets-app2/source/stylesheets/sprockets_base2.css.scss
|
468
|
+
- fixtures/sprockets-app2/source/stylesheets/sprockets_sub.css.scss
|