machined 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,7 @@ module Machined
16
16
  :output_path => "public",
17
17
  :environment => "development",
18
18
  :skip_bundle => false,
19
+ :assets_only => false,
19
20
  :digest_assets => false,
20
21
  :gzip_assets => false,
21
22
  :layout => "application",
@@ -131,6 +132,8 @@ module Machined
131
132
  # and includes processors for wrapping pages in layouts and
132
133
  # reading YAML front matter.
133
134
  initializer :create_pages_sprocket do
135
+ next if config.assets_only
136
+
134
137
  append_sprocket :pages do |pages|
135
138
  pages.register_mime_type "text/html", ".html"
136
139
  pages.register_preprocessor "text/html", Processors::FrontMatterProcessor
@@ -158,6 +161,7 @@ module Machined
158
161
 
159
162
  # This could be changed in the config file
160
163
  @output_path = root.join config.output_path
164
+ remove_sprocket(:pages) if config.assets_only && @pages
161
165
  end
162
166
 
163
167
  # Register all available Tilt templates to every
@@ -171,12 +175,17 @@ module Machined
171
175
  # Do any configuration to the assets sprockets necessary
172
176
  # after the config file has been evaled.
173
177
  initializer :configure_assets_sprocket do
178
+ next unless @assets
179
+
174
180
  # Append the directories within the configured paths
175
181
  append_paths assets, Utils.existent_directories(root.join(config.assets_path))
176
182
  config.assets_paths.each do |asset_path|
177
183
  append_paths assets, Utils.existent_directories(root.join(asset_path))
178
184
  end
179
185
 
186
+ # Append paths from Sprockets-plugin
187
+ assets.append_plugin_paths if assets.respond_to?(:append_plugin_paths)
188
+
180
189
  # Search for Rails Engines with assets and append those
181
190
  if defined? Rails::Engine
182
191
  Rails::Engine.subclasses.each do |engine|
@@ -193,6 +202,8 @@ module Machined
193
202
  # Do any configuration to the pages sprockets necessary
194
203
  # after the config file has been evaled.
195
204
  initializer :configure_pages_sprocket do
205
+ next unless @pages
206
+
196
207
  # Append the configured pages paths
197
208
  append_path pages, config.pages_path
198
209
  append_paths pages, config.pages_paths
@@ -204,6 +215,8 @@ module Machined
204
215
  # Do any configuration to the views sprockets necessary
205
216
  # after the config file has been evaled.
206
217
  initializer :configure_views_sprocket do
218
+ next unless @views
219
+
207
220
  # Append the configured views paths
208
221
  append_path views, config.views_path
209
222
  append_paths views, config.views_paths
@@ -212,6 +225,8 @@ module Machined
212
225
  # Setup the JavaScript and CSS compressors
213
226
  # for the assets based on the configuration.
214
227
  initializer :configure_assets_compression do
228
+ next unless @assets
229
+
215
230
  if config.compress
216
231
  config.compress_js = true
217
232
  config.compress_css = true
@@ -226,6 +241,8 @@ module Machined
226
241
  # Finally, configure Sprockets::Helpers to
227
242
  # match curernt configuration.
228
243
  initializer :configure_sprockets_helpers do
244
+ next unless @assets
245
+
229
246
  Sprockets::Helpers.configure do |helpers|
230
247
  helpers.environment = assets
231
248
  helpers.digest = config.digest_assets
@@ -276,6 +293,16 @@ module Machined
276
293
  end
277
294
  end
278
295
 
296
+ # Removes the sprocket with the given name. This is useful if
297
+ # you don't need one of the default Sprockets.
298
+ def remove_sprocket(name)
299
+ if sprocket = get_sprocket(name)
300
+ sprockets.delete sprocket
301
+ set_sprocket(name, nil)
302
+ server and server.remap
303
+ end
304
+ end
305
+
279
306
  # Adds helpers that can be used within asset files.
280
307
  # There's two supported ways to add helpers, the first of
281
308
  # which is similar to how the `#helpers` DSL works in Sinatra:
@@ -312,12 +339,23 @@ module Machined
312
339
 
313
340
  protected
314
341
 
342
+ # Returns the sprocket registered with the given name.
343
+ def get_sprocket(name)
344
+ instance_variable_get "@#{name}"
345
+ end
346
+
347
+ # Sets the sprocket with the give name.
348
+ def set_sprocket(name, sprocket)
349
+ instance_variable_set "@#{name}", sprocket
350
+ end
351
+
315
352
  # Factory method for creating a `Machined::Sprocket` instance.
316
353
  # This is used in both `#append_sprocket` and `#prepend_sprocket`.
317
354
  def create_sprocket(name, options = {}, &block) # :nodoc:
318
355
  options.reverse_merge! :root => root
319
356
  Sprocket.new(self, options).tap do |sprocket|
320
- define_singleton_method(name) { sprocket }
357
+ define_singleton_method(name) { get_sprocket(name) }
358
+ set_sprocket(name, sprocket)
321
359
  yield sprocket if block_given?
322
360
  end
323
361
  end
@@ -327,7 +365,7 @@ module Machined
327
365
  # or an absolute path pointing somewhere else. It also
328
366
  # checks if it exists before appending it.
329
367
  def append_path(sprocket, path) # :nodoc:
330
- path = root.join(path)
368
+ path = Pathname.new(path).expand_path(root)
331
369
  sprocket.append_path(path) if path.exist?
332
370
  end
333
371
 
@@ -28,13 +28,6 @@ module Machined
28
28
  def url
29
29
  File.join(environment.config.url, @logical_path).sub /(index)?\.html$/, ''
30
30
  end
31
-
32
- protected
33
-
34
- # Returns a hash where we store found contexts.
35
- def contexts_cache # :nodoc:
36
- @contexts_cache ||= {}
37
- end
38
31
  end
39
32
  end
40
33
  end
@@ -1,3 +1,3 @@
1
1
  module Machined
2
- VERSION = "0.6.0"
2
+ VERSION = "0.7.0"
3
3
  end
@@ -19,8 +19,9 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_dependency "sprockets", "~> 2.0.0"
22
+ s.add_dependency "sprockets-plugin", "~> 0.2.0"
22
23
  s.add_dependency "sprockets-helpers", "~> 0.2.1"
23
- s.add_dependency "sprockets-sass", "~> 0.5.0"
24
+ s.add_dependency "sprockets-sass", "~> 0.6.0"
24
25
  s.add_dependency "padrino-helpers", "~> 0.10.5"
25
26
  s.add_dependency "activesupport", "~> 3.1.3"
26
27
  s.add_dependency "i18n", "~> 0.6.0"
@@ -51,14 +51,14 @@ describe Machined::CLI do
51
51
  it 'creates a default layout' do
52
52
  within_construct do |c|
53
53
  machined_cli "new my_site"
54
- File.read("my_site/views/layouts/main.html.erb").should == <<-CONTENT.unindent
54
+ File.read("my_site/views/layouts/application.html.erb").should == <<-CONTENT.unindent
55
55
  <!doctype html>
56
56
  <html>
57
57
  <head lang="en">
58
58
  <meta charset="utf-8">
59
59
  <title><%= title %></title>
60
- <%= stylesheet_link_tag "main" %>
61
- <%= javascript_include_tag "main" %>
60
+ <%= stylesheet_link_tag "application" %>
61
+ <%= javascript_include_tag "application" %>
62
62
  </head>
63
63
  <body>
64
64
  <%= yield %>
@@ -71,14 +71,14 @@ describe Machined::CLI do
71
71
  it "creates a default javascript file" do
72
72
  within_construct do |c|
73
73
  machined_cli "new my_site"
74
- File.exist?("my_site/assets/javascripts/main.js.coffee").should be_true
74
+ File.exist?("my_site/assets/javascripts/application.js.coffee").should be_true
75
75
  end
76
76
  end
77
77
 
78
78
  it "creates a default stylesheet file" do
79
79
  within_construct do |c|
80
80
  machined_cli "new my_site"
81
- File.exist?("my_site/assets/stylesheets/main.css.scss").should be_true
81
+ File.exist?("my_site/assets/stylesheets/application.css.scss").should be_true
82
82
  end
83
83
  end
84
84
 
@@ -62,6 +62,19 @@ describe Machined::Environment do
62
62
  end
63
63
  end
64
64
 
65
+ describe "#remove_sprocket" do
66
+ it "sets the accessor method to return nil" do
67
+ machined.remove_sprocket :pages
68
+ machined.pages.should be_nil
69
+ end
70
+
71
+ it "removes the sprockets from the sprockets list" do
72
+ views = machined.views
73
+ machined.remove_sprocket :views
74
+ machined.sprockets.should_not include(views)
75
+ end
76
+ end
77
+
65
78
  describe "#helpers" do
66
79
  it "adds methods defined in the given block to the Context" do
67
80
  machined.helpers do
@@ -128,6 +141,27 @@ describe Machined::Environment do
128
141
  Rails::Engine.subclasses.delete Jquery::Rails::Engine
129
142
  end
130
143
 
144
+ it "appends Sprockets::Plugin paths" do
145
+ require "sprockets-plugin"
146
+
147
+ within_construct do |c|
148
+ plugin_dir = c.directory "plugin/assets"
149
+ plugin_dir.directory "images"
150
+ plugin_dir.directory "javascripts"
151
+ plugin_dir.directory "stylesheets"
152
+
153
+ plugin = Class.new(Sprockets::Plugin)
154
+ plugin.append_paths_in plugin_dir
155
+
156
+ machined.assets.paths.should match_paths(%w(
157
+ plugin/assets/images
158
+ plugin/assets/javascripts
159
+ plugin/assets/stylesheets
160
+ )).with_root(c)
161
+ Sprockets::Plugin.plugins.delete plugin
162
+ end
163
+ end
164
+
131
165
  it "compiles web assets" do
132
166
  within_construct do |c|
133
167
  c.file "assets/javascripts/main.js", "//= require dep"
@@ -155,6 +189,27 @@ describe Machined::Environment do
155
189
  machined.pages["index.html"].to_s.should == "<h1>Hello World</h1>\n"
156
190
  end
157
191
  end
192
+
193
+ context "when :assets_only is set in constructor" do
194
+ it "is never created" do
195
+ machined :assets_only => true
196
+ machined.respond_to?(:pages).should be_false
197
+ machined.sprockets.should == [ machined.assets, machined.views ]
198
+ end
199
+
200
+ end
201
+
202
+ context "when :assets_only is set in the config file" do
203
+ it "is removed" do
204
+ within_construct do |c|
205
+ c.file "machined.rb", "config.assets_only = true"
206
+
207
+ machined
208
+ machined.pages.should be_nil
209
+ machined.sprockets.should == [ machined.assets, machined.views ]
210
+ end
211
+ end
212
+ end
158
213
  end
159
214
 
160
215
  describe "default views sprocket" do
@@ -13,10 +13,10 @@ describe Machined::Helpers::PageHelpers do
13
13
 
14
14
  it "returns the layout set in the front matter" do
15
15
  within_construct do |c|
16
- c.file "pages/index.html.erb", "---\nlayout: application\n---\n<%= layout %>"
16
+ c.file "pages/index.html.erb", "---\nlayout: main\n---\n<%= layout %>"
17
17
  c.file "pages/about.html.erb", "---\nlayout: false\n---\n<%= layout %>"
18
18
 
19
- machined.pages["index.html"].to_s.should == "application"
19
+ machined.pages["index.html"].to_s.should == "main"
20
20
  machined.pages["about.html"].to_s.should == "false"
21
21
  end
22
22
  end
@@ -63,7 +63,7 @@ describe Machined::Helpers::RenderHelpers do
63
63
  it "does not wrap the partial in a layout" do
64
64
  within_construct do |c|
65
65
  c.file "pages/index.html.erb", %(<%= render "partial" %>)
66
- c.file "views/layouts/main.html.erb", "<h1><%= yield %></h1>"
66
+ c.file "views/layouts/application.html.erb", "<h1><%= yield %></h1>"
67
67
  c.file "views/partial.html.erb", "Hello World"
68
68
 
69
69
  machined.pages["index.html"].to_s.should == "<h1>Hello World</h1>"
@@ -4,7 +4,7 @@ describe Machined::Processors::LayoutProcessor do
4
4
  it "wraps the content with a layout" do
5
5
  within_construct do |c|
6
6
  c.file "pages/index.html", "<h1>Hello World</h1>"
7
- c.file "views/layouts/main.html.haml", "#layout= yield"
7
+ c.file "views/layouts/application.html.haml", "#layout= yield"
8
8
 
9
9
  machined.pages["index.html"].to_s.should == "<div id='layout'><h1>Hello World</h1></div>\n"
10
10
  end
@@ -13,9 +13,9 @@ describe Machined::Processors::LayoutProcessor do
13
13
  it "uses the default layout set in the configuration" do
14
14
  within_construct do |c|
15
15
  c.file "pages/index.html", "<h1>Hello World</h1>"
16
- c.file "views/layouts/application.html.haml", "#layout= yield"
16
+ c.file "views/layouts/main.html.haml", "#layout= yield"
17
17
 
18
- machined :layout => "application"
18
+ machined :layout => "main"
19
19
  machined.pages["index.html"].to_s.should == "<div id='layout'><h1>Hello World</h1></div>\n"
20
20
  end
21
21
  end
@@ -33,7 +33,7 @@ describe Machined::Processors::LayoutProcessor do
33
33
  it "adds the layout file as a dependency" do
34
34
  within_construct do |c|
35
35
  c.file "pages/index.html", "<h1>Hello World</h1>"
36
- dep = c.file "views/layouts/main.html.haml", "= yield"
36
+ dep = c.file "views/layouts/application.html.haml", "= yield"
37
37
 
38
38
  asset = machined.pages["index.html"]
39
39
  asset.should be_fresh(machined.pages)
@@ -3,10 +3,10 @@ require "spec_helper"
3
3
  describe Machined::StaticCompiler do
4
4
  it "generates all of the static files" do
5
5
  within_construct do |c|
6
- c.file "assets/javascripts/main.js", "//= require _dep"
7
- c.file "assets/javascripts/_dep.js", "var app = {};"
8
- c.file "assets/stylesheets/main.css.scss", %(@import "dep";\nbody { color: $color; })
9
- c.file "assets/stylesheets/_dep.scss", "$color: red;"
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
10
  c.file "assets/images/logo.jpg"
11
11
  c.file "pages/index.html.md.erb", <<-CONTENT.unindent
12
12
  ---
@@ -16,7 +16,7 @@ describe Machined::StaticCompiler do
16
16
 
17
17
  Here's some *content*.
18
18
  CONTENT
19
- c.file "views/layouts/main.html.haml", <<-CONTENT.unindent
19
+ c.file "views/layouts/application.html.haml", <<-CONTENT.unindent
20
20
  !!! 5
21
21
  %html
22
22
  %head
@@ -27,8 +27,8 @@ describe Machined::StaticCompiler do
27
27
 
28
28
  machined.compile
29
29
 
30
- File.read("public/assets/main.js").should == "var app = {};\n"
31
- File.read("public/assets/main.css").should == "body {\n color: red; }\n"
30
+ File.read("public/assets/application.js").should == "var app = {};\n"
31
+ File.read("public/assets/application.css").should == "body {\n color: red; }\n"
32
32
  File.exist?("public/assets/logo.jpg").should be_true
33
33
  File.read("public/index.html").should == <<-CONTENT.unindent
34
34
  <!DOCTYPE html>
@@ -48,17 +48,17 @@ describe Machined::StaticCompiler do
48
48
 
49
49
  it "generates digests when configured" do
50
50
  within_construct do |c|
51
- c.file "_/js/main.js", "var app = {};"
52
- c.file "_/css/main.css", "body { color: red; }"
51
+ c.file "_/js/application.js", "var app = {};"
52
+ c.file "_/css/application.css", "body { color: red; }"
53
53
  c.file "_/img/logo.jpg"
54
54
  c.file "pages/index.html"
55
55
 
56
56
  machined(:digest_assets => true, :assets_url => "/_", :assets_path => "_").compile
57
57
 
58
- asset = machined.assets["main.js"]
59
- File.read("public/_/main-#{asset.digest}.js").should == "var app = {};\n"
60
- asset = machined.assets["main.css"]
61
- File.read("public/_/main-#{asset.digest}.css").should == "body { color: red; }\n"
58
+ asset = machined.assets["application.js"]
59
+ File.read("public/_/application-#{asset.digest}.js").should == "var app = {};\n"
60
+ asset = machined.assets["application.css"]
61
+ File.read("public/_/application-#{asset.digest}.css").should == "body { color: red; }\n"
62
62
  asset = machined.assets["logo.jpg"]
63
63
  File.exist?("public/_/logo-#{asset.digest}.jpg").should be_true
64
64
  asset = machined.pages["index.html"]
@@ -69,15 +69,15 @@ describe Machined::StaticCompiler do
69
69
 
70
70
  it "generates gzipped files when configured" do
71
71
  within_construct do |c|
72
- c.file "assets/javascripts/main.js"
73
- c.file "assets/stylesheets/main.css"
72
+ c.file "assets/javascripts/application.js"
73
+ c.file "assets/stylesheets/application.css"
74
74
  c.file "assets/images/logo.jpg"
75
75
  c.file "pages/index.html"
76
76
 
77
77
  machined(:gzip_assets => true).compile
78
78
 
79
- File.exist?("public/assets/main.js.gz").should be_true
80
- File.exist?("public/assets/main.css.gz").should be_true
79
+ File.exist?("public/assets/application.js.gz").should be_true
80
+ File.exist?("public/assets/application.css.gz").should be_true
81
81
  File.exist?("public/assets/logo.jpg.gz").should_not be_true
82
82
  File.exist?("public/index.html.gz").should_not be_true
83
83
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: machined
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.0
5
+ version: 0.7.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Pete Browne
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-12-17 00:00:00 Z
13
+ date: 2012-01-05 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sprockets
@@ -24,150 +24,150 @@ dependencies:
24
24
  prerelease: false
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
27
- name: sprockets-helpers
27
+ name: sprockets-plugin
28
28
  requirement: &id002 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.1
33
+ version: 0.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: *id002
37
37
  - !ruby/object:Gem::Dependency
38
- name: sprockets-sass
38
+ name: sprockets-helpers
39
39
  requirement: &id003 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ~>
43
43
  - !ruby/object:Gem::Version
44
- version: 0.5.0
44
+ version: 0.2.1
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: *id003
48
48
  - !ruby/object:Gem::Dependency
49
- name: padrino-helpers
49
+ name: sprockets-sass
50
50
  requirement: &id004 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ~>
54
54
  - !ruby/object:Gem::Version
55
- version: 0.10.5
55
+ version: 0.6.0
56
56
  type: :runtime
57
57
  prerelease: false
58
58
  version_requirements: *id004
59
59
  - !ruby/object:Gem::Dependency
60
- name: activesupport
60
+ name: padrino-helpers
61
61
  requirement: &id005 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ~>
65
65
  - !ruby/object:Gem::Version
66
- version: 3.1.3
66
+ version: 0.10.5
67
67
  type: :runtime
68
68
  prerelease: false
69
69
  version_requirements: *id005
70
70
  - !ruby/object:Gem::Dependency
71
- name: i18n
71
+ name: activesupport
72
72
  requirement: &id006 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 0.6.0
77
+ version: 3.1.3
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: *id006
81
81
  - !ruby/object:Gem::Dependency
82
- name: thor
82
+ name: i18n
83
83
  requirement: &id007 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
87
87
  - !ruby/object:Gem::Version
88
- version: 0.14.6
88
+ version: 0.6.0
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: *id007
92
92
  - !ruby/object:Gem::Dependency
93
- name: crush
93
+ name: thor
94
94
  requirement: &id008 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
98
98
  - !ruby/object:Gem::Version
99
- version: 0.3.3
99
+ version: 0.14.6
100
100
  type: :runtime
101
101
  prerelease: false
102
102
  version_requirements: *id008
103
103
  - !ruby/object:Gem::Dependency
104
- name: rspec
104
+ name: crush
105
105
  requirement: &id009 !ruby/object:Gem::Requirement
106
106
  none: false
107
107
  requirements:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: 2.7.0
111
- type: :development
110
+ version: 0.3.3
111
+ type: :runtime
112
112
  prerelease: false
113
113
  version_requirements: *id009
114
114
  - !ruby/object:Gem::Dependency
115
- name: rack-test
115
+ name: rspec
116
116
  requirement: &id010 !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
119
119
  - - ~>
120
120
  - !ruby/object:Gem::Version
121
- version: 0.6.1
121
+ version: 2.7.0
122
122
  type: :development
123
123
  prerelease: false
124
124
  version_requirements: *id010
125
125
  - !ruby/object:Gem::Dependency
126
- name: test-construct
126
+ name: rack-test
127
127
  requirement: &id011 !ruby/object:Gem::Requirement
128
128
  none: false
129
129
  requirements:
130
130
  - - ~>
131
131
  - !ruby/object:Gem::Version
132
- version: 1.2.0
132
+ version: 0.6.1
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: *id011
136
136
  - !ruby/object:Gem::Dependency
137
- name: unindent
137
+ name: test-construct
138
138
  requirement: &id012 !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
141
141
  - - ~>
142
142
  - !ruby/object:Gem::Version
143
- version: "1.0"
143
+ version: 1.2.0
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: *id012
147
147
  - !ruby/object:Gem::Dependency
148
- name: railties
148
+ name: unindent
149
149
  requirement: &id013 !ruby/object:Gem::Requirement
150
150
  none: false
151
151
  requirements:
152
152
  - - ~>
153
153
  - !ruby/object:Gem::Version
154
- version: 3.1.3
154
+ version: "1.0"
155
155
  type: :development
156
156
  prerelease: false
157
157
  version_requirements: *id013
158
158
  - !ruby/object:Gem::Dependency
159
- name: haml
159
+ name: railties
160
160
  requirement: &id014 !ruby/object:Gem::Requirement
161
161
  none: false
162
162
  requirements:
163
- - - ">="
163
+ - - ~>
164
164
  - !ruby/object:Gem::Version
165
- version: "0"
165
+ version: 3.1.3
166
166
  type: :development
167
167
  prerelease: false
168
168
  version_requirements: *id014
169
169
  - !ruby/object:Gem::Dependency
170
- name: sass
170
+ name: haml
171
171
  requirement: &id015 !ruby/object:Gem::Requirement
172
172
  none: false
173
173
  requirements:
@@ -178,7 +178,7 @@ dependencies:
178
178
  prerelease: false
179
179
  version_requirements: *id015
180
180
  - !ruby/object:Gem::Dependency
181
- name: slim
181
+ name: sass
182
182
  requirement: &id016 !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
@@ -189,7 +189,7 @@ dependencies:
189
189
  prerelease: false
190
190
  version_requirements: *id016
191
191
  - !ruby/object:Gem::Dependency
192
- name: erubis
192
+ name: slim
193
193
  requirement: &id017 !ruby/object:Gem::Requirement
194
194
  none: false
195
195
  requirements:
@@ -200,7 +200,7 @@ dependencies:
200
200
  prerelease: false
201
201
  version_requirements: *id017
202
202
  - !ruby/object:Gem::Dependency
203
- name: rdiscount
203
+ name: erubis
204
204
  requirement: &id018 !ruby/object:Gem::Requirement
205
205
  none: false
206
206
  requirements:
@@ -211,7 +211,7 @@ dependencies:
211
211
  prerelease: false
212
212
  version_requirements: *id018
213
213
  - !ruby/object:Gem::Dependency
214
- name: uglifier
214
+ name: rdiscount
215
215
  requirement: &id019 !ruby/object:Gem::Requirement
216
216
  none: false
217
217
  requirements:
@@ -222,7 +222,7 @@ dependencies:
222
222
  prerelease: false
223
223
  version_requirements: *id019
224
224
  - !ruby/object:Gem::Dependency
225
- name: jquery-rails
225
+ name: uglifier
226
226
  requirement: &id020 !ruby/object:Gem::Requirement
227
227
  none: false
228
228
  requirements:
@@ -233,7 +233,7 @@ dependencies:
233
233
  prerelease: false
234
234
  version_requirements: *id020
235
235
  - !ruby/object:Gem::Dependency
236
- name: rake
236
+ name: jquery-rails
237
237
  requirement: &id021 !ruby/object:Gem::Requirement
238
238
  none: false
239
239
  requirements:
@@ -243,6 +243,17 @@ dependencies:
243
243
  type: :development
244
244
  prerelease: false
245
245
  version_requirements: *id021
246
+ - !ruby/object:Gem::Dependency
247
+ name: rake
248
+ requirement: &id022 !ruby/object:Gem::Requirement
249
+ none: false
250
+ requirements:
251
+ - - ">="
252
+ - !ruby/object:Gem::Version
253
+ version: "0"
254
+ type: :development
255
+ prerelease: false
256
+ version_requirements: *id022
246
257
  description: Why another static site generator? Machined is for the developers who know and love the asset pipeline of Rails 3.1 and want to develop blazingly fast static websites. It's built from the ground up using Sprockets 2.0.
247
258
  email:
248
259
  - me@petebrowne.com
@@ -319,7 +330,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
319
330
  requirements:
320
331
  - - ">="
321
332
  - !ruby/object:Gem::Version
322
- hash: -4282035788662597022
333
+ hash: 3788551970724196159
323
334
  segments:
324
335
  - 0
325
336
  version: "0"
@@ -328,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
328
339
  requirements:
329
340
  - - ">="
330
341
  - !ruby/object:Gem::Version
331
- hash: -4282035788662597022
342
+ hash: 3788551970724196159
332
343
  segments:
333
344
  - 0
334
345
  version: "0"