rubyment 0.2.25418435 → 0.3.25420981
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 +4 -4
- data/lib/rubyment.rb +4 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3fc6dda34003c62faafc7bc58e683cb1a37b1b3
|
4
|
+
data.tar.gz: 86ee7522823e44a405f174cea85b45abfff4bb3c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 602e9d2456a4a85ebeb106afa4bac580e03672f05e6618b1f8352c8ecae9369b3fc3c7deabc9e2195f8f5409f42a11635dcd4a3a1fc485d75bc0e3b07c8bf777
|
7
|
+
data.tar.gz: 0a45aa9e7a1e71dfd61b51f47842103896608f3563f0fb43132a937f56d5451fe54bd76c28e044e3ddffae64096452f2824795a9535c57d7c32596f9e45586ca
|
data/lib/rubyment.rb
CHANGED
@@ -60,7 +60,7 @@ class Rubyment
|
|
60
60
|
:stdout => STDOUT,
|
61
61
|
:stdin => STDIN,
|
62
62
|
:time => Time.now,
|
63
|
-
:major_version => "0.
|
63
|
+
:major_version => "0.3",
|
64
64
|
:basic_version => (Time.now.to_i / 60), # new one every minute
|
65
65
|
:filepath => __FILE__,
|
66
66
|
:running_dir => Dir.pwd,
|
@@ -920,7 +920,7 @@ end
|
|
920
920
|
gem_homepage ||=
|
921
921
|
"http://rubygems.org/gems/#{gem_name}"
|
922
922
|
gem_license ||= 'GPL-3.0'
|
923
|
-
gem_validate_class ||=
|
923
|
+
gem_validate_class ||= self.class.to_s
|
924
924
|
gem_validate_class_args ||= {:invoke => ["p", "installed and validated"] }
|
925
925
|
gem_validate_class_method ||= "new"
|
926
926
|
gem_is_current_file = true # this enables the possibility of building
|
@@ -1055,23 +1055,18 @@ end
|
|
1055
1055
|
# returns:
|
1056
1056
|
# Rubyment, true or false
|
1057
1057
|
def validate_require args=ARGV
|
1058
|
-
p "{"
|
1059
|
-
p args
|
1060
|
-
p "}"
|
1061
1058
|
stderr = @memory[:stderr]
|
1062
1059
|
requirement, validator_class, validator_args, validator_method = containerize args
|
1063
1060
|
validate_call = validator_class && true
|
1064
1061
|
validator_class = to_class validator_class
|
1065
1062
|
validator_method ||= "new"
|
1066
|
-
|
1063
|
+
begin
|
1067
1064
|
require requirement
|
1068
|
-
|
1069
|
-
xy
|
1065
|
+
validate_call && (object_method_args_call [validator_method, validator_class, validator_args]) || (!validate_call) && true
|
1070
1066
|
rescue LoadError => e
|
1071
1067
|
stderr.puts e
|
1072
1068
|
nil
|
1073
1069
|
end
|
1074
|
-
x
|
1075
1070
|
end
|
1076
1071
|
|
1077
1072
|
# system_rubyment
|