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 +4 -4
- data/ChangeLog.md +8 -0
- data/Gemfile +0 -3
- data/Gemfile.lock +18 -22
- data/Rakefile +31 -26
- data/lib/ruby_engine.rb +1 -2
- data/ruby_engine.gemspec +2 -3
- data/spec/ruby_engine_spec.rb +1 -1
- data/spec/spec_helper.rb +4 -0
- metadata +7 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4e4b3a3d9d15172e3d948276be3b4cc426652655bfe8dcb2bd1cd380e1db3e2
|
4
|
+
data.tar.gz: 9dd4c7a928d51add90a15faac954930c26ab7cbadd1fb877bfdc3f92d4ba1d66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c5c53c67111f53ae13b21b35e0d6c4b3ac3f07a0c8a6872b6ad2db646f4aa943d4ded1fa5f56732e72dcb59cafe5d38a09f52ae2e13699083998760aaf4c255
|
7
|
+
data.tar.gz: '0056968a57b5f3cd1399d6a1c62eb3c97abf50c4bfd317b3ebb4063a8e6a292626aaadba26290579d7b60f607ebb3429ae49ce24e5f3efbcd5e63e35d2436c77'
|
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,39 +1,35 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
ruby_engine (2.0.
|
4
|
+
ruby_engine (2.0.3)
|
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
|
-
|
19
|
-
rspec-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
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.
|
34
|
-
rspec (~>
|
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
|
-
#
|
1
|
+
# # #
|
2
|
+
# Get gemspec info
|
2
3
|
|
3
|
-
|
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
22
|
+
# # #
|
23
|
+
# Start an IRB session with the gem loaded
|
22
24
|
|
23
|
-
|
24
|
-
|
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
|
-
#
|
31
|
+
# Run specs
|
28
32
|
|
29
|
-
|
30
|
-
|
31
|
-
|
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
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.
|
22
|
-
gem.add_development_dependency 'rspec', '~>
|
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
|
data/spec/ruby_engine_spec.rb
CHANGED
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.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-
|
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.
|
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.
|
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: '
|
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: '
|
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.
|
81
|
+
rubygems_version: 3.5.9
|
96
82
|
signing_key:
|
97
83
|
specification_version: 4
|
98
84
|
summary: Adds the RubyEngine pseudo-constant.
|