From 640f11615ca8c3b454e27e665ddc22ac6d7c54ce Mon Sep 17 00:00:00 2001 From: Cezary Baginski Date: Sat, 6 Jun 2015 13:59:13 +0200 Subject: [PATCH] reorganize Gemfile+gemspec --- Gemfile | 19 +++++++++++++++---- guard-puppet.gemspec | 3 --- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Gemfile b/Gemfile index 00a84d5..a1033c7 100644 --- a/Gemfile +++ b/Gemfile @@ -1,9 +1,20 @@ source "http://rubygems.org" # Specify your gem's dependencies in guard-puppet.gemspec -gemspec +gemspec development_group: :gem_build_tools -require 'rbconfig' -if RbConfig::CONFIG['host_os'] =~ /linux/ - gem 'libnotify' +group :development do + + require 'rbconfig' + if RbConfig::CONFIG['host_os'] =~ /linux/ + gem 'libnotify' + end +end + +group :test do + gem 'rspec', '~> 2.6.0' + gem 'mocha' +end + +group :gem_build_tools do end diff --git a/guard-puppet.gemspec b/guard-puppet.gemspec index 5749206..e1f23a0 100644 --- a/guard-puppet.gemspec +++ b/guard-puppet.gemspec @@ -20,7 +20,4 @@ Gem::Specification.new do |s| s.add_dependency 'guard' s.add_dependency 'puppet' - - s.add_development_dependency 'rspec', '~> 2.6.0' - s.add_development_dependency 'mocha' end