ruby_engine 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 +4 -4
- data/.travis.yml +1 -2
- data/ChangeLog.rdoc +6 -0
- data/Gemfile.lock +1 -1
- data/README.rdoc +14 -6
- data/lib/ruby_engine.rb +3 -1
- data/pkg/ruby_engine-1.0.0.gem +0 -0
- data/ruby_engine.gemspec +1 -1
- metadata +19 -19
- data/lib/ruby_engine/version.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 96d3e701701acef01556aa72f9f1e24c1249fdb0
|
4
|
+
data.tar.gz: 64f4c6891650b9db9e6ce4a0d99db2ab539dc6e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef0a610a14b8f07baeddf925e0f2cd9abc264cdf806892d8997927eec21eb3c7aa85d66837729409ab8d6073e2e4a079e4d0ba824ff7404fb2b000b92c7e5209
|
7
|
+
data.tar.gz: d5b555250f5cd73419077236fb40768f97f040b2e01c8ed15a89137ab74ec2c683c63d0e20b4d987441c9a30c91f3c8f88e64f642a7d5049d235ba7ee83c8a11
|
data/.travis.yml
CHANGED
data/ChangeLog.rdoc
CHANGED
data/Gemfile.lock
CHANGED
data/README.rdoc
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
= RubyEngine
|
1
|
+
= RubyEngine {<img src="https://travis-ci.org/janlelis/ruby_engine.png" />}[https://travis-ci.org/janlelis/ruby_engine]
|
2
2
|
|
3
3
|
Provides a +RubyEngine+ to simplify checking on which implementation your Ruby programs is running.
|
4
4
|
|
@@ -14,11 +14,13 @@ In Ruby:
|
|
14
14
|
|
15
15
|
== Usage
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
17
|
+
# Output the interpreter name
|
18
|
+
RubyEngine.to_s
|
19
|
+
|
20
|
+
# true for JRuby
|
21
|
+
RubyEngine.is? 'jruby'
|
22
|
+
|
23
|
+
# There are some query methods defined:
|
22
24
|
RubyEngine.mri?
|
23
25
|
RubyEngine.jruby?
|
24
26
|
RubyEngine.rubinius?
|
@@ -27,6 +29,12 @@ In Ruby:
|
|
27
29
|
RubyEngine.macruby?
|
28
30
|
RubyEngine.cardinal?
|
29
31
|
|
32
|
+
== Also See
|
33
|
+
|
34
|
+
https://github.com/janlelis/ruby_version |
|
35
|
+
https://github.com/janlelis/ruby_info |
|
36
|
+
https://github.com/rdp/os
|
37
|
+
|
30
38
|
== J-_-L
|
31
39
|
|
32
40
|
Copyright (c) 2010-2014 Jan Lelis. MIT License. Originated from the zucker gem.
|
data/lib/ruby_engine.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
module RubyEngine
|
2
|
+
VERSION = '1.0.1'
|
3
|
+
|
2
4
|
@interpreter = case
|
3
5
|
when RUBY_PLATFORM == 'parrot'
|
4
6
|
'cardinal'
|
@@ -30,7 +32,7 @@ module RubyEngine
|
|
30
32
|
# ask methods
|
31
33
|
|
32
34
|
def mri?
|
33
|
-
RubyEngine.is? '
|
35
|
+
RubyEngine.is? 'ruby'
|
34
36
|
end
|
35
37
|
alias official_ruby? mri?
|
36
38
|
alias ruby? mri?
|
Binary file
|
data/ruby_engine.gemspec
CHANGED
metadata
CHANGED
@@ -1,83 +1,83 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.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-
|
11
|
+
date: 2014-01-15 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
33
|
version: '10.0'
|
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
40
|
version: '10.0'
|
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: Gives you an RubyEngine class that simplifies checking for your 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_engine.rb
|
100
|
-
-
|
100
|
+
- pkg/ruby_engine-1.0.0.gem
|
101
101
|
- ruby_engine.gemspec
|
102
102
|
- spec/ruby_engine_spec.rb
|
103
103
|
- spec/spec_helper.rb
|
@@ -111,17 +111,17 @@ 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: []
|
123
123
|
rubyforge_project:
|
124
|
-
rubygems_version: 2.2.
|
124
|
+
rubygems_version: 2.2.0
|
125
125
|
signing_key:
|
126
126
|
specification_version: 4
|
127
127
|
summary: Adds the RubyEngine pseudo-constant.
|
data/lib/ruby_engine/version.rb
DELETED