senedsa 0.1.0 → 0.2.0

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.
data/lib/senedsa/cli.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'optparse'
2
- require 'yaml'
3
2
  require 'senedsa/version'
4
3
  require 'senedsa/about'
5
4
 
@@ -1,4 +1,5 @@
1
1
  require 'open3'
2
+ require 'psych'
2
3
 
3
4
  module Senedsa
4
5
 
@@ -32,9 +33,9 @@ module Senedsa
32
33
  unless cfg_file.nil?
33
34
  raise ConfigurationError, "unable to read configuration file #{cfg_file}" unless File.readable? cfg_file
34
35
  begin
35
- cfg_options = YAML.load File.open(cfg_file)
36
+ cfg_options = Psych.load File.open(cfg_file)
36
37
  raise ConfigurationError, "senedsa_config not allowed in configuration file (#{cfg_file})" unless cfg_options[:senedsa_config].nil?
37
- rescue SyntaxError::Psych::SyntaxError => e
38
+ rescue Psych::SyntaxError => e
38
39
  raise ConfigurationError, "syntax error in configuration file #{cfg_file}: #{e.message}"
39
40
  rescue Errno::ENOENT, Errno::EACCES => e
40
41
  raise ConfigurationError, e.message
@@ -1,3 +1,3 @@
1
1
  module Senedsa
2
- VERSION = '0.1.0'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: senedsa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: