ruby_engine 2.0.0 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +9 -0
- data/Gemfile.lock +26 -20
- data/README.md +38 -0
- data/Rakefile +6 -7
- data/lib/ruby_engine.rb +1 -2
- data/ruby_engine.gemspec +4 -4
- data/spec/spec_helper.rb +4 -0
- metadata +10 -26
- data/.travis.yml +0 -22
- data/README.rdoc +0 -37
- data/pkg/ruby_engine-1.0.0.gem +0 -0
- data/pkg/ruby_engine-1.0.1.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0e8f46f01b3cd6444ff2021eb111a47ac410c0839c45d75004a9f929a5812b5
|
4
|
+
data.tar.gz: b04b14e18c738857ad7a00b6f6702f476a0203240c7a7776dc123bebf5d720b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68119f1e7c2835271f001732ad597e5c8694e856cff769f646212d959860c665dc06059651da8c35923568db79504910a1c25e8fac48cf9dfb65c687a8feab11
|
7
|
+
data.tar.gz: 368535db044eec7ee8f4360af6ab437e73bf48ee194d4e5f8e4751ddb636316824d4cae2b4b35a2a3d379c7701845f04916026fc93347f411e467be7fa32305e
|
data/ChangeLog.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,37 +1,43 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby_engine (2.0.
|
4
|
+
ruby_engine (2.0.2)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
8
8
|
specs:
|
9
|
-
diff-lcs (1.
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
rspec-
|
18
|
-
rspec-
|
19
|
-
|
20
|
-
rspec-
|
21
|
-
|
22
|
-
rspec-
|
23
|
-
|
9
|
+
diff-lcs (1.5.1)
|
10
|
+
io-console (0.5.9)
|
11
|
+
irb (1.3.7)
|
12
|
+
reline (>= 0.2.7)
|
13
|
+
rake (13.2.1)
|
14
|
+
reline (0.2.7)
|
15
|
+
io-console (~> 0.5)
|
16
|
+
rspec (3.13.0)
|
17
|
+
rspec-core (~> 3.13.0)
|
18
|
+
rspec-expectations (~> 3.13.0)
|
19
|
+
rspec-mocks (~> 3.13.0)
|
20
|
+
rspec-core (3.13.0)
|
21
|
+
rspec-support (~> 3.13.0)
|
22
|
+
rspec-expectations (3.13.0)
|
23
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
+
rspec-support (~> 3.13.0)
|
25
|
+
rspec-mocks (3.13.0)
|
26
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
+
rspec-support (~> 3.13.0)
|
28
|
+
rspec-support (3.13.1)
|
29
|
+
rubygems-tasks (0.2.5)
|
30
|
+
irb (~> 1.0)
|
24
31
|
|
25
32
|
PLATFORMS
|
26
33
|
java
|
27
34
|
ruby
|
28
35
|
|
29
36
|
DEPENDENCIES
|
30
|
-
rake (~>
|
31
|
-
|
32
|
-
rspec (~> 2.4)
|
37
|
+
rake (~> 13.2)
|
38
|
+
rspec (~> 3.13)
|
33
39
|
ruby_engine!
|
34
40
|
rubygems-tasks (~> 0.2)
|
35
41
|
|
36
42
|
BUNDLED WITH
|
37
|
-
2.
|
43
|
+
2.2.22
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# RubyEngine [<img src="https://badge.fury.io/rb/ruby_engine.svg" alt="Gem Version" />](https://badge.fury.io/rb/ruby_engine) [<img src="https://github.com/janlelis/ruby_engine/workflows/Test/badge.svg" />](https://github.com/janlelis/ruby_engine/actions?query=workflow%3ATest)
|
2
|
+
|
3
|
+
Provides a `RubyEngine` constant for simple Ruby implementation checks.
|
4
|
+
|
5
|
+
## Setup
|
6
|
+
|
7
|
+
On your command-line:
|
8
|
+
|
9
|
+
$ gem install ruby_engine
|
10
|
+
|
11
|
+
In Ruby:
|
12
|
+
|
13
|
+
require 'ruby_engine'
|
14
|
+
|
15
|
+
## Usage
|
16
|
+
|
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:
|
24
|
+
RubyEngine.cruby?
|
25
|
+
RubyEngine.jruby?
|
26
|
+
RubyEngine.truffle?
|
27
|
+
|
28
|
+
## Also See
|
29
|
+
|
30
|
+
- https://github.com/janlelis/ruby_version
|
31
|
+
- https://github.com/janlelis/ruby_info
|
32
|
+
- https://github.com/rdp/os
|
33
|
+
- https://github.com/janlelis/irbtools
|
34
|
+
|
35
|
+
## J-_-L
|
36
|
+
|
37
|
+
Copyright (c) 2010-2014, 2020 Jan Lelis. MIT License. Originated from the
|
38
|
+
zucker gem.
|
data/Rakefile
CHANGED
@@ -23,14 +23,13 @@ require 'rake'
|
|
23
23
|
require 'rubygems/tasks'
|
24
24
|
Gem::Tasks.new
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
rdoc.title = "ruby_version"
|
29
|
-
end
|
30
|
-
task :doc => :rdoc
|
26
|
+
# # #
|
27
|
+
# Spec
|
31
28
|
|
32
|
-
|
33
|
-
|
29
|
+
desc "Run Specs"
|
30
|
+
task :spec do
|
31
|
+
sh "rspec"
|
32
|
+
end
|
34
33
|
|
35
34
|
task :test => :spec
|
36
35
|
task :default => :spec
|
data/lib/ruby_engine.rb
CHANGED
data/ruby_engine.gemspec
CHANGED
@@ -12,13 +12,13 @@ Gem::Specification.new do |gem|
|
|
12
12
|
gem.email = ["hi@ruby.consulting"]
|
13
13
|
gem.homepage = "https://github.com/janlelis/ruby_engine"
|
14
14
|
|
15
|
-
gem.files = Dir[
|
15
|
+
gem.files = Dir["{**/}{.*,*}"].select{ |path| File.file?(path) && path !~ /^pkg/ }
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
|
+
gem.metadata = { "rubygems_mfa_required" => "true" }
|
19
20
|
|
20
|
-
gem.add_development_dependency 'rake', '~>
|
21
|
-
gem.add_development_dependency '
|
22
|
-
gem.add_development_dependency 'rspec', '~> 2.4'
|
21
|
+
gem.add_development_dependency 'rake', '~> 13.2'
|
22
|
+
gem.add_development_dependency 'rspec', '~> 3.13'
|
23
23
|
gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
|
24
24
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Lelis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -16,42 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '13.2'
|
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
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: rdoc
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '3.0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '3.0'
|
26
|
+
version: '13.2'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: rspec
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
31
|
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '3.13'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '3.13'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rubygems-tasks
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,23 +62,21 @@ extra_rdoc_files: []
|
|
76
62
|
files:
|
77
63
|
- ".gitignore"
|
78
64
|
- ".rspec"
|
79
|
-
- ".travis.yml"
|
80
65
|
- ChangeLog.md
|
81
66
|
- Gemfile
|
82
67
|
- Gemfile.lock
|
83
68
|
- MIT-LICENSE.txt
|
84
|
-
- README.
|
69
|
+
- README.md
|
85
70
|
- Rakefile
|
86
71
|
- lib/ruby_engine.rb
|
87
|
-
- pkg/ruby_engine-1.0.0.gem
|
88
|
-
- pkg/ruby_engine-1.0.1.gem
|
89
72
|
- ruby_engine.gemspec
|
90
73
|
- spec/ruby_engine_spec.rb
|
91
74
|
- spec/spec_helper.rb
|
92
75
|
homepage: https://github.com/janlelis/ruby_engine
|
93
76
|
licenses:
|
94
77
|
- MIT
|
95
|
-
metadata:
|
78
|
+
metadata:
|
79
|
+
rubygems_mfa_required: 'true'
|
96
80
|
post_install_message:
|
97
81
|
rdoc_options: []
|
98
82
|
require_paths:
|
@@ -108,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
92
|
- !ruby/object:Gem::Version
|
109
93
|
version: '0'
|
110
94
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.5.3
|
112
96
|
signing_key:
|
113
97
|
specification_version: 4
|
114
98
|
summary: Adds the RubyEngine pseudo-constant.
|
data/.travis.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
sudo: false
|
2
|
-
language: ruby
|
3
|
-
|
4
|
-
rvm:
|
5
|
-
- 2.7
|
6
|
-
- 2.6
|
7
|
-
- 2.5
|
8
|
-
- 2.4
|
9
|
-
- 2.3
|
10
|
-
- 2.2
|
11
|
-
- 2.1
|
12
|
-
- 2.0
|
13
|
-
- 1.9
|
14
|
-
- ruby-head
|
15
|
-
- jruby-9.2.9.0
|
16
|
-
- jruby-head
|
17
|
-
- truffleruby
|
18
|
-
- rbx-4
|
19
|
-
|
20
|
-
matrix:
|
21
|
-
allow_failures:
|
22
|
-
- rvm: rbx-4
|
data/README.rdoc
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
= RubyEngine {<img src="https://travis-ci.org/janlelis/ruby_engine.png" />}[https://travis-ci.org/janlelis/ruby_engine]
|
2
|
-
|
3
|
-
Provides a +RubyEngine+ to simplify checking on which implementation your Ruby programs is running.
|
4
|
-
|
5
|
-
== Setup
|
6
|
-
|
7
|
-
On your command-line:
|
8
|
-
|
9
|
-
$ gem install ruby_engine
|
10
|
-
|
11
|
-
In Ruby:
|
12
|
-
|
13
|
-
require 'ruby_engine'
|
14
|
-
|
15
|
-
== Usage
|
16
|
-
|
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:
|
24
|
-
RubyEngine.mri?
|
25
|
-
RubyEngine.jruby?
|
26
|
-
RubyEngine.rubinius?
|
27
|
-
RubyEngine.macruby?
|
28
|
-
|
29
|
-
== Also See
|
30
|
-
|
31
|
-
https://github.com/janlelis/ruby_version |
|
32
|
-
https://github.com/janlelis/ruby_info |
|
33
|
-
https://github.com/rdp/os
|
34
|
-
|
35
|
-
== J-_-L
|
36
|
-
|
37
|
-
Copyright (c) 2010-2014, 2020 Jan Lelis. MIT License. Originated from the zucker gem.
|
data/pkg/ruby_engine-1.0.0.gem
DELETED
Binary file
|
data/pkg/ruby_engine-1.0.1.gem
DELETED
Binary file
|