capistrano-db-tasks.gemspec in capistrano-db-tasks-0.4 vs capistrano-db-tasks.gemspec in capistrano-db-tasks-0.5
- old
+ new
@@ -1,22 +1,25 @@
# -*- encoding: utf-8 -*-
-$:.push File.expand_path("../lib", __FILE__)
+lib = File.expand_path("../lib", __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "capistrano-db-tasks/version"
-Gem::Specification.new do |s|
- s.name = "capistrano-db-tasks"
- s.version = CapistranoDbTasks::VERSION
- s.authors = ["Sebastien Gruhier"]
- s.email = ["sebastien.gruhier@xilinus.com"]
- s.homepage = "https://github.com/sgruhier/capistrano-db-tasks"
- s.summary = "A collection of capistrano tasks for syncing assets and databases"
- s.description = "A collection of capistrano tasks for syncing assets and databases"
+Gem::Specification.new do |gem|
+ gem.name = "capistrano-db-tasks"
+ gem.version = CapistranoDbTasks::VERSION
+ gem.authors = ["Sebastien Gruhier"]
+ gem.email = ["sebastien.gruhier@xilinus.com"]
+ gem.homepage = "https://github.com/sgruhier/capistrano-db-tasks"
+ gem.summary = "A collection of capistrano tasks for syncing assets and databases"
+ gem.description = "A collection of capistrano tasks for syncing assets and databases"
- s.rubyforge_project = "capistrano-db-tasks"
+ gem.rubyforge_project = "capistrano-db-tasks"
- 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"]
+ gem.licenses = ["MIT"]
- s.add_runtime_dependency "capistrano", ">= 3.0.0"
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
+ gem.require_paths = ["lib"]
+
+ gem.add_runtime_dependency "capistrano", ">= 3.0.0"
end