From b5b3eb9e7a0efd61ccd8246b4e9c1c5a8ce1a32d Mon Sep 17 00:00:00 2001 From: Daniel Arnold Date: Fri, 2 Aug 2019 16:48:21 -0400 Subject: [PATCH] update dependencies, including slop to the latest version and hiera-eyaml to the latest version to suppress the deprecation notice --- Gemfile | 2 +- bin/chorizo | 14 +++++++++----- chorizo.gemspec | 9 ++++----- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/Gemfile b/Gemfile index d1e064d..43bd16b 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -gem 'slop', '~> 3.6' +gem 'slop', '~> 4.7' gem 'colorize' gem 'hiera-eyaml' diff --git a/bin/chorizo b/bin/chorizo index 94f9497..da96f9b 100755 --- a/bin/chorizo +++ b/bin/chorizo @@ -4,12 +4,16 @@ require 'chorizo' require 'slop' require 'colorize' -opts = Slop.parse(help: true) do - banner 'Usage: chorizo [options]' +opts = Slop.parse do |o| + o.banner = 'usage: chorizo [options]' - on :t, :target, 'target host. one of "cloud66" or "heroku"', argument: true - on :e, :environment, 'environment. e.x. "staging"', argument: true - on :a, :app, 'app. (for heroku only)', argument: :optional + o.string '-t', '--target', 'target host. one of "cloud66" or "heroku"' + o.string '-e', '--environment', 'environment. e.x. "staging"' + o.string '-a', '--app', 'app. (for heroku only)' + o.on '-h', '--help' do + puts o + exit + end end unless opts[:environment] diff --git a/chorizo.gemspec b/chorizo.gemspec index d323c09..ee1c565 100644 --- a/chorizo.gemspec +++ b/chorizo.gemspec @@ -1,15 +1,14 @@ Gem::Specification.new do |s| s.name = 'chorizo' - s.version = '0.1.7' - s.date = '2018-02-16' + s.version = '0.2.0' s.summary = 'Parse and set environment variables on hosting providers' s.description = 'Parse and set environment variables on hosting providers' s.authors = ["Daniel Arnold"] s.email = 'dan@cacheventures.com' s.files = Dir['lib/*'] - s.add_runtime_dependency 'colorize', '0.7.7' - s.add_runtime_dependency 'slop', '~> 3.6' - s.add_runtime_dependency 'hiera-eyaml', '2.1.0' + s.add_runtime_dependency 'colorize', '~> 0.8' + s.add_runtime_dependency 'slop', '~> 4.7' + s.add_runtime_dependency 'hiera-eyaml', '~> 3.0' s.executables << 'chorizo' s.homepage = 'http://rubygems.org/gems/chorizo' s.homepage = 'https://github.com/cacheventures/chorizo'