haml-edge 2.3.181 → 2.3.182
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/Rakefile +1 -0
- data/VERSION +1 -1
- data/lib/haml/version.rb +25 -2
- data/lib/sass/script/parser.rb +1 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.182
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.3.
|
1
|
+
2.3.182
|
data/lib/haml/version.rb
CHANGED
@@ -23,11 +23,27 @@ module Haml
|
|
23
23
|
# :major => 2, :minor => 1, :teeny => 0
|
24
24
|
# }
|
25
25
|
#
|
26
|
+
# If a prerelease version of Haml is being used,
|
27
|
+
# the `:string` and `:number` fields will reflect the full version
|
28
|
+
# (e.g. `"2.2.beta.1"`), and the `:tiny` field will be `-1`.
|
29
|
+
# A `:prerelease` key will contain the name of the prerelease (e.g. `"beta"`),
|
30
|
+
# and a `:prerelease_number` key will contain the rerelease number.
|
31
|
+
# For example:
|
32
|
+
#
|
33
|
+
# {
|
34
|
+
# :string => "3.0.beta.1",
|
35
|
+
# :number => "3.0.beta.1",
|
36
|
+
# :major => 3, :minor => 0, :tiny => -1,
|
37
|
+
# :prerelease => "beta",
|
38
|
+
# :prerelease_number => 1
|
39
|
+
# }
|
40
|
+
#
|
26
41
|
# @return [{Symbol => String/Fixnum}] The version hash
|
27
42
|
def version
|
28
43
|
return @@version if defined?(@@version)
|
29
44
|
|
30
|
-
numbers = File.read(scope('VERSION')).strip.split('.').
|
45
|
+
numbers = File.read(scope('VERSION')).strip.split('.').
|
46
|
+
map {|n| n =~ /^[0-9]+$/ ? n.to_i : n}
|
31
47
|
name = File.read(scope('VERSION_NAME')).strip
|
32
48
|
@@version = {
|
33
49
|
:major => numbers[0],
|
@@ -35,7 +51,14 @@ module Haml
|
|
35
51
|
:teeny => numbers[2],
|
36
52
|
:name => name
|
37
53
|
}
|
38
|
-
|
54
|
+
|
55
|
+
if numbers[3].is_a?(String)
|
56
|
+
@@version[:teeny] = -1
|
57
|
+
@@version[:prerelease] = numbers[3]
|
58
|
+
@@version[:prerelease_number] = numbers[4]
|
59
|
+
end
|
60
|
+
|
61
|
+
@@version[:number] = numbers.join('.')
|
39
62
|
@@version[:string] = @@version[:number].dup
|
40
63
|
|
41
64
|
if rev = revision_number
|
data/lib/sass/script/parser.rb
CHANGED