Permalink
Browse files

Get rid of jeweler, 'native' gem is as nice too. Saves lots of code.

  • Loading branch information...
1 parent 6a85f98 commit f0aaa97d766f3dcc8f7b9b41435f1cca377f0212 Tobias Bielohlawek committed with Mar 10, 2012
Showing with 24 additions and 100 deletions.
  1. +2 −14 Gemfile
  2. +7 −12 Gemfile.lock
  3. +1 −16 Rakefile
  4. +1 −0 VERSION
  5. +0 −5 VERSION.yml
  6. +13 −53 big_sitemap.gemspec
View
16 Gemfile
@@ -1,14 +1,2 @@
-source :rubygems
-
-gem 'rake'
-gem 'rdoc'
-
-group :development do
- gem 'jeweler'
-end
-
-group :test do
- gem 'shoulda'
- gem 'mocha'
- gem 'nokogiri'
-end
+# Specify your gem's dependencies in big_sitemap.gemspec
+gemspec
View
@@ -1,27 +1,22 @@
+PATH
+ remote: .
+ specs:
+ big_sitemap (1.0.1)
+
GEM
- remote: http://rubygems.org/
specs:
- git (1.2.5)
- jeweler (1.6.4)
- bundler (~> 1.0)
- git (>= 1.2.5)
- rake
- json (1.6.1)
mocha (0.9.10)
rake
nokogiri (1.4.4)
rake (0.8.7)
- rdoc (3.11)
- json (~> 1.4)
shoulda (2.11.3)
PLATFORMS
ruby
DEPENDENCIES
- jeweler
+ big_sitemap!
+ bundler
mocha
nokogiri
- rake
- rdoc
shoulda
View
@@ -1,19 +1,4 @@
-require 'rake'
-
-begin
- require 'jeweler'
- Jeweler::Tasks.new do |s|
- s.name = "big_sitemap"
- s.summary = %Q{A Sitemap generator specifically designed for large sites (although it works equally well with small sites)}
- s.email = %w(alexrabarts@gmail.com tobi@soundcloud.com)
- s.homepage = "http://github.com/alexrabarts/big_sitemap"
- s.description = "A Sitemap generator specifically designed for large sites (although it works equally well with small sites)"
- s.authors = ["Alex Rabarts", "Tobias Bielohlawek"]
- s.add_dependency 'bundler'
- end
-rescue LoadError
- puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
-end
+require 'bundler/gem_tasks'
require 'rdoc/task'
RDoc::Task.new do |rdoc|
View
@@ -0,0 +1 @@
+1.0.1
View
@@ -1,5 +0,0 @@
----
-:major: 1
-:minor: 0
-:patch: 1
-:build: !!null
View
@@ -1,60 +1,20 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
Gem::Specification.new do |s|
- s.name = "big_sitemap"
- s.version = "1.0.1"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Alex Rabarts", "Tobias Bielohlawek"]
- s.date = "2012-03-10"
- s.description = "A Sitemap generator specifically designed for large sites (although it works equally well with small sites)"
- s.email = ["alexrabarts@gmail.com", "tobi@soundcloud.com"]
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- "Gemfile",
- "Gemfile.lock",
- "History.txt",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION.yml",
- "big_sitemap.gemspec",
- "lib/big_sitemap.rb",
- "lib/big_sitemap/builder.rb",
- "test/big_sitemap_test.rb",
- "test/fixtures/test_model.rb",
- "test/test_helper.rb"
- ]
- s.homepage = "http://github.com/alexrabarts/big_sitemap"
+ s.name = "big_sitemap"
+ s.version = File.read('VERSION').strip
+ s.authors = ["Alex Rabarts", "Tobias Bielohlawek"]
+ s.email = ["alexrabarts@gmail.com", "tobi@soundcloud.com"]
+ s.homepage = %q{http://github.com/alexrabarts/big_sitemap}
+ s.summary = %q{A Sitemap generator specifically designed for large sites (although it works equally well with small sites)}
+ s.description = %q{BigSitemap is a Sitemapgenerator suitable for applications with greater than 50,000 URLs. It splits large Sitemaps into multiple files, gzips the files to minimize bandwidth usage, batches database queries to minimize memory usage, supports increment updates, can be set up with just a few lines of code and is compatible with just about any framework.}
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.rubygems_version = "1.8.10"
- s.summary = "A Sitemap generator specifically designed for large sites (although it works equally well with small sites)"
-
- 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<rake>, [">= 0"])
- s.add_runtime_dependency(%q<rdoc>, [">= 0"])
- s.add_development_dependency(%q<jeweler>, [">= 0"])
- s.add_runtime_dependency(%q<bundler>, [">= 0"])
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<rdoc>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<bundler>, [">= 0"])
- end
- else
- s.add_dependency(%q<rake>, [">= 0"])
- s.add_dependency(%q<rdoc>, [">= 0"])
- s.add_dependency(%q<jeweler>, [">= 0"])
- s.add_dependency(%q<bundler>, [">= 0"])
+ ["bundler", "shoulda", "mocha", "nokogiri"].each do |gem|
+ s.add_development_dependency *gem.split(' ')
end
end
-

0 comments on commit f0aaa97

Please sign in to comment.