machined 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/machined.rb +4 -3
- data/lib/machined/middleware/root_index.rb +18 -0
- data/lib/machined/server.rb +11 -10
- data/lib/machined/version.rb +1 -1
- data/machined.gemspec +3 -3
- data/spec/machined/helpers/output_helpers_spec.rb +19 -19
- data/spec/machined/middleware/root_index_spec.rb +23 -0
- data/spec/machined/server_spec.rb +28 -23
- data/spec/machined/static_compiler_spec.rb +41 -45
- metadata +151 -48
data/lib/machined.rb
CHANGED
@@ -11,7 +11,7 @@ module Machined
|
|
11
11
|
autoload :StaticCompiler, 'machined/static_compiler'
|
12
12
|
autoload :Utils, 'machined/utils'
|
13
13
|
autoload :Watcher, 'machined/watcher'
|
14
|
-
|
14
|
+
|
15
15
|
module Helpers
|
16
16
|
autoload :AssetTagHelpers, 'machined/helpers/asset_tag_helpers'
|
17
17
|
autoload :LocalsHelpers, 'machined/helpers/locals_helpers'
|
@@ -19,11 +19,12 @@ module Machined
|
|
19
19
|
autoload :PageHelpers, 'machined/helpers/page_helpers'
|
20
20
|
autoload :RenderHelpers, 'machined/helpers/render_helpers'
|
21
21
|
end
|
22
|
-
|
22
|
+
|
23
23
|
module Middleware
|
24
24
|
autoload :Static, 'machined/middleware/static'
|
25
|
+
autoload :RootIndex, 'machined/middleware/root_index'
|
25
26
|
end
|
26
|
-
|
27
|
+
|
27
28
|
module Processors
|
28
29
|
autoload :FrontMatterProcessor, 'machined/processors/front_matter_processor'
|
29
30
|
autoload :LayoutProcessor, 'machined/processors/layout_processor'
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rack'
|
2
|
+
|
3
|
+
module Machined
|
4
|
+
module Middleware
|
5
|
+
# Sprockets >= 2.4.4 no longer infers that '/' should equal '/index.html',
|
6
|
+
# so this middleware changes the PATH_INFO if necessary.
|
7
|
+
class RootIndex
|
8
|
+
def initialize(app)
|
9
|
+
@app = app
|
10
|
+
end
|
11
|
+
|
12
|
+
def call(env)
|
13
|
+
env['PATH_INFO'] = '/index.html' if env['PATH_INFO'] == '/'
|
14
|
+
@app.call(env)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/machined/server.rb
CHANGED
@@ -6,31 +6,31 @@ module Machined
|
|
6
6
|
# A reference to the Machined environment which
|
7
7
|
# created this instance.
|
8
8
|
attr_reader :machined
|
9
|
-
|
9
|
+
|
10
10
|
# Creates a new Rack server that will serve
|
11
11
|
# up the processed files.
|
12
12
|
def initialize(machined)
|
13
13
|
@machined = machined
|
14
|
-
|
14
|
+
|
15
15
|
if machined.environment.development?
|
16
16
|
# Configure watchable files
|
17
17
|
files = []
|
18
18
|
files << machined.config_path if machined.config_path.exist?
|
19
|
-
|
19
|
+
|
20
20
|
# Configure watchable dirs
|
21
21
|
dirs = {}
|
22
22
|
dirs[machined.lib_path.to_s] = [:rb] if machined.lib_path.exist?
|
23
|
-
|
23
|
+
|
24
24
|
# Setup file watching using ActiveSupport::FileUpdateChecker
|
25
25
|
@reloader = ActiveSupport::FileUpdateChecker.new(files, dirs) do
|
26
26
|
machined.reload
|
27
27
|
reload
|
28
28
|
end
|
29
29
|
end
|
30
|
-
|
30
|
+
|
31
31
|
reload
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
# Using the URLMap, determine which sprocket
|
35
35
|
# should handle the request and then...let it
|
36
36
|
# handle it.
|
@@ -38,24 +38,25 @@ module Machined
|
|
38
38
|
@reloader.execute_if_updated if machined.environment.development?
|
39
39
|
@app.call(env)
|
40
40
|
end
|
41
|
-
|
41
|
+
|
42
42
|
# Rebuilds the Rack app with the current Machined
|
43
43
|
# configuration.
|
44
44
|
def reload
|
45
45
|
@app = to_app
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
protected
|
49
|
-
|
49
|
+
|
50
50
|
# Creates a Rack app with the current Machined
|
51
51
|
# environment configuration.
|
52
52
|
def to_app # :nodoc:
|
53
53
|
Rack::Builder.new.tap do |app|
|
54
54
|
app.use Middleware::Static, machined.output_path
|
55
|
+
app.use Middleware::RootIndex
|
55
56
|
app.run Rack::URLMap.new(sprockets_map)
|
56
57
|
end
|
57
58
|
end
|
58
|
-
|
59
|
+
|
59
60
|
# Maps the Machined environment's current
|
60
61
|
# sprockets for use with `Rack::URLMap`.
|
61
62
|
def sprockets_map # :nodoc:
|
data/lib/machined/version.rb
CHANGED
data/machined.gemspec
CHANGED
@@ -18,9 +18,9 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
19
|
s.require_paths = ['lib']
|
20
20
|
|
21
|
-
s.add_dependency 'sprockets', '~> 2.
|
22
|
-
s.add_dependency 'sprockets-helpers', '~> 0.
|
23
|
-
s.add_dependency 'sprockets-sass', '~> 0.
|
21
|
+
s.add_dependency 'sprockets', '~> 2.6.0'
|
22
|
+
s.add_dependency 'sprockets-helpers', '~> 0.7.1'
|
23
|
+
s.add_dependency 'sprockets-sass', '~> 0.9.1'
|
24
24
|
s.add_dependency 'padrino-helpers', '~> 0.10.5'
|
25
25
|
s.add_dependency 'activesupport', '~> 3.2.3'
|
26
26
|
s.add_dependency 'i18n', '~> 0.6.0'
|
@@ -4,76 +4,76 @@ describe Machined::Helpers::OutputHelpers do
|
|
4
4
|
describe '#current_engine' do
|
5
5
|
it 'returns :haml within a Haml template' do
|
6
6
|
within_construct do |c|
|
7
|
-
c.file 'pages/index.haml', '= current_engine.inspect'
|
7
|
+
c.file 'pages/index.html.haml', '= current_engine.inspect'
|
8
8
|
machined.pages['index'].to_s.should == ":haml\n"
|
9
9
|
end
|
10
10
|
end
|
11
|
-
|
11
|
+
|
12
12
|
it 'returns :erb within an ERB template' do
|
13
13
|
within_construct do |c|
|
14
|
-
c.file 'pages/index.erb', '<%= current_engine.inspect %>'
|
14
|
+
c.file 'pages/index.html.erb', '<%= current_engine.inspect %>'
|
15
15
|
machined.pages['index'].to_s.should == ':erb'
|
16
16
|
end
|
17
17
|
end
|
18
|
-
|
18
|
+
|
19
19
|
it 'returns :erubis within an Erubis template' do
|
20
20
|
within_construct do |c|
|
21
|
-
c.file 'pages/index.erubis', '<%= current_engine.inspect %>'
|
21
|
+
c.file 'pages/index.html.erubis', '<%= current_engine.inspect %>'
|
22
22
|
machined.pages['index'].to_s.should == ':erubis'
|
23
23
|
end
|
24
24
|
end
|
25
|
-
|
25
|
+
|
26
26
|
it 'returns :slim within a Slim template' do
|
27
27
|
within_construct do |c|
|
28
|
-
c.file 'pages/index.slim', '= current_engine.inspect'
|
28
|
+
c.file 'pages/index.html.slim', '= current_engine.inspect'
|
29
29
|
machined.pages['index'].to_s.should == ':slim'
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
33
|
-
|
33
|
+
|
34
34
|
describe '#capture and #concat' do
|
35
35
|
it 'captures blocks in haml' do
|
36
36
|
within_construct do |c|
|
37
|
-
c.file 'pages/index.haml', <<-CONTENT.unindent
|
37
|
+
c.file 'pages/index.html.haml', <<-CONTENT.unindent
|
38
38
|
- content_tag :h1 do
|
39
39
|
Hello World
|
40
40
|
CONTENT
|
41
|
-
|
41
|
+
|
42
42
|
machined.pages['index'].to_s.strip.should == "<h1>Hello World\n</h1>"
|
43
43
|
end
|
44
44
|
end
|
45
|
-
|
45
|
+
|
46
46
|
it 'captures blocks in erb' do
|
47
47
|
within_construct do |c|
|
48
|
-
c.file 'pages/index.erb', <<-CONTENT.unindent
|
48
|
+
c.file 'pages/index.html.erb', <<-CONTENT.unindent
|
49
49
|
<% content_tag :h1 do %>
|
50
50
|
Hello World
|
51
51
|
<% end %>
|
52
52
|
CONTENT
|
53
|
-
|
53
|
+
|
54
54
|
machined.pages['index'].to_s.strip.should == "<h1> Hello World\n</h1>"
|
55
55
|
end
|
56
56
|
end
|
57
|
-
|
57
|
+
|
58
58
|
it 'captures blocks in erubis' do
|
59
59
|
within_construct do |c|
|
60
|
-
c.file 'pages/index.erubis', <<-CONTENT.unindent
|
60
|
+
c.file 'pages/index.html.erubis', <<-CONTENT.unindent
|
61
61
|
<% content_tag :h1 do %>
|
62
62
|
Hello World
|
63
63
|
<% end %>
|
64
64
|
CONTENT
|
65
|
-
|
65
|
+
|
66
66
|
machined.pages['index'].to_s.strip.should == "<h1> Hello World\n</h1>"
|
67
67
|
end
|
68
68
|
end
|
69
|
-
|
69
|
+
|
70
70
|
it 'captures blocks in slim' do
|
71
71
|
within_construct do |c|
|
72
|
-
c.file 'pages/index.slim', <<-CONTENT.unindent
|
72
|
+
c.file 'pages/index.html.slim', <<-CONTENT.unindent
|
73
73
|
- content_tag :h1 do
|
74
74
|
| Hello World
|
75
75
|
CONTENT
|
76
|
-
|
76
|
+
|
77
77
|
machined.pages['index'].to_s.strip.should == '<h1>Hello World</h1>'
|
78
78
|
end
|
79
79
|
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Machined::Middleware::RootIndex do
|
4
|
+
include Rack::Test::Methods
|
5
|
+
|
6
|
+
let(:app) do
|
7
|
+
Rack::Builder.new.tap do |app|
|
8
|
+
app.use Machined::Middleware::RootIndex
|
9
|
+
app.run Proc.new { |env| [200, {'Content-Type' => 'text/plain'}, [env['PATH_INFO']]] }
|
10
|
+
end.to_app
|
11
|
+
end
|
12
|
+
|
13
|
+
it 'adds index.html to the root index' do
|
14
|
+
get('/').body.should == '/index.html'
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'does not change the path info for normal files' do
|
18
|
+
get('/about').body.should == '/about'
|
19
|
+
get('/about.html').body.should == '/about.html'
|
20
|
+
get('/about/').body.should == '/about/'
|
21
|
+
get('/assets/main.css').body.should == '/assets/main.css'
|
22
|
+
end
|
23
|
+
end
|
@@ -2,109 +2,114 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Machined::Server do
|
4
4
|
include Rack::Test::Methods
|
5
|
-
|
5
|
+
|
6
6
|
let(:app) do
|
7
7
|
Rack::Builder.new.tap do |app|
|
8
8
|
app.use Rack::ShowExceptions
|
9
9
|
app.run machined
|
10
10
|
end.to_app
|
11
11
|
end
|
12
|
-
|
12
|
+
|
13
13
|
it 'serves up assets at the asset url' do
|
14
14
|
within_construct do |c|
|
15
15
|
c.file 'assets/javascripts/main.js', "var app = {};\n"
|
16
16
|
c.file 'assets/stylesheets/main.css', "body { color: red; }\n"
|
17
|
-
|
17
|
+
|
18
18
|
get '/assets/main.js'
|
19
19
|
last_response.body.should == "var app = {};\n"
|
20
20
|
last_response.content_type.should == 'application/javascript'
|
21
|
-
|
21
|
+
|
22
22
|
get '/assets/main.css'
|
23
23
|
last_response.body.should == "body { color: red; }\n"
|
24
24
|
last_response.content_type.should == 'text/css'
|
25
25
|
end
|
26
26
|
end
|
27
|
-
|
27
|
+
|
28
28
|
it 'serves up pages at the base url' do
|
29
29
|
within_construct do |c|
|
30
30
|
c.file 'pages/index.html', "<h1>Hello World</h1>\n"
|
31
31
|
c.file 'pages/about.html', "<h1>About Us</h1>\n"
|
32
|
-
|
32
|
+
c.file 'pages/contact/index.html', "<h1>Contact Us</h1>\n"
|
33
|
+
|
33
34
|
get '/'
|
34
35
|
last_response.body.should == "<h1>Hello World</h1>\n"
|
35
36
|
last_response.content_type.should == 'text/html'
|
36
|
-
|
37
|
+
|
37
38
|
get '/about'
|
38
39
|
last_response.body.should == "<h1>About Us</h1>\n"
|
39
40
|
last_response.content_type.should == 'text/html'
|
41
|
+
|
42
|
+
get '/contact'
|
43
|
+
last_response.body.should == "<h1>Contact Us</h1>\n"
|
44
|
+
last_response.content_type.should == 'text/html'
|
40
45
|
end
|
41
46
|
end
|
42
|
-
|
47
|
+
|
43
48
|
it 'does not serve up views' do
|
44
49
|
within_construct do |c|
|
45
50
|
c.file 'views/about.html', "<h1>About Us</h1>\n"
|
46
|
-
|
51
|
+
|
47
52
|
get '/about'
|
48
53
|
last_response.should be_not_found
|
49
|
-
|
54
|
+
|
50
55
|
get '/views/about'
|
51
56
|
last_response.should be_not_found
|
52
57
|
end
|
53
58
|
end
|
54
|
-
|
59
|
+
|
55
60
|
it 'serves up custom sprockets' do
|
56
61
|
within_construct do |c|
|
57
62
|
dir = c.directory 'updates'
|
58
63
|
dir.file 'new-site.html', "<h1>Hello World</h1>\n"
|
59
|
-
|
64
|
+
|
60
65
|
machined.append_sprocket :updates, :url => '/updates' do |updates|
|
61
66
|
updates.append_path dir
|
62
67
|
updates.register_mime_type 'text/html', '.html'
|
63
68
|
end
|
64
|
-
|
69
|
+
|
65
70
|
get '/updates/new-site'
|
66
71
|
last_response.body.should == "<h1>Hello World</h1>\n"
|
67
72
|
last_response.content_type.should == 'text/html'
|
68
73
|
end
|
69
74
|
end
|
70
|
-
|
75
|
+
|
71
76
|
it 'serves up files in the output path' do
|
72
77
|
within_construct do |c|
|
73
78
|
c.file 'public/index.html', "<h1>Hello World</h1>\n"
|
74
|
-
|
79
|
+
|
75
80
|
get '/index.html'
|
76
81
|
last_response.body.should == "<h1>Hello World</h1>\n"
|
77
82
|
last_response.content_type.should == 'text/html'
|
78
83
|
end
|
79
84
|
end
|
80
|
-
|
85
|
+
|
81
86
|
it 'does not raise Sprockets::CircularDependency error after an error' do
|
82
87
|
within_construct do |c|
|
83
88
|
c.file 'pages/index.html.haml', "%p Hello\n World"
|
84
|
-
|
89
|
+
|
85
90
|
get '/'
|
86
91
|
last_response.should_not be_ok
|
87
|
-
|
92
|
+
|
88
93
|
c.file 'pages/index.html.erb', "<h1>Hello World</h1>\n"
|
89
|
-
|
94
|
+
|
90
95
|
get '/'
|
91
96
|
last_response.should be_ok
|
92
97
|
last_response.body.should == "<h1>Hello World</h1>\n"
|
93
98
|
end
|
94
99
|
end
|
95
|
-
|
100
|
+
|
96
101
|
context 'reloading' do
|
97
102
|
it 'knows when the configuration changes' do
|
98
103
|
within_construct do |c|
|
99
104
|
c.file 'machined.rb', 'helpers do; def hello; "hello"; end; end'
|
100
105
|
c.file 'pages/index.html.erb', '<%= hello %>'
|
101
106
|
get('/').body.should == 'hello'
|
102
|
-
|
107
|
+
|
103
108
|
modify 'machined.rb', 'helpers do; def hello; "world"; end; end'
|
104
109
|
get('/').body.should == 'world'
|
105
110
|
end
|
106
111
|
end
|
107
|
-
|
112
|
+
|
108
113
|
it 'knows when a lib file changes' do
|
109
114
|
within_construct do |c|
|
110
115
|
c.file 'lib/hello.rb', 'module Hello; def hello; "hello"; end; end'
|
@@ -112,7 +117,7 @@ describe Machined::Server do
|
|
112
117
|
c.file 'pages/index.html.erb', '<%= hello %>'
|
113
118
|
machined :skip_autoloading => false
|
114
119
|
get('/').body.should == 'hello'
|
115
|
-
|
120
|
+
|
116
121
|
modify 'lib/hello.rb', 'module Hello; def hello; "world"; end; end'
|
117
122
|
get('/').body.should == 'world'
|
118
123
|
end
|
@@ -1,22 +1,20 @@
|
|
1
|
-
require
|
1
|
+
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Machined::StaticCompiler do
|
4
|
-
it
|
4
|
+
it 'generates all of the static files' do
|
5
5
|
within_construct do |c|
|
6
|
-
c.file
|
7
|
-
c.file
|
8
|
-
c.file
|
9
|
-
c.file
|
10
|
-
c.file
|
11
|
-
c.file
|
6
|
+
c.file 'assets/javascripts/application.js', '//= require _dep'
|
7
|
+
c.file 'assets/javascripts/_dep.js', 'var app = {};'
|
8
|
+
c.file 'assets/stylesheets/application.css.scss', %(@import "dep";\nbody { color: $color; })
|
9
|
+
c.file 'assets/stylesheets/_dep.scss', '$color: red;'
|
10
|
+
c.file 'assets/images/logo.jpg'
|
11
|
+
c.file 'pages/index.html.md.erb', <<-CONTENT.unindent
|
12
12
|
---
|
13
13
|
title: Hello World
|
14
14
|
---
|
15
15
|
# <%= title %>
|
16
|
-
|
17
|
-
Here's some *content*.
|
18
16
|
CONTENT
|
19
|
-
c.file
|
17
|
+
c.file 'views/layouts/application.html.haml', <<-CONTENT.unindent
|
20
18
|
!!! 5
|
21
19
|
%html
|
22
20
|
%head
|
@@ -24,13 +22,13 @@ describe Machined::StaticCompiler do
|
|
24
22
|
%body
|
25
23
|
= yield
|
26
24
|
CONTENT
|
27
|
-
|
25
|
+
|
28
26
|
machined.compile
|
29
|
-
|
30
|
-
File.read(
|
31
|
-
File.read(
|
32
|
-
File.exist?(
|
33
|
-
File.read(
|
27
|
+
|
28
|
+
File.read('public/assets/application.js').should == "var app = {};\n"
|
29
|
+
File.read('public/assets/application.css').should == "body {\n color: red; }\n"
|
30
|
+
File.exist?('public/assets/logo.jpg').should be_true
|
31
|
+
File.read('public/index.html').should == <<-CONTENT.unindent
|
34
32
|
<!DOCTYPE html>
|
35
33
|
<html>
|
36
34
|
<head>
|
@@ -38,48 +36,46 @@ describe Machined::StaticCompiler do
|
|
38
36
|
</head>
|
39
37
|
<body>
|
40
38
|
<h1>Hello World</h1>
|
41
|
-
|
42
|
-
<p>Here's some <em>content</em>.</p>
|
43
39
|
</body>
|
44
40
|
</html>
|
45
41
|
CONTENT
|
46
42
|
end
|
47
43
|
end
|
48
|
-
|
49
|
-
it
|
44
|
+
|
45
|
+
it 'generates digests when configured' do
|
50
46
|
within_construct do |c|
|
51
|
-
c.file
|
52
|
-
c.file
|
53
|
-
c.file
|
54
|
-
c.file
|
55
|
-
|
56
|
-
machined(:digest_assets => true, :assets_url =>
|
57
|
-
|
58
|
-
asset = machined.assets[
|
47
|
+
c.file '_/js/application.js', 'var app = {};'
|
48
|
+
c.file '_/css/application.css', 'body { color: red; }'
|
49
|
+
c.file '_/img/logo.jpg'
|
50
|
+
c.file 'pages/index.html'
|
51
|
+
|
52
|
+
machined(:digest_assets => true, :assets_url => '/_', :assets_path => '_').compile
|
53
|
+
|
54
|
+
asset = machined.assets['application.js']
|
59
55
|
File.read("public/_/application-#{asset.digest}.js").should == "var app = {};\n"
|
60
|
-
asset = machined.assets[
|
56
|
+
asset = machined.assets['application.css']
|
61
57
|
File.read("public/_/application-#{asset.digest}.css").should == "body { color: red; }\n"
|
62
|
-
asset = machined.assets[
|
58
|
+
asset = machined.assets['logo.jpg']
|
63
59
|
File.exist?("public/_/logo-#{asset.digest}.jpg").should be_true
|
64
|
-
asset = machined.pages[
|
60
|
+
asset = machined.pages['index.html']
|
65
61
|
File.exist?("public/index-#{asset.digest}.html").should be_false
|
66
|
-
File.exist?(
|
62
|
+
File.exist?('public/index.html').should be_true
|
67
63
|
end
|
68
64
|
end
|
69
|
-
|
70
|
-
it
|
65
|
+
|
66
|
+
it 'generates gzipped files when configured' do
|
71
67
|
within_construct do |c|
|
72
|
-
c.file
|
73
|
-
c.file
|
74
|
-
c.file
|
75
|
-
c.file
|
76
|
-
|
68
|
+
c.file 'assets/javascripts/application.js'
|
69
|
+
c.file 'assets/stylesheets/application.css'
|
70
|
+
c.file 'assets/images/logo.jpg'
|
71
|
+
c.file 'pages/index.html'
|
72
|
+
|
77
73
|
machined(:gzip_assets => true).compile
|
78
|
-
|
79
|
-
File.exist?(
|
80
|
-
File.exist?(
|
81
|
-
File.exist?(
|
82
|
-
File.exist?(
|
74
|
+
|
75
|
+
File.exist?('public/assets/application.js.gz').should be_true
|
76
|
+
File.exist?('public/assets/application.css.gz').should be_true
|
77
|
+
File.exist?('public/assets/logo.jpg.gz').should_not be_true
|
78
|
+
File.exist?('public/index.html.gz').should_not be_true
|
83
79
|
end
|
84
80
|
end
|
85
81
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: machined
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,44 +9,59 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 2.
|
21
|
+
version: 2.6.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.6.0
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: sprockets-helpers
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
31
36
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.
|
37
|
+
version: 0.7.1
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.7.1
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: sprockets-sass
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
42
52
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
53
|
+
version: 0.9.1
|
44
54
|
type: :runtime
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.1
|
47
62
|
- !ruby/object:Gem::Dependency
|
48
63
|
name: padrino-helpers
|
49
|
-
requirement:
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
50
65
|
none: false
|
51
66
|
requirements:
|
52
67
|
- - ~>
|
@@ -54,10 +69,15 @@ dependencies:
|
|
54
69
|
version: 0.10.5
|
55
70
|
type: :runtime
|
56
71
|
prerelease: false
|
57
|
-
version_requirements:
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.10.5
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: activesupport
|
60
|
-
requirement:
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
61
81
|
none: false
|
62
82
|
requirements:
|
63
83
|
- - ~>
|
@@ -65,10 +85,15 @@ dependencies:
|
|
65
85
|
version: 3.2.3
|
66
86
|
type: :runtime
|
67
87
|
prerelease: false
|
68
|
-
version_requirements:
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 3.2.3
|
69
94
|
- !ruby/object:Gem::Dependency
|
70
95
|
name: i18n
|
71
|
-
requirement:
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
72
97
|
none: false
|
73
98
|
requirements:
|
74
99
|
- - ~>
|
@@ -76,10 +101,15 @@ dependencies:
|
|
76
101
|
version: 0.6.0
|
77
102
|
type: :runtime
|
78
103
|
prerelease: false
|
79
|
-
version_requirements:
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.6.0
|
80
110
|
- !ruby/object:Gem::Dependency
|
81
111
|
name: thor
|
82
|
-
requirement:
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
83
113
|
none: false
|
84
114
|
requirements:
|
85
115
|
- - ~>
|
@@ -87,10 +117,15 @@ dependencies:
|
|
87
117
|
version: 0.14.6
|
88
118
|
type: :runtime
|
89
119
|
prerelease: false
|
90
|
-
version_requirements:
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 0.14.6
|
91
126
|
- !ruby/object:Gem::Dependency
|
92
127
|
name: crush
|
93
|
-
requirement:
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
94
129
|
none: false
|
95
130
|
requirements:
|
96
131
|
- - ~>
|
@@ -98,10 +133,15 @@ dependencies:
|
|
98
133
|
version: 0.3.3
|
99
134
|
type: :runtime
|
100
135
|
prerelease: false
|
101
|
-
version_requirements:
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 0.3.3
|
102
142
|
- !ruby/object:Gem::Dependency
|
103
143
|
name: rspec
|
104
|
-
requirement:
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
105
145
|
none: false
|
106
146
|
requirements:
|
107
147
|
- - ~>
|
@@ -109,10 +149,15 @@ dependencies:
|
|
109
149
|
version: 2.9.0
|
110
150
|
type: :development
|
111
151
|
prerelease: false
|
112
|
-
version_requirements:
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ~>
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 2.9.0
|
113
158
|
- !ruby/object:Gem::Dependency
|
114
159
|
name: rack-test
|
115
|
-
requirement:
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
116
161
|
none: false
|
117
162
|
requirements:
|
118
163
|
- - ~>
|
@@ -120,10 +165,15 @@ dependencies:
|
|
120
165
|
version: 0.6.1
|
121
166
|
type: :development
|
122
167
|
prerelease: false
|
123
|
-
version_requirements:
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.6.1
|
124
174
|
- !ruby/object:Gem::Dependency
|
125
175
|
name: test-construct
|
126
|
-
requirement:
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
127
177
|
none: false
|
128
178
|
requirements:
|
129
179
|
- - ~>
|
@@ -131,10 +181,15 @@ dependencies:
|
|
131
181
|
version: 1.2.0
|
132
182
|
type: :development
|
133
183
|
prerelease: false
|
134
|
-
version_requirements:
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ~>
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: 1.2.0
|
135
190
|
- !ruby/object:Gem::Dependency
|
136
191
|
name: unindent
|
137
|
-
requirement:
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
138
193
|
none: false
|
139
194
|
requirements:
|
140
195
|
- - ~>
|
@@ -142,10 +197,15 @@ dependencies:
|
|
142
197
|
version: '1.0'
|
143
198
|
type: :development
|
144
199
|
prerelease: false
|
145
|
-
version_requirements:
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ~>
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '1.0'
|
146
206
|
- !ruby/object:Gem::Dependency
|
147
207
|
name: sprockets-plugin
|
148
|
-
requirement:
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
149
209
|
none: false
|
150
210
|
requirements:
|
151
211
|
- - ~>
|
@@ -153,10 +213,15 @@ dependencies:
|
|
153
213
|
version: 0.2.1
|
154
214
|
type: :development
|
155
215
|
prerelease: false
|
156
|
-
version_requirements:
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ~>
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: 0.2.1
|
157
222
|
- !ruby/object:Gem::Dependency
|
158
223
|
name: haml
|
159
|
-
requirement:
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
160
225
|
none: false
|
161
226
|
requirements:
|
162
227
|
- - ! '>='
|
@@ -164,10 +229,15 @@ dependencies:
|
|
164
229
|
version: '0'
|
165
230
|
type: :development
|
166
231
|
prerelease: false
|
167
|
-
version_requirements:
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
168
238
|
- !ruby/object:Gem::Dependency
|
169
239
|
name: sass
|
170
|
-
requirement:
|
240
|
+
requirement: !ruby/object:Gem::Requirement
|
171
241
|
none: false
|
172
242
|
requirements:
|
173
243
|
- - ! '>='
|
@@ -175,10 +245,15 @@ dependencies:
|
|
175
245
|
version: '0'
|
176
246
|
type: :development
|
177
247
|
prerelease: false
|
178
|
-
version_requirements:
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
none: false
|
250
|
+
requirements:
|
251
|
+
- - ! '>='
|
252
|
+
- !ruby/object:Gem::Version
|
253
|
+
version: '0'
|
179
254
|
- !ruby/object:Gem::Dependency
|
180
255
|
name: slim
|
181
|
-
requirement:
|
256
|
+
requirement: !ruby/object:Gem::Requirement
|
182
257
|
none: false
|
183
258
|
requirements:
|
184
259
|
- - ! '>='
|
@@ -186,10 +261,15 @@ dependencies:
|
|
186
261
|
version: '0'
|
187
262
|
type: :development
|
188
263
|
prerelease: false
|
189
|
-
version_requirements:
|
264
|
+
version_requirements: !ruby/object:Gem::Requirement
|
265
|
+
none: false
|
266
|
+
requirements:
|
267
|
+
- - ! '>='
|
268
|
+
- !ruby/object:Gem::Version
|
269
|
+
version: '0'
|
190
270
|
- !ruby/object:Gem::Dependency
|
191
271
|
name: erubis
|
192
|
-
requirement:
|
272
|
+
requirement: !ruby/object:Gem::Requirement
|
193
273
|
none: false
|
194
274
|
requirements:
|
195
275
|
- - ! '>='
|
@@ -197,10 +277,15 @@ dependencies:
|
|
197
277
|
version: '0'
|
198
278
|
type: :development
|
199
279
|
prerelease: false
|
200
|
-
version_requirements:
|
280
|
+
version_requirements: !ruby/object:Gem::Requirement
|
281
|
+
none: false
|
282
|
+
requirements:
|
283
|
+
- - ! '>='
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
201
286
|
- !ruby/object:Gem::Dependency
|
202
287
|
name: rdiscount
|
203
|
-
requirement:
|
288
|
+
requirement: !ruby/object:Gem::Requirement
|
204
289
|
none: false
|
205
290
|
requirements:
|
206
291
|
- - ! '>='
|
@@ -208,10 +293,15 @@ dependencies:
|
|
208
293
|
version: '0'
|
209
294
|
type: :development
|
210
295
|
prerelease: false
|
211
|
-
version_requirements:
|
296
|
+
version_requirements: !ruby/object:Gem::Requirement
|
297
|
+
none: false
|
298
|
+
requirements:
|
299
|
+
- - ! '>='
|
300
|
+
- !ruby/object:Gem::Version
|
301
|
+
version: '0'
|
212
302
|
- !ruby/object:Gem::Dependency
|
213
303
|
name: uglifier
|
214
|
-
requirement:
|
304
|
+
requirement: !ruby/object:Gem::Requirement
|
215
305
|
none: false
|
216
306
|
requirements:
|
217
307
|
- - ! '>='
|
@@ -219,10 +309,15 @@ dependencies:
|
|
219
309
|
version: '0'
|
220
310
|
type: :development
|
221
311
|
prerelease: false
|
222
|
-
version_requirements:
|
312
|
+
version_requirements: !ruby/object:Gem::Requirement
|
313
|
+
none: false
|
314
|
+
requirements:
|
315
|
+
- - ! '>='
|
316
|
+
- !ruby/object:Gem::Version
|
317
|
+
version: '0'
|
223
318
|
- !ruby/object:Gem::Dependency
|
224
319
|
name: rake
|
225
|
-
requirement:
|
320
|
+
requirement: !ruby/object:Gem::Requirement
|
226
321
|
none: false
|
227
322
|
requirements:
|
228
323
|
- - ! '>='
|
@@ -230,7 +325,12 @@ dependencies:
|
|
230
325
|
version: '0'
|
231
326
|
type: :development
|
232
327
|
prerelease: false
|
233
|
-
version_requirements:
|
328
|
+
version_requirements: !ruby/object:Gem::Requirement
|
329
|
+
none: false
|
330
|
+
requirements:
|
331
|
+
- - ! '>='
|
332
|
+
- !ruby/object:Gem::Version
|
333
|
+
version: '0'
|
234
334
|
description: Why another static site generator? Machined is for the developers who
|
235
335
|
know and love the asset pipeline of Rails 3.1 and want to develop blazingly fast
|
236
336
|
static websites. It's built from the ground up using Sprockets 2.0.
|
@@ -258,6 +358,7 @@ files:
|
|
258
358
|
- lib/machined/helpers/render_helpers.rb
|
259
359
|
- lib/machined/index.rb
|
260
360
|
- lib/machined/initializable.rb
|
361
|
+
- lib/machined/middleware/root_index.rb
|
261
362
|
- lib/machined/middleware/static.rb
|
262
363
|
- lib/machined/processors/front_matter_processor.rb
|
263
364
|
- lib/machined/processors/layout_processor.rb
|
@@ -285,6 +386,7 @@ files:
|
|
285
386
|
- spec/machined/helpers/page_helpers_spec.rb
|
286
387
|
- spec/machined/helpers/render_helpers_spec.rb
|
287
388
|
- spec/machined/initializable_spec.rb
|
389
|
+
- spec/machined/middleware/root_index_spec.rb
|
288
390
|
- spec/machined/middleware/static_spec.rb
|
289
391
|
- spec/machined/processors/front_matter_processor_spec.rb
|
290
392
|
- spec/machined/processors/layout_processor_spec.rb
|
@@ -310,7 +412,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
310
412
|
version: '0'
|
311
413
|
segments:
|
312
414
|
- 0
|
313
|
-
hash:
|
415
|
+
hash: 123307343
|
314
416
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
315
417
|
none: false
|
316
418
|
requirements:
|
@@ -319,10 +421,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
319
421
|
version: '0'
|
320
422
|
segments:
|
321
423
|
- 0
|
322
|
-
hash:
|
424
|
+
hash: 123307343
|
323
425
|
requirements: []
|
324
426
|
rubyforge_project: machined
|
325
|
-
rubygems_version: 1.8.
|
427
|
+
rubygems_version: 1.8.23
|
326
428
|
signing_key:
|
327
429
|
specification_version: 3
|
328
430
|
summary: A static site generator and Rack server built using Sprockets 2.0
|
@@ -336,6 +438,7 @@ test_files:
|
|
336
438
|
- spec/machined/helpers/page_helpers_spec.rb
|
337
439
|
- spec/machined/helpers/render_helpers_spec.rb
|
338
440
|
- spec/machined/initializable_spec.rb
|
441
|
+
- spec/machined/middleware/root_index_spec.rb
|
339
442
|
- spec/machined/middleware/static_spec.rb
|
340
443
|
- spec/machined/processors/front_matter_processor_spec.rb
|
341
444
|
- spec/machined/processors/layout_processor_spec.rb
|