compass 0.10.0 → 0.10.1

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.
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 0
3
2
  :major: 0
4
3
  :minor: 10
4
+ :patch: 1
@@ -158,8 +158,10 @@ Feature: Command Line
158
158
  | watch |
159
159
  And I should see the following "other" commands:
160
160
  | config |
161
+ | frameworks |
161
162
  | grid-img |
162
163
  | help |
164
+ | imports |
163
165
  | install |
164
166
  | interactive |
165
167
  | stats |
@@ -1,2 +1,2 @@
1
- @warn "DEPRECATED: Please change your @import of blueprint/modules/reset.sass to: @import \"blueprint/reset\""
2
- @import blueprint/reset.scss
1
+ @warn "DEPRECATED: Please change your @import of blueprint/modules/reset.sass to: @import \"blueprint/reset/utilities\""
2
+ @import blueprint/reset/utilities.scss
@@ -1,58 +1,3 @@
1
- // Global reset rules.
2
- // For more specific resets, use the reset mixins provided below
3
- @mixin blueprint-global-reset {
4
- html, body {
5
- @include blueprint-reset; }
6
- html {
7
- font-size: 100.01%; }
8
- @include blueprint-nested-reset; }
1
+ @import "reset/utilities";
9
2
 
10
- // Reset all elements within some selector scope.To reset the selector itself,
11
- // mixin the appropriate reset mixin for that element type as well. This could be
12
- // useful if you want to style a part of your page in a dramatically different way.
13
- @mixin blueprint-nested-reset {
14
- div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
15
- pre, a, abbr, acronym, address, code, del, dfn, em, img,
16
- dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
17
- @include blueprint-reset; }
18
- blockquote, q {
19
- @include blueprint-reset-quotation; }
20
- th, td, caption {
21
- @include blueprint-reset-table-cell; }
22
- table {
23
- @include blueprint-reset-table; }
24
- a img {
25
- border: none; } }
26
-
27
- @mixin blueprint-reset-box-model {
28
- margin: 0;
29
- padding: 0;
30
- border: 0; }
31
-
32
- @mixin blueprint-reset {
33
- @include blueprint-reset-box-model;
34
- font: {
35
- weight: inherit;
36
- style: inherit;
37
- size: 100%;
38
- family: inherit; };
39
- vertical-align: baseline; }
40
-
41
- @mixin blueprint-reset-quotation {
42
- @include blueprint-reset;
43
- quotes: "" "";
44
- &:before,
45
- &:after {
46
- content: ""; } }
47
-
48
- @mixin blueprint-reset-table-cell {
49
- @include blueprint-reset;
50
- text-align: left;
51
- font-weight: normal;
52
- vertical-align: middle; }
53
-
54
- @mixin blueprint-reset-table {
55
- @include blueprint-reset;
56
- border-collapse: separate;
57
- border-spacing: 0;
58
- vertical-align: middle; }
3
+ @include blueprint-global-reset;
@@ -0,0 +1,58 @@
1
+ // Global reset rules.
2
+ // For more specific resets, use the reset mixins provided below
3
+ @mixin blueprint-global-reset {
4
+ html, body {
5
+ @include blueprint-reset; }
6
+ html {
7
+ font-size: 100.01%; }
8
+ @include blueprint-nested-reset; }
9
+
10
+ // Reset all elements within some selector scope.To reset the selector itself,
11
+ // mixin the appropriate reset mixin for that element type as well. This could be
12
+ // useful if you want to style a part of your page in a dramatically different way.
13
+ @mixin blueprint-nested-reset {
14
+ div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
15
+ pre, a, abbr, acronym, address, code, del, dfn, em, img,
16
+ dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
17
+ @include blueprint-reset; }
18
+ blockquote, q {
19
+ @include blueprint-reset-quotation; }
20
+ th, td, caption {
21
+ @include blueprint-reset-table-cell; }
22
+ table {
23
+ @include blueprint-reset-table; }
24
+ a img {
25
+ border: none; } }
26
+
27
+ @mixin blueprint-reset-box-model {
28
+ margin: 0;
29
+ padding: 0;
30
+ border: 0; }
31
+
32
+ @mixin blueprint-reset {
33
+ @include blueprint-reset-box-model;
34
+ font: {
35
+ weight: inherit;
36
+ style: inherit;
37
+ size: 100%;
38
+ family: inherit; };
39
+ vertical-align: baseline; }
40
+
41
+ @mixin blueprint-reset-quotation {
42
+ @include blueprint-reset;
43
+ quotes: "" "";
44
+ &:before,
45
+ &:after {
46
+ content: ""; } }
47
+
48
+ @mixin blueprint-reset-table-cell {
49
+ @include blueprint-reset;
50
+ text-align: left;
51
+ font-weight: normal;
52
+ vertical-align: middle; }
53
+
54
+ @mixin blueprint-reset-table {
55
+ @include blueprint-reset;
56
+ border-collapse: separate;
57
+ border-spacing: 0;
58
+ vertical-align: middle; }
@@ -12,7 +12,7 @@ help %Q{
12
12
  welcome_message %Q{
13
13
  For a full tutorial on how to build your own extension see:
14
14
 
15
- http://github.com/chriseppstein/compass/blob/edge/docs/EXTENSIONS.markdown
15
+ http://compass-style.org/docs/tutorials/extensions/
16
16
 
17
17
  }, :replace => true
18
18
 
@@ -26,7 +26,7 @@ module Compass
26
26
  end
27
27
 
28
28
  def config_files_exist?
29
- File.exists?(targetize('config/compass.config')) &&
29
+ File.exists?(targetize('config/compass.rb')) &&
30
30
  File.exists?(targetize('config/initializers/compass.rb'))
31
31
  end
32
32
 
@@ -38,11 +38,22 @@ module Compass
38
38
  if options[:create]
39
39
  puts <<-NEXTSTEPS
40
40
 
41
- Congratulations! Your rails project has been configured to use Compass.
42
- Sass will automatically compile your stylesheets during the next
43
- page request and keep them up to date when they change.
44
- Make sure you restart your server!
45
- NEXTSTEPS
41
+ Congratulations! Your rails project has been configured to use Compass.
42
+ Just one more thing left to do: Register the compass gem.
43
+
44
+ In Rails 2.2 & 2.3, add the following to your evironment.rb:
45
+
46
+ config.gem "compass", :version => ">= #{Compass::VERSION}"
47
+
48
+ In Rails 3, add the following to your Gemfile:
49
+
50
+ gem "compass", ">= #{Compass::VERSION}"
51
+
52
+ Then, make sure you restart your server.
53
+
54
+ Sass will automatically compile your stylesheets during the next
55
+ page request and keep them up to date when they change.
56
+ NEXTSTEPS
46
57
  end
47
58
  if manifest.has_stylesheet?
48
59
  puts "\nNext add these lines to the head of your layouts:\n\n"
@@ -61,8 +61,8 @@ end
61
61
  use_sudo = sudo_is_an_option? if use_sudo.blank?
62
62
 
63
63
  # define dependencies
64
- gem "haml", :version => ">=3.0.0.rc.3"
65
- gem "compass", :version => ">= 0.10.0.rc4"
64
+ gem "haml", :version => ">=3.0.0"
65
+ gem "compass", :version => ">= 0.10.0"
66
66
 
67
67
  # install and unpack
68
68
  rake "gems:install GEM=haml --trace", :sudo => use_sudo
@@ -4,7 +4,7 @@ end
4
4
  require 'compass/commands/registry'
5
5
 
6
6
  %w(base generate_grid_background help list_frameworks project_base
7
- update_project watch_project create_project installer_command
7
+ update_project watch_project create_project imports installer_command
8
8
  print_version project_stats stamp_pattern validate_project
9
9
  write_configuration interactive).each do |lib|
10
10
  require "compass/commands/#{lib}"
@@ -68,7 +68,7 @@ module Compass
68
68
  if command.to_sym == :create
69
69
  "Create a new compass project"
70
70
  else
71
- "Initialize an existing project"
71
+ "Add compass to an existing project"
72
72
  end
73
73
  end
74
74
 
@@ -0,0 +1,29 @@
1
+ module Compass
2
+ module Commands
3
+ class Imports < ProjectBase
4
+ attr_accessor :options
5
+ register :imports
6
+ def initialize(working_path, options)
7
+ super
8
+ end
9
+
10
+ def execute
11
+ print ::Compass::Frameworks::ALL.map{|f|
12
+ "-I #{f.stylesheets_directory}"
13
+ }.join(' ')
14
+ end
15
+ class << self
16
+ def description(command)
17
+ "Emit an imports suitable for passing to the sass command-line."
18
+ end
19
+ def parse!(arguments)
20
+ if arguments.join("").strip.size > 0
21
+ raise OptionParser::ParseError, "This command takes no options or arguments."
22
+ else
23
+ {}
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -2,6 +2,7 @@ module Compass
2
2
  module Commands
3
3
  class ListFrameworks < ProjectBase
4
4
  attr_accessor :options
5
+ register :frameworks
5
6
  def initialize(working_path, options)
6
7
  super
7
8
  end
@@ -11,6 +12,11 @@ module Compass
11
12
  puts framework.name unless framework.name =~ /^_/
12
13
  end
13
14
  end
15
+ class << self
16
+ def description(command)
17
+ "List the available frameworks"
18
+ end
19
+ end
14
20
  end
15
21
  end
16
22
  end
@@ -97,6 +97,10 @@ module Compass
97
97
  end
98
98
 
99
99
  class << self
100
+ def description(command)
101
+ "Compile Sass stylesheets to CSS when they change"
102
+ end
103
+
100
104
  def option_parser(arguments)
101
105
  parser = Compass::Exec::CommandOptionParser.new(arguments)
102
106
  parser.extend(Compass::Exec::GlobalOptionsParser)
@@ -42,7 +42,7 @@ module Compass
42
42
  def out_of_date?
43
43
  Compass.configure_sass_plugin! unless Compass.sass_plugin_configured?
44
44
  sass_files.zip(css_files).each do |sass_filename, css_filename|
45
- return sass_filename if Sass::Plugin.send(:exact_stylesheet_needs_update?, css_filename, sass_filename)
45
+ return sass_filename if Sass::Plugin.send(:stylesheet_needs_update?, css_filename, sass_filename)
46
46
  end
47
47
  false
48
48
  end
@@ -106,7 +106,7 @@ module Compass
106
106
  end
107
107
 
108
108
  def should_compile?(sass_filename, css_filename)
109
- options[:force] || Sass::Plugin.send(:exact_stylesheet_needs_update?, css_filename, sass_filename)
109
+ options[:force] || Sass::Plugin.send(:stylesheet_needs_update?, css_filename, sass_filename)
110
110
  end
111
111
 
112
112
  # A sass engine for compiling a single file.
@@ -54,8 +54,15 @@ module Compass
54
54
  end
55
55
 
56
56
  def configure_sass_plugin!
57
+ return if sass_plugin_configured?
58
+ require 'sass/plugin'
57
59
  @sass_plugin_configured = true
58
- Sass::Plugin.options.merge!(sass_plugin_configuration)
60
+ config = sass_plugin_configuration
61
+ locations = config.delete(:template_location)
62
+ Sass::Plugin.options.merge!(config)
63
+ locations.each do |sass_dir, css_dir|
64
+ Sass::Plugin.add_template_location sass_dir, css_dir
65
+ end
59
66
  end
60
67
 
61
68
  def sass_plugin_configured?
@@ -1,3 +1,3 @@
1
- %w(stylesheet_updating traversal).each do |patch|
1
+ %w(traversal).each do |patch|
2
2
  require "compass/sass_extensions/monkey_patches/#{patch}"
3
3
  end
@@ -26,9 +26,6 @@ module Compass
26
26
  @version[:teeny] = @version[:patch]
27
27
  @version[:string] = "#{@version[:major]}.#{@version[:minor]}.#{@version[:patch]}"
28
28
  @version[:string] << ".#{@version[:build]}" if @version[:build]
29
- if !ENV['OFFICIAL'] && r = revision
30
- @version[:string] << ".dev.#{r[0..6]}"
31
- end
32
29
  @version
33
30
  end
34
31
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 10
8
- - 0
9
- version: 0.10.0
8
+ - 1
9
+ version: 0.10.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Chris Eppstein
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-05-10 00:00:00 -07:00
19
+ date: 2010-05-15 00:00:00 -07:00
20
20
  default_executable: compass
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -29,8 +29,8 @@ dependencies:
29
29
  segments:
30
30
  - 3
31
31
  - 0
32
- - 0
33
- version: 3.0.0
32
+ - 4
33
+ version: 3.0.4
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
36
  description: Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS.
@@ -257,6 +257,7 @@ files:
257
257
  - frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss
258
258
  - frameworks/blueprint/stylesheets/blueprint/_typography.scss
259
259
  - frameworks/blueprint/stylesheets/blueprint/_utilities.scss
260
+ - frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss
260
261
  - frameworks/blueprint/templates/basic/grid.png
261
262
  - frameworks/blueprint/templates/basic/ie.sass
262
263
  - frameworks/blueprint/templates/basic/manifest.rb
@@ -374,6 +375,7 @@ files:
374
375
  - lib/compass/commands/create_project.rb
375
376
  - lib/compass/commands/generate_grid_background.rb
376
377
  - lib/compass/commands/help.rb
378
+ - lib/compass/commands/imports.rb
377
379
  - lib/compass/commands/installer_command.rb
378
380
  - lib/compass/commands/interactive.rb
379
381
  - lib/compass/commands/list_frameworks.rb
@@ -425,7 +427,6 @@ files:
425
427
  - lib/compass/sass_extensions/functions/selectors.rb
426
428
  - lib/compass/sass_extensions/functions/urls.rb
427
429
  - lib/compass/sass_extensions/functions.rb
428
- - lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
429
430
  - lib/compass/sass_extensions/monkey_patches/traversal.rb
430
431
  - lib/compass/sass_extensions/monkey_patches.rb
431
432
  - lib/compass/sass_extensions.rb
@@ -1,40 +0,0 @@
1
- require 'sass/plugin'
2
-
3
- # XXX: We can remove this monkeypatch once Sass 2.2 is released.
4
- module Sass::Plugin
5
-
6
- # splits the stylesheet_needs_update? method into two pieces so I can use the exact_stylesheet_needs_update? piece
7
- module StylesheetNeedsUpdate
8
- def stylesheet_needs_update?(name, template_path, css_path)
9
- css_file = css_filename(name, css_path)
10
- template_file = template_filename(name, template_path)
11
- exact_stylesheet_needs_update?(css_file, template_file)
12
- end
13
- def exact_stylesheet_needs_update?(css_file, template_file)
14
- if !File.exists?(css_file)
15
- return true
16
- else
17
- css_mtime = File.mtime(css_file)
18
- File.mtime(template_file) > css_mtime ||
19
- dependencies(template_file).any?(&dependency_updated?(css_mtime))
20
- end
21
- end
22
- end
23
-
24
- # At some point Sass::Plugin changed from using the metaclass to extend self.
25
- metaclass = class << self; self; end
26
- if metaclass.included_modules.include?(Sass::Plugin)
27
- if method(:stylesheet_needs_update?).arity == 2
28
- alias exact_stylesheet_needs_update? stylesheet_needs_update?
29
- elsif !method_defined?(:exact_stylesheet_needs_update?)
30
- include StylesheetNeedsUpdate
31
- end
32
- else
33
- class << self
34
- unless method_defined?(:exact_stylesheet_needs_update?)
35
- include StylesheetNeedsUpdate
36
- end
37
- end
38
- end
39
-
40
- end