haml-edge 2.1.5 → 2.1.6

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 (4) hide show
  1. data/EDGE_GEM_VERSION +1 -1
  2. data/VERSION +1 -1
  3. data/lib/sass/css.rb +0 -55
  4. metadata +1 -1
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.5
1
+ 2.1.6
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.5
1
+ 2.1.6
data/lib/sass/css.rb CHANGED
@@ -42,61 +42,6 @@ module Sass
42
42
  end
43
43
  end
44
44
 
45
- # This class is based on the Ruby 1.9 ordered hashes.
46
- # It keeps the semantics and most of the efficiency of normal hashes
47
- # while also keeping track of the order in which elements were set.
48
- class OrderedHash
49
- Node = Struct.new(:key, :value, :next, :prev)
50
- include Enumerable
51
-
52
- def initialize
53
- @hash = {}
54
- end
55
-
56
- def initialize_copy(other)
57
- @hash = other.instance_variable_get('@hash').clone
58
- end
59
-
60
- def [](key)
61
- @hash[key] && @hash[key].value
62
- end
63
-
64
- def []=(key, value)
65
- node = Node.new(key, value)
66
-
67
- if old = @hash[key]
68
- if old.prev
69
- old.prev.next = old.next
70
- else # old is @first and @last
71
- @first = @last = nil
72
- end
73
- end
74
-
75
- if @first.nil?
76
- @first = @last = node
77
- else
78
- node.prev = @last
79
- @last.next = node
80
- @last = node
81
- end
82
-
83
- @hash[key] = node
84
- value
85
- end
86
-
87
- def each
88
- return unless @first
89
- yield [@first.key, @first.value]
90
- node = @first
91
- yield [node.key, node.value] while node = node.next
92
- self
93
- end
94
-
95
- def values
96
- self.map { |k, v| v }
97
- end
98
- end
99
-
100
45
  # :startdoc:
101
46
 
102
47
  # This class contains the functionality used in the +css2sass+ utility,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.5
4
+ version: 2.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum