compass 0.12.rc.1 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. data/VERSION.yml +1 -2
  2. data/bin/compass.compiled.rbc +707 -0
  3. data/examples/compass/images/emblem-a043c4f148.png +0 -0
  4. data/examples/compass/images/flag-03c3b29b35.png +0 -0
  5. data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
  6. data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
  7. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
  8. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf +0 -0
  9. data/features/command_line.feature +14 -15
  10. data/frameworks/compass/stylesheets/compass/_css3.scss +1 -2
  11. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +4 -4
  12. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +59 -38
  13. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +3 -5
  14. data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +12 -4
  15. data/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
  16. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +1 -1
  17. data/lib/compass.rb +2 -0
  18. data/lib/compass.rbc +796 -0
  19. data/lib/compass/actions.rbc +2736 -0
  20. data/lib/compass/app_integration.rbc +836 -0
  21. data/lib/compass/app_integration/merb.rbc +106 -0
  22. data/lib/compass/app_integration/rails.rbc +2096 -0
  23. data/lib/compass/app_integration/rails/configuration_defaults.rbc +2430 -0
  24. data/lib/compass/app_integration/rails/installer.rbc +3677 -0
  25. data/lib/compass/app_integration/stand_alone.rbc +589 -0
  26. data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +721 -0
  27. data/lib/compass/app_integration/stand_alone/installer.rbc +1487 -0
  28. data/lib/compass/browser_support.rbc +1144 -0
  29. data/lib/compass/commands.rbc +307 -0
  30. data/lib/compass/commands/base.rbc +1044 -0
  31. data/lib/compass/commands/clean_project.rbc +1856 -0
  32. data/lib/compass/commands/create_project.rbc +2691 -0
  33. data/lib/compass/commands/default.rbc +1677 -0
  34. data/lib/compass/commands/generate_grid_background.rbc +1939 -0
  35. data/lib/compass/commands/help.rbc +1921 -0
  36. data/lib/compass/commands/imports.rbc +969 -0
  37. data/lib/compass/commands/installer_command.rbc +807 -0
  38. data/lib/compass/commands/interactive.rbc +1341 -0
  39. data/lib/compass/commands/list_frameworks.rbc +1111 -0
  40. data/lib/compass/commands/print_version.rbc +2478 -0
  41. data/lib/compass/commands/project_base.rbc +2085 -0
  42. data/lib/compass/commands/project_stats.rb +28 -13
  43. data/lib/compass/commands/project_stats.rbc +4202 -0
  44. data/lib/compass/commands/registry.rbc +1350 -0
  45. data/lib/compass/commands/sprite.rbc +2212 -0
  46. data/lib/compass/commands/stamp_pattern.rbc +2011 -0
  47. data/lib/compass/commands/unpack_extension.rbc +2348 -0
  48. data/lib/compass/commands/update_project.rbc +3002 -0
  49. data/lib/compass/commands/validate_project.rbc +1686 -0
  50. data/lib/compass/commands/watch_project.rbc +4155 -0
  51. data/lib/compass/commands/write_configuration.rbc +2896 -0
  52. data/lib/compass/compiler.rb +3 -1
  53. data/lib/compass/compiler.rbc +4913 -0
  54. data/lib/compass/configuration.rbc +1398 -0
  55. data/lib/compass/configuration/adapters.rbc +2088 -0
  56. data/lib/compass/configuration/comments.rbc +843 -0
  57. data/lib/compass/configuration/data.rbc +2633 -0
  58. data/lib/compass/configuration/defaults.rbc +3617 -0
  59. data/lib/compass/configuration/file_data.rbc +643 -0
  60. data/lib/compass/configuration/helpers.rb +1 -4
  61. data/lib/compass/configuration/helpers.rbc +3500 -0
  62. data/lib/compass/configuration/inheritance.rbc +3592 -0
  63. data/lib/compass/configuration/paths.rbc +412 -0
  64. data/lib/compass/configuration/serialization.rbc +1996 -0
  65. data/lib/compass/dependencies.rbc +232 -0
  66. data/lib/compass/errors.rbc +176 -0
  67. data/lib/compass/exec.rbc +500 -0
  68. data/lib/compass/exec/command_option_parser.rbc +676 -0
  69. data/lib/compass/exec/global_options_parser.rbc +1306 -0
  70. data/lib/compass/exec/helpers.rbc +758 -0
  71. data/lib/compass/exec/project_options_parser.rbc +1515 -0
  72. data/lib/compass/exec/sub_command_ui.rbc +1191 -0
  73. data/lib/compass/frameworks.rbc +3640 -0
  74. data/lib/compass/grid_builder.rbc +0 -0
  75. data/lib/compass/installers.rbc +152 -0
  76. data/lib/compass/installers/bare_installer.rbc +939 -0
  77. data/lib/compass/installers/base.rbc +4427 -0
  78. data/lib/compass/installers/manifest.rb +1 -1
  79. data/lib/compass/installers/manifest.rbc +3335 -0
  80. data/lib/compass/installers/manifest_installer.rbc +1591 -0
  81. data/lib/compass/installers/template_context.rbc +1030 -0
  82. data/lib/compass/logger.rbc +2317 -0
  83. data/lib/compass/quick_cache.rbc +324 -0
  84. data/lib/compass/sass_extensions.rbc +213 -0
  85. data/lib/compass/sass_extensions/functions.rb +2 -2
  86. data/lib/compass/sass_extensions/functions.rbc +808 -0
  87. data/lib/compass/sass_extensions/functions/colors.rbc +1279 -0
  88. data/lib/compass/sass_extensions/functions/constants.rbc +1921 -0
  89. data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +1966 -0
  90. data/lib/compass/sass_extensions/functions/display.rbc +1227 -0
  91. data/lib/compass/sass_extensions/functions/enumerate.rbc +446 -0
  92. data/lib/compass/sass_extensions/functions/env.rbc +299 -0
  93. data/lib/compass/sass_extensions/functions/font_files.rbc +821 -0
  94. data/lib/compass/sass_extensions/functions/gradient_support.rb +18 -7
  95. data/lib/compass/sass_extensions/functions/gradient_support.rbc +14147 -0
  96. data/lib/compass/sass_extensions/functions/image_size.rbc +3152 -0
  97. data/lib/compass/sass_extensions/functions/inline_image.rb +3 -1
  98. data/lib/compass/sass_extensions/functions/inline_image.rbc +1678 -0
  99. data/lib/compass/sass_extensions/functions/lists.rbc +2601 -0
  100. data/lib/compass/sass_extensions/functions/math.rb +63 -0
  101. data/lib/compass/sass_extensions/functions/selectors.rbc +1592 -0
  102. data/lib/compass/sass_extensions/functions/sprites.rbc +3792 -0
  103. data/lib/compass/sass_extensions/functions/trig.rbc +811 -0
  104. data/lib/compass/sass_extensions/functions/urls.rbc +5248 -0
  105. data/lib/compass/sass_extensions/monkey_patches.rbc +134 -0
  106. data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +2169 -0
  107. data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +660 -0
  108. data/lib/compass/sass_extensions/sprites.rbc +363 -0
  109. data/lib/compass/sass_extensions/sprites/base.rbc +4529 -0
  110. data/lib/compass/sass_extensions/sprites/engines.rbc +662 -0
  111. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +1074 -0
  112. data/lib/compass/sass_extensions/sprites/image.rbc +2961 -0
  113. data/lib/compass/sass_extensions/sprites/image_methods.rbc +900 -0
  114. data/lib/compass/sass_extensions/sprites/image_row.rbc +1168 -0
  115. data/lib/compass/sass_extensions/sprites/layout_methods.rbc +3236 -0
  116. data/lib/compass/sass_extensions/sprites/row_fitter.rbc +2067 -0
  117. data/lib/compass/sass_extensions/sprites/sprite_map.rbc +1991 -0
  118. data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +3190 -0
  119. data/lib/compass/sass_extensions/sprites/sprites.rbc +1573 -0
  120. data/lib/compass/sprite_importer.rbc +3573 -0
  121. data/lib/compass/stats.rb +5 -0
  122. data/lib/compass/util.rbc +552 -0
  123. data/lib/compass/version.rbc +1245 -0
  124. data/test/fixtures/stylesheets/compass/css/background-clip.css +1 -1
  125. data/test/fixtures/stylesheets/compass/css/gradients.css +19 -369
  126. data/test/fixtures/stylesheets/compass/css/transition.css +44 -1
  127. data/test/fixtures/stylesheets/compass/css/utilities.css +1 -1
  128. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +1 -1
  129. data/test/fixtures/stylesheets/compass/sass/gradients.sass +8 -143
  130. data/test/fixtures/stylesheets/compass/sass/transition.scss +7 -1
  131. data/test/helpers/command_line.rbc +2820 -0
  132. data/test/helpers/diff.rbc +1104 -0
  133. data/test/helpers/io.rbc +962 -0
  134. data/test/helpers/rails.rbc +1116 -0
  135. data/test/helpers/test_case.rbc +1255 -0
  136. data/test/integrations/compass_test.rbc +6589 -0
  137. data/test/integrations/rails_integration_test.rbc +1342 -0
  138. data/test/integrations/sprites_test.rb +4 -4
  139. data/test/integrations/sprites_test.rbc +6192 -0
  140. data/test/test_helper.rbc +1694 -0
  141. data/test/units/actions_test.rbc +644 -0
  142. data/test/units/command_line_test.rbc +1532 -0
  143. data/test/units/compass_module_test.rb +36 -0
  144. data/test/units/compass_png_test.rbc +0 -0
  145. data/test/units/configuration_test.rbc +3833 -0
  146. data/test/units/rails_configuration_test.rbc +1032 -0
  147. data/test/units/sass_extensions_test.rb +13 -1
  148. data/test/units/sass_extensions_test.rbc +3586 -0
  149. data/test/units/sprites/engine_test.rbc +962 -0
  150. data/test/units/sprites/image_row_test.rbc +1578 -0
  151. data/test/units/sprites/image_test.rbc +2836 -0
  152. data/test/units/sprites/importer_test.rb +1 -1
  153. data/test/units/sprites/importer_test.rbc +2620 -0
  154. data/test/units/sprites/row_fitter_test.rbc +1479 -0
  155. data/test/units/sprites/sprite_command_test.rbc +1147 -0
  156. data/test/units/sprites/sprite_map_test.rbc +6515 -0
  157. metadata +161 -15
  158. data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +0 -99
  159. data/lib/compass/sass_extensions/functions/trig.rb +0 -28
@@ -1,28 +0,0 @@
1
- module Compass::SassExtensions::Functions::Trig
2
-
3
- def pi()
4
- Sass::Script::Number.new(Math::PI)
5
- end
6
-
7
- def sin(number)
8
- trig(:sin, number)
9
- end
10
-
11
- def cos(number)
12
- trig(:cos, number)
13
- end
14
-
15
- def tan(number)
16
- trig(:tan, number)
17
- end
18
-
19
- private
20
- def trig(operation, number)
21
- if number.numerator_units == ["deg"] && number.denominator_units == []
22
- Sass::Script::Number.new(Math.send(operation, Math::PI * number.value / 180))
23
- else
24
- Sass::Script::Number.new(Math.send(operation, number.value), number.numerator_units, number.denominator_units)
25
- end
26
- end
27
-
28
- end