mirror of
https://github.com/cliffe/SecGen.git
synced 2026-02-20 13:50:45 +00:00
Added bundle exec local.rb script calls. Included require 'digest/sha3' explicitly. Removed duplicate Gemfile entries.
This commit is contained in:
2
Gemfile
2
Gemfile
@@ -30,8 +30,6 @@ gem 'braille', :git => "http://github.com/nicanor/braille.git"
|
||||
gem 'bases'
|
||||
gem 'huffman'
|
||||
gem 'ruby-graphviz'
|
||||
gem 'smbhash'
|
||||
gem 'scrypt'
|
||||
gem 'rsa'
|
||||
gem 'gpgmeh'
|
||||
gem 'digest-sha3', :git => "http://github.com/izetex/digest-sha3-ruby"
|
||||
|
||||
@@ -319,13 +319,11 @@ class System
|
||||
end
|
||||
# execute calculation script and format output to an array of Base64 strings
|
||||
Print.verbose "Running: ruby #{selected.local_calc_file} #{args_string[0..200]} ..."
|
||||
stdout, stderr, status = Open3.capture3("ruby #{selected.local_calc_file}", :stdin_data => args_string)
|
||||
command = "bundle exec ruby #{selected.local_calc_file}"
|
||||
stdout, stderr, status = Open3.capture3(command, :stdin_data => args_string)
|
||||
puts stderr
|
||||
outputs = stdout.chomp
|
||||
|
||||
# command = "ruby #{selected.local_calc_file} #{args_string}"
|
||||
# Print.verbose "Running: #{command}"
|
||||
# outputs = `#{command}`.chomp
|
||||
unless status
|
||||
Print.err "Module failed to run (#{command})"
|
||||
# TODO: this works, but subsequent attempts at resolving the scenario always fail ("Error can't add no data...")
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/ruby
|
||||
require_relative '../../../../../lib/objects/local_hash_encoder.rb'
|
||||
require 'digest/sha3'
|
||||
|
||||
class SHA3_224_Encoder < HashEncoder
|
||||
def initialize
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/ruby
|
||||
require_relative '../../../../../lib/objects/local_hash_encoder.rb'
|
||||
require 'digest/sha3'
|
||||
|
||||
class SHA3_256_Encoder < HashEncoder
|
||||
def initialize
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/ruby
|
||||
require_relative '../../../../../lib/objects/local_hash_encoder.rb'
|
||||
require 'digest/sha3'
|
||||
|
||||
class SHA3_384_Encoder < HashEncoder
|
||||
def initialize
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/ruby
|
||||
require_relative '../../../../../lib/objects/local_hash_encoder.rb'
|
||||
require 'digest/sha3'
|
||||
|
||||
class SHA3_512_Encoder < HashEncoder
|
||||
def initialize
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
#!/usr/bin/ruby
|
||||
require_relative '../../../../../lib/objects/local_hash_encoder.rb'
|
||||
require 'digest/sha3'
|
||||
|
||||
class SHA1Encoder < HashEncoder
|
||||
class SHA3Encoder < HashEncoder
|
||||
def initialize
|
||||
super
|
||||
self.module_name = 'SHA1 Encoder'
|
||||
@@ -12,4 +13,4 @@ class SHA1Encoder < HashEncoder
|
||||
end
|
||||
end
|
||||
|
||||
SHA1Encoder.new.run
|
||||
SHA3Encoder.new.run
|
||||
|
||||
Reference in New Issue
Block a user