chriseppstein-compass 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +27 -1
- data/REVISION +1 -1
- data/VERSION.yml +1 -1
- data/lib/compass/app_integration/rails/templates/compass-install-rails.rb +7 -7
- data/lib/compass/dependencies.rb +2 -2
- data/lib/compass/installers/rails.rb +12 -2
- data/lib/compass/sass_extensions/functions/urls.rb +5 -12
- metadata +2 -2
data/CHANGELOG.markdown
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
COMPASS CHANGELOG
|
2
2
|
=================
|
3
3
|
|
4
|
+
0.8.6 (July 08, 2009)
|
5
|
+
---------------------
|
6
|
+
|
7
|
+
### Rails
|
8
|
+
|
9
|
+
* The rails installer now correctly references the haml 2.2 dependency.
|
10
|
+
[Commit](http://github.com/chriseppstein/compass/commit/85bb337f50a3a3dfaafa2820d5463f7296140c9e)
|
11
|
+
by [Filip Tepper][filiptepper].
|
12
|
+
* When installing into a new rails project, set the http paths correctly for stylesheets and javascripts
|
13
|
+
in the configuration file.
|
14
|
+
[Commit](http://github.com/chriseppstein/compass/commit/94e9696b30a9a9fd750c45e6fe3c2bc93eba506a)
|
15
|
+
* Fixed a bug in asset hosts support when compiling outside the context of a controller.
|
16
|
+
[Commit](http://github.com/chriseppstein/compass/commit/6b8bbd22b13ef4c329777913a633948e66e3da99)
|
17
|
+
|
18
|
+
### Command Line
|
19
|
+
|
20
|
+
* Fixed a bug that caused the output after installing to not display the conditional comments.
|
21
|
+
[Commit](http://github.com/chriseppstein/compass/commit/48a0356ad8bc7b965e64f82498a9adcc1872abad)
|
22
|
+
|
23
|
+
### Compass Core
|
24
|
+
|
25
|
+
* Fixed a copy & paste error in image_url() that caused the http_images_path to not get picked up unless the
|
26
|
+
http_stylesheets_path was also set.
|
27
|
+
[Commit](http://github.com/chriseppstein/compass/commit/b7a9772efb89b2b882d3fafe02813c0fc650719a)
|
28
|
+
|
4
29
|
0.8.5 (July 06, 2009)
|
5
30
|
---------------------
|
6
31
|
|
@@ -159,7 +184,7 @@ Fixed some build issues and a bug in the rewritten --watch mode that caused chan
|
|
159
184
|
### Configuration
|
160
185
|
|
161
186
|
* **Asset Hosts**. You can now configure the asset host(s) used for images via the image_url() function.
|
162
|
-
Asset hosts are off unless configured and also off when relative urls are enabled.
|
187
|
+
Asset hosts are off unless configured and also off when relative urls are enabled.
|
163
188
|
[Commit](http://github.com/chriseppstein/compass/commit/ef47f3dd9dbfc087de8b12a90f9a82993bbb592e).
|
164
189
|
In your compass configuration file, you must define an asset_host algorithm to be used like so:
|
165
190
|
# Return the same host for all images:
|
@@ -452,3 +477,4 @@ Almost definitely. Please let me know if you encounter any problems and I'll get
|
|
452
477
|
[Chrononaut]: http://github.com/Chrononaut
|
453
478
|
[rails_template]: http://github.com/chriseppstein/compass/raw/4e7e51e2c5491851f66c77abf3f15194f2f8fb8d/lib/compass/app_integration/rails/templates/compass-install-rails.rb
|
454
479
|
[dturnbull]: http://github.com/dturnbull
|
480
|
+
[filiptepper]: http://github.com/filiptepper
|
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
aba60c46cdfe657144cd411b7c3f4bd81826299b
|
data/VERSION.yml
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# Compass Ruby on Rails Installer (template) v.1.0
|
3
3
|
# written by Derek Perez (derek@derekperez.com)
|
4
4
|
# -----------------------------------------------------------------
|
5
|
-
# NOTE: This installer is designed to work as a Rails template,
|
5
|
+
# NOTE: This installer is designed to work as a Rails template,
|
6
6
|
# and can only be used with Rails 2.3+.
|
7
7
|
# -----------------------------------------------------------------
|
8
8
|
# Copyright (c) 2009 Derek Perez
|
9
|
-
#
|
9
|
+
#
|
10
10
|
# Permission is hereby granted, free of charge, to any person
|
11
11
|
# obtaining a copy of this software and associated documentation
|
12
12
|
# files (the "Software"), to deal in the Software without
|
@@ -15,10 +15,10 @@
|
|
15
15
|
# copies of the Software, and to permit persons to whom the
|
16
16
|
# Software is furnished to do so, subject to the following
|
17
17
|
# conditions:
|
18
|
-
#
|
18
|
+
#
|
19
19
|
# The above copyright notice and this permission notice shall be
|
20
20
|
# included in all copies or substantial portions of the Software.
|
21
|
-
#
|
21
|
+
#
|
22
22
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
23
23
|
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
24
24
|
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
@@ -46,11 +46,11 @@ css_dir = ask("Where would you like Compass to store your compiled css files? (d
|
|
46
46
|
css_dir = "public/stylesheets/compiled" if css_dir.blank?
|
47
47
|
|
48
48
|
# define dependencies
|
49
|
-
gem "haml
|
49
|
+
gem "haml", :lib => "haml", :version => ">=2.2.0"
|
50
50
|
gem "chriseppstein-compass", :source => "http://gems.github.com/", :lib => "compass"
|
51
51
|
|
52
52
|
# install and unpack
|
53
|
-
rake "gems:install GEM=haml
|
53
|
+
rake "gems:install GEM=haml", :sudo => true
|
54
54
|
rake "gems:install GEM=chriseppstein-compass", :sudo => true
|
55
55
|
rake "gems:unpack GEM=chriseppstein-compass"
|
56
56
|
|
@@ -69,7 +69,7 @@ compass_command << plugin_require if plugin_require
|
|
69
69
|
|
70
70
|
# Require compass during plugin loading
|
71
71
|
file 'vendor/plugins/compass/init.rb', <<-CODE
|
72
|
-
# This is here to make sure that the right version of sass gets loaded (haml
|
72
|
+
# This is here to make sure that the right version of sass gets loaded (haml 2.2) by the compass requires.
|
73
73
|
require 'compass'
|
74
74
|
CODE
|
75
75
|
|
data/lib/compass/dependencies.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
unless defined?(Sass)
|
2
2
|
require 'rubygems'
|
3
3
|
begin
|
4
|
-
gem 'haml
|
4
|
+
gem 'haml','>= 2.2.0'
|
5
5
|
rescue Exception
|
6
|
-
$stderr.puts "WARNING: haml
|
6
|
+
$stderr.puts "WARNING: haml 2.2 gem not found. Trying to find haml on the load path."
|
7
7
|
end
|
8
8
|
require 'sass'
|
9
9
|
end
|
@@ -9,6 +9,8 @@ module Compass
|
|
9
9
|
:css_dir => (css_dir || prompt_css_dir),
|
10
10
|
:images_dir => default_images_dir,
|
11
11
|
:javascripts_dir => default_javascripts_dir,
|
12
|
+
:http_stylesheets_path => default_http_stylesheets_path,
|
13
|
+
:http_javascripts_path => default_http_javascripts_path,
|
12
14
|
:http_images_path => default_http_images_path
|
13
15
|
}
|
14
16
|
end
|
@@ -55,6 +57,14 @@ NEXTSTEPS
|
|
55
57
|
"/images"
|
56
58
|
end
|
57
59
|
|
60
|
+
def default_http_javascripts_path
|
61
|
+
"/javascripts"
|
62
|
+
end
|
63
|
+
|
64
|
+
def default_http_stylesheets_path
|
65
|
+
"/stylesheets"
|
66
|
+
end
|
67
|
+
|
58
68
|
def prompt_sass_dir
|
59
69
|
recommended_location = separate('app/stylesheets')
|
60
70
|
default_location = separate('public/stylesheets/sass')
|
@@ -111,8 +121,8 @@ Compass.configure_sass_plugin!
|
|
111
121
|
if stylesheet.options[:media]
|
112
122
|
ss_line += ", :media => '#{stylesheet.options[:media]}'"
|
113
123
|
end
|
114
|
-
if stylesheet.options[:
|
115
|
-
ss_line = " /[if
|
124
|
+
if stylesheet.options[:condition]
|
125
|
+
ss_line = " /[if #{stylesheet.options[:condition]}]\n " + ss_line
|
116
126
|
end
|
117
127
|
html << ss_line + "\n"
|
118
128
|
end
|
@@ -18,7 +18,6 @@ module Compass::SassExtensions::Functions::Urls
|
|
18
18
|
path = path.value # get to the string value of the literal.
|
19
19
|
# Short curcuit if they have provided an absolute url.
|
20
20
|
if absolute_path?(path)
|
21
|
-
puts "#{path} is absolute"
|
22
21
|
return Sass::Script::String.new("url(#{path})")
|
23
22
|
end
|
24
23
|
|
@@ -26,7 +25,7 @@ module Compass::SassExtensions::Functions::Urls
|
|
26
25
|
# or nil if the http_images_path is not set in the configuration.
|
27
26
|
http_images_path = if relative?
|
28
27
|
compute_relative_path(Compass.configuration.images_dir)
|
29
|
-
elsif Compass.configuration.
|
28
|
+
elsif Compass.configuration.http_images_path
|
30
29
|
Compass.configuration.http_images_path
|
31
30
|
else
|
32
31
|
Compass.configuration.root_relative(Compass.configuration.images_dir)
|
@@ -44,7 +43,9 @@ module Compass::SassExtensions::Functions::Urls
|
|
44
43
|
end
|
45
44
|
|
46
45
|
# Compute the asset host unless in relative mode.
|
47
|
-
asset_host =
|
46
|
+
asset_host = if !relative? && Compass.configuration.asset_host
|
47
|
+
Compass.configuration.asset_host.call(path)
|
48
|
+
end
|
48
49
|
|
49
50
|
# Compute and append the cache buster if there is one.
|
50
51
|
if buster = compute_cache_buster(path, real_path)
|
@@ -101,12 +102,4 @@ module Compass::SassExtensions::Functions::Urls
|
|
101
102
|
end
|
102
103
|
end
|
103
104
|
|
104
|
-
|
105
|
-
if Compass.configuration.asset_host
|
106
|
-
Compass.configuration.asset_host.call(path)
|
107
|
-
else
|
108
|
-
nil
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
end
|
105
|
+
end
|
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.8.
|
4
|
+
version: 0.8.6
|
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-07-
|
12
|
+
date: 2009-07-08 00:00:00 -07:00
|
13
13
|
default_executable: compass
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|