compass 0.11.alpha.1 → 0.11.alpha.3

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.
Files changed (39) hide show
  1. data/Rakefile +21 -1
  2. data/VERSION.yml +1 -1
  3. data/bin/compass +17 -2
  4. data/features/command_line.feature +15 -24
  5. data/features/step_definitions/command_line_steps.rb +3 -3
  6. data/frameworks/compass/stylesheets/_lemonade.scss +38 -0
  7. data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +3 -1
  8. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +1 -1
  9. data/frameworks/compass/stylesheets/compass/css3/_images.scss +8 -6
  10. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +3 -3
  11. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +40 -0
  12. data/frameworks/compass/templates/pie/PIE.htc +69 -69
  13. data/frameworks/compass/templates/pie/manifest.rb +2 -2
  14. data/lib/compass.rb +3 -2
  15. data/lib/compass/app_integration/stand_alone/installer.rb +1 -1
  16. data/lib/compass/commands.rb +1 -1
  17. data/lib/compass/commands/sprite.rb +87 -0
  18. data/lib/compass/configuration/adapters.rb +3 -0
  19. data/lib/compass/dependencies.rb +7 -1
  20. data/lib/compass/installers/bare_installer.rb +1 -1
  21. data/lib/compass/quick_cache.rb +15 -0
  22. data/lib/compass/sass_extensions/functions.rb +3 -3
  23. data/lib/compass/sass_extensions/functions/gradient_support.rb +60 -21
  24. data/lib/compass/sass_extensions/functions/image_size.rb +11 -11
  25. data/lib/compass/sass_extensions/functions/sprites.rb +357 -0
  26. data/lib/compass/sass_extensions/functions/urls.rb +16 -3
  27. data/lib/compass/sass_extensions/monkey_patches/traversal.rb +1 -1
  28. data/lib/compass/sprites.rb +122 -0
  29. data/test/fixtures/stylesheets/compass/css/gradients.css +18 -1
  30. data/test/fixtures/stylesheets/compass/css/pie.css +1 -0
  31. data/test/fixtures/stylesheets/compass/css/transform.css +28 -0
  32. data/test/fixtures/stylesheets/compass/sass/gradients.sass +9 -0
  33. data/test/fixtures/stylesheets/image_urls/css/screen.css +2 -0
  34. data/test/fixtures/stylesheets/image_urls/sass/screen.sass +3 -0
  35. data/test/fixtures/stylesheets/valid/config.rb +9 -0
  36. data/test/fixtures/stylesheets/valid/sass/simple.sass +2 -0
  37. data/test/sass_extensions_test.rb +8 -0
  38. metadata +40 -8
  39. data/lib/compass/sass_extensions/functions/if.rb +0 -9
@@ -0,0 +1,2 @@
1
+ div
2
+ color: red
@@ -81,6 +81,14 @@ class SassExtensionsTest < Test::Unit::TestCase
81
81
  assert evaluate("tan(pi()/2 + 0.0001)").to_f < -1000, evaluate("tan(pi()/2 - 0.0001)")
82
82
  end
83
83
 
84
+ def test_blank
85
+ assert_equal "false", evaluate("blank(true)")
86
+ assert_equal "true", evaluate("blank(false)")
87
+ assert_equal "true", evaluate("blank('')")
88
+ assert_equal "true", evaluate("blank(' ')")
89
+ assert_equal "true", evaluate("blank(-compass-space-list(' '))")
90
+ end
91
+
84
92
  protected
85
93
  def evaluate(value)
86
94
  Sass::Script::Parser.parse(value, 0, 0).perform(Sass::Environment.new).to_s
metadata CHANGED
@@ -1,40 +1,61 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass
3
3
  version: !ruby/object:Gem::Version
4
+ hash: -3702664206
4
5
  prerelease: true
5
6
  segments:
6
7
  - 0
7
8
  - 11
8
9
  - alpha
9
- - 1
10
- version: 0.11.alpha.1
10
+ - 3
11
+ version: 0.11.alpha.3
11
12
  platform: ruby
12
13
  authors:
13
14
  - Chris Eppstein
14
15
  - Eric A. Meyer
15
16
  - Brandon Mathis
17
+ - Nico Hagenburger
16
18
  autorequire:
17
19
  bindir: bin
18
20
  cert_chain: []
19
21
 
20
- date: 2010-11-24 00:00:00 -08:00
22
+ date: 2010-12-05 00:00:00 -08:00
21
23
  default_executable: compass
22
24
  dependencies:
23
25
  - !ruby/object:Gem::Dependency
24
- name: haml
26
+ name: sass
25
27
  prerelease: false
26
28
  requirement: &id001 !ruby/object:Gem::Requirement
27
29
  none: false
28
30
  requirements:
29
- - - ~>
31
+ - - ">="
30
32
  - !ruby/object:Gem::Version
33
+ hash: -3702664376
31
34
  segments:
32
35
  - 3
36
+ - 1
33
37
  - 0
34
- - 23
35
- version: 3.0.23
38
+ - alpha
39
+ - 50
40
+ version: 3.1.0.alpha.50
36
41
  type: :runtime
37
42
  version_requirements: *id001
43
+ - !ruby/object:Gem::Dependency
44
+ name: chunky_png
45
+ prerelease: false
46
+ requirement: &id002 !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ~>
50
+ - !ruby/object:Gem::Version
51
+ hash: 49
52
+ segments:
53
+ - 0
54
+ - 10
55
+ - 3
56
+ version: 0.10.3
57
+ type: :runtime
58
+ version_requirements: *id002
38
59
  description: Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS.
39
60
  email: chris@eppsteins.net
40
61
  executables:
@@ -226,6 +247,7 @@ files:
226
247
  - frameworks/blueprint/templates/semantic/print.sass
227
248
  - frameworks/blueprint/templates/semantic/screen.sass
228
249
  - frameworks/compass/stylesheets/_compass.scss
250
+ - frameworks/compass/stylesheets/_lemonade.scss
229
251
  - frameworks/compass/stylesheets/compass/_css3.scss
230
252
  - frameworks/compass/stylesheets/compass/_layout.scss
231
253
  - frameworks/compass/stylesheets/compass/_reset.scss
@@ -274,6 +296,7 @@ files:
274
296
  - frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss
275
297
  - frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss
276
298
  - frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss
299
+ - frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss
277
300
  - frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss
278
301
  - frameworks/compass/stylesheets/compass/utilities/tables/_alternating-rows-and-columns.scss
279
302
  - frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss
@@ -327,6 +350,7 @@ files:
327
350
  - lib/compass/commands/project_base.rb
328
351
  - lib/compass/commands/project_stats.rb
329
352
  - lib/compass/commands/registry.rb
353
+ - lib/compass/commands/sprite.rb
330
354
  - lib/compass/commands/stamp_pattern.rb
331
355
  - lib/compass/commands/unpack_extension.rb
332
356
  - lib/compass/commands/update_project.rb
@@ -363,6 +387,7 @@ files:
363
387
  - lib/compass/installers/template_context.rb
364
388
  - lib/compass/installers.rb
365
389
  - lib/compass/logger.rb
390
+ - lib/compass/quick_cache.rb
366
391
  - lib/compass/rails.rb
367
392
  - lib/compass/sass_extensions/functions/colors.rb
368
393
  - lib/compass/sass_extensions/functions/constants.rb
@@ -370,17 +395,18 @@ files:
370
395
  - lib/compass/sass_extensions/functions/enumerate.rb
371
396
  - lib/compass/sass_extensions/functions/font_files.rb
372
397
  - lib/compass/sass_extensions/functions/gradient_support.rb
373
- - lib/compass/sass_extensions/functions/if.rb
374
398
  - lib/compass/sass_extensions/functions/image_size.rb
375
399
  - lib/compass/sass_extensions/functions/inline_image.rb
376
400
  - lib/compass/sass_extensions/functions/lists.rb
377
401
  - lib/compass/sass_extensions/functions/selectors.rb
402
+ - lib/compass/sass_extensions/functions/sprites.rb
378
403
  - lib/compass/sass_extensions/functions/trig.rb
379
404
  - lib/compass/sass_extensions/functions/urls.rb
380
405
  - lib/compass/sass_extensions/functions.rb
381
406
  - lib/compass/sass_extensions/monkey_patches/traversal.rb
382
407
  - lib/compass/sass_extensions/monkey_patches.rb
383
408
  - lib/compass/sass_extensions.rb
409
+ - lib/compass/sprites.rb
384
410
  - lib/compass/stats.rb
385
411
  - lib/compass/test_case.rb
386
412
  - lib/compass/util.rb
@@ -509,6 +535,8 @@ files:
509
535
  - test/fixtures/stylesheets/relative/sass/ie.sass
510
536
  - test/fixtures/stylesheets/relative/sass/print.sass
511
537
  - test/fixtures/stylesheets/relative/sass/screen.sass
538
+ - test/fixtures/stylesheets/valid/config.rb
539
+ - test/fixtures/stylesheets/valid/sass/simple.sass
512
540
  - test/io_helper.rb
513
541
  - test/rails_helper.rb
514
542
  - test/rails_integration_test.rb
@@ -534,6 +562,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
534
562
  requirements:
535
563
  - - ">="
536
564
  - !ruby/object:Gem::Version
565
+ hash: 3
537
566
  segments:
538
567
  - 0
539
568
  version: "0"
@@ -542,6 +571,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
542
571
  requirements:
543
572
  - - ">"
544
573
  - !ruby/object:Gem::Version
574
+ hash: 25
545
575
  segments:
546
576
  - 1
547
577
  - 3
@@ -665,6 +695,8 @@ test_files:
665
695
  - test/fixtures/stylesheets/relative/sass/ie.sass
666
696
  - test/fixtures/stylesheets/relative/sass/print.sass
667
697
  - test/fixtures/stylesheets/relative/sass/screen.sass
698
+ - test/fixtures/stylesheets/valid/config.rb
699
+ - test/fixtures/stylesheets/valid/sass/simple.sass
668
700
  - test/io_helper.rb
669
701
  - test/rails_helper.rb
670
702
  - test/rails_integration_test.rb
@@ -1,9 +0,0 @@
1
- module Compass::SassExtensions::Functions::If
2
- def if(truth, if_true = nil, if_false = nil)
3
- if truth.to_bool
4
- if_true || Sass::Script::Bool.new(true)
5
- else
6
- if_false || Sass::Script::Bool.new(false)
7
- end
8
- end
9
- end