Permalink
Browse files

去除jeweler, 太麻烦了, gem依赖太多关系复杂

  • Loading branch information...
1 parent 530ce24 commit 68ffc730ca76cc69880d55c05a554afb454085a1 @mvj3 committed Mar 5, 2013
Showing with 11 additions and 102 deletions.
  1. +1 −0 .gitignore
  2. +0 −43 Rakefile
  3. +10 −59 activerecord_idnamecache.gemspec
View
@@ -48,3 +48,4 @@ pkg
# For rubinius:
#*.rbc
Gemfile.lock
+*.gem
View
@@ -10,46 +10,3 @@ rescue Bundler::BundlerError => e
exit e.status_code
end
require 'rake'
-
-require 'jeweler'
-Jeweler::Tasks.new do |gem|
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
- gem.name = "activerecord_idnamecache"
- gem.homepage = "http://github.com/mvj3/activerecord_idnamecache"
- gem.license = "MIT"
- gem.summary = "Use Mysql AUTO_INCREMENT to support key value cache, which should be combined by an integer and string."
- gem.description = gem.summary
- gem.email = "mvjome@gmail.com"
- gem.authors = ["David Chen"]
- # dependencies defined in Gemfile
-end
-Jeweler::RubygemsDotOrgTasks.new
-
-require 'rake/testtask'
-Rake::TestTask.new(:test) do |test|
- test.libs << 'lib' << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
-end
-
-=begin
-require 'rcov/rcovtask'
-Rcov::RcovTask.new do |test|
- test.libs << 'test'
- test.pattern = 'test/**/test_*.rb'
- test.verbose = true
- test.rcov_opts << '--exclude "gems/*"'
-end
-=end
-
-task :default => :test
-
-require 'rdoc/task'
-Rake::RDocTask.new do |rdoc|
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
-
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = "activerecord_idnamecache #{version}"
- rdoc.rdoc_files.include('README*')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
@@ -1,61 +1,12 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
-# -*- encoding: utf-8 -*-
-
Gem::Specification.new do |s|
- s.name = "activerecord_idnamecache"
- s.version = "0.0.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["David Chen"]
- s.date = "2013-01-21"
- s.description = "Use Mysql AUTO_INCREMENT to support key value cache, which should be combined by an integer and string."
- s.email = "mvjome@gmail.com"
- s.extra_rdoc_files = [
- "LICENSE.txt",
- "README.rdoc"
- ]
- s.files = [
- ".document",
- "Gemfile",
- "LICENSE.txt",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "activerecord_idnamecache.gemspec",
- "lib/activerecord_idnamecache.rb",
- "test/helper.rb",
- "test/test_activerecord_idnamecache.rb"
- ]
- s.homepage = "http://github.com/mvj3/activerecord_idnamecache"
- s.licenses = ["MIT"]
- s.require_paths = ["lib"]
- s.rubygems_version = "1.8.10"
- s.summary = "Use Mysql AUTO_INCREMENT to support key value cache, which should be combined by an integer and string."
-
- if s.respond_to? :specification_version then
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- s.add_runtime_dependency(%q<activerecord_idnamecache>, [">= 0"])
- s.add_development_dependency(%q<shoulda>, [">= 0"])
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
- s.add_development_dependency(%q<bundler>, ["= 1.2.3"])
- else
- s.add_dependency(%q<activerecord_idnamecache>, [">= 0"])
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
- s.add_dependency(%q<bundler>, ["= 1.2.3"])
- end
- else
- s.add_dependency(%q<activerecord_idnamecache>, [">= 0"])
- s.add_dependency(%q<shoulda>, [">= 0"])
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
- s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
- s.add_dependency(%q<bundler>, ["= 1.2.3"])
- end
+ s.name = 'activerecord_idnamecache'
+ s.version = '0.0.2'
+ s.date = '2013-03-05'
+ s.summary = "Use Mysql AUTO_INCREMENT to support key value cache, which should be combined by an integer and string."
+ s.description = "A simple hello world gem"
+ s.authors = ["David Chen"]
+ s.email = 'mvjome@gmail.com'
+ s.files = ["lib/activerecord_idnamecache.rb"]
+ s.homepage =
+ 'http://rubygems.org/gems/activerecord_idnamecache'
end
-

0 comments on commit 68ffc73

Please sign in to comment.