running 0.0.4 → 0.0.5

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 (3) hide show
  1. data/lib/running.rb +15 -7
  2. data/running.gemspec +1 -1
  3. 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 < "1.9"
11
+ ruby? && RUBY_VERSION =~ /^1.8/
12
12
  end
13
13
 
14
14
  def ruby_19?
15
- ruby? && RUBY_VERSION >= "1.9"
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 < "1.9"
27
+ mri? && RUBY_VERSION =~ /^1.8/
24
28
  end
25
29
 
26
30
  def mri_19?
27
- mri? && RUBY_VERSION >= "1.9"
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 < "1.9"
55
+ mingw? && RUBY_VERSION =~ /^1.8/
52
56
  end
53
57
 
54
58
  def mingw_19?
55
- mingw? && RUBY_VERSION >= "1.9"
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'running'
3
- s.version = '0.0.4'
3
+ s.version = '0.0.5'
4
4
  s.authors = ['Kyle Drake']
5
5
  s.email = ['kyledrake@gmail.com']
6
6
  s.homepage = 'http://github.com/kyledrake/running'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: running
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: