Updates to Gemfile to clean it up.

This commit is contained in:
Jeremy Cook
2017-03-19 15:57:22 -04:00
parent 71bb120a12
commit f24030b51f

42
Gemfile
View File

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