Sha256: 1a957dcf9895e992b459718da9ef83047d21027e92a45beeaa6b782f007d7dc6

Contents?: true

Size: 1.3 KB

Versions: 12

Compression:

Stored size: 1.3 KB

Contents

$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'

require 'yaml'
require 'minitest/autorun'
require 'minitest/reporters'
require 'iostreams'
require 'awesome_print'
require 'symmetric-encryption'

# Since PGP libraries use UTC for Dates
ENV['TZ'] = 'UTC'

Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new

# Test cipher
SymmetricEncryption.cipher = SymmetricEncryption::Cipher.new(
  cipher_name: 'aes-128-cbc',
  key:         '1234567890ABCDEF1234567890ABCDEF',
  iv:          '1234567890ABCDEF',
  encoding:    :base64strict
)

#IOStreams::Pgp.logger = Logger.new($stdout)
#IOStreams::Pgp.executable = 'gpg1'

# Test PGP Keys
unless IOStreams::Pgp.has_key?(email: 'sender@example.org')
  puts 'Generating test PGP key: sender@example.org'
  IOStreams::Pgp.generate_key(name: 'Sender', email: 'sender@example.org', passphrase: 'sender_passphrase', key_length: 2048)
end
unless IOStreams::Pgp.has_key?(email: 'receiver@example.org')
  puts 'Generating test PGP key: receiver@example.org'
  IOStreams::Pgp.generate_key(name: 'Receiver', email: 'receiver@example.org', passphrase: 'receiver_passphrase', key_length: 2048)
end

# Test paths
root = File.expand_path(File.join(__dir__, '../tmp'))
IOStreams.add_root(:default, File.join(root, 'default'))
IOStreams.add_root(:downloads, File.join(root, 'downloads'))

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
iostreams-1.1.0 test/test_helper.rb
iostreams-1.0.0 test/test_helper.rb
iostreams-1.0.0.beta7 test/test_helper.rb
iostreams-1.0.0.beta6 test/test_helper.rb
iostreams-1.0.0.beta5 test/test_helper.rb
iostreams-1.0.0.beta4 test/test_helper.rb
iostreams-1.0.0.beta3 test/test_helper.rb
iostreams-1.0.0.beta2 test/test_helper.rb
iostreams-1.0.0.beta test/test_helper.rb
iostreams-0.20.3 test/test_helper.rb
iostreams-0.20.2 test/test_helper.rb
iostreams-0.20.1 test/test_helper.rb