haml-edge 2.3.186 → 2.3.187

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/EDGE_GEM_VERSION +1 -1
  2. data/VERSION +1 -1
  3. data/lib/haml/exec.rb +94 -18
  4. data/lib/haml/helpers.rb +3 -1
  5. data/lib/sass/engine.rb +1 -1
  6. data/lib/sass/script/bool.rb +1 -1
  7. data/lib/sass/script/color.rb +1 -1
  8. data/lib/sass/script/funcall.rb +2 -2
  9. data/lib/sass/script/interpolation.rb +5 -5
  10. data/lib/sass/script/literal.rb +1 -1
  11. data/lib/sass/script/node.rb +10 -1
  12. data/lib/sass/script/number.rb +1 -1
  13. data/lib/sass/script/operation.rb +5 -5
  14. data/lib/sass/script/string.rb +12 -5
  15. data/lib/sass/script/unary_operation.rb +3 -3
  16. data/lib/sass/script/variable.rb +2 -2
  17. data/lib/sass/scss/css_parser.rb +1 -0
  18. data/lib/sass/scss/parser.rb +45 -25
  19. data/lib/sass/scss/rx.rb +1 -0
  20. data/lib/sass/tree/for_node.rb +1 -1
  21. data/lib/sass/tree/if_node.rb +1 -1
  22. data/lib/sass/tree/mixin_def_node.rb +3 -3
  23. data/lib/sass/tree/mixin_node.rb +2 -2
  24. data/lib/sass/tree/node.rb +8 -0
  25. data/lib/sass/tree/prop_node.rb +17 -16
  26. data/lib/sass/tree/rule_node.rb +2 -2
  27. data/lib/sass/tree/variable_node.rb +1 -1
  28. data/lib/sass/tree/while_node.rb +1 -1
  29. data/test/sass/conversion_test.rb +47 -0
  30. data/test/sass/scss/css_test.rb +3 -3
  31. data/test/sass/scss/scss_test.rb +40 -0
  32. metadata +2 -37
  33. data/test/haml/spec/README.md +0 -97
  34. data/test/haml/spec/lua_haml_spec.lua +0 -30
  35. data/test/haml/spec/ruby_haml_test.rb +0 -19
  36. data/test/haml/spec/tests.json +0 -534
  37. data/vendor/fssm/LICENSE +0 -20
  38. data/vendor/fssm/README.markdown +0 -55
  39. data/vendor/fssm/Rakefile +0 -59
  40. data/vendor/fssm/VERSION.yml +0 -5
  41. data/vendor/fssm/example.rb +0 -9
  42. data/vendor/fssm/fssm.gemspec +0 -77
  43. data/vendor/fssm/lib/fssm/backends/fsevents.rb +0 -36
  44. data/vendor/fssm/lib/fssm/backends/inotify.rb +0 -26
  45. data/vendor/fssm/lib/fssm/backends/polling.rb +0 -25
  46. data/vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb +0 -131
  47. data/vendor/fssm/lib/fssm/monitor.rb +0 -26
  48. data/vendor/fssm/lib/fssm/path.rb +0 -91
  49. data/vendor/fssm/lib/fssm/pathname.rb +0 -502
  50. data/vendor/fssm/lib/fssm/state/directory.rb +0 -57
  51. data/vendor/fssm/lib/fssm/state/file.rb +0 -24
  52. data/vendor/fssm/lib/fssm/support.rb +0 -63
  53. data/vendor/fssm/lib/fssm/tree.rb +0 -176
  54. data/vendor/fssm/lib/fssm.rb +0 -33
  55. data/vendor/fssm/profile/prof-cache.rb +0 -40
  56. data/vendor/fssm/profile/prof-fssm-pathname.html +0 -1231
  57. data/vendor/fssm/profile/prof-pathname.rb +0 -68
  58. data/vendor/fssm/profile/prof-plain-pathname.html +0 -988
  59. data/vendor/fssm/profile/prof.html +0 -2379
  60. data/vendor/fssm/spec/path_spec.rb +0 -75
  61. data/vendor/fssm/spec/root/duck/quack.txt +0 -0
  62. data/vendor/fssm/spec/root/file.css +0 -0
  63. data/vendor/fssm/spec/root/file.rb +0 -0
  64. data/vendor/fssm/spec/root/file.yml +0 -0
  65. data/vendor/fssm/spec/root/moo/cow.txt +0 -0
  66. data/vendor/fssm/spec/spec_helper.rb +0 -14
@@ -1,75 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe "The File System State Monitor" do
4
- describe "paths" do
5
- it "should accept a valid filesystem directory" do
6
- lambda {FSSM::Path.new("#{@watch_root}")}.should_not raise_error
7
- end
8
-
9
- it "should not accept an invalid filesystem directory" do
10
- lambda {FSSM::Path.new('/does/not/exist/kthxbye')}.should raise_error
11
- end
12
-
13
- it "should default the path to the current directory" do
14
- path = FSSM::Path.new
15
- here = Pathname.new('.').realpath
16
-
17
- "#{here}".should == "#{path}"
18
- end
19
-
20
- it "should accept an optional glob array parameter" do
21
- path = FSSM::Path.new('.', ['**/*.yml'])
22
- path.glob.should == ['**/*.yml']
23
- end
24
-
25
- it "should accept an optional glob string parameter" do
26
- path = FSSM::Path.new('.', '**/*.yml')
27
- path.glob.should == ['**/*.yml']
28
- end
29
-
30
- it "should default the glob to ['**/*']" do
31
- path = FSSM::Path.new
32
- path.glob.should == ['**/*']
33
- end
34
-
35
- it "should accept a callback for update events" do
36
- path = FSSM::Path.new
37
- callback = lambda {|base, relative| return true}
38
- path.update(callback)
39
- (path.update).should == callback
40
- end
41
-
42
- it "should accept a callback for delete events" do
43
- path = FSSM::Path.new
44
- callback = lambda {|base, relative| return true}
45
- path.delete(callback)
46
- (path.delete).should == callback
47
- end
48
-
49
- it "should accept a callback for create events" do
50
- path = FSSM::Path.new
51
- callback = lambda {|base, relative| return true}
52
- path.create(callback)
53
- (path.create).should == callback
54
- end
55
-
56
- it "should accept a configuration block" do
57
- path = FSSM::Path.new "#{@watch_root}" do
58
- glob '**/*.yml'
59
- update {|base, relative| 'success'}
60
- delete {|base, relative| 'success'}
61
- create {|base, relative| 'success'}
62
- end
63
-
64
- "#{path}".should == "#{@watch_root}"
65
- path.glob.should == ['**/*.yml']
66
- path.update.should be_a_kind_of(Proc)
67
- path.delete.should be_a_kind_of(Proc)
68
- path.create.should be_a_kind_of(Proc)
69
- path.update.call('', '').should == 'success'
70
- path.delete.call('', '').should == 'success'
71
- path.create.call('', '').should == 'success'
72
- end
73
-
74
- end
75
- end
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,14 +0,0 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
-
4
- require 'pathname'
5
- require 'fssm'
6
-
7
- require 'spec'
8
- require 'spec/autorun'
9
-
10
- Spec::Runner.configure do |config|
11
- config.before :all do
12
- @watch_root = Pathname.new(__FILE__).dirname.join('root').expand_path
13
- end
14
- end