DRY version number.

This commit is contained in:
Ernesto Tagwerker 2015-03-09 13:19:16 -03:00
parent f7826df6f5
commit a815717668

View file

@ -1,6 +1,8 @@
version = YAML.load_file 'VERSION.yml'
Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = "database_cleaner" s.name = "database_cleaner"
s.version = "1.4.0" s.version = "#{version[:major]}.#{version[:minor]}.#{version[:patch]}"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib"] s.require_paths = ["lib"]