Browse files

Remove jeweler

  • Loading branch information...
1 parent ddf9682 commit 0c8a262dd2be3ab23e9d469076a15bf2b92fb774 @solnic solnic committed Nov 14, 2011
Showing with 31 additions and 168 deletions.
  1. +3 −12 Gemfile
  2. +1 −22 Rakefile
  3. +22 −134 dm-types.gemspec
  4. +5 −0 lib/dm-types/version.rb
View
15 Gemfile
@@ -1,6 +1,8 @@
require 'pathname'
-source 'http://rubygems.org'
+source :rubygems
+
+gemspec
SOURCE = ENV.fetch('SOURCE', :git).to_sym
REPO_POSTFIX = SOURCE == :path ? '' : '.git'
@@ -10,21 +12,10 @@ DO_VERSION = '~> 0.10.6'
DM_DO_ADAPTERS = %w[ sqlite postgres mysql oracle sqlserver ]
CURRENT_BRANCH = ENV.fetch('GIT_BRANCH', 'master')
-gem 'bcrypt-ruby', '~> 3.0.0'
gem 'dm-core', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-core#{REPO_POSTFIX}", :branch => CURRENT_BRANCH
-gem 'fastercsv', '~> 1.5.4'
-gem 'multi_json', '~> 1.0.3'
-gem 'json', '~> 1.5.4', :platforms => [ :ruby_18 ]
-gem 'stringex', '~> 1.3.0'
-gem 'uuidtools', '~> 2.1.2'
group :development do
-
gem 'dm-validations', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-validations#{REPO_POSTFIX}", :branch => CURRENT_BRANCH
- gem 'jeweler', '~> 1.6.4'
- gem 'rake', '~> 0.9.2'
- gem 'rspec', '~> 1.3.2'
-
end
platforms :mri_18 do
View
23 Rakefile
@@ -1,25 +1,4 @@
require 'rubygems'
require 'rake'
-begin
- gem 'jeweler', '~> 1.6.4'
- require 'jeweler'
-
- Jeweler::Tasks.new do |gem|
- gem.name = 'dm-types'
- gem.summary = 'DataMapper plugin providing extra data types'
- gem.description = gem.summary
- gem.email = 'dan.kubb [a] gmail [d] com'
- gem.homepage = 'http://github.com/datamapper/%s' % gem.name
- gem.authors = [ 'Dan Kubb' ]
- gem.has_rdoc = 'yard'
-
- gem.rubyforge_project = 'datamapper'
- end
-
- Jeweler::GemcutterTasks.new
-
- FileList['tasks/**/*.rake'].each { |task| import task }
-rescue LoadError
- puts 'Jeweler (or a dependency) not available. Install it with: gem install jeweler -v 1.6.4'
-end
+FileList['tasks/**/*.rake'].each { |task| import task }
View
156 dm-types.gemspec
@@ -1,140 +1,28 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/dm-types/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = "dm-types"
- s.version = "1.3.0.beta"
+Gem::Specification.new do |gem|
+ gem.authors = [ 'Dan Kubb' ]
+ gem.email = [ "dan.kubb@gmail.com" ]
+ gem.summary = "DataMapper plugin providing extra data types"
+ gem.description = gem.summary
+ gem.homepage = "http://datamapper.org"
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Dan Kubb"]
- s.date = "2011-09-09"
- s.description = "DataMapper plugin providing extra data types"
- s.email = "dan.kubb [a] gmail [d] com"
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- "Gemfile",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "dm-types.gemspec",
- "lib/dm-types.rb",
- "lib/dm-types/api_key.rb",
- "lib/dm-types/bcrypt_hash.rb",
- "lib/dm-types/comma_separated_list.rb",
- "lib/dm-types/csv.rb",
- "lib/dm-types/enum.rb",
- "lib/dm-types/epoch_time.rb",
- "lib/dm-types/file_path.rb",
- "lib/dm-types/flag.rb",
- "lib/dm-types/ip_address.rb",
- "lib/dm-types/json.rb",
- "lib/dm-types/paranoid/base.rb",
- "lib/dm-types/paranoid_boolean.rb",
- "lib/dm-types/paranoid_datetime.rb",
- "lib/dm-types/regexp.rb",
- "lib/dm-types/slug.rb",
- "lib/dm-types/support/dirty_minder.rb",
- "lib/dm-types/support/flags.rb",
- "lib/dm-types/uri.rb",
- "lib/dm-types/uuid.rb",
- "lib/dm-types/yaml.rb",
- "spec/fixtures/api_user.rb",
- "spec/fixtures/article.rb",
- "spec/fixtures/bookmark.rb",
- "spec/fixtures/invention.rb",
- "spec/fixtures/network_node.rb",
- "spec/fixtures/person.rb",
- "spec/fixtures/software_package.rb",
- "spec/fixtures/ticket.rb",
- "spec/fixtures/tshirt.rb",
- "spec/integration/api_key_spec.rb",
- "spec/integration/bcrypt_hash_spec.rb",
- "spec/integration/comma_separated_list_spec.rb",
- "spec/integration/dirty_minder_spec.rb",
- "spec/integration/enum_spec.rb",
- "spec/integration/epoch_time_spec.rb",
- "spec/integration/file_path_spec.rb",
- "spec/integration/flag_spec.rb",
- "spec/integration/ip_address_spec.rb",
- "spec/integration/json_spec.rb",
- "spec/integration/slug_spec.rb",
- "spec/integration/uri_spec.rb",
- "spec/integration/uuid_spec.rb",
- "spec/integration/yaml_spec.rb",
- "spec/rcov.opts",
- "spec/shared/flags_shared_spec.rb",
- "spec/shared/identity_function_group.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb",
- "spec/unit/bcrypt_hash_spec.rb",
- "spec/unit/csv_spec.rb",
- "spec/unit/enum_spec.rb",
- "spec/unit/epoch_time_spec.rb",
- "spec/unit/file_path_spec.rb",
- "spec/unit/flag_spec.rb",
- "spec/unit/ip_address_spec.rb",
- "spec/unit/json_spec.rb",
- "spec/unit/paranoid_boolean_spec.rb",
- "spec/unit/paranoid_datetime_spec.rb",
- "spec/unit/regexp_spec.rb",
- "spec/unit/uri_spec.rb",
- "spec/unit/yaml_spec.rb",
- "tasks/spec.rake",
- "tasks/yard.rake",
- "tasks/yardstick.rake"
- ]
- s.homepage = "http://github.com/datamapper/dm-types"
- s.require_paths = ["lib"]
- s.rubyforge_project = "datamapper"
- s.rubygems_version = "1.8.11"
- s.summary = "DataMapper plugin providing extra data types"
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {spec}/*`.split("\n")
+ gem.extra_rdoc_files = %w[LICENSE README.rdoc]
- if s.respond_to? :specification_version then
- s.specification_version = 3
+ gem.name = "dm-types"
+ gem.require_paths = [ "lib" ]
+ gem.version = DataMapper::Types::VERSION
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.3.0.beta') then
- s.add_runtime_dependency(%q<bcrypt-ruby>, ["~> 3.0.0"])
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.3.0.beta"])
- s.add_runtime_dependency(%q<fastercsv>, ["~> 1.5.4"])
- s.add_runtime_dependency(%q<multi_json>, ["~> 1.0.3"])
- s.add_runtime_dependency(%q<json>, ["~> 1.5.4"])
- s.add_runtime_dependency(%q<stringex>, ["~> 1.3.0"])
- s.add_runtime_dependency(%q<uuidtools>, ["~> 2.1.2"])
- s.add_development_dependency(%q<dm-validations>, ["~> 1.3.0.beta"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
- s.add_development_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_development_dependency(%q<rspec>, ["~> 1.3.2"])
- else
- s.add_dependency(%q<bcrypt-ruby>, ["~> 3.0.0"])
- s.add_dependency(%q<dm-core>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<fastercsv>, ["~> 1.5.4"])
- s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
- s.add_dependency(%q<json>, ["~> 1.5.4"])
- s.add_dependency(%q<stringex>, ["~> 1.3.0"])
- s.add_dependency(%q<uuidtools>, ["~> 2.1.2"])
- s.add_dependency(%q<dm-validations>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
- end
- else
- s.add_dependency(%q<bcrypt-ruby>, ["~> 3.0.0"])
- s.add_dependency(%q<dm-core>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<fastercsv>, ["~> 1.5.4"])
- s.add_dependency(%q<multi_json>, ["~> 1.0.3"])
- s.add_dependency(%q<json>, ["~> 1.5.4"])
- s.add_dependency(%q<stringex>, ["~> 1.3.0"])
- s.add_dependency(%q<uuidtools>, ["~> 2.1.2"])
- s.add_dependency(%q<dm-validations>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
- s.add_dependency(%q<rake>, ["~> 0.9.2"])
- s.add_dependency(%q<rspec>, ["~> 1.3.2"])
- end
-end
+ gem.add_runtime_dependency('dm-core', '~> 1.3.0.beta')
+ gem.add_runtime_dependency('bcrypt-ruby', '~> 3.0.0')
+ gem.add_runtime_dependency('fastercsv', '~> 1.5.4')
+ gem.add_runtime_dependency('multi_json', '~> 1.0.3')
+ gem.add_runtime_dependency('stringex', '~> 1.3.0')
+ gem.add_runtime_dependency('uuidtools', '~> 2.1.2')
+ gem.add_development_dependency('rake', '~> 0.9.2')
+ gem.add_development_dependency('rspec', '~> 1.3.2')
+end
View
5 lib/dm-types/version.rb
@@ -0,0 +1,5 @@
+module DataMapper
+ module Types
+ VERSION = '1.3.0.beta'
+ end
+end

0 comments on commit 0c8a262

Please sign in to comment.