Merge pull request #158 from JCook21/master

Minor updates
This commit is contained in:
Jeremy Cook
2017-03-19 22:00:34 -04:00
committed by GitHub
2 changed files with 26 additions and 22 deletions

44
Gemfile
View File

@@ -1,32 +1,36 @@
require 'rbconfig'
source 'https://rubygems.org'
this_ruby = Gem::Version.new(RUBY_VERSION)
ruby_230 = Gem::Version.new('2.3.0')
# Add dependencies required to use your gem here.
gem "thor", ">= 0.14.0"
gem 'thor', '>= 0.14.0'
# Add dependencies to develop your gem here.
# Include everything needed to run rake, tests, features, etc.
group :development do
gem "rake", ">= 0.8.7"
gem "rspec", "~> 3.5.0"
gem "guard"
gem "guard-rspec"
gem "rb-readline", "~> 0.5.0"
gem "test_construct"
gem "capture-output", "~> 1.0.0"
if RbConfig::CONFIG['host_os'] =~ /linux|freebsd|openbsd|sunos|solaris/
gem 'capture-output', '~> 1.0.0'
gem 'coveralls', require: false
gem 'guard'
gem 'guard-rspec'
gem 'jeweler', '>= 1.6.2', '< 2.2' if this_ruby < ruby_230
gem 'jeweler', '>= 1.6.2' if this_ruby >= ruby_230
gem 'rake', '>= 0.8.7'
gem 'rb-readline', '~> 0.5.0'
gem 'rspec', '~> 3.5.0'
gem 'rubocop'
gem 'test_construct'
install_if -> { RUBY_PLATFORM =~ /linux|freebsd|openbsd|sunos|solaris/ } do
gem 'libnotify'
end
if RbConfig::CONFIG['host_os'] =~ /darwin|mac os/
gem 'terminal-notifier-guard', '~> 1.6.1'
install_if -> { RUBY_PLATFORM =~ /darwin/ } do
gem 'terminal-notifier-guard', '~> 1.7.0'
end
gem "coveralls", require: false
gem "rubocop"
if RUBY_VERSION < '2.3.0'
gem "rack", "< 2"
gem "listen", "< 3"
gem "jeweler", ">= 1.6.2", "< 2.2"
else
gem "jeweler", ">= 1.6.2"
install_if -> { this_ruby < ruby_230 } do
gem 'listen', '< 3'
gem 'rack', '< 2'
end
end

View File

@@ -4,9 +4,9 @@ require 'pathname'
module Homesick
# Various utility methods that are used by Homesick
module Utils
QUIETABLE = ['say_status']
QUIETABLE = [:say_status]
PRETENDABLE = ['system']
PRETENDABLE = [:system]
QUIETABLE.each do |method_name|
define_method(method_name) do |*args|