Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

bundle rc1 release

  • Loading branch information...
commit 285999bc37ab002e9e1f0f1a2a8aa5df1738a8e2 1 parent 82b11b3
Tobias Bielohlawek authored February 12, 2012
6  CHANGELOG.md
Source Rendered
@@ -2,14 +2,12 @@
2 2
 
3 3
 ## vx.x.x - ???
4 4
 
5  
-  * Amazon S3 integration
6  
-  * manifest handling
7  
-
8 5
 ## v2.0.x - ???
9 6
 
10 7
   * updated/fixed Ping
11 8
   * updated Docu
12 9
   * switch to writer chain
  10
+  * add BigSitemap API
13 11
 
14 12
 ## v2.0.0 - 13-02-2012
15 13
   _inital release_
@@ -26,3 +24,5 @@
26 24
   * don't init new writer all the time
27 25
   * move inited status to writer
28 26
   * move index build into indexer and resource handling/selection into writer
  27
+  * manifest handling:
  28
+  * moved Amazon S3 integration to [massive_sitemap-writer-s3](https://github.com/rngtng/massive_sitemap-writer-s3)
9  README.md
Source Rendered
@@ -4,7 +4,12 @@
4 4
 
5 5
 Build painfree sitemaps for websites with millions of pages
6 6
 
7  
-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.
8  
-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.
  7
+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.
  8
+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.
9 9
 
10 10
 ## Usage
  11
+
  12
+* clear structure
  13
+* allows extension (S3)
  14
+
  15
+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
2  Rakefile
... ...
@@ -1,4 +1,4 @@
1  
-require "bundler/gem_tasks"
  1
+require 'bundler/gem_tasks'
2 2
 
3 3
 require 'rspec/core/rake_task'
4 4
 RSpec::Core::RakeTask.new(:spec) do |t|
1  VERSION
... ...
@@ -0,0 +1 @@
  1
+2.0.0.rc1
23  lib/massive_sitemap.rb
... ...
@@ -1,8 +1,3 @@
1  
-# require 'uri'
2  
-# require 'fileutils'
3  
-
4  
-require "massive_sitemap/version"
5  
-
6 1
 require 'massive_sitemap/writer/file'
7 2
 require 'massive_sitemap/writer/gzip_file'
8 3
 require 'massive_sitemap/builder/rotating'
@@ -19,9 +14,10 @@
19 14
 
20 15
 module MassiveSitemap
21 16
   DEFAULTS = {
22  
-    # builder
23  
-    :base_url        => nil,
24  
-    :indent_by       => 2,
  17
+    # global
  18
+    :index_base_url  => nil,
  19
+    :gzip            => false,
  20
+    :writer          => MassiveSitemap::Writer::File,
25 21
 
26 22
     # writer
27 23
     :document_full   => '.',
@@ -29,10 +25,9 @@ module MassiveSitemap
29 25
     :filename        => "sitemap.xml",
30 26
     :index_filename  => "sitemap_index.xml",
31 27
 
32  
-    # global
33  
-    :index_base_url  => nil,
34  
-    :gzip            => false,
35  
-    :writer          => MassiveSitemap::Writer::File,
  28
+    # builder
  29
+    :base_url        => nil,
  30
+    :indent_by       => 2,
36 31
   }
37 32
 
38 33
   def generate(options = {}, &block)
@@ -48,10 +43,10 @@ def generate(options = {}, &block)
48 43
     @options[:writer] = MassiveSitemap::Writer::GzipFile if @options[:gzip]
49 44
 
50 45
     @writer = @options[:writer].new @options
51  
-    Builder::Rotating.new(@writer, @options, &block)
  46
+    Builder::Rotating.generate(@writer, @options, &block)
52 47
 
53 48
     @writer.options.merge!(:filename => @options[:index_filename], :force_overwrite => true)
54  
-    Builder::Index.new(@writer, @options.merge(:base_url => @options[:index_base_url]))
  49
+    Builder::Index.generate(@writer, @options.merge(:base_url => @options[:index_base_url]))
55 50
   end
56 51
   module_function :generate
57 52
 end
4  lib/massive_sitemap/builder/base.rb
@@ -27,6 +27,10 @@ def initialize(writer, options = {}, &block)
27 27
         end
28 28
       end
29 29
 
  30
+      def self.generate(writer, options = {}, &block)
  31
+        self.new(writer, options, &block)
  32
+      end
  33
+
30 34
       def add(path, attrs = {})
31 35
         add_url! File.join(base_url, path), attrs
32 36
       rescue MassiveSitemap::Writer::File::FileExistsException => e
3  lib/massive_sitemap/version.rb
... ...
@@ -1,3 +0,0 @@
1  
-module MassiveSitemap
2  
-  VERSION = "2.0.0"
3  
-end
9  massive_sitemap.gemspec
... ...
@@ -1,17 +1,14 @@
1 1
 # -*- encoding: utf-8 -*-
2 2
 $:.push File.expand_path("../lib", __FILE__)
3  
-require "massive_sitemap/version"
4 3
 
5 4
 Gem::Specification.new do |s|
6 5
   s.name        = "massive_sitemap"
7  
-  s.version     = MassiveSitemap::VERSION
  6
+  s.version     = File.read("VERSION").to_s.strip
8 7
   s.authors     = ["Tobias Bielohlawek"]
9 8
   s.email       = ["tobi@soundcloud.com"]
10 9
   s.homepage    = "http://github.com/rngtng/massive_sitemap"
11  
-  s.summary     = %q{Build painfree sitemaps for webpages with millions of pages}
12  
-  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}
13  
-
14  
-  s.rubyforge_project = "massive_sitemap"
  10
+  s.summary     = %q{Build painfree sitemaps for websites with millions of pages}
  11
+  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}
15 12
 
16 13
   s.files         = `git ls-files`.split("\n")
17 14
   s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")

0 notes on commit 285999b

Please sign in to comment.
Something went wrong with that request. Please try again.