jekyll-compass 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/jekyll/compass/compass_installer.rb +1 -0
- data/lib/jekyll/compass/generator.rb +12 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c880ee9b97bfbe280c0a61da02418face4e9b1aa
|
4
|
+
data.tar.gz: 42e233388db99f835769f81e8fa795aeea8cd9fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95467a8f7109f2cfca214d31ba46b720bc4ee3a9e6c8b8fcd4c3ebeea58eb2df710f86be8ab934d380b2b028da5265afc89da233474195831be48540efdaf331
|
7
|
+
data.tar.gz: 558d51c86415334db03d56fb7f1bfc17439dd147b8d74fbf254436f1571d40f7e1be2da283f5ba511724922708ea04f417f55b61a97d8699cb918746a09e9d0c
|
data/README.md
CHANGED
@@ -51,12 +51,12 @@ Other `compass` commands will then work as per usual:
|
|
51
51
|
compass compile
|
52
52
|
compass watch
|
53
53
|
|
54
|
-
You will also note that Compass will build your Sass files whenever
|
54
|
+
You will also note that Compass will build your Sass files whenever Jekyll builds the rest of your website, ensuring
|
55
55
|
that what you publish is always up to date.
|
56
56
|
|
57
57
|
# Compiles your entire website, including Sass/Compass
|
58
58
|
jekyll build
|
59
|
-
jekyll serve
|
59
|
+
jekyll serve --watch
|
60
60
|
|
61
61
|
Configuration
|
62
62
|
-------------
|
@@ -71,6 +71,7 @@ This can be done in one of the following ways:
|
|
71
71
|
jekyll build (compile your entire website, including Sass)
|
72
72
|
2. To monitor your project for changes and automatically recompile:
|
73
73
|
compass watch (just watches your Sass)
|
74
|
+
jekyll serve --watch (watch your entire website, including Sass)
|
74
75
|
|
75
76
|
More Resources:
|
76
77
|
* Website: http://compass-style.org/
|
@@ -21,12 +21,10 @@ module Jekyll
|
|
21
21
|
|
22
22
|
config = configuration(@site.source)
|
23
23
|
configure_compass(config)
|
24
|
+
|
25
|
+
return unless File.exist? ::Compass.configuration.sass_path
|
24
26
|
puts "\rGenerating Compass: #{::Compass.configuration.sass_path}" +
|
25
27
|
" => #{::Compass.configuration.css_path}"
|
26
|
-
unless File.exist? ::Compass.configuration.sass_dir
|
27
|
-
print " Generating... "
|
28
|
-
return
|
29
|
-
end
|
30
28
|
|
31
29
|
::Compass::Commands::UpdateProject.new(@site.config['source'], {:project_type => :jekyll}).execute
|
32
30
|
|
@@ -47,7 +45,9 @@ module Jekyll
|
|
47
45
|
config[:project_path] = source
|
48
46
|
config.extend(@site.config['compass'] || {})
|
49
47
|
config.extend(@site.data['compass'] || {})
|
50
|
-
|
48
|
+
unless config.has_key? :css_path
|
49
|
+
config[:css_path] = File.join(real_destination, config[:css_dir])
|
50
|
+
end
|
51
51
|
config.to_compass
|
52
52
|
end
|
53
53
|
|
@@ -70,7 +70,7 @@ module Jekyll
|
|
70
70
|
)
|
71
71
|
|
72
72
|
Dir["#{::Compass.configuration.css_path}/**/*"].each do |path|
|
73
|
-
source =
|
73
|
+
source = real_destination
|
74
74
|
@site.static_files <<
|
75
75
|
CompassFile.new(
|
76
76
|
@site,
|
@@ -88,7 +88,7 @@ module Jekyll
|
|
88
88
|
# @param filename [String] The name of the created stylesheet.
|
89
89
|
# @return [void]
|
90
90
|
def on_stylesheet_saved(filename)
|
91
|
-
source =
|
91
|
+
source = real_destination
|
92
92
|
@site.static_files <<
|
93
93
|
CompassFile.new(
|
94
94
|
@site,
|
@@ -121,7 +121,7 @@ module Jekyll
|
|
121
121
|
def on_sprite_removed(filename)
|
122
122
|
@site.static_files = @site.static_files.select do |p|
|
123
123
|
if p.path == filename
|
124
|
-
sprite_output = p.destination(
|
124
|
+
sprite_output = p.destination(real_destination)
|
125
125
|
File.delete sprite_output if File.exist? sprite_output
|
126
126
|
false
|
127
127
|
else
|
@@ -130,6 +130,10 @@ module Jekyll
|
|
130
130
|
end
|
131
131
|
nil
|
132
132
|
end
|
133
|
+
|
134
|
+
def real_destination
|
135
|
+
File.expand_path @site.config['destination']
|
136
|
+
end
|
133
137
|
end
|
134
138
|
end
|
135
139
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-compass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Scharley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: compass
|