running 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/running.rb +15 -7
- data/running.gemspec +1 -1
- metadata +1 -1
data/lib/running.rb
CHANGED
@@ -8,11 +8,15 @@ module Running
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def ruby_18?
|
11
|
-
ruby? && RUBY_VERSION
|
11
|
+
ruby? && RUBY_VERSION =~ /^1.8/
|
12
12
|
end
|
13
13
|
|
14
14
|
def ruby_19?
|
15
|
-
ruby? && RUBY_VERSION
|
15
|
+
ruby? && RUBY_VERSION =~ /^1.9/
|
16
|
+
end
|
17
|
+
|
18
|
+
def ruby_20?
|
19
|
+
ruby? && RUBY_VERSION =~ /^2.0/
|
16
20
|
end
|
17
21
|
|
18
22
|
def mri?
|
@@ -20,11 +24,11 @@ module Running
|
|
20
24
|
end
|
21
25
|
|
22
26
|
def mri_18?
|
23
|
-
mri? && RUBY_VERSION
|
27
|
+
mri? && RUBY_VERSION =~ /^1.8/
|
24
28
|
end
|
25
29
|
|
26
30
|
def mri_19?
|
27
|
-
mri? && RUBY_VERSION
|
31
|
+
mri? && RUBY_VERSION =~ /^1.9/
|
28
32
|
end
|
29
33
|
|
30
34
|
def rbx?
|
@@ -48,13 +52,17 @@ module Running
|
|
48
52
|
end
|
49
53
|
|
50
54
|
def mingw_18?
|
51
|
-
mingw? && RUBY_VERSION
|
55
|
+
mingw? && RUBY_VERSION =~ /^1.8/
|
52
56
|
end
|
53
57
|
|
54
58
|
def mingw_19?
|
55
|
-
mingw? && RUBY_VERSION
|
59
|
+
mingw? && RUBY_VERSION =~ /^1.9/
|
56
60
|
end
|
57
|
-
|
61
|
+
|
62
|
+
def mingw_20?
|
63
|
+
mingw? && RUBY_VERSION =~ /^2.0/
|
64
|
+
end
|
65
|
+
|
58
66
|
def from_the_police?
|
59
67
|
true
|
60
68
|
end
|
data/running.gemspec
CHANGED