Permalink
Browse files

bundle rc1 release

  • Loading branch information...
1 parent 82b11b3 commit 285999bc37ab002e9e1f0f1a2a8aa5df1738a8e2 Tobias Bielohlawek committed Feb 12, 2012
Showing with 28 additions and 29 deletions.
  1. +3 −3 CHANGELOG.md
  2. +7 −2 README.md
  3. +1 −1 Rakefile
  4. +1 −0 VERSION
  5. +9 −14 lib/massive_sitemap.rb
  6. +4 −0 lib/massive_sitemap/builder/base.rb
  7. +0 −3 lib/massive_sitemap/version.rb
  8. +3 −6 massive_sitemap.gemspec
View
6 CHANGELOG.md
@@ -2,14 +2,12 @@
## vx.x.x - ???
- * Amazon S3 integration
- * manifest handling
-
## v2.0.x - ???
* updated/fixed Ping
* updated Docu
* switch to writer chain
+ * add BigSitemap API
## v2.0.0 - 13-02-2012
_inital release_
@@ -26,3 +24,5 @@
* don't init new writer all the time
* move inited status to writer
* move index build into indexer and resource handling/selection into writer
+ * manifest handling:
+ * moved Amazon S3 integration to [massive_sitemap-writer-s3](https://github.com/rngtng/massive_sitemap-writer-s3)
View
9 README.md
@@ -4,7 +4,12 @@
Build painfree sitemaps for websites with millions of pages
-MassiveSitemap is a successor project of [BigSitemap](https://github.com/alexrabarts/big_sitemap), a [Sitemap](http://sitemaps.org) generator for webpages with millions of pages.
-It implements various generation stategies, e.g. to split large Sitemaps into multiple files, gzip files to minimize bandwidth usage, or incremental updates. Its Api is very similar to _BigSitemap_ and therefor can be set up with just a few lines of code and is compatible with just about any framework.
+MassiveSitemap is a successor project of [BigSitemap](https://github.com/alexrabarts/big_sitemap), a [Sitemap](http://sitemaps.org) generator for websites with millions of pages.
+It implements various generation stategies, e.g. to split large Sitemaps into multiple files, gzip files to minimize bandwidth usage, or incremental updates. It offers API is very similar to _BigSitemap_ and therefor can be set up with just a few lines of code and is compatible with just about any framework.
## Usage
+
+* clear structure
+* allows extension (S3)
+
+MassiveSitemap - build huge sitemaps painfree. Differential updates keeps generation time short and reduces load on DB. It's heavealy inspired by BigSitemaps and offers compatiable API
View
2 Rakefile
@@ -1,4 +1,4 @@
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |t|
View
1 VERSION
@@ -0,0 +1 @@
+2.0.0.rc1
View
23 lib/massive_sitemap.rb
@@ -1,8 +1,3 @@
-# require 'uri'
-# require 'fileutils'
-
-require "massive_sitemap/version"
-
require 'massive_sitemap/writer/file'
require 'massive_sitemap/writer/gzip_file'
require 'massive_sitemap/builder/rotating'
@@ -19,20 +14,20 @@
module MassiveSitemap
DEFAULTS = {
- # builder
- :base_url => nil,
- :indent_by => 2,
+ # global
+ :index_base_url => nil,
+ :gzip => false,
+ :writer => MassiveSitemap::Writer::File,
# writer
:document_full => '.',
:force_overwrite => false,
:filename => "sitemap.xml",
:index_filename => "sitemap_index.xml",
- # global
- :index_base_url => nil,
- :gzip => false,
- :writer => MassiveSitemap::Writer::File,
+ # builder
+ :base_url => nil,
+ :indent_by => 2,
}
def generate(options = {}, &block)
@@ -48,10 +43,10 @@ def generate(options = {}, &block)
@options[:writer] = MassiveSitemap::Writer::GzipFile if @options[:gzip]
@writer = @options[:writer].new @options
- Builder::Rotating.new(@writer, @options, &block)
+ Builder::Rotating.generate(@writer, @options, &block)
@writer.options.merge!(:filename => @options[:index_filename], :force_overwrite => true)
- Builder::Index.new(@writer, @options.merge(:base_url => @options[:index_base_url]))
+ Builder::Index.generate(@writer, @options.merge(:base_url => @options[:index_base_url]))
end
module_function :generate
end
View
4 lib/massive_sitemap/builder/base.rb
@@ -27,6 +27,10 @@ def initialize(writer, options = {}, &block)
end
end
+ def self.generate(writer, options = {}, &block)
+ self.new(writer, options, &block)
+ end
+
def add(path, attrs = {})
add_url! File.join(base_url, path), attrs
rescue MassiveSitemap::Writer::File::FileExistsException => e
View
3 lib/massive_sitemap/version.rb
@@ -1,3 +0,0 @@
-module MassiveSitemap
- VERSION = "2.0.0"
-end
View
9 massive_sitemap.gemspec
@@ -1,17 +1,14 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
-require "massive_sitemap/version"
Gem::Specification.new do |s|
s.name = "massive_sitemap"
- s.version = MassiveSitemap::VERSION
+ s.version = File.read("VERSION").to_s.strip
s.authors = ["Tobias Bielohlawek"]
s.email = ["tobi@soundcloud.com"]
s.homepage = "http://github.com/rngtng/massive_sitemap"
- s.summary = %q{Build painfree sitemaps for webpages with millions of pages}
- s.description = %q{MassiveSitemap - allows you to generate. Differential updates keeps generation time short and reduces load on DB. It's inspired and party based on BigSitemaps}
-
- s.rubyforge_project = "massive_sitemap"
+ s.summary = %q{Build painfree sitemaps for websites with millions of pages}
+ s.description = %q{MassiveSitemap - build huge sitemaps painfree. Differential updates keeps generation time short and reduces load on DB. It's heavealy inspired by BigSitemaps and offers compatiable API}
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")

0 comments on commit 285999b

Please sign in to comment.