pomo.gemspec in pomo-1.0.1 vs pomo.gemspec in pomo-2.0.0

- old
+ new

@@ -1,38 +1,30 @@ # -*- encoding: utf-8 -*- +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'pomo/version' -Gem::Specification.new do |s| - s.name = %q{pomo} - s.version = "1.0.1" +Gem::Specification.new do |spec| + spec.name = 'pomo' + spec.version = Pomo::VERSION + spec.authors = ['TJ Holowaychuk', 'Steve McKinney'] + spec.email = ['tj@vision-media.ca', 'stevemckinney@gmail.com'] + spec.summary = "pomo-#{Pomo::VERSION}" + spec.description = 'Pomodoro time management for the command-line' + spec.homepage = 'https://github.com/visionmedia/pomo' - s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version= - s.authors = ["TJ Holowaychuk"] - s.date = %q{2010-03-10} - s.default_executable = %q{pomo} - s.description = %q{Pomodoro time management for the command-line} - s.email = %q{tj@vision-media.ca} - s.executables = ["pomo"] - s.extra_rdoc_files = ["bin/pomo", "lib/pomo.rb", "lib/pomo/github_task.rb", "lib/pomo/list.rb", "lib/pomo/task.rb", "lib/pomo/version.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"] - s.files = ["History.md", "Manifest", "Rakefile", "Readme.md", "bin/pomo", "lib/pomo.rb", "lib/pomo/github_task.rb", "lib/pomo/list.rb", "lib/pomo/task.rb", "lib/pomo/version.rb", "pomo.gemspec", "spec/pomo_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"] - s.homepage = %q{http://github.com/visionmedia/pomo} - s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Pomo", "--main", "Readme.md"] - s.require_paths = ["lib"] - s.rubyforge_project = %q{pomo} - s.rubygems_version = %q{1.3.6} - s.summary = %q{Pomodoro time management for the command-line} + spec.rubyforge_project = 'pomo' - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 + spec.files = `git ls-files`.split($/) + spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) } + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.require_paths = ['lib'] + spec.rdoc_options = ['--line-numbers', '--inline-source', '--title', 'Pomo', '--main', 'Readme.md'] - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - s.add_runtime_dependency(%q<commander>, [">= 4.0.2"]) - s.add_runtime_dependency(%q<growl>, [">= 1.0.3"]) - else - s.add_dependency(%q<commander>, [">= 4.0.2"]) - s.add_dependency(%q<growl>, [">= 1.0.3"]) - end - else - s.add_dependency(%q<commander>, [">= 4.0.2"]) - s.add_dependency(%q<growl>, [">= 1.0.3"]) - end + 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_development_dependency('rspec', '~> 2.12') end