Browse files

Merge pull request #21 from Viximo/feature/bye-jeweler

Remove jeweler
  • Loading branch information...
2 parents c72b658 + a55c4ca commit 8335aeab1ecd5c3ca9f650ae7c782b0f29ab50e9 @ashleym1972 ashleym1972 committed Jul 28, 2011
Showing with 62 additions and 41 deletions.
  1. +0 −1 .gitignore
  2. +5 −11 Gemfile
  3. +4 −28 Rakefile
  4. +0 −1 VERSION
  5. +1 −0 lib/cache_money.rb
  6. +3 −0 lib/cash/version.rb
  7. +49 −0 ngmoco-cache-money.gemspec
View
1 .gitignore
@@ -1,6 +1,5 @@
.DS_Store
*.gem
-*.gemspec
.bundle/*
Gemfile.lock
data
View
16 Gemfile
@@ -1,11 +1,5 @@
-source :gemcutter
-gem 'rails', '2.3.5'
-# gem 'memcache-client', '1.8.2'
-gem 'memcached', '0.18.0'
-gem 'jeweler', '1.4.0'
-group :test do
- gem 'ruby-debug', '0.10.3'
- gem 'rspec', '1.3.0'
- gem 'sqlite3-ruby'
- gem 'rr'
-end
+source :rubygems
+
+gemspec
+
+gem 'rails', '~>2.3.0'
View
32 Rakefile
@@ -19,31 +19,7 @@ rescue MissingSourceFile
exit 1
end
-jt = Jeweler::Tasks.new do |gem|
- gem.name = "ngmoco-cache-money"
- gem.summary = "Write-through and Read-through Cacheing for ActiveRecord"
- gem.description = "Write-through and Read-through Cacheing for ActiveRecord"
- gem.email = "teamplatform@ngmoco.com"
- gem.homepage = "http://github.com/ngmoco/cache-money"
- gem.authors = ["Nick Kallen","Ashley Martens","Scott Mace","John O'Neill"]
- gem.has_rdoc = false
- gem.files = FileList[
- "README",
- "TODO",
- "UNSUPPORTED_FEATURES",
- "lib/**/*.rb",
- "rails/init.rb",
- "init.rb"
- ]
- gem.test_files = FileList[
- "config/*",
- "db/schema.rb",
- "spec/**/*.rb"
- ]
- gem.add_dependency("activerecord", [">= 2.2.0"])
- gem.add_dependency("activesupport", [">= 2.2.0"])
-end
-Jeweler::GemcutterTasks.new
+require 'lib/cash/version'
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
@@ -69,9 +45,9 @@ end
desc "Push a new version to Gemcutter"
task :publish => [ :spec, :build ] do
- system "git tag v#{jt.jeweler.version}"
- system "git push origin v#{jt.jeweler.version}"
+ system "git tag v#{Cash::VERSION}"
+ system "git push origin v#{Cash::VERSION}"
system "git push origin master"
- system "gem push pkg/ngmoco-cache-money-#{jt.jeweler.version}.gem"
+ system "gem push pkg/ngmoco-cache-money-#{Cash::VERSION}.gem"
system "git clean -fd"
end
View
1 VERSION
@@ -1 +0,0 @@
-0.2.24.1
View
1 lib/cache_money.rb
@@ -1,6 +1,7 @@
require 'active_support'
require 'active_record'
+require 'cash/version'
require 'cash/lock'
require 'cash/transactional'
require 'cash/write_through'
View
3 lib/cash/version.rb
@@ -0,0 +1,3 @@
+module Cash
+ VERSION = '0.2.24.1'
+end
View
49 ngmoco-cache-money.gemspec
@@ -0,0 +1,49 @@
+# -*- encoding: utf-8 -*-
+require 'lib/cash/version'
+
+Gem::Specification.new do |s|
+ s.name = %q{ngmoco-cache-money}
+ s.version = Cash::VERSION
+
+ s.required_rubygems_version = '1.3.7'
+ s.authors = ["Nick Kallen", "Ashley Martens", "Scott Mace", "John O'Neill"]
+ s.date = Date.today.to_s
+ s.description = %q{Write-through and Read-through Cacheing for ActiveRecord}
+ s.email = %q{teamplatform@ngmoco.com}
+ s.extra_rdoc_files = [
+ "LICENSE",
+ "README",
+ "README.markdown",
+ "TODO"
+ ]
+ s.files = Dir[
+ "README",
+ "TODO",
+ "UNSUPPORTED_FEATURES",
+ "lib/**/*.rb",
+ "rails/init.rb",
+ "init.rb"
+ ]
+ s.homepage = %q{http://github.com/ngmoco/cache-money}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.summary = %q{Write-through and Read-through Cacheing for ActiveRecord}
+ s.test_files = Dir[
+ "config/*",
+ "db/schema.rb",
+ "spec/**/*.rb"
+ ]
+
+ s.add_runtime_dependency(%q<activerecord>, [">= 2.2.0", "< 3.0"])
+ s.add_runtime_dependency(%q<activesupport>, [">= 2.2.0", "< 3.0"])
+
+ s.add_development_dependency(%q<rake>)
+ s.add_development_dependency(%q<ruby-debug>, ["~> 0.10.0"])
+ s.add_development_dependency(%q<rspec>, ["~> 1.3.0"])
+ s.add_development_dependency(%q<sqlite3-ruby>)
+ s.add_development_dependency(%q<rr>)
+ s.add_development_dependency(%q<memcached>)
+ s.add_development_dependency(%q<memcache-client>)
+ s.add_development_dependency(%q<fakeredis>)
+end
+

0 comments on commit 8335aea

Please sign in to comment.