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