middleman 1.1.0.beta.2 → 1.1.0.beta.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gemtest +0 -0
- data/Rakefile +1 -1
- data/bin/mm-init +18 -25
- data/lib/middleman/template/{config.rbt → config.tt} +12 -12
- data/lib/middleman/version.rb +1 -1
- data/middleman.gemspec +7 -7
- metadata +33 -23
data/.gemtest
ADDED
File without changes
|
data/Rakefile
CHANGED
data/bin/mm-init
CHANGED
@@ -1,37 +1,30 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require File.join(File.dirname(File.dirname(__FILE__)), 'lib', 'middleman')
|
3
|
-
require
|
3
|
+
require "thor"
|
4
|
+
require "thor/group"
|
4
5
|
|
5
|
-
module
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
class NewSite < Templater::Generator
|
10
|
-
desc "Creates a new middleman scaffold."
|
11
|
-
first_argument :location, :required => true, :desc => "Project location"
|
6
|
+
module Middleman
|
7
|
+
class Generator < ::Thor::Group
|
8
|
+
include Thor::Actions
|
12
9
|
|
13
|
-
option :css_dir, :desc => 'The path to the css files'
|
14
|
-
option :js_dir, :desc => 'The path to the javascript files'
|
15
|
-
option :images_dir, :desc => 'The path to the image files'
|
16
|
-
|
17
|
-
def destination_root
|
18
|
-
File.expand_path(location)
|
19
|
-
end
|
20
|
-
|
21
10
|
def self.source_root
|
22
11
|
File.join(File.dirname(__FILE__), '..', 'lib', 'middleman', 'template')
|
23
12
|
end
|
24
13
|
|
25
|
-
|
26
|
-
glob! :views
|
27
|
-
glob! :public
|
14
|
+
argument :location, :type => :string, :desc => "New project location"
|
28
15
|
|
29
|
-
|
30
|
-
|
31
|
-
|
16
|
+
class_option :css_dir, :default => "stylesheets", :desc => 'The path to the css files'
|
17
|
+
class_option :js_dir, :default => "javascripts", :desc => 'The path to the javascript files'
|
18
|
+
class_option :images_dir, :default => "images", :desc => 'The path to the image files'
|
19
|
+
|
20
|
+
def create_project
|
21
|
+
template "config.tt", File.join(location, "config.rb")
|
22
|
+
directory "views", File.join(location, "views")
|
23
|
+
empty_directory File.join(location, "public", options[:css_dir])
|
24
|
+
empty_directory File.join(location, "public", options[:js_dir])
|
25
|
+
empty_directory File.join(location, "public", options[:images_dir])
|
26
|
+
end
|
32
27
|
end
|
33
|
-
|
34
|
-
add :setup, NewSite
|
35
28
|
end
|
36
29
|
|
37
|
-
|
30
|
+
Middleman::Generator.start
|
@@ -20,26 +20,26 @@ helpers do
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
<% if css_dir
|
24
|
-
set :css_dir, "<%= css_dir -%>"
|
25
|
-
<% else
|
23
|
+
<% if options[:css_dir] != "stylesheets" -%>
|
24
|
+
set :css_dir, "<%= options[:css_dir] -%>"
|
25
|
+
<% else -%>
|
26
26
|
# Change the CSS directory
|
27
27
|
# set :css_dir, "alternative_css_directory"
|
28
|
-
<% end
|
28
|
+
<% end -%>
|
29
29
|
|
30
|
-
<% if js_dir
|
31
|
-
set :js_dir, "<%= js_dir -%>"
|
32
|
-
<% else
|
30
|
+
<% if options[:js_dir] != "javascripts" -%>
|
31
|
+
set :js_dir, "<%= options[:js_dir] -%>"
|
32
|
+
<% else -%>
|
33
33
|
# Change the JS directory
|
34
34
|
# set :js_dir, "alternative_js_directory"
|
35
|
-
<% end
|
35
|
+
<% end -%>
|
36
36
|
|
37
|
-
<% if images_dir
|
38
|
-
set :images_dir, "<%= images_dir -%>"
|
39
|
-
<% else
|
37
|
+
<% if options[:images_dir] != "images" -%>
|
38
|
+
set :images_dir, "<%= options[:images_dir] -%>"
|
39
|
+
<% else -%>
|
40
40
|
# Change the images directory
|
41
41
|
# set :images_dir, "alternative_image_directory"
|
42
|
-
<% end
|
42
|
+
<% end -%>
|
43
43
|
|
44
44
|
# Build-specific configuration
|
45
45
|
configure :build do
|
data/lib/middleman/version.rb
CHANGED
data/middleman.gemspec
CHANGED
@@ -22,22 +22,22 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_runtime_dependency("thin", ["~> 1.2.0"])
|
23
23
|
s.add_runtime_dependency("shotgun", ["~> 0.8.0"])
|
24
24
|
s.add_runtime_dependency("thor", ["~> 0.14.0"])
|
25
|
-
s.add_runtime_dependency("tilt", ["~> 1.
|
26
|
-
s.add_runtime_dependency("sinatra", ["~> 1.0"])
|
25
|
+
s.add_runtime_dependency("tilt", ["~> 1.2.0"])
|
26
|
+
s.add_runtime_dependency("sinatra", ["~> 1.1.0"])
|
27
27
|
s.add_runtime_dependency("padrino-core", ["~> 0.9.0"])
|
28
28
|
s.add_runtime_dependency("padrino-helpers", ["~> 0.9.0"])
|
29
29
|
s.add_runtime_dependency("rack-test", ["~> 0.5.0"])
|
30
30
|
s.add_runtime_dependency("yui-compressor", ["~> 0.9.0"])
|
31
|
-
s.add_runtime_dependency("haml", ["
|
32
|
-
s.add_runtime_dependency("sass", ["3.1.0.alpha.218"])
|
33
|
-
s.add_runtime_dependency("compass", ["0.11.beta.
|
34
|
-
s.add_runtime_dependency("oily_png")
|
31
|
+
s.add_runtime_dependency("haml", [">= 3.1.0.alpha.147"])
|
32
|
+
s.add_runtime_dependency("sass", [">= 3.1.0.alpha.218"])
|
33
|
+
s.add_runtime_dependency("compass", ["0.11.beta.2"])
|
34
|
+
s.add_runtime_dependency("oily_png", ["~> 0.3.0"])
|
35
35
|
s.add_runtime_dependency("json_pure", ["~> 1.4.0"])
|
36
36
|
s.add_runtime_dependency("smusher", ["~> 0.4.5"])
|
37
37
|
s.add_runtime_dependency("compass-slickmap", ["~> 0.4.0"])
|
38
38
|
s.add_runtime_dependency("coffee-script", ["~> 2.1.0"])
|
39
39
|
s.add_runtime_dependency("less", ["~> 1.2.0"])
|
40
|
-
s.add_development_dependency("cucumber", ["
|
40
|
+
s.add_development_dependency("cucumber", ["~> 0.10.0"])
|
41
41
|
s.add_development_dependency("rspec", [">= 0"])
|
42
42
|
end
|
43
43
|
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 62196373
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
9
|
- 0
|
10
10
|
- beta
|
11
|
-
-
|
12
|
-
version: 1.1.0.beta.
|
11
|
+
- 3
|
12
|
+
version: 1.1.0.beta.3
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Thomas Reynolds
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-
|
20
|
+
date: 2011-02-05 00:00:00 -08:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -91,11 +91,12 @@ dependencies:
|
|
91
91
|
requirements:
|
92
92
|
- - ~>
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
hash:
|
94
|
+
hash: 31
|
95
95
|
segments:
|
96
96
|
- 1
|
97
|
-
-
|
98
|
-
|
97
|
+
- 2
|
98
|
+
- 0
|
99
|
+
version: 1.2.0
|
99
100
|
type: :runtime
|
100
101
|
version_requirements: *id005
|
101
102
|
- !ruby/object:Gem::Dependency
|
@@ -106,11 +107,12 @@ dependencies:
|
|
106
107
|
requirements:
|
107
108
|
- - ~>
|
108
109
|
- !ruby/object:Gem::Version
|
109
|
-
hash:
|
110
|
+
hash: 19
|
110
111
|
segments:
|
111
112
|
- 1
|
113
|
+
- 1
|
112
114
|
- 0
|
113
|
-
version:
|
115
|
+
version: 1.1.0
|
114
116
|
type: :runtime
|
115
117
|
version_requirements: *id006
|
116
118
|
- !ruby/object:Gem::Dependency
|
@@ -183,13 +185,16 @@ dependencies:
|
|
183
185
|
requirement: &id011 !ruby/object:Gem::Requirement
|
184
186
|
none: false
|
185
187
|
requirements:
|
186
|
-
- -
|
188
|
+
- - ">="
|
187
189
|
- !ruby/object:Gem::Version
|
188
|
-
hash:
|
190
|
+
hash: -3702664694
|
189
191
|
segments:
|
190
192
|
- 3
|
193
|
+
- 1
|
191
194
|
- 0
|
192
|
-
|
195
|
+
- alpha
|
196
|
+
- 147
|
197
|
+
version: 3.1.0.alpha.147
|
193
198
|
type: :runtime
|
194
199
|
version_requirements: *id011
|
195
200
|
- !ruby/object:Gem::Dependency
|
@@ -198,7 +203,7 @@ dependencies:
|
|
198
203
|
requirement: &id012 !ruby/object:Gem::Requirement
|
199
204
|
none: false
|
200
205
|
requirements:
|
201
|
-
- - "
|
206
|
+
- - ">="
|
202
207
|
- !ruby/object:Gem::Version
|
203
208
|
hash: -3702664552
|
204
209
|
segments:
|
@@ -218,13 +223,13 @@ dependencies:
|
|
218
223
|
requirements:
|
219
224
|
- - "="
|
220
225
|
- !ruby/object:Gem::Version
|
221
|
-
hash:
|
226
|
+
hash: 62196239
|
222
227
|
segments:
|
223
228
|
- 0
|
224
229
|
- 11
|
225
230
|
- beta
|
226
|
-
-
|
227
|
-
version: 0.11.beta.
|
231
|
+
- 2
|
232
|
+
version: 0.11.beta.2
|
228
233
|
type: :runtime
|
229
234
|
version_requirements: *id013
|
230
235
|
- !ruby/object:Gem::Dependency
|
@@ -233,12 +238,14 @@ dependencies:
|
|
233
238
|
requirement: &id014 !ruby/object:Gem::Requirement
|
234
239
|
none: false
|
235
240
|
requirements:
|
236
|
-
- -
|
241
|
+
- - ~>
|
237
242
|
- !ruby/object:Gem::Version
|
238
|
-
hash:
|
243
|
+
hash: 19
|
239
244
|
segments:
|
240
245
|
- 0
|
241
|
-
|
246
|
+
- 3
|
247
|
+
- 0
|
248
|
+
version: 0.3.0
|
242
249
|
type: :runtime
|
243
250
|
version_requirements: *id014
|
244
251
|
- !ruby/object:Gem::Dependency
|
@@ -327,12 +334,14 @@ dependencies:
|
|
327
334
|
requirement: &id020 !ruby/object:Gem::Requirement
|
328
335
|
none: false
|
329
336
|
requirements:
|
330
|
-
- -
|
337
|
+
- - ~>
|
331
338
|
- !ruby/object:Gem::Version
|
332
|
-
hash:
|
339
|
+
hash: 55
|
333
340
|
segments:
|
334
341
|
- 0
|
335
|
-
|
342
|
+
- 10
|
343
|
+
- 0
|
344
|
+
version: 0.10.0
|
336
345
|
type: :development
|
337
346
|
version_requirements: *id020
|
338
347
|
- !ruby/object:Gem::Dependency
|
@@ -362,6 +371,7 @@ extra_rdoc_files: []
|
|
362
371
|
|
363
372
|
files:
|
364
373
|
- .document
|
374
|
+
- .gemtest
|
365
375
|
- .gitignore
|
366
376
|
- Gemfile
|
367
377
|
- LICENSE
|
@@ -442,7 +452,7 @@ files:
|
|
442
452
|
- lib/middleman/renderers/haml.rb
|
443
453
|
- lib/middleman/renderers/sass.rb
|
444
454
|
- lib/middleman/server.rb
|
445
|
-
- lib/middleman/template/config.
|
455
|
+
- lib/middleman/template/config.tt
|
446
456
|
- lib/middleman/template/views/index.html.haml
|
447
457
|
- lib/middleman/template/views/layout.haml
|
448
458
|
- lib/middleman/template/views/stylesheets/site.css.sass
|