middleman-slim 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
YWQ5YjEzMGFhMzBjZDRjNjdmY2JjYTI1ZDE1MWYxNGU0NTlmNzMyMzZiNzE4
|
10
|
-
YjdlNzFiZTM5NDBhMjc5Y2VmNjcwYTFjN2UwODNlZGY0ZDI5NmZmNmI1Njk4
|
11
|
-
MjA1YWI3ZDE4MDhlNjYxOTcwYWY1OTAxYTM3ZDAwYmNjMGQ4NDk=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NWZlOWU5OGM5OWMzYzkwNWFkN2QzNTI5YmEyNDVlYzVhMmZjZTg2MDY2ZTUx
|
14
|
-
MzM0N2ZlZWRhODhiNTI1ZDRiMDY4ZGQ4MTM4ZTM1MDg4OTdhOTBlM2IxNjhj
|
15
|
-
MTNlYWI4NjAzMWIxMjc5OTE0NGExMmQxYjE3M2Q3MzY3ZWE0OGQ=
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4b5191de9168c357277985092f0c95efbded4485
|
4
|
+
data.tar.gz: dcdac96dc29b9c17152fb87323341fa764ebd53e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3f40dc3fde9637feda3b529bbb8a3d2be2da20daab4c4d3c7f3668f8f67171e9a3d3ef3f53f095f6320a0cf0e7d19fa7e90df78d99366237a5154c773a916c5a
|
7
|
+
data.tar.gz: 2e683e0fda693ae7029f2056d9ca5274369b9cc2405cc11f7278e09e4c87e50a29acccf975ce485b9343f11399d342ee697171b050894cc10678fe8c1a35f6c8
|
@@ -1,7 +1,7 @@
|
|
1
1
|
@charset "utf-8";
|
2
2
|
|
3
3
|
body {
|
4
|
-
background: #d4d4d4 url("../
|
4
|
+
background: #d4d4d4 url("../IMG_DIR/background.png");
|
5
5
|
text-align: center;
|
6
6
|
font-family: sans-serif; }
|
7
7
|
|
@@ -12,7 +12,7 @@ h1 {
|
|
12
12
|
letter-spacing: -1px;
|
13
13
|
text-transform: uppercase;
|
14
14
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
|
15
|
-
background: url("../
|
15
|
+
background: url("../IMG_DIR/middleman.png") no-repeat center 100px;
|
16
16
|
padding: 350px 0 10px;
|
17
17
|
margin: 0; }
|
18
18
|
|
@@ -52,4 +52,4 @@ h1 {
|
|
52
52
|
to {
|
53
53
|
-webkit-transform: scale(1);
|
54
54
|
}
|
55
|
-
}
|
55
|
+
}
|
@@ -19,13 +19,34 @@ module Middleman
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def build_scaffold
|
22
|
-
template
|
22
|
+
template 'shared/Gemfile.tt', File.join(location, 'Gemfile')
|
23
23
|
template 'shared/config.tt', File.join(location, 'config.rb')
|
24
|
-
|
24
|
+
copy_file 'source/index.html.slim', File.join(location, 'source/index.html.slim')
|
25
|
+
copy_file 'source/layouts/layout.slim', File.join(location, 'source/layouts/layout.slim')
|
25
26
|
|
26
27
|
empty_directory File.join(location, 'source', options[:css_dir])
|
28
|
+
copy_file 'source/stylesheets/all.css', File.join(location, 'source', options[:css_dir], 'all.css')
|
29
|
+
copy_file 'source/stylesheets/normalize.css', File.join(location, 'source', options[:css_dir], 'normalize.css')
|
30
|
+
|
27
31
|
empty_directory File.join(location, 'source', options[:js_dir])
|
32
|
+
copy_file 'source/javascripts/all.js', File.join(location, 'source', options[:js_dir], 'all.js')
|
33
|
+
|
28
34
|
empty_directory File.join(location, 'source', options[:images_dir])
|
35
|
+
copy_file 'source/images/background.png', File.join(location, 'source', options[:images_dir], 'background.png')
|
36
|
+
copy_file 'source/images/middleman.png', File.join(location, 'source', options[:images_dir], 'middleman.png')
|
37
|
+
replace_css_img_dir
|
38
|
+
end
|
39
|
+
|
40
|
+
private
|
41
|
+
def replace_css_img_dir
|
42
|
+
f = File.open(File.join(location, 'source', options[:css_dir], 'all.css'), 'r')
|
43
|
+
buf = f.read
|
44
|
+
buf.gsub!(/IMG_DIR/, options[:images_dir])
|
45
|
+
f.close
|
46
|
+
|
47
|
+
f = File.open(File.join(location, 'source', options[:css_dir], 'all.css'), 'w')
|
48
|
+
f.write(buf)
|
49
|
+
f.close
|
29
50
|
end
|
30
51
|
end
|
31
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: middleman-slim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yterajima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slim
|
@@ -78,17 +78,17 @@ require_paths:
|
|
78
78
|
- lib
|
79
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - '>='
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- -
|
86
|
+
- - '>='
|
87
87
|
- !ruby/object:Gem::Version
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project:
|
91
|
-
rubygems_version: 2.0.
|
91
|
+
rubygems_version: 2.0.2
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: A Middleman template using Slim.
|