ruby_engine 1.0.1 → 2.0.0

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
- SHA1:
3
- metadata.gz: 96d3e701701acef01556aa72f9f1e24c1249fdb0
4
- data.tar.gz: 64f4c6891650b9db9e6ce4a0d99db2ab539dc6e8
2
+ SHA256:
3
+ metadata.gz: a9e3926b07f08a3ee43dbc713f47025e36f72aa0712e469bd520c721936c4810
4
+ data.tar.gz: 6033f92020b44093d283d8e9f9c79f9a8761f5ab41bc0208ca1be188b4884211
5
5
  SHA512:
6
- metadata.gz: ef0a610a14b8f07baeddf925e0f2cd9abc264cdf806892d8997927eec21eb3c7aa85d66837729409ab8d6073e2e4a079e4d0ba824ff7404fb2b000b92c7e5209
7
- data.tar.gz: d5b555250f5cd73419077236fb40768f97f040b2e01c8ed15a89137ab74ec2c683c63d0e20b4d987441c9a30c91f3c8f88e64f642a7d5049d235ba7ee83c8a11
6
+ metadata.gz: 737fed223d793d68a63e25214b410b881d3a5b8ed3ce3e564b5477ebba963c03c2446c1207cd7ae078a2ed7136ee00861f64cb3937feaa9d00cbc8357432faa0
7
+ data.tar.gz: adeb68fcb64807f6b65e28c2fc2b0ec176d73574a3752b737603ee4e09fb2c760696dd465cf76c76724ba6565af0919bdc202fbf85d7f4bdad9bcac157f464d2
@@ -1,14 +1,22 @@
1
+ sudo: false
1
2
  language: ruby
2
3
 
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
4
14
  - ruby-head
5
- - 2.1.0
6
- - 2.0.0
7
- - 1.9.3
8
- - 1.9.2
9
- - 1.8.7
10
- - ree
11
- - jruby
12
- - jruby-19mode
13
- - jruby-18mode
14
- - rbx
15
+ - jruby-9.2.9.0
16
+ - jruby-head
17
+ - truffleruby
18
+ - rbx-4
19
+
20
+ matrix:
21
+ allow_failures:
22
+ - rvm: rbx-4
@@ -0,0 +1,22 @@
1
+ # Change Log
2
+
3
+ ## 2.0.0 / 2020-01-04
4
+
5
+ * Refactor / update for current Rubies
6
+ * Remove cardinal
7
+ * Remove ree
8
+ * Remove ironruby
9
+ * Add truffelruby
10
+ * Add `cruby?` alias to MRI
11
+
12
+ ## 1.0.1 / 2014-01-15
13
+
14
+ * Fix RubyEngine.mri?
15
+ * Fix VERSION constant
16
+
17
+ ## 1.0.0 / 2014-01-14
18
+
19
+ * Return "ruby" for MRI (instead of "mri")
20
+ * Return "unknown" if RUBY_ENGINE is not set (instead of "mri")
21
+ * Moved from zucker 13.1 gem into its own gem
22
+
data/Gemfile CHANGED
@@ -1,8 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- platform :rbx do
6
- gem 'rubysl-date'
7
- gem 'rubysl-singleton'
8
- end
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Jan Lelis
1
+ Copyright (c) 2014, 2020 Jan Lelis
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -24,10 +24,7 @@ In Ruby:
24
24
  RubyEngine.mri?
25
25
  RubyEngine.jruby?
26
26
  RubyEngine.rubinius?
27
- RubyEngine.ree?
28
- RubyEngine.ironruby?
29
27
  RubyEngine.macruby?
30
- RubyEngine.cardinal?
31
28
 
32
29
  == Also See
33
30
 
@@ -37,4 +34,4 @@ https://github.com/rdp/os
37
34
 
38
35
  == J-_-L
39
36
 
40
- Copyright (c) 2010-2014 Jan Lelis. MIT License. Originated from the zucker gem.
37
+ Copyright (c) 2010-2014, 2020 Jan Lelis. MIT License. Originated from the zucker gem.
@@ -1,22 +1,9 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RubyEngine
2
- VERSION = '1.0.1'
4
+ VERSION = '2.0.0'
3
5
 
4
- @interpreter = case
5
- when RUBY_PLATFORM == 'parrot'
6
- 'cardinal'
7
- when Object.const_defined?(:RUBY_ENGINE)
8
- if RUBY_ENGINE == 'ruby'
9
- if RUBY_DESCRIPTION =~ /Enterprise/
10
- 'ree'
11
- else
12
- 'ruby'
13
- end
14
- else
15
- RUBY_ENGINE.to_s # jruby, rbx, ironruby, macruby, etc.
16
- end
17
- else
18
- 'unknown'
19
- end
6
+ @interpreter = RUBY_ENGINE.to_s
20
7
 
21
8
  class << self
22
9
  def is?(what)
@@ -29,13 +16,12 @@ module RubyEngine
29
16
  end
30
17
  alias inspect to_s
31
18
 
32
- # ask methods
33
-
34
19
  def mri?
35
20
  RubyEngine.is? 'ruby'
36
21
  end
37
22
  alias official_ruby? mri?
38
23
  alias ruby? mri?
24
+ alias cruby? mri?
39
25
 
40
26
  def jruby?
41
27
  RubyEngine.is? 'jruby'
@@ -47,21 +33,10 @@ module RubyEngine
47
33
  end
48
34
  alias rbx? rubinius?
49
35
 
50
- def ree?
51
- RubyEngine.is? 'ree'
52
- end
53
- alias enterprise? ree?
54
-
55
- def ironruby?
56
- RubyEngine.is? 'ironruby'
57
- end
58
- alias iron_ruby? ironruby?
59
-
60
- def cardinal?
61
- RubyEngine.is? 'cardinal'
36
+ def truffleruby?
37
+ RubyEngine.is? 'truffleruby'
62
38
  end
63
- alias parrot? cardinal?
64
- alias perl? cardinal?
39
+ alias truffle? truffleruby?
65
40
  end
66
41
  end
67
42
 
@@ -9,7 +9,7 @@ Gem::Specification.new do |gem|
9
9
  gem.description = 'Gives you an RubyEngine class that simplifies checking for your Ruby implementation.'
10
10
  gem.license = "MIT"
11
11
  gem.authors = ["Jan Lelis"]
12
- gem.email = "mail@janlelis.de"
12
+ gem.email = ["hi@ruby.consulting"]
13
13
  gem.homepage = "https://github.com/janlelis/ruby_engine"
14
14
 
15
15
  gem.files = Dir['{**/}{.*,*}'].select { |path| File.file?(path) }
@@ -17,7 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_development_dependency 'bundler', '~> 1.0'
21
20
  gem.add_development_dependency 'rake', '~> 10.0'
22
21
  gem.add_development_dependency 'rdoc', '~> 3.0'
23
22
  gem.add_development_dependency 'rspec', '~> 2.4'
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
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-15 00:00:00.000000000 Z
11
+ date: 2020-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: bundler
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: '1.0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
25
- - !ruby/object:Gem::Version
26
- version: '1.0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -82,7 +68,8 @@ dependencies:
82
68
  version: '0.2'
83
69
  description: Gives you an RubyEngine class that simplifies checking for your Ruby
84
70
  implementation.
85
- email: mail@janlelis.de
71
+ email:
72
+ - hi@ruby.consulting
86
73
  executables: []
87
74
  extensions: []
88
75
  extra_rdoc_files: []
@@ -90,14 +77,15 @@ files:
90
77
  - ".gitignore"
91
78
  - ".rspec"
92
79
  - ".travis.yml"
93
- - ChangeLog.rdoc
80
+ - ChangeLog.md
94
81
  - Gemfile
95
82
  - Gemfile.lock
96
- - LICENSE.txt
83
+ - MIT-LICENSE.txt
97
84
  - README.rdoc
98
85
  - Rakefile
99
86
  - lib/ruby_engine.rb
100
87
  - pkg/ruby_engine-1.0.0.gem
88
+ - pkg/ruby_engine-1.0.1.gem
101
89
  - ruby_engine.gemspec
102
90
  - spec/ruby_engine_spec.rb
103
91
  - spec/spec_helper.rb
@@ -120,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
108
  - !ruby/object:Gem::Version
121
109
  version: '0'
122
110
  requirements: []
123
- rubyforge_project:
124
- rubygems_version: 2.2.0
111
+ rubygems_version: 3.0.6
125
112
  signing_key:
126
113
  specification_version: 4
127
114
  summary: Adds the RubyEngine pseudo-constant.
@@ -1,12 +0,0 @@
1
- === 1.0.1 / 2014-01-15
2
-
3
- * Fix RubyEngine.mri?
4
- * Fix VERSION constant
5
-
6
-
7
- === 1.0.0 / 2014-01-14
8
-
9
- * Return "ruby" for MRI (instead of "mri")
10
- * Return "unknown" if RUBY_ENGINE is not set (instead of "mri")
11
- * Moved from zucker 13.1 gem into its own gem
12
-