middleman 1.1.0.1 → 1.1.1.a
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/middleman/templates.rb +9 -4
- data/lib/middleman/templates/local.rb +20 -0
- data/lib/middleman/version.rb +1 -1
- data/middleman.gemspec +1 -1
- metadata +16 -15
data/lib/middleman/templates.rb
CHANGED
|
@@ -19,13 +19,18 @@ module Middleman::Templates
|
|
|
19
19
|
include Thor::Actions
|
|
20
20
|
|
|
21
21
|
argument :location, :type => :string
|
|
22
|
-
class_option :
|
|
23
|
-
class_option :
|
|
24
|
-
class_option :
|
|
22
|
+
class_option :template, :default => "default"
|
|
23
|
+
class_option :css_dir, :default => "stylesheets"
|
|
24
|
+
class_option :js_dir, :default => "javascripts"
|
|
25
|
+
class_option :images_dir, :default => "images"
|
|
25
26
|
end
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
# Default template
|
|
29
30
|
require "middleman/templates/default"
|
|
31
|
+
|
|
30
32
|
# HTML5 template
|
|
31
|
-
require "middleman/templates/html5"
|
|
33
|
+
require "middleman/templates/html5"
|
|
34
|
+
|
|
35
|
+
# Local templates
|
|
36
|
+
require "middleman/templates/local"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module Middleman
|
|
2
|
+
def self.templates_path
|
|
3
|
+
File.join(`cd ~ && pwd`.chomp, ".middleman")
|
|
4
|
+
end
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
class Middleman::Templates::Local < Middleman::Templates::Base
|
|
8
|
+
def self.source_root
|
|
9
|
+
Middleman.templates_path
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def build_scaffold
|
|
13
|
+
directory options[:template].to_s, location
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
Dir[File.join(Middleman.templates_path, "*")].each do |dir|
|
|
18
|
+
next unless File.directory?(dir)
|
|
19
|
+
Middleman::Templates.register(File.basename(dir).to_sym, Middleman::Templates::Local)
|
|
20
|
+
end
|
data/lib/middleman/version.rb
CHANGED
data/middleman.gemspec
CHANGED
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
|
|
|
34
34
|
s.add_runtime_dependency("compass", ["0.11.beta.6"])
|
|
35
35
|
s.add_runtime_dependency("chunky_png", ["~> 1.1.0"])
|
|
36
36
|
s.add_runtime_dependency("oily_png", ["~> 1.0"]) unless defined?(JRUBY_VERSION)
|
|
37
|
-
s.add_runtime_dependency("
|
|
37
|
+
s.add_runtime_dependency("json", [">= 0"])
|
|
38
38
|
s.add_runtime_dependency("smusher", ["~> 0.4.5"])
|
|
39
39
|
s.add_runtime_dependency("compass-slickmap", ["~> 0.4.0"])
|
|
40
40
|
s.add_runtime_dependency("coffee-script", ["~> 2.1.0"])
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: middleman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
5
|
-
prerelease:
|
|
4
|
+
hash: 54
|
|
5
|
+
prerelease: 6
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 1
|
|
9
|
-
- 0
|
|
10
9
|
- 1
|
|
11
|
-
|
|
10
|
+
- a
|
|
11
|
+
version: 1.1.1.a
|
|
12
12
|
platform: ruby
|
|
13
13
|
authors:
|
|
14
14
|
- Thomas Reynolds
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2011-04-
|
|
19
|
+
date: 2011-04-17 00:00:00 -07:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|
|
@@ -263,19 +263,17 @@ dependencies:
|
|
|
263
263
|
type: :runtime
|
|
264
264
|
version_requirements: *id015
|
|
265
265
|
- !ruby/object:Gem::Dependency
|
|
266
|
-
name:
|
|
266
|
+
name: json
|
|
267
267
|
prerelease: false
|
|
268
268
|
requirement: &id016 !ruby/object:Gem::Requirement
|
|
269
269
|
none: false
|
|
270
270
|
requirements:
|
|
271
|
-
- -
|
|
271
|
+
- - ">="
|
|
272
272
|
- !ruby/object:Gem::Version
|
|
273
|
-
hash:
|
|
273
|
+
hash: 3
|
|
274
274
|
segments:
|
|
275
|
-
- 1
|
|
276
|
-
- 4
|
|
277
275
|
- 0
|
|
278
|
-
version:
|
|
276
|
+
version: "0"
|
|
279
277
|
type: :runtime
|
|
280
278
|
version_requirements: *id016
|
|
281
279
|
- !ruby/object:Gem::Dependency
|
|
@@ -509,6 +507,7 @@ files:
|
|
|
509
507
|
- lib/middleman/templates/html5/public/js/plugins.js
|
|
510
508
|
- lib/middleman/templates/html5/public/js/script.js
|
|
511
509
|
- lib/middleman/templates/html5/public/robots.txt
|
|
510
|
+
- lib/middleman/templates/local.rb
|
|
512
511
|
- lib/middleman/version.rb
|
|
513
512
|
- middleman.gemspec
|
|
514
513
|
has_rdoc: true
|
|
@@ -532,12 +531,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
532
531
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
533
532
|
none: false
|
|
534
533
|
requirements:
|
|
535
|
-
- - "
|
|
534
|
+
- - ">"
|
|
536
535
|
- !ruby/object:Gem::Version
|
|
537
|
-
hash:
|
|
536
|
+
hash: 25
|
|
538
537
|
segments:
|
|
539
|
-
-
|
|
540
|
-
|
|
538
|
+
- 1
|
|
539
|
+
- 3
|
|
540
|
+
- 1
|
|
541
|
+
version: 1.3.1
|
|
541
542
|
requirements: []
|
|
542
543
|
|
|
543
544
|
rubyforge_project: middleman
|