Permalink
Browse files

Updates gemspec to use 'pomo/os'

  • Loading branch information...
1 parent 82c13c7 commit 6fb7e5cadb642bf68f3ceb3d03a71bcfc1ba41ff @stephenmckinney stephenmckinney committed Dec 18, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 pomo.gemspec
View
8 pomo.gemspec
@@ -1,6 +1,8 @@
# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
+require 'rbconfig'
+require 'pomo/os'
require 'pomo/version'
Gem::Specification.new do |spec|
@@ -22,9 +24,9 @@ Gem::Specification.new do |spec|
spec.add_dependency('commander', '~> 4.1')
spec.add_dependency('octokit', '~> 1.19')
- spec.add_dependency('terminal-notifier', '~> 1.4') if /darwin/ =~ RUBY_PLATFORM
- spec.add_dependency('growl', '~> 1.0') if /darwin/ =~ RUBY_PLATFORM
- spec.add_dependency('libnotify', '~> 0.8') if /linux/ =~ RUBY_PLATFORM
+ spec.add_dependency('terminal-notifier', '~> 1.4') if Pomo::OS.mac?
+ spec.add_dependency('growl', '~> 1.0') if Pomo::OS.mac? || Pomo::OS.windows?
+ spec.add_dependency('libnotify', '~> 0.8') if Pomo::OS.linux?
spec.add_development_dependency('rspec', '~> 2.12')
end

0 comments on commit 6fb7e5c

Please sign in to comment.