autorubyconf 0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/autorubyconf.rb +37 -0
- metadata +44 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5081af29cb9ac453a9eeceb2ab4abf14187d2af89f6f62e93c6bc2387f7ebb60
|
4
|
+
data.tar.gz: aabd1ca8523668f40217c1a7b69c1a30cf1b944bd43d8f68212f1e338074687c
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 29bd6c116c8542967c07e999236c963cb19451ea247c8cdc37069ad38a0f8a7808fb79a7cdc07ff12ae46e2d5ad26c109fc3e30bbe436954148e357a1f52893f
|
7
|
+
data.tar.gz: 2199c1b4adf5308e47c8ae5439838ee9fd734d75bbdc5b8327f66809b9f2d8b7792aa35c98910dac329f56137ecce85c869e39f5255f7030d55d969e2cc2a820
|
data/lib/autorubyconf.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
#!/usr/bin/ruby
|
2
|
+
|
3
|
+
def find_modules(module_names, main_module_file_paths)
|
4
|
+
for themodule in module_names
|
5
|
+
themodule.to_s
|
6
|
+
for themodulepath in main_module_file_paths
|
7
|
+
themodulepath.to_s
|
8
|
+
|
9
|
+
print("Checking for " + themodule + "... ")
|
10
|
+
full_module_path = "/var/lib/gems/" + RUBY_VERSION + "/" + themodule + "/" + themodulepath
|
11
|
+
system("find " + full_module_path + " > autorubyconf-output.txt")
|
12
|
+
if $? == 0
|
13
|
+
puts "yes (" + themodule + ": " + themodulepath + ")"
|
14
|
+
else
|
15
|
+
puts "no"
|
16
|
+
puts ""
|
17
|
+
puts "The " + themodule + " Ruby Module (" + themodulepath + ") was not found."
|
18
|
+
abort("Install the module through gem and try again.")
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
def check_rubyversion(current_version, minimum_version)
|
26
|
+
current_version.to_s
|
27
|
+
minimum_version.to_s
|
28
|
+
|
29
|
+
print "Checking if Ruby is version " + minimum_version + " or newer... "
|
30
|
+
if current_version <=> minimum_version
|
31
|
+
puts "yes (" + RUBY_VERSION + ")"
|
32
|
+
else
|
33
|
+
puts "no"
|
34
|
+
puts "Ruby version " + RUBY_VERSION + " was detected."
|
35
|
+
abort("Upgrade your Ruby interpereter to at minimum version " + minimum_version + " and try again.")
|
36
|
+
end
|
37
|
+
end
|
metadata
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: autorubyconf
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joshua Peisach
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Tool similar to the autotools for looking for dependencies before Ruby
|
14
|
+
builds/compilations
|
15
|
+
email: itzswirlz2020@outlook.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/autorubyconf.rb
|
21
|
+
homepage: https://rubygems.org/gems/autorubyconf
|
22
|
+
licenses:
|
23
|
+
- GPL-3.0+
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubygems_version: 3.1.2
|
41
|
+
signing_key:
|
42
|
+
specification_version: 4
|
43
|
+
summary: Check your Ruby project building dependencies
|
44
|
+
test_files: []
|