git-switcher.gemspec in git-switcher-0.0.2 vs git-switcher.gemspec in git-switcher-1.0.0

- old
+ new

@@ -1,50 +1,32 @@ -# -*- encoding: utf-8 -*- -lib = File.expand_path('../lib', __FILE__) +lib = File.expand_path('lib', __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) -require 'git-switcher/version' +require 'git/switcher/version' -Gem::Specification.new do |gem| - gem.name = "git-switcher" - gem.version = Git::Switcher::VERSION - gem.authors = ["Peter Vandenberk"] - gem.email = ["pvandenberk@mac.com"] - gem.description = %q{Git command that implements a visual CLI and REPL for easily switching between git tags and branches} - gem.summary = %q{Visual CLI and REPL for switching between git tags and branches} - gem.homepage = "https://github.com/pvdb/git-switcher" +Gem::Specification.new do |spec| + spec.name = Git::Switcher::NAME + spec.version = Git::Switcher::VERSION + spec.authors = ['Peter Vandenberk'] + spec.email = ['pvandenberk@mac.com'] - gem.files = `git ls-files`.split($/) - gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } - gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) - gem.require_paths = ["lib"] + spec.summary = 'The ultimate CLI git branch and tag switcher' + spec.description = 'Easily switch between git tags and branches' + spec.homepage = 'https://github.com/pvdb/git-switcher' + spec.license = 'MIT' - gem.add_dependency('methadone') - gem.add_dependency('rugged') - gem.add_dependency('trollop') + spec.files = Dir.chdir(File.expand_path(__dir__)) do + `git ls-files -z` + .split("\x0") + .reject { |f| f.match(%r{^(test|spec|features)/}) } + end + spec.bindir = 'exe' + spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } + spec.require_paths = ['lib'] - # for developing - gem.add_development_dependency('rdoc') - gem.add_development_dependency('awesome_print') + spec.add_dependency 'rainbow', '~> 3.0' + spec.add_dependency 'rugged', '~> 0.27' - # for debugging - gem.add_development_dependency('pry') - gem.add_development_dependency('pry-debugger') - gem.add_development_dependency('pry-stack_explorer') - - # for testing - gem.add_development_dependency('rspec') - gem.add_development_dependency('cucumber') - gem.add_development_dependency('aruba') - - # for monitoring - gem.add_development_dependency('guard') - gem.add_development_dependency('growl') - gem.add_development_dependency('rb-fsevent') - gem.add_development_dependency('rb-readline') - - # for TDD/BDD/CI - gem.add_development_dependency('guard-rspec') - gem.add_development_dependency('guard-cucumber') - gem.add_development_dependency('rspec-pride') - gem.add_development_dependency('cucumber-pride') - + spec.add_development_dependency 'bundler' + spec.add_development_dependency 'pry' + spec.add_development_dependency 'rake' + spec.add_development_dependency 'rubocop' end