ruby_engine 2.0.2 → 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: c0e8f46f01b3cd6444ff2021eb111a47ac410c0839c45d75004a9f929a5812b5
4
- data.tar.gz: b04b14e18c738857ad7a00b6f6702f476a0203240c7a7776dc123bebf5d720b5
3
+ metadata.gz: a4e4b3a3d9d15172e3d948276be3b4cc426652655bfe8dcb2bd1cd380e1db3e2
4
+ data.tar.gz: 9dd4c7a928d51add90a15faac954930c26ab7cbadd1fb877bfdc3f92d4ba1d66
5
5
  SHA512:
6
- metadata.gz: 68119f1e7c2835271f001732ad597e5c8694e856cff769f646212d959860c665dc06059651da8c35923568db79504910a1c25e8fac48cf9dfb65c687a8feab11
7
- data.tar.gz: 368535db044eec7ee8f4360af6ab437e73bf48ee194d4e5f8e4751ddb636316824d4cae2b4b35a2a3d379c7701845f04916026fc93347f411e467be7fa32305e
6
+ metadata.gz: 5c5c53c67111f53ae13b21b35e0d6c4b3ac3f07a0c8a6872b6ad2db646f4aa943d4ded1fa5f56732e72dcb59cafe5d38a09f52ae2e13699083998760aaf4c255
7
+ data.tar.gz: '0056968a57b5f3cd1399d6a1c62eb3c97abf50c4bfd317b3ebb4063a8e6a292626aaadba26290579d7b60f607ebb3429ae49ce24e5f3efbcd5e63e35d2436c77'
data/ChangeLog.md CHANGED
@@ -1,8 +1,12 @@
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
+
3
7
  ## 2.0.2 / 2024-04-22
4
8
 
5
- * Upgrade RSpec to latest, fixeses a Ruby 2.5 install problem
9
+ * Upgrade RSpec to latest, remove Gemfile workaround
6
10
 
7
11
  ## 2.0.1 / 2024-04-02
8
12
 
data/Gemfile.lock CHANGED
@@ -1,18 +1,13 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby_engine (2.0.2)
4
+ ruby_engine (2.0.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
9
  diff-lcs (1.5.1)
10
- io-console (0.5.9)
11
- irb (1.3.7)
12
- reline (>= 0.2.7)
13
10
  rake (13.2.1)
14
- reline (0.2.7)
15
- io-console (~> 0.5)
16
11
  rspec (3.13.0)
17
12
  rspec-core (~> 3.13.0)
18
13
  rspec-expectations (~> 3.13.0)
@@ -26,8 +21,6 @@ GEM
26
21
  diff-lcs (>= 1.2.0, < 2.0)
27
22
  rspec-support (~> 3.13.0)
28
23
  rspec-support (3.13.1)
29
- rubygems-tasks (0.2.5)
30
- irb (~> 1.0)
31
24
 
32
25
  PLATFORMS
33
26
  java
@@ -37,7 +30,6 @@ DEPENDENCIES
37
30
  rake (~> 13.2)
38
31
  rspec (~> 3.13)
39
32
  ruby_engine!
40
- rubygems-tasks (~> 0.2)
41
33
 
42
34
  BUNDLED WITH
43
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.2'
4
+ VERSION = '2.0.3'
5
5
 
6
6
  @interpreter = RUBY_ENGINE.to_s
7
7
 
data/ruby_engine.gemspec CHANGED
@@ -20,5 +20,4 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.add_development_dependency 'rake', '~> 13.2'
22
22
  gem.add_development_dependency 'rspec', '~> 3.13'
23
- gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Lelis
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.13'
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'
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.