Permalink
Browse files

Remove jeweler

  • Loading branch information...
1 parent 9dd2e4c commit 0e0ae772ef06b8002a6c47969563bd388dd38f5b @solnic solnic committed Nov 15, 2011
Showing with 26 additions and 118 deletions.
  1. +3 −9 Gemfile
  2. +1 −21 Rakefile
  3. +17 −88 dm-rails.gemspec
  4. +5 −0 lib/dm-rails/version.rb
View
12 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'
@@ -19,14 +21,6 @@ gem 'dm-active_model', DM_VERSION, SOURCE => "#{DATAMAPPER}/dm-active_model#{REP
gem 'actionpack', RAILS_VERSION, :require => 'action_pack'
gem 'railties', RAILS_VERSION, :require => 'rails'
-group :development do
-
- gem 'jeweler', '~> 1.6.4'
- gem 'rake', '~> 0.9.2'
- gem 'rspec', '~> 1.3.2'
-
-end
-
platforms :mri_18 do
group :quality do
View
@@ -1,27 +1,7 @@
require 'rubygems'
require 'rake'
-begin
- gem 'jeweler', '~> 1.6.4'
- require 'jeweler'
-
- Jeweler::Tasks.new do |gem|
- gem.name = 'dm-rails'
- gem.summary = 'Use DataMapper with Rails 3'
- gem.description = 'Integrate DataMapper with Rails 3'
- gem.email = 'gamsnjaga@gmail.com'
- gem.homepage = 'http://github.com/datamapper/%s' % gem.name
- gem.authors = [ 'Martin Gamsjaeger (snusnu)', 'Dan Kubb' ]
-
- 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'
-end
+FileList['tasks/**/*.rake'].each { |task| import task }
require "spec/rake/spectask"
Spec::Rake::SpecTask.new
View
@@ -1,94 +1,23 @@
-# 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-rails/version', __FILE__)
-Gem::Specification.new do |s|
- s.name = "dm-rails"
- s.version = "1.3.0.beta"
+Gem::Specification.new do |gem|
+ gem.authors = [ 'Martin Gamsjaeger (snusnu)', 'Dan Kubb' ]
+ gem.email = [ 'gamsnjaga@gmail.com' ]
+ gem.summary = "Integrate DataMapper with Rails 3"
+ 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 = ["Martin Gamsjaeger (snusnu)", "Dan Kubb"]
- s.date = "2011-10-09"
- s.description = "Integrate DataMapper with Rails 3"
- s.email = "gamsnjaga@gmail.com"
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- "Gemfile",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "dm-rails.gemspec",
- "lib/dm-rails.rb",
- "lib/dm-rails/configuration.rb",
- "lib/dm-rails/mass_assignment_security.rb",
- "lib/dm-rails/middleware/identity_map.rb",
- "lib/dm-rails/multiparameter_attributes.rb",
- "lib/dm-rails/railtie.rb",
- "lib/dm-rails/railties/controller_runtime.rb",
- "lib/dm-rails/railties/database.rake",
- "lib/dm-rails/railties/i18n_support.rb",
- "lib/dm-rails/railties/log_listener.rb",
- "lib/dm-rails/railties/log_subscriber.rb",
- "lib/dm-rails/session_store.rb",
- "lib/dm-rails/setup.rb",
- "lib/dm-rails/storage.rb",
- "lib/generators/data_mapper.rb",
- "lib/generators/data_mapper/migration/migration_generator.rb",
- "lib/generators/data_mapper/migration/templates/migration.rb",
- "lib/generators/data_mapper/model/model_generator.rb",
- "lib/generators/data_mapper/model/templates/model.rb",
- "lib/generators/data_mapper/observer/observer_generator.rb",
- "lib/generators/data_mapper/observer/templates/observer.rb",
- "spec/models/fake.rb",
- "spec/models/topic.rb",
- "spec/spec.opts",
- "spec/spec_helper.rb",
- "spec/unit/mass_assignment_security_spec.rb",
- "spec/unit/multiparameter_attributes_spec.rb",
- "tasks/clean.rake",
- "tasks/yard.rake",
- "tasks/yardstick.rake"
- ]
- s.homepage = "http://github.com/datamapper/dm-rails"
- s.require_paths = ["lib"]
- s.rubyforge_project = "datamapper"
- s.rubygems_version = "1.8.11"
- s.summary = "Use DataMapper with Rails 3"
+ 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-rails"
+ gem.require_paths = [ "lib" ]
+ gem.version = DataMapper::Rails::VERSION
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.3.0.beta') then
- s.add_runtime_dependency(%q<dm-core>, ["~> 1.3.0.beta"])
- s.add_runtime_dependency(%q<dm-active_model>, ["~> 1.3.0.beta"])
- s.add_runtime_dependency(%q<actionpack>, ["~> 3.1.0"])
- s.add_runtime_dependency(%q<railties>, ["~> 3.1.0"])
- 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<dm-core>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<dm-active_model>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<actionpack>, ["~> 3.1.0"])
- s.add_dependency(%q<railties>, ["~> 3.1.0"])
- 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<dm-core>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<dm-active_model>, ["~> 1.3.0.beta"])
- s.add_dependency(%q<actionpack>, ["~> 3.1.0"])
- s.add_dependency(%q<railties>, ["~> 3.1.0"])
- 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-active_model', '~> 1.3.0.beta')
+ gem.add_development_dependency('rake', '~> 0.9.2')
+ gem.add_development_dependency('rspec', '~> 1.3.2')
+end
View
@@ -0,0 +1,5 @@
+module DataMapper
+ module Rails
+ VERSION = '1.3.0.beta'
+ end
+end

0 comments on commit 0e0ae77

Please sign in to comment.