Skip to content

Commit

Permalink
Fixing args expansion for Ruby 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kigster committed Feb 12, 2021
1 parent 2459414 commit 4d7b521
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion README.adoc
@@ -1,4 +1,7 @@
= *sym*_Symmetric Encryption for Humans_
= **Sym**_Symmetric Encryption for Humans_
:source-highlighter: rouge
:rouge-style: base16.monokai
:icons: font
:toc:
:sectnum:
:toclevel: 4
Expand Down Expand Up @@ -47,6 +50,8 @@ Additionally, Sym comes with a helpful BASH wrapper `symit`.

== Supported Ruby Versions

NOTE: Ruby 3.0.0 is only supported by Sym version 3.0.1 and later.

Sym currently builds and runs on the following ruby versions on Travis CI:

.Ruby Version Compatibility
Expand Down
2 changes: 1 addition & 1 deletion lib/sym/extensions/instance_methods.rb
Expand Up @@ -92,7 +92,7 @@ def encrypt_data(data, cipher_name, iv = nil, &block)
cipher_name: cipher_struct.cipher.name,
salt: cipher_struct.salt,
compress: !compression_enabled }
wrapper_struct = WrapperStruct.new(arguments)
wrapper_struct = WrapperStruct.new(**arguments)
encode(wrapper_struct, false)
end

Expand Down
2 changes: 1 addition & 1 deletion lib/sym/version.rb
@@ -1,5 +1,5 @@
module Sym
VERSION = '3.0.0'
VERSION = '3.0.1'
DESCRIPTION = <<~eof
Sym is a ruby library (gem) that offers both the command line interface
Expand Down
2 changes: 1 addition & 1 deletion spec/sym/data_spec.rb
Expand Up @@ -6,7 +6,7 @@ module Data
let(:iv) { OpenSSL::Random.random_bytes 16 }
let(:cipher_name) { Sym::Configuration.property(:data_cipher) }
let(:args) { { encrypted_data: 1234, iv: iv, cipher_name: cipher_name, salt: 'Boo' } }
let(:ws) { WrapperStruct.new(args) }
let(:ws) { WrapperStruct.new(** args) }

context 'WrapperStruct' do

Expand Down
2 changes: 1 addition & 1 deletion sym.gemspec
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.required_ruby_version = '>= 2.3'
spec.required_ruby_version = '>= 2'
spec.post_install_message = <<~EOF
Thank you for installing Sym!
Expand Down

0 comments on commit 4d7b521

Please sign in to comment.