require 'pathname' ROOT = Pathname(__FILE__).dirname.expand_path JRUBY = RUBY_PLATFORM =~ /java/ WINDOWS = Gem.win_platform? SUDO = (WINDOWS || JRUBY) ? '' : ('sudo' unless ENV['SUDOLESS']) require ROOT + 'lib/rest_adapter/version' AUTHOR = 'Scott Burton @ Joyent Inc' EMAIL = 'scott.burton [a] joyent [d] com' GEM_NAME = 'dm-rest-adapter' GEM_VERSION = DataMapperRest::VERSION GEM_DEPENDENCIES = [['dm-core', GEM_VERSION], ['dm-serializer', GEM_VERSION]] GEM_CLEAN = %w[ log pkg coverage ] GEM_EXTRAS = { :has_rdoc => true, :extra_rdoc_files => %w[ README.rdoc LICENSE TODO History.rdoc ] } PROJECT_NAME = 'datamapper' PROJECT_URL = "http://github.com/datamapper/dm-more/tree/master/adapters/#{GEM_NAME}" PROJECT_DESCRIPTION = PROJECT_SUMMARY = 'REST Adapter for DataMapper' [ ROOT, ROOT.parent.parent ].each do |dir| Pathname.glob(dir.join('tasks/**/*.rb').to_s).each { |f| require f } end