diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b0e8ac..7f42f60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## V0.3.1 +Quotify CLI command can also be used to display random quotes without calling the update function. Calling `quotify` without parameter will now show a quote instead of returning null. Also the CLI logo was fixed. + ## V0.3.0 Introduction quotify CLI. Pretty barebone implementation with update method. `quotify update` or `quotify u` updates the database. diff --git a/Gemfile.lock b/Gemfile.lock index 1d2056e..60b0b66 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - quotify (0.3.0) + quotify (0.3.1) httparty json diff --git a/bin/quotify b/bin/quotify index da02eb5..f4ad7b0 100755 --- a/bin/quotify +++ b/bin/quotify @@ -4,16 +4,17 @@ require 'quotify' require 'HTTParty' require 'yaml' -if ARGV[0] == 'update' || ARGV[0] == 'u' - puts "-------------------------------------\n"\ - " ____ __ _ ____ +puts "-------------------------------------\n"\ + " ____ __ _ ____ / __ \\__ ______ / /_(_) __/_ __ / / / / / / / __ \\/ __/ / /_/ / / / / /_/ / /_/ / /_/ / /_/ / __/ /_/ / \\___\\_\\__,_/\\____/\\__/_/_/ \\__, / - /____/ \n"\ - "-------------------------------------\n"\ - "#{Quotify.generate}\n\n" + .____/ / + /______/\n"\ + "-------------------------------------\n"\ + "#{Quotify.generate}\n\n" +if ARGV[0] == 'update' || ARGV[0] == 'u' payload = YAML.load(HTTParty.get('https://raw.githubusercontent.com/jusleg/quotify-ruby/master/lib/quotify/quotes.yml')) if Quotify.config[:updated_at] < payload[:updated_at] diff --git a/quotify.gemspec b/quotify.gemspec index 8d0eb3d..d70722d 100644 --- a/quotify.gemspec +++ b/quotify.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'quotify' - s.version = '0.3.0' + s.version = '0.3.1' s.date = '2018-01-31' s.summary = 'Generates random quotes' s.description = 'Generates random quotes. Perfect placeholder text.'