seedbank.gemspec in seedbank-0.4.0 vs seedbank.gemspec in seedbank-0.5.0.pre

- old
+ new

@@ -1,59 +1,38 @@ -# -*- encoding: utf-8 -*- -$:.push File.expand_path("../lib", __FILE__) -require "seedbank/version" +# coding: utf-8 +# frozen_string_literal: true +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'seedbank/version' +require 'English' -Gem::Specification.new do |s| - s.name = %q{seedbank} - s.version = Seedbank::VERSION - s.date = `git log -1 --format="%cd" --date=short lib/seedbank/version.rb` - - s.required_rubygems_version = Gem::Requirement.new(">=1.2.0") if s.respond_to?(:required_rubygems_version=) - s.rubygems_version = %q{1.3.5} - s.license = "MIT" - - s.authors = ["James McCarthy"] - s.email = %q{james2mccarthy@gmail.com} - s.homepage = %q{http://github.com/james2m/seedbank} - s.summary = %q{ - Extends Rails seeds to split out complex seeds into their own file - and have different seeds for each environment. +Gem::Specification.new do |spec| + spec.name = 'seedbank' + spec.version = Seedbank::VERSION + spec.authors = ['James McCarthy'] + spec.email = ['[james2mccarthy@gmail.com'] + spec.required_ruby_version = '>= 2.1' + spec.summary = 'Generate seeds data for your Ruby application.' + spec.description = %{ + Adds simple rake commands for seeding your database. Simple dependencies let you organise your seeds. + If you are using Rails, Seedbank extends Rails seeds and lets you add seeds for each environment. } - s.description = %q{ - Extends Rails seeds to split out complex seeds into multiple - files and lets each environment have it's own seeds. - } - s.license = "MIT" + spec.date = `git log -1 --format="%cd" --date=short lib/seedbank/version.rb` + spec.homepage = 'http://github.com/james2m/seedbank' + spec.license = 'MIT' - s.files = `git ls-files`.split("\n") - s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") - s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } - s.require_paths = ["lib"] + spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR) + spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) + spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } + spec.require_paths = ['lib'] - s.rdoc_options = ["--charset=UTF-8"] - s.extra_rdoc_files = [ - "MIT-LICENSE", - "README.md" - ] + spec.rdoc_options = ['--charset=UTF-8'] + spec.extra_rdoc_files = ['MIT-LICENSE', 'README.md'] - s.add_development_dependency "minitest", "~> 5.0" - s.add_development_dependency "rails", "~> 3.2" + spec.add_dependency 'rake', '>= 10.0' - s.post_install_message = %q{ - ================================================================================ - - Rails 2.x - --------- - If you are using Seedbank with Rails 2.x you will need to place the following at - the end of your Rakefile so Rubygems can load the seedbank tasks; - - require 'seedbank' - Seedbank.load_tasks if defined?(Seedbank) - - Rails 3.x and 4.x - --------- - Your work here is done! - - ================================================================================ - } + spec.add_development_dependency 'bundler', '~> 1.11' + spec.add_development_dependency 'rails', '~> 4.2' + spec.add_development_dependency 'minitest', '~> 5.0' + spec.add_development_dependency 'm', '~> 1.5' + spec.add_development_dependency 'byebug', '~> 9.0' end -