ruby_version 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28fc2d64593515f00bd1b28cc8a90bdaa5b20115
4
- data.tar.gz: e6d65f11d0a70c1dc7fedbf09b148ee4d228167d
3
+ metadata.gz: f337975091999833b65c1006c8c3fddfe607cdd8
4
+ data.tar.gz: 22575d38a75b5ff6e41caa7085ed0e0c4f657364
5
5
  SHA512:
6
- metadata.gz: d1b5b65fb773ce9fca50972e0d489d50ac2616db9c4f51f8df138970ed20ca857b1effa9405c5ba748ca1676653182b9ea81a799db981c0334b96d69515da5bd
7
- data.tar.gz: c738f8e7936167f27f19185ef95e4cbc40411d35d3c6d0cf4190c4914f9b5b7e34579a5593a55e51ba19d317e8778dad381c6a13cfdfc85e25d4f0a64d2c18a2
6
+ metadata.gz: 1fc1f396adef6cc6c7feadf0a4506b0dda7a07e1b8239415e5fdc55e3b493c2bab16a15a4d875d9bf0ae10ca685b1baf0196f5e31d1e074d651de91fdaa4f5c8
7
+ data.tar.gz: e15947a112ff63bfb5db232c3fcf1ca66073d0a09f74142b0c89cdfe163a2d74fe303675dab8e8da31cd55d328bd436089893c47d639e810e7daf624a1321f29
data/.travis.yml CHANGED
@@ -1,15 +1,14 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - ruby-head
4
+ #- ruby-head (travis error)
5
5
  - 2.1.0
6
6
  - 2.0.0
7
7
  - 1.9.3
8
8
  - 1.9.2
9
9
  - 1.8.7
10
- - 1.8.6
11
10
  - ree
12
- - jruby-20mode
11
+ - jruby
13
12
  - jruby-19mode
14
13
  - jruby-18mode
15
14
  - rbx
data/ChangeLog.rdoc CHANGED
@@ -1,5 +1,7 @@
1
- === 1.0.0 / 2014-01-14
1
+ === 1.0.1 / 2014-01-15
2
+ * Fix VERSION constant
3
+ * Add RubyVersion.revision method
2
4
 
3
- * Add RubyVersion.revision
5
+ === 1.0.0 / 2014-01-14
4
6
  * Moved from zucker 13.1 gem into its own gem
5
7
 
data/README.rdoc CHANGED
@@ -14,25 +14,36 @@ In Ruby:
14
14
 
15
15
  == Usage
16
16
 
17
- # return RUBY_VERSION
18
- RubyVersion
19
- # check for the main version with a Float
20
- RubyVersion.is? 1.8
21
- # use strings for exacter checking
22
- RubyVersion.is.above '1.8.7'
23
- RubyVersion.is.at_least '1.8.7' # or exactly, below, at_most
24
- # you can use the common comparison operators
17
+ # Output RUBY_VERSION
18
+ RubyVersion.to_s
19
+
20
+ # Check for the main version with a Float
21
+ RubyVersion.is? 2.1
22
+
23
+ # Use strings for exacter checking
24
+ RubyVersion.is.above '1.9.2'
25
+ RubyVersion.is.at_least '2.0.0' # or exactly, below, at_most
26
+
27
+ # You can use the common comparison operators
25
28
  RubyVersion >= '1.8.7'
26
- RubyVersion.between? '1.8.6', '1.8.7'
27
- # relase date checks
29
+ RubyVersion.between? '1.8.7', '1.9.2'
30
+
31
+ # Relase date checks
28
32
  RubyVersion.is.older_than Date.today
29
33
  RubyVersion.is.newer_than '2009-08-19'
30
- # accessors
31
- RubyVersion.major # e.g. => 1
32
- RubyVersion.minor # e.g. => 8
33
- RubyVersion.tiny # e.g. => 7
34
- RubyVersion.patchlevel # e.g. => 249
35
- RubyVersion.description # e.g. => "ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]"
34
+
35
+ # Misc Accessors
36
+ RubyVersion.major # => 1
37
+ RubyVersion.minor # => 8
38
+ RubyVersion.tiny # => 7
39
+ RubyVersion.patchlevel # => 249
40
+ RubyVersion.description # => "ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]"
41
+
42
+ == Also See
43
+
44
+ https://github.com/janlelis/ruby_engine |
45
+ https://github.com/janlelis/ruby_info |
46
+ https://github.com/rdp/os
36
47
 
37
48
  == J-_-L
38
49
 
data/lib/ruby_version.rb CHANGED
@@ -2,6 +2,8 @@ require 'date'
2
2
  require 'time'
3
3
 
4
4
  module RubyVersion
5
+ VERSION = '1.0.1'
6
+
5
7
  class << self
6
8
  def to_s
7
9
  RUBY_VERSION
@@ -112,6 +114,10 @@ module RubyVersion
112
114
  def description
113
115
  RUBY_DESCRIPTION
114
116
  end
117
+
118
+ def revision
119
+ defined?(RUBY_REVISION) && RUBY_REVISION
120
+ end
115
121
  end
116
122
  end
117
123
 
data/ruby_version.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
- require File.expand_path('../lib/ruby_version/version', __FILE__)
3
+ require File.expand_path('../lib/ruby_version', __FILE__)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "ruby_version"
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ['lib']
19
19
 
20
20
  gem.add_development_dependency 'bundler', '~> 1.0'
21
- gem.add_development_dependency 'rake', '~> 10.0'
21
+ gem.add_development_dependency 'rake', '~> 10.1'
22
22
  gem.add_development_dependency 'rdoc', '~> 3.0'
23
23
  gem.add_development_dependency 'rspec', '~> 2.4'
24
24
  gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_version
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-14 00:00:00.000000000 Z
11
+ date: 2014-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '10.1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '10.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.4'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.4'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubygems-tasks
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0.2'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0.2'
83
83
  description: Provides a RubyVersion class to simplify checking for the right Ruby
@@ -87,9 +87,9 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .rspec
92
- - .travis.yml
90
+ - ".gitignore"
91
+ - ".rspec"
92
+ - ".travis.yml"
93
93
  - ChangeLog.rdoc
94
94
  - Gemfile
95
95
  - Gemfile.lock
@@ -97,7 +97,7 @@ files:
97
97
  - README.rdoc
98
98
  - Rakefile
99
99
  - lib/ruby_version.rb
100
- - lib/ruby_version/version.rb
100
+ - pkg/ruby_version-1.0.0.gem
101
101
  - ruby_version.gemspec
102
102
  - spec/ruby_version_spec.rb
103
103
  - spec/spec_helper.rb
@@ -111,12 +111,12 @@ require_paths:
111
111
  - lib
112
112
  required_ruby_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - '>='
114
+ - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
- - - '>='
119
+ - - ">="
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
@@ -1,3 +0,0 @@
1
- module RubyVersion
2
- VERSION = "1.0.0"
3
- end