chriseppstein-compass 0.5.4 → 0.5.5
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/VERSION +1 -1
- data/compass.gemspec +2 -2
- data/lib/compass/actions.rb +2 -1
- data/lib/compass/configuration.rb +6 -0
- data/lib/compass/exec.rb +0 -1
- data/test/fixtures/stylesheets/blueprint/css/typography.css +0 -2
- data/test/fixtures/stylesheets/compass/css/layout.css +0 -1
- data/test/fixtures/stylesheets/compass/css/print.css +0 -1
- data/test/fixtures/stylesheets/compass/css/reset.css +2 -4
- data/test/fixtures/stylesheets/compass/css/utilities.css +0 -17
- data/test/fixtures/stylesheets/yui/css/mixins.css +0 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.5
|
data/compass.gemspec
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{compass}
|
3
|
-
s.version = "0.5.
|
3
|
+
s.version = "0.5.5"
|
4
4
|
|
5
5
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
6
6
|
s.authors = ["Chris Eppstein"]
|
7
|
-
s.date = %q{2009-
|
7
|
+
s.date = %q{2009-04-01}
|
8
8
|
s.default_executable = %q{compass}
|
9
9
|
s.description = %q{Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS.}
|
10
10
|
s.email = %q{chris@eppsteins.net}
|
data/lib/compass/actions.rb
CHANGED
@@ -53,10 +53,11 @@ module Compass
|
|
53
53
|
|
54
54
|
# Compile one Sass file
|
55
55
|
def compile(sass_filename, css_filename, options)
|
56
|
+
puts options.inspect
|
56
57
|
logger.record :compile, basename(sass_filename)
|
57
58
|
engine = ::Sass::Engine.new(open(sass_filename).read,
|
58
59
|
:filename => sass_filename,
|
59
|
-
:line_comments => options[:
|
60
|
+
:line_comments => options[:line_comments],
|
60
61
|
:style => options[:style],
|
61
62
|
:css_filename => css_filename,
|
62
63
|
:load_paths => options[:load_paths])
|
@@ -81,6 +81,10 @@ module Compass
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
+
def default_line_comments
|
85
|
+
environment == :development
|
86
|
+
end
|
87
|
+
|
84
88
|
def serialize
|
85
89
|
contents = ""
|
86
90
|
required_libraries.each do |lib|
|
@@ -110,12 +114,14 @@ module Compass
|
|
110
114
|
end
|
111
115
|
plugin_opts = {:template_location => locations}
|
112
116
|
plugin_opts[:style] = output_style if output_style
|
117
|
+
engine_opts[:line_comments] = default_line_comments if environment
|
113
118
|
plugin_opts
|
114
119
|
end
|
115
120
|
|
116
121
|
def to_sass_engine_options
|
117
122
|
engine_opts = {:load_paths => sass_load_paths}
|
118
123
|
engine_opts[:style] = output_style if output_style
|
124
|
+
engine_opts[:line_comments] = default_line_comments if environment
|
119
125
|
engine_opts
|
120
126
|
end
|
121
127
|
|
data/lib/compass/exec.rb
CHANGED
@@ -72,7 +72,6 @@ module Compass
|
|
72
72
|
self.options[:project_name] = trim_trailing_separator(self.args.shift)
|
73
73
|
end
|
74
74
|
self.options[:command] ||= self.options[:project_name] ? :create_project : :update_project
|
75
|
-
self.options[:environment] ||= :production
|
76
75
|
self.options[:framework] ||= :compass
|
77
76
|
self.options[:project_type] ||= :stand_alone
|
78
77
|
end
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
html, body {
|
3
2
|
margin: 0;
|
4
3
|
padding: 0;
|
@@ -31,9 +30,8 @@ blockquote, q {
|
|
31
30
|
font-family: inherit;
|
32
31
|
vertical-align: baseline;
|
33
32
|
quotes: "" ""; }
|
34
|
-
blockquote:before,
|
35
|
-
blockquote:after,
|
36
|
-
q:after {
|
33
|
+
blockquote:before, q:before,
|
34
|
+
blockquote:after, q:after {
|
37
35
|
content: ""; }
|
38
36
|
|
39
37
|
th, td, caption {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chriseppstein-compass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Eppstein
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-04-01 00:00:00 -07:00
|
13
13
|
default_executable: compass
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|