Rakefile in datamapper-1.0.2 vs Rakefile in datamapper-1.1.0.rc1
- old
+ new
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
+
require 'pathname'
require 'rubygems'
require 'rake'
gems = %w[
@@ -13,34 +14,31 @@
dm-timestamps
dm-validations
dm-types
]
-AUTHOR = 'Dan Kubb'
-EMAIL = 'dan.kubb@gmail.com'
-GEM_NAME = 'datamapper'
-GEM_VERSION = '1.0.2'
-GEM_DEPENDENCIES = gems.collect { |g| [ g, GEM_VERSION ] }
-GEM_CLEAN = %w[ **/*.{gem,DS_Store} *.db doc/rdoc .config **/coverage cache ]
-GEM_EXTRAS = { :has_rdoc => 'yard' }
+AUTHOR = 'Dan Kubb'
+EMAIL = 'dan.kubb@gmail.com'
+GEM_NAME = 'datamapper'
+GEM_VERSION = '1.1.0.rc1'
+GEM_DEPENDENCIES = gems.map { |gem_name| [ gem_name, "= #{GEM_VERSION}" ] }
+GEM_CLEAN = %w[ **/*.{gem,DS_Store} *.db doc/rdoc .config **/coverage cache ]
+GEM_EXTRAS = { :has_rdoc => 'yard' }
-PROJECT_NAME = 'datamapper'
-PROJECT_URL = 'http://datamapper.org'
+PROJECT_NAME = 'datamapper'
+PROJECT_URL = 'http://datamapper.org'
PROJECT_DESCRIPTION = 'Faster, Better, Simpler.'
-PROJECT_SUMMARY = 'An Object/Relational Mapper for Ruby'
+PROJECT_SUMMARY = 'An Object/Relational Mapper for Ruby'
-
WINDOWS = (RUBY_PLATFORM =~ /win32|mingw|bccwin|cygwin/) rescue nil
SUDO = WINDOWS ? '' : ('sudo' unless ENV['SUDOLESS'])
desc "Install #{GEM_NAME}"
task :install => :package do
sh %{#{SUDO} gem install --local pkg/#{GEM_NAME}-#{GEM_VERSION}}
end
task(:spec) {} # this gem does not provide any specs
-
-FileList['tasks/**/*.rake'].each { |task| import task }
## HOE TASKS
require 'hoe'