chriseppstein-compass 0.6.4 → 0.6.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/CHANGELOG.markdown +23 -0
- data/VERSION +1 -1
- data/compass.gemspec +2 -2
- data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +2 -2
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +1 -1
- data/lib/compass/exec.rb +1 -1
- data/lib/sass_extensions.rb +8 -0
- metadata +2 -2
data/CHANGELOG.markdown
CHANGED
@@ -1,6 +1,29 @@
|
|
1
1
|
COMPASS CHANGELOG
|
2
2
|
=================
|
3
3
|
|
4
|
+
0.6.5
|
5
|
+
-----
|
6
|
+
|
7
|
+
### Compass Core
|
8
|
+
|
9
|
+
Converted all mixins definitions referencing images to use the new sass function <code>image\_url()</code>. The following mixins were affected:
|
10
|
+
|
11
|
+
* <code>+pretty-bullets</code>
|
12
|
+
* <code>+replace-text</code>
|
13
|
+
|
14
|
+
The calls to these mixins should now pass a path to the image that is relative to the images directory of the project.
|
15
|
+
|
16
|
+
### Command Line
|
17
|
+
|
18
|
+
* Required frameworks specified from the command line will now be added into the initial project configuration file.
|
19
|
+
|
20
|
+
0.6.4
|
21
|
+
-----
|
22
|
+
|
23
|
+
### Command Line
|
24
|
+
|
25
|
+
Added a command line option --install-dir that will emit the directory where compass is installed. Useful for debugging and drilling into the compass examples and libraries.
|
26
|
+
|
4
27
|
0.6.3
|
5
28
|
-----
|
6
29
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.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.6.
|
3
|
+
s.version = "0.6.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-04-
|
7
|
+
s.date = %q{2009-04-29}
|
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}
|
@@ -11,11 +11,11 @@
|
|
11
11
|
// Make a list(ul/ol) have an image bullet
|
12
12
|
// mixin should be used like this for an icon that is 5x7:
|
13
13
|
// ul.pretty
|
14
|
-
// +pretty-bullets("
|
14
|
+
// +pretty-bullets("my-icon.png", 5px, 7px)
|
15
15
|
=pretty-bullets(!bullet_icon, !width, !height, !line_height = 18px, !padding = 14px)
|
16
16
|
:margin-left 0
|
17
17
|
li
|
18
18
|
:padding-left= !padding
|
19
|
-
:background=
|
19
|
+
:background= image_url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
|
20
20
|
:list-style-type none
|
21
21
|
|
data/lib/compass/exec.rb
CHANGED
@@ -139,7 +139,7 @@ END
|
|
139
139
|
end
|
140
140
|
|
141
141
|
opts.on('-r LIBRARY', '--require LIBRARY', "Require LIBRARY before running commands. This is used to access compass plugins.") do |library|
|
142
|
-
require library
|
142
|
+
::Compass.configuration.require library
|
143
143
|
end
|
144
144
|
|
145
145
|
opts.on('--rails', "Sets the project type to a rails project.") do
|
data/lib/sass_extensions.rb
CHANGED
@@ -19,6 +19,9 @@ module Sass::Script::Functions
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def image_url(path)
|
22
|
+
if absolute_path?(path.value)
|
23
|
+
return Sass::Script::String.new("url(#{path})")
|
24
|
+
end
|
22
25
|
http_images_path = if Compass.configuration.http_images_path == :relative
|
23
26
|
if (target_css_file = options[:css_filename])
|
24
27
|
images_path = File.join(Compass.configuration.project_path, Compass.configuration.images_dir)
|
@@ -35,6 +38,11 @@ module Sass::Script::Functions
|
|
35
38
|
end
|
36
39
|
Sass::Script::String.new("url(#{path})")
|
37
40
|
end
|
41
|
+
|
42
|
+
private
|
43
|
+
def absolute_path?(path)
|
44
|
+
path[0..0] == "/" || path[0..3] == "http"
|
45
|
+
end
|
38
46
|
end
|
39
47
|
|
40
48
|
# XXX: We can remove this check and monkeypatch once Sass 2.2 is released.
|
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.6.
|
4
|
+
version: 0.6.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-04-
|
12
|
+
date: 2009-04-29 00:00:00 -07:00
|
13
13
|
default_executable: compass
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|