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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a9e3926b07f08a3ee43dbc713f47025e36f72aa0712e469bd520c721936c4810
4
- data.tar.gz: 6033f92020b44093d283d8e9f9c79f9a8761f5ab41bc0208ca1be188b4884211
3
+ metadata.gz: c0e8f46f01b3cd6444ff2021eb111a47ac410c0839c45d75004a9f929a5812b5
4
+ data.tar.gz: b04b14e18c738857ad7a00b6f6702f476a0203240c7a7776dc123bebf5d720b5
5
5
  SHA512:
6
- metadata.gz: 737fed223d793d68a63e25214b410b881d3a5b8ed3ce3e564b5477ebba963c03c2446c1207cd7ae078a2ed7136ee00861f64cb3937feaa9d00cbc8357432faa0
7
- data.tar.gz: adeb68fcb64807f6b65e28c2fc2b0ec176d73574a3752b737603ee4e09fb2c760696dd465cf76c76724ba6565af0919bdc202fbf85d7f4bdad9bcac157f464d2
6
+ metadata.gz: 68119f1e7c2835271f001732ad597e5c8694e856cff769f646212d959860c665dc06059651da8c35923568db79504910a1c25e8fac48cf9dfb65c687a8feab11
7
+ data.tar.gz: 368535db044eec7ee8f4360af6ab437e73bf48ee194d4e5f8e4751ddb636316824d4cae2b4b35a2a3d379c7701845f04916026fc93347f411e467be7fa32305e
data/ChangeLog.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.2 / 2024-04-22
4
+
5
+ * Upgrade RSpec to latest, fixeses a Ruby 2.5 install problem
6
+
7
+ ## 2.0.1 / 2024-04-02
8
+
9
+ * Add MFA to gemspec
10
+ * Update CI
11
+
3
12
  ## 2.0.0 / 2020-01-04
4
13
 
5
14
  * Refactor / update for current Rubies
data/Gemfile.lock CHANGED
@@ -1,37 +1,43 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_engine (2.0.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.3)
10
- json (1.8.6)
11
- json (1.8.6-java)
12
- rake (10.5.0)
13
- rdoc (3.12.2)
14
- json (~> 1.4)
15
- rspec (2.99.0)
16
- rspec-core (~> 2.99.0)
17
- rspec-expectations (~> 2.99.0)
18
- rspec-mocks (~> 2.99.0)
19
- rspec-core (2.99.2)
20
- rspec-expectations (2.99.2)
21
- diff-lcs (>= 1.1.3, < 2.0)
22
- rspec-mocks (2.99.4)
23
- rubygems-tasks (0.2.4)
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 (~> 10.0)
31
- rdoc (~> 3.0)
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.0.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
- require 'rdoc/task'
27
- RDoc::Task.new do |rdoc|
28
- rdoc.title = "ruby_version"
29
- end
30
- task :doc => :rdoc
26
+ # # #
27
+ # Spec
31
28
 
32
- require 'rspec/core/rake_task'
33
- RSpec::Core::RakeTask.new
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
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubyEngine
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.2'
5
5
 
6
6
  @interpreter = RUBY_ENGINE.to_s
7
7
 
@@ -40,4 +40,3 @@ module RubyEngine
40
40
  end
41
41
  end
42
42
 
43
- # J-_-L
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['{**/}{.*,*}'].select { |path| File.file?(path) }
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', '~> 10.0'
21
- gem.add_development_dependency 'rdoc', '~> 3.0'
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
@@ -1,2 +1,6 @@
1
1
  require 'rspec'
2
2
  require 'ruby_engine'
3
+
4
+ RSpec.configure do |config|
5
+ config.expect_with(:rspec) { |c| c.syntax = :should }
6
+ end
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.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: 2020-01-04 00:00:00.000000000 Z
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: '10.0'
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: '10.0'
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: '2.4'
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: '2.4'
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.rdoc
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.0.6
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.
Binary file
Binary file