ruby_engine 2.0.1 → 2.0.3

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: c071a280ffec0facc0eba954ef31b519111171095211b8eb4d0404e6a3296492
4
- data.tar.gz: ecb2350296bca0c9a35c4e4d74b20b32d71a3ef0207e0832962815b9eba9044f
3
+ metadata.gz: a4e4b3a3d9d15172e3d948276be3b4cc426652655bfe8dcb2bd1cd380e1db3e2
4
+ data.tar.gz: 9dd4c7a928d51add90a15faac954930c26ab7cbadd1fb877bfdc3f92d4ba1d66
5
5
  SHA512:
6
- metadata.gz: 83ea549f651daed25208467925efe46dc04f6f2c94dbb37ccd1617cf6e02e8e99e3629919b1981e49155799f1464c3d29a2a305981b5caa2840e517787173ab9
7
- data.tar.gz: 3f51194fa32c739b912214b838ebce10ea317b4361bfb445643db222aaad371e2024fb77e5646aa00c4576e4cf232d84d2c8bb0eff866594adb63ded41ab1de3
6
+ metadata.gz: 5c5c53c67111f53ae13b21b35e0d6c4b3ac3f07a0c8a6872b6ad2db646f4aa943d4ded1fa5f56732e72dcb59cafe5d38a09f52ae2e13699083998760aaf4c255
7
+ data.tar.gz: '0056968a57b5f3cd1399d6a1c62eb3c97abf50c4bfd317b3ebb4063a8e6a292626aaadba26290579d7b60f607ebb3429ae49ce24e5f3efbcd5e63e35d2436c77'
data/ChangeLog.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.0.3 / 2024-04-22
4
+
5
+ * Drop rubygems-tasks dependency, fixes a Ruby 2.5 install problem
6
+
7
+ ## 2.0.2 / 2024-04-22
8
+
9
+ * Upgrade RSpec to latest, remove Gemfile workaround
10
+
3
11
  ## 2.0.1 / 2024-04-02
4
12
 
5
13
  * Add MFA to gemspec
data/Gemfile CHANGED
@@ -1,6 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # 3.2 workaround for RSpec 2.99, see https://bugs.ruby-lang.org/issues/17391
4
- def File.exists?(f)exist?(f)end unless defined? File.exists?
5
-
6
3
  gemspec
data/Gemfile.lock CHANGED
@@ -1,39 +1,35 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_engine (2.0.1)
4
+ ruby_engine (2.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- diff-lcs (1.4.4)
10
- io-console (0.5.9)
11
- io-console (0.5.9-java)
12
- irb (1.3.7)
13
- reline (>= 0.2.7)
14
- rake (13.0.6)
15
- reline (0.2.7)
16
- io-console (~> 0.5)
17
- rspec (2.99.0)
18
- rspec-core (~> 2.99.0)
19
- rspec-expectations (~> 2.99.0)
20
- rspec-mocks (~> 2.99.0)
21
- rspec-core (2.99.2)
22
- rspec-expectations (2.99.2)
23
- diff-lcs (>= 1.1.3, < 2.0)
24
- rspec-mocks (2.99.4)
25
- rubygems-tasks (0.2.5)
26
- irb (~> 1.0)
9
+ diff-lcs (1.5.1)
10
+ rake (13.2.1)
11
+ rspec (3.13.0)
12
+ rspec-core (~> 3.13.0)
13
+ rspec-expectations (~> 3.13.0)
14
+ rspec-mocks (~> 3.13.0)
15
+ rspec-core (3.13.0)
16
+ rspec-support (~> 3.13.0)
17
+ rspec-expectations (3.13.0)
18
+ diff-lcs (>= 1.2.0, < 2.0)
19
+ rspec-support (~> 3.13.0)
20
+ rspec-mocks (3.13.0)
21
+ diff-lcs (>= 1.2.0, < 2.0)
22
+ rspec-support (~> 3.13.0)
23
+ rspec-support (3.13.1)
27
24
 
28
25
  PLATFORMS
29
26
  java
30
27
  ruby
31
28
 
32
29
  DEPENDENCIES
33
- rake (~> 13.0)
34
- rspec (~> 2.99)
30
+ rake (~> 13.2)
31
+ rspec (~> 3.13)
35
32
  ruby_engine!
36
- rubygems-tasks (~> 0.2)
37
33
 
38
34
  BUNDLED WITH
39
35
  2.2.22
data/Rakefile CHANGED
@@ -1,35 +1,40 @@
1
- # encoding: utf-8
1
+ # # #
2
+ # Get gemspec info
2
3
 
3
- require 'rubygems'
4
+ gemspec_file = Dir["*.gemspec"].first
5
+ gemspec = eval File.read(gemspec_file), binding, gemspec_file
6
+ info = "#{gemspec.name} | #{gemspec.version} | " \
7
+ "#{gemspec.runtime_dependencies.size} dependencies | " \
8
+ "#{gemspec.files.size} files"
4
9
 
5
- begin
6
- require 'bundler'
7
- rescue LoadError => e
8
- warn e.message
9
- warn "Run `gem install bundler` to install Bundler."
10
- exit -1
11
- end
12
-
13
- begin
14
- Bundler.setup(:development)
15
- rescue Bundler::BundlerError => e
16
- warn e.message
17
- warn "Run `bundle install` to install missing gems."
18
- exit e.status_code
10
+ # # #
11
+ # Gem build and install task
12
+
13
+ desc info
14
+ task :gem do
15
+ puts info + "\n\n"
16
+ print " "; sh "gem build #{gemspec_file}"
17
+ FileUtils.mkdir_p "pkg"
18
+ FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", "pkg"
19
+ puts; sh %{gem install --no-document pkg/#{gemspec.name}-#{gemspec.version}.gem}
19
20
  end
20
21
 
21
- require 'rake'
22
+ # # #
23
+ # Start an IRB session with the gem loaded
22
24
 
23
- require 'rubygems/tasks'
24
- Gem::Tasks.new
25
+ desc "#{gemspec.name} | IRB"
26
+ task :irb do
27
+ sh "irb -I ./lib -r #{gemspec.name.gsub '-','/'}"
28
+ end
25
29
 
26
30
  # # #
27
- # Spec
31
+ # Run specs
28
32
 
29
- desc "Run Specs"
30
- task :spec do
31
- sh "rspec"
33
+ begin
34
+ require "rspec/core/rake_task"
35
+ RSpec::Core::RakeTask.new(:spec)
36
+ task test: :spec
37
+ task default: :spec
38
+ rescue LoadError
39
+ warn("Failed to load rspec")
32
40
  end
33
-
34
- task :test => :spec
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.1'
4
+ VERSION = '2.0.3'
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
@@ -18,7 +18,6 @@ Gem::Specification.new do |gem|
18
18
  gem.require_paths = ['lib']
19
19
  gem.metadata = { "rubygems_mfa_required" => "true" }
20
20
 
21
- gem.add_development_dependency 'rake', '~> 13.0'
22
- gem.add_development_dependency 'rspec', '~> 2.99'
23
- gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
21
+ gem.add_development_dependency 'rake', '~> 13.2'
22
+ gem.add_development_dependency 'rspec', '~> 3.13'
24
23
  end
@@ -1,4 +1,4 @@
1
- require 'spec_helper'
1
+ require_relative 'spec_helper'
2
2
 
3
3
  describe 'RubyEngine' do
4
4
  before :all do
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.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-02 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: '13.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: '13.0'
26
+ version: '13.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.99'
33
+ version: '3.13'
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: '2.99'
41
- - !ruby/object:Gem::Dependency
42
- name: rubygems-tasks
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '0.2'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '0.2'
40
+ version: '3.13'
55
41
  description: Gives you an RubyEngine class that simplifies checking for your Ruby
56
42
  implementation.
57
43
  email:
@@ -92,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
78
  - !ruby/object:Gem::Version
93
79
  version: '0'
94
80
  requirements: []
95
- rubygems_version: 3.5.3
81
+ rubygems_version: 3.5.9
96
82
  signing_key:
97
83
  specification_version: 4
98
84
  summary: Adds the RubyEngine pseudo-constant.