compass 1.0.0.alpha.13 → 1.0.0.alpha.14

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 (29) hide show
  1. data/VERSION +1 -1
  2. data/features/command_line.feature +1 -1
  3. data/lib/compass/compiler.rb +4 -3
  4. data/lib/compass/configuration/adapters.rb +3 -1
  5. data/lib/compass/sass_extensions/sprites/sprite_map.rb +4 -3
  6. data/test/fixtures/stylesheets/busted_font_urls/css/screen.css +2 -0
  7. data/test/fixtures/stylesheets/busted_font_urls/sass/screen.sass +3 -0
  8. data/test/fixtures/stylesheets/busted_font_urls/tmp/screen.css +2 -0
  9. data/test/fixtures/stylesheets/compass/css/box-sizing.css +5 -0
  10. data/test/fixtures/stylesheets/compass/css/fonts.css +2 -2
  11. data/test/fixtures/stylesheets/compass/css/gradients.css +9 -9
  12. data/test/fixtures/stylesheets/compass/css/grid_background.css +20 -20
  13. data/test/fixtures/stylesheets/compass/css/opacity.css +4 -0
  14. data/test/fixtures/stylesheets/compass/css/print.css +1 -1
  15. data/test/fixtures/stylesheets/compass/css/replacement.css +7 -0
  16. data/test/fixtures/stylesheets/compass/css/reset.css +3 -3
  17. data/test/fixtures/stylesheets/compass/css/transition.css +4 -4
  18. data/test/fixtures/stylesheets/compass/sass/box-sizing.scss +3 -0
  19. data/test/fixtures/stylesheets/compass/sass/opacity.scss +4 -0
  20. data/test/fixtures/stylesheets/envtest/tmp/env.css +2 -2
  21. data/test/integrations/sprites_test.rb +2 -0
  22. data/test/units/compass_util_test.rb +11 -0
  23. data/test/units/configuration_test.rb +121 -0
  24. data/test/units/sass_extensions_test.rb +10 -0
  25. data/test/units/sprites/sprite_map_test.rb +24 -0
  26. metadata +116 -86
  27. checksums.yaml +0 -7
  28. data/test/fixtures/stylesheets/valid/css/another_simple.css +0 -4
  29. data/test/fixtures/stylesheets/valid/css/simple.css +0 -4
@@ -136,6 +136,9 @@ class SassExtensionsTest < Test::Unit::TestCase
136
136
  assert_equal "url(/font/with/no_ext) format('opentype')", evaluate("font_files('/font/with/no_ext', 'otf')")
137
137
  assert_equal "url(/font/with/weird.ext) format('truetype')", evaluate("font_files('/font/with/weird.ext', 'ttf')")
138
138
 
139
+ # unquoted path strings used to break because of a regex test
140
+ assert_equal "url(/font/with/right_ext.woff) format('woff')", evaluate("font_files(unquote('/font/with/right_ext.woff'))")
141
+
139
142
  assert_equal "url(/font/with/right_ext.woff) format('woff'), url(/font/with/right_ext_also.otf) format('opentype')", evaluate("font_files('/font/with/right_ext.woff', '/font/with/right_ext_also.otf')")
140
143
  assert_equal "url(/font/with/wrong_ext.woff) format('truetype'), url(/font/with/right_ext.otf) format('opentype')", evaluate("font_files('/font/with/wrong_ext.woff', 'ttf', '/font/with/right_ext.otf')")
141
144
 
@@ -182,6 +185,13 @@ class SassExtensionsTest < Test::Unit::TestCase
182
185
  Compass.configuration.fonts_path = File.expand_path "../fixtures/fonts", File.dirname(__FILE__)
183
186
  base64_string = File.read(File.join(Compass.configuration.fonts_path, "bgrove.base64.txt")).chomp
184
187
  assert_equal "url('data:font/truetype;base64,#{base64_string}') format('truetype')", evaluate("inline_font_files('bgrove.ttf', truetype)")
188
+
189
+ # without specifying the format
190
+ assert_equal "url('data:font/truetype;base64,#{base64_string}') format('truetype')", evaluate("inline_font_files('bgrove.ttf')")
191
+ end
192
+
193
+ def test_font_formats
194
+ assert_equal "woff, truetype, svg, embedded-opentype", evaluate("font-formats('/font/name.woff', woff, '/fonts/name.ttf', '/fonts/name.svg#fontpath', unquote('/fonts/name.eot'))")
185
195
  end
186
196
 
187
197
 
@@ -112,6 +112,30 @@ class SpriteMapTest < Test::Unit::TestCase
112
112
  FileUtils.rm_rf other_folder
113
113
  end
114
114
 
115
+ test "should get correct relative_name for directories with similar names" do
116
+ Compass.reset_configuration!
117
+ uri = 'foo/*.png'
118
+ other_folder = File.join(@images_tmp_path, '../other-temp')
119
+ other_folder2 = File.join(@images_tmp_path, '../other-temp2')
120
+
121
+ FileUtils.mkdir_p other_folder
122
+ FileUtils.mkdir_p other_folder2
123
+
124
+ FileUtils.mkdir_p File.join(other_folder2, 'foo')
125
+ %w(my bar).each do |file|
126
+ FileUtils.touch(File.join(other_folder2, "foo/#{file}.png"))
127
+ end
128
+
129
+ config = Compass::Configuration::Data.new('config')
130
+ config.images_path = @images_tmp_path
131
+ config.sprite_load_path = [@images_tmp_path, other_folder, other_folder2]
132
+ Compass.add_configuration(config, "sprite_config")
133
+
134
+ assert_equal 'foo/my.png', Compass::SassExtensions::Sprites::SpriteMap.relative_name(File.join(other_folder2, 'foo/my.png'))
135
+ FileUtils.rm_rf other_folder
136
+ FileUtils.rm_rf other_folder2
137
+ end
138
+
115
139
  test "should create map for nested" do
116
140
  base = Compass::SassExtensions::Sprites::SpriteMap.from_uri OpenStruct.new(:value => 'nested/squares/*.png'), @base.instance_variable_get(:@evaluation_context), @options
117
141
  assert_equal 'squares', base.name
metadata CHANGED
@@ -1,9 +1,17 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: compass
3
- version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.13
3
+ version: !ruby/object:Gem::Version
4
+ hash: -3948577904
5
+ prerelease: 6
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ - alpha
11
+ - 14
12
+ version: 1.0.0.alpha.14
5
13
  platform: ruby
6
- authors:
14
+ authors:
7
15
  - Chris Eppstein
8
16
  - Scott Davis
9
17
  - Eric A. Meyer
@@ -13,86 +21,99 @@ authors:
13
21
  autorequire:
14
22
  bindir: bin
15
23
  cert_chain: []
16
- date: 2013-11-27 00:00:00.000000000 Z
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
19
- name: sass
20
- requirement: !ruby/object:Gem::Requirement
21
- requirements:
24
+
25
+ date: 2013-12-05 00:00:00 Z
26
+ dependencies:
27
+ - !ruby/object:Gem::Dependency
28
+ version_requirements: &id001 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
22
31
  - - ~>
23
- - !ruby/object:Gem::Version
32
+ - !ruby/object:Gem::Version
33
+ hash: -40263692
34
+ segments:
35
+ - 3
36
+ - 3
37
+ - 0
38
+ - rc
39
+ - 1
24
40
  version: 3.3.0.rc.1
25
- type: :runtime
41
+ name: sass
26
42
  prerelease: false
27
- version_requirements: !ruby/object:Gem::Requirement
28
- requirements:
43
+ type: :runtime
44
+ requirement: *id001
45
+ - !ruby/object:Gem::Dependency
46
+ version_requirements: &id002 !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
29
49
  - - ~>
30
- - !ruby/object:Gem::Version
31
- version: 3.3.0.rc.1
32
- - !ruby/object:Gem::Dependency
50
+ - !ruby/object:Gem::Version
51
+ hash: -3948577904
52
+ segments:
53
+ - 1
54
+ - 0
55
+ - 0
56
+ - alpha
57
+ - 14
58
+ version: 1.0.0.alpha.14
33
59
  name: compass-core
34
- requirement: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - ~>
37
- - !ruby/object:Gem::Version
38
- version: 1.0.0.alpha.13
39
- type: :runtime
40
60
  prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- requirements:
61
+ type: :runtime
62
+ requirement: *id002
63
+ - !ruby/object:Gem::Dependency
64
+ version_requirements: &id003 !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
43
67
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 1.0.0.alpha.13
46
- - !ruby/object:Gem::Dependency
68
+ - !ruby/object:Gem::Version
69
+ hash: 11
70
+ segments:
71
+ - 1
72
+ - 2
73
+ version: "1.2"
47
74
  name: chunky_png
48
- requirement: !ruby/object:Gem::Requirement
49
- requirements:
50
- - - ~>
51
- - !ruby/object:Gem::Version
52
- version: '1.2'
53
- type: :runtime
54
75
  prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- version: '1.2'
60
- - !ruby/object:Gem::Dependency
61
- name: listen
62
- requirement: !ruby/object:Gem::Requirement
63
- requirements:
64
- - - ~>
65
- - !ruby/object:Gem::Version
66
- version: 1.1.0
67
76
  type: :runtime
68
- prerelease: false
69
- version_requirements: !ruby/object:Gem::Requirement
70
- requirements:
77
+ requirement: *id003
78
+ - !ruby/object:Gem::Dependency
79
+ version_requirements: &id004 !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
71
82
  - - ~>
72
- - !ruby/object:Gem::Version
83
+ - !ruby/object:Gem::Version
84
+ hash: 19
85
+ segments:
86
+ - 1
87
+ - 1
88
+ - 0
73
89
  version: 1.1.0
74
- - !ruby/object:Gem::Dependency
75
- name: json
76
- requirement: !ruby/object:Gem::Requirement
77
- requirements:
78
- - - '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
90
+ name: listen
91
+ prerelease: false
81
92
  type: :runtime
93
+ requirement: *id004
94
+ - !ruby/object:Gem::Dependency
95
+ version_requirements: &id005 !ruby/object:Gem::Requirement
96
+ none: false
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ hash: 3
101
+ segments:
102
+ - 0
103
+ version: "0"
104
+ name: json
82
105
  prerelease: false
83
- version_requirements: !ruby/object:Gem::Requirement
84
- requirements:
85
- - - '>='
86
- - !ruby/object:Gem::Version
87
- version: '0'
88
- description: Compass is a Sass-based Stylesheet Framework that streamlines the creation
89
- and maintenance of CSS.
106
+ type: :runtime
107
+ requirement: *id005
108
+ description: Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintenance of CSS.
90
109
  email: chris@eppsteins.net
91
- executables:
110
+ executables:
92
111
  - compass
93
112
  extensions: []
113
+
94
114
  extra_rdoc_files: []
95
- files:
115
+
116
+ files:
96
117
  - LICENSE.markdown
97
118
  - VERSION
98
119
  - Rakefile
@@ -607,8 +628,6 @@ files:
607
628
  - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/print.css
608
629
  - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/screen.css
609
630
  - test/fixtures/stylesheets/valid/config.rb
610
- - test/fixtures/stylesheets/valid/css/another_simple.css
611
- - test/fixtures/stylesheets/valid/css/simple.css
612
631
  - test/fixtures/stylesheets/valid/sass/another_simple.scss
613
632
  - test/fixtures/stylesheets/valid/sass/simple.sass
614
633
  - test/helpers/command_line.rb
@@ -623,6 +642,7 @@ files:
623
642
  - test/units/caniuse_test.rb
624
643
  - test/units/command_line_test.rb
625
644
  - test/units/compass_module_test.rb
645
+ - test/units/compass_util_test.rb
626
646
  - test/units/compiler_test.rb
627
647
  - test/units/configuration_test.rb
628
648
  - test/units/regressions_test.rb
@@ -646,29 +666,40 @@ files:
646
666
  - features/step_definitions/extension_steps.rb
647
667
  homepage: http://compass-style.org
648
668
  licenses: []
649
- metadata: {}
650
- post_install_message: |2
651
- Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!
669
+
670
+ post_install_message: " Compass is charityware. If you love it, please donate on our behalf at http://umdf.org/compass Thanks!\n"
652
671
  rdoc_options: []
653
- require_paths:
672
+
673
+ require_paths:
654
674
  - lib
655
- required_ruby_version: !ruby/object:Gem::Requirement
656
- requirements:
657
- - - '>='
658
- - !ruby/object:Gem::Version
659
- version: '0'
660
- required_rubygems_version: !ruby/object:Gem::Requirement
661
- requirements:
662
- - - '>'
663
- - !ruby/object:Gem::Version
675
+ required_ruby_version: !ruby/object:Gem::Requirement
676
+ none: false
677
+ requirements:
678
+ - - ">="
679
+ - !ruby/object:Gem::Version
680
+ hash: 3
681
+ segments:
682
+ - 0
683
+ version: "0"
684
+ required_rubygems_version: !ruby/object:Gem::Requirement
685
+ none: false
686
+ requirements:
687
+ - - ">"
688
+ - !ruby/object:Gem::Version
689
+ hash: 25
690
+ segments:
691
+ - 1
692
+ - 3
693
+ - 1
664
694
  version: 1.3.1
665
695
  requirements: []
696
+
666
697
  rubyforge_project:
667
- rubygems_version: 2.0.3
698
+ rubygems_version: 1.8.15
668
699
  signing_key:
669
- specification_version: 4
700
+ specification_version: 3
670
701
  summary: A Real Stylesheet Framework
671
- test_files:
702
+ test_files:
672
703
  - test/fixtures/extensions/only_stylesheets/compass_init.rb
673
704
  - test/fixtures/extensions/only_stylesheets/scss/only_stylesheets/foo.scss
674
705
  - test/fixtures/fonts/bgrove.base64.txt
@@ -1095,8 +1126,6 @@ test_files:
1095
1126
  - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/print.css
1096
1127
  - test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/screen.css
1097
1128
  - test/fixtures/stylesheets/valid/config.rb
1098
- - test/fixtures/stylesheets/valid/css/another_simple.css
1099
- - test/fixtures/stylesheets/valid/css/simple.css
1100
1129
  - test/fixtures/stylesheets/valid/sass/another_simple.scss
1101
1130
  - test/fixtures/stylesheets/valid/sass/simple.sass
1102
1131
  - test/helpers/command_line.rb
@@ -1111,6 +1140,7 @@ test_files:
1111
1140
  - test/units/caniuse_test.rb
1112
1141
  - test/units/command_line_test.rb
1113
1142
  - test/units/compass_module_test.rb
1143
+ - test/units/compass_util_test.rb
1114
1144
  - test/units/compiler_test.rb
1115
1145
  - test/units/configuration_test.rb
1116
1146
  - test/units/regressions_test.rb
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 04e3c18f1ded719f3aded13bbaed40ddcd3bc8b6
4
- data.tar.gz: 00585ad11c78af8c0803595ee36dd47b3de97051
5
- SHA512:
6
- metadata.gz: d1bbc7020fc15db67f7bba0788ddb790403ee7e70f2fa349632196e2b0a7ee9984a8f21f7ea0ad058e99da9381a5e9b2e8ddda77b84ee1e337d6d2a3d50bf530
7
- data.tar.gz: 469768af9e50b6142e1c29f6776887941d1a4373ed8bdd9008e5fdd5e591cc0e46077cd950bd8b0a6c978af459309e1ac6bcc7e1916d738782d4f439de52ae46
@@ -1,4 +0,0 @@
1
- /* line 1, ../sass/another_simple.scss */
2
- .another-simple-class {
3
- color: blue;
4
- }
@@ -1,4 +0,0 @@
1
- /* line 1, ../sass/simple.sass */
2
- div {
3
- color: red;
4
- }