zen-grids 2.0.0.beta.2 → 2.0.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/zen-grids.rb +1 -1
  4. data/{_zen-grids.scss → stylesheets/_zen-grids.scss} +0 -0
  5. data/{zen-grids → stylesheets/zen-grids}/_background.scss +5 -3
  6. data/{zen-grids → stylesheets/zen-grids}/_flow.scss +1 -1
  7. data/{zen-grids → stylesheets/zen-grids}/_functions.scss +2 -2
  8. data/{zen-grids → stylesheets/zen-grids}/_grids.scss +13 -10
  9. data/stylesheets/zen-grids/_undo.scss +156 -0
  10. data/{zen-grids → stylesheets/zen-grids}/_variables.scss +0 -0
  11. data/{zen-grids → stylesheets/zen-grids}/internal/_functions-compass-polyfill.scss +2 -25
  12. data/{zen-grids → stylesheets/zen-grids}/internal/_variables-background.scss +0 -0
  13. data/zen-grids.gemspec +18 -13
  14. metadata +17 -48
  15. data/.travis.yml +0 -13
  16. data/bower.json +0 -27
  17. data/sache.json +0 -5
  18. data/tests/Gemfile +0 -11
  19. data/tests/README.md +0 -16
  20. data/tests/Rakefile +0 -25
  21. data/tests/config.rb +0 -22
  22. data/tests/controls/compass-compatibility.css +0 -112
  23. data/tests/controls/function-zen-direction-switch.css +0 -16
  24. data/tests/controls/function-zen-grid-item-width.css +0 -26
  25. data/tests/controls/function-zen-half-gutter.css +0 -24
  26. data/tests/controls/function-zen-unit-width.css +0 -22
  27. data/tests/controls/zen-float.css +0 -16
  28. data/tests/controls/zen-flow-item-width.css +0 -131
  29. data/tests/controls/zen-grid-background.css +0 -52
  30. data/tests/controls/zen-grid-container.css +0 -94
  31. data/tests/controls/zen-grid-item-base.css +0 -76
  32. data/tests/controls/zen-grid-item.css +0 -81
  33. data/tests/controls/zen-new-row.css +0 -16
  34. data/tests/tests/compass-compatibility.scss +0 -55
  35. data/tests/tests/function-zen-direction-switch.scss +0 -24
  36. data/tests/tests/function-zen-grid-item-width.scss +0 -44
  37. data/tests/tests/function-zen-half-gutter.scss +0 -37
  38. data/tests/tests/function-zen-unit-width.scss +0 -44
  39. data/tests/tests/zen-float.scss +0 -26
  40. data/tests/tests/zen-flow-item-width.scss +0 -85
  41. data/tests/tests/zen-grid-background.scss +0 -85
  42. data/tests/tests/zen-grid-container.scss +0 -49
  43. data/tests/tests/zen-grid-item-base.scss +0 -65
  44. data/tests/tests/zen-grid-item.scss +0 -101
  45. data/tests/tests/zen-new-row.scss +0 -26
  46. data/tests/unit_tests.rb +0 -57
@@ -1,26 +0,0 @@
1
- /**
2
- * @file
3
- * Test zen-new-row()
4
- */
5
-
6
- @import "zen-grids";
7
-
8
- #test-zen-new-row {
9
- /* Test zen-new-row() */
10
- @include zen-new-row();
11
-
12
- /* Test zen-new-row() with $zen-direction: right */
13
- $zen-direction: right !global;
14
- @include zen-new-row();
15
- $zen-direction: left !global;
16
-
17
- /* Test zen-new-row(left) */
18
- @include zen-new-row(left);
19
-
20
- /* Test zen-new-row(left, $switch-direction: TRUE) */
21
- @include zen-new-row(left, $switch-direction: TRUE);
22
-
23
- /* Test zen-new-row(left) with: $zen-switch-direction: TRUE; */
24
- $zen-switch-direction: TRUE !global;
25
- @include zen-new-row(left);
26
- }
data/tests/unit_tests.rb DELETED
@@ -1,57 +0,0 @@
1
- # Navigator | Copyright 2013 Team Sass | MIT License | https://github.com/Team-Sass/navigator
2
-
3
- require 'compass'
4
- require 'compass/exec'
5
- require 'test/unit'
6
- require 'diffy'
7
- require 'colorize'
8
- require 'pathname'
9
-
10
- class TestCompassOutput < Test::Unit::TestCase
11
-
12
- Compass.add_configuration 'config.rb'
13
- Compass.configuration.project_path = Dir.pwd
14
-
15
- # Remove all current Diff files
16
- Dir.glob("#{Dir.pwd}/output/**/*.css.diff").each { |f| File.delete(f) }
17
-
18
- Compass.compiler.sass_files.each do |sass_file|
19
- test_name = File.basename(sass_file, '.*')
20
-
21
- define_method "test_#{test_name}_compile " do
22
- # Compiled CSS file path
23
- test_file_pwd = Compass.compiler.corresponding_css_file(sass_file)
24
-
25
- # Relative path of compiled CSS file from Tests directory
26
- relative_pwd = Pathname.new(test_file_pwd).relative_path_from(Pathname.new("#{Dir.pwd}/output")).to_s
27
-
28
- # Control files path
29
- control_file_pwd = "#{Dir.pwd}/controls/" + relative_pwd
30
-
31
- # The base path of the sub folders, making the folders if needed
32
- base_pwd = relative_pwd.sub(File.basename(relative_pwd), '')
33
- FileUtils.mkdir_p "#{Dir.pwd}/output/#{base_pwd}"
34
-
35
- # Compiles Sass file
36
- Compass.compiler.compile sass_file, test_file_pwd # Raises exception upon error
37
-
38
- begin
39
- # Assert that our test output matches our control output
40
- passed = assert FileUtils.compare_file(test_file_pwd, control_file_pwd), "Compiled output for #{File.basename(sass_file)} does not match control output!".red
41
- ensure
42
- # If there is a failure, generate a diff of the files and put it with the compiled file
43
- if !passed
44
- test_file = File.open(test_file_pwd).read;
45
- control_file = File.open(control_file_pwd).read;
46
- diff_pwd = "#{Dir.pwd}/output/#{relative_pwd}.diff"
47
- diff_content = Diffy::Diff.new(control_file, test_file, :include_diff_info => true)
48
-
49
- File.open(diff_pwd, 'w') { |f| f.write(diff_content.to_s(:text)) }
50
-
51
- puts "Control->Compiled diff output to ".yellow + " tests/output/#{relative_pwd}.diff ".colorize( :color => :blue, :background => :black)
52
- end
53
- end
54
- end
55
- end
56
- end
57
-