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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubyment.rb +4 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fe84d44d47b82b4bcf6b53d9b68925465e82e94
4
- data.tar.gz: 84cf0304d95e5c44ec2b11d6a2ec2af076c03c48
3
+ metadata.gz: c3fc6dda34003c62faafc7bc58e683cb1a37b1b3
4
+ data.tar.gz: 86ee7522823e44a405f174cea85b45abfff4bb3c
5
5
  SHA512:
6
- metadata.gz: e8f401d97f26cd65391180a6704a0ca3ccc3bc3ba1e7d343f7ffb07ce57c0c9aaca9b6f3d335a77c8820ac64f8d366d8c10c4043c977339a1e4142b33637db04
7
- data.tar.gz: 9f86ecea526dba67141a9cbfc6a77b3cb2bf2a834d2536889264e6abdb7bdc2a4da3de28d8da86d63bdcdf5a0fd57883b294a983ea626b3a3d16d923faef3400
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.2",
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 ||= "Rubyment"
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
- x= begin
1063
+ begin
1067
1064
  require requirement
1068
- xy = validate_call && (object_method_args_call [validator_method, validator_class, validator_args]) || (!validate_call) && true
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyment
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.25418435
4
+ version: 0.3.25420981
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribamar Santarosa