alexrabarts-big_sitemap 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ ._*
2
+ pkg
data/History.txt CHANGED
@@ -1,3 +1,12 @@
1
+ === 0.3.2 / 2009-06-09
2
+
3
+ * Fixes "uninitialized constant ActionController" error
4
+ * Fixes "Unknown key(s): path" error
5
+
6
+ === 0.3.1 / 2009-04-18
7
+
8
+ * Fixes broken gemspec
9
+
1
10
  === 0.3.0 / 2009-04-06
2
11
 
3
12
  * API change: Pass model through as first argument to add method, e.g.sitemap.add(Posts, {:path => 'articles'})
data/Rakefile ADDED
@@ -0,0 +1,53 @@
1
+ require 'rake'
2
+
3
+ begin
4
+ require 'jeweler'
5
+ Jeweler::Tasks.new do |s|
6
+ s.name = "big_sitemap"
7
+ s.summary = %Q{A Sitemap generator specifically designed for large sites (although it works equally well with small sites)}
8
+ s.email = "alexrabarts@gmail.com"
9
+ s.homepage = "http://github.com/alexrabarts/big_sitemap"
10
+ s.description = "A Sitemap generator specifically designed for large sites (although it works equally well with small sites)"
11
+ s.authors = ["Alex Rabarts"]
12
+ s.add_dependency 'builder', ['>=2.1.2']
13
+ s.add_dependency 'extlib', ['>=0.9.9']
14
+ end
15
+ rescue LoadError
16
+ puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
17
+ end
18
+
19
+ require 'rake/rdoctask'
20
+ Rake::RDocTask.new do |rdoc|
21
+ rdoc.rdoc_dir = 'rdoc'
22
+ rdoc.title = 'big_sitemap'
23
+ rdoc.options << '--line-numbers' << '--inline-source'
24
+ rdoc.rdoc_files.include('README*')
25
+ rdoc.rdoc_files.include('lib/**/*.rb')
26
+ end
27
+
28
+ require 'rake/testtask'
29
+ Rake::TestTask.new(:test) do |t|
30
+ t.libs << 'lib' << 'test'
31
+ t.pattern = 'test/**/*_test.rb'
32
+ t.verbose = false
33
+ end
34
+
35
+ begin
36
+ require 'rcov/rcovtask'
37
+ Rcov::RcovTask.new do |t|
38
+ t.libs << 'test'
39
+ t.test_files = FileList['test/**/*_test.rb']
40
+ t.verbose = true
41
+ end
42
+ rescue LoadError
43
+ puts "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
44
+ end
45
+
46
+ begin
47
+ require 'cucumber/rake/task'
48
+ Cucumber::Rake::Task.new(:features)
49
+ rescue LoadError
50
+ puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
51
+ end
52
+
53
+ task :default => :test
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :patch: 1
3
2
  :major: 0
4
3
  :minor: 3
4
+ :patch: 2
@@ -0,0 +1,56 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{big_sitemap}
5
+ s.version = "0.3.2"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Alex Rabarts"]
9
+ s.date = %q{2009-06-09}
10
+ s.description = %q{A Sitemap generator specifically designed for large sites (although it works equally well with small sites)}
11
+ s.email = %q{alexrabarts@gmail.com}
12
+ s.extra_rdoc_files = [
13
+ "LICENSE",
14
+ "README.rdoc"
15
+ ]
16
+ s.files = [
17
+ ".gitignore",
18
+ "History.txt",
19
+ "LICENSE",
20
+ "README.rdoc",
21
+ "Rakefile",
22
+ "VERSION.yml",
23
+ "big_sitemap.gemspec",
24
+ "lib/big_sitemap.rb",
25
+ "lib/big_sitemap/builder.rb",
26
+ "test/big_sitemap_test.rb",
27
+ "test/fixtures/test_model.rb",
28
+ "test/test_helper.rb"
29
+ ]
30
+ s.homepage = %q{http://github.com/alexrabarts/big_sitemap}
31
+ s.rdoc_options = ["--charset=UTF-8"]
32
+ s.require_paths = ["lib"]
33
+ s.rubygems_version = %q{1.3.4}
34
+ s.summary = %q{A Sitemap generator specifically designed for large sites (although it works equally well with small sites)}
35
+ s.test_files = [
36
+ "test/big_sitemap_test.rb",
37
+ "test/fixtures/test_model.rb",
38
+ "test/test_helper.rb"
39
+ ]
40
+
41
+ if s.respond_to? :specification_version then
42
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
+ s.specification_version = 3
44
+
45
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
46
+ s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
47
+ s.add_runtime_dependency(%q<extlib>, [">= 0.9.9"])
48
+ else
49
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
50
+ s.add_dependency(%q<extlib>, [">= 0.9.9"])
51
+ end
52
+ else
53
+ s.add_dependency(%q<builder>, [">= 2.1.2"])
54
+ s.add_dependency(%q<extlib>, [">= 0.9.9"])
55
+ end
56
+ end
data/lib/big_sitemap.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'uri'
2
2
  require 'big_sitemap/builder'
3
3
  require 'extlib'
4
+ require 'action_controller' if defined? Rails
4
5
 
5
6
  class BigSitemap
6
7
  DEFAULTS = {
@@ -98,7 +99,7 @@ class BigSitemap
98
99
  end
99
100
  batches_per_sitemap = num_batches.to_f / num_sitemaps.to_f
100
101
 
101
- find_options = options.dup
102
+ find_options = options.except(:path)
102
103
 
103
104
  for sitemap_num in 1..num_sitemaps
104
105
  # Work out the start and end batch numbers for this sitemap
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexrabarts-big_sitemap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Rabarts
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-18 00:00:00 -07:00
12
+ date: 2009-06-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -39,25 +39,25 @@ executables: []
39
39
  extensions: []
40
40
 
41
41
  extra_rdoc_files:
42
- - README.rdoc
43
42
  - LICENSE
43
+ - README.rdoc
44
44
  files:
45
+ - .gitignore
45
46
  - History.txt
47
+ - LICENSE
46
48
  - README.rdoc
49
+ - Rakefile
47
50
  - VERSION.yml
48
- - lib/big_sitemap
49
- - lib/big_sitemap/builder.rb
51
+ - big_sitemap.gemspec
50
52
  - lib/big_sitemap.rb
53
+ - lib/big_sitemap/builder.rb
51
54
  - test/big_sitemap_test.rb
52
- - test/fixtures
53
55
  - test/fixtures/test_model.rb
54
56
  - test/test_helper.rb
55
- - LICENSE
56
- has_rdoc: true
57
+ has_rdoc: false
57
58
  homepage: http://github.com/alexrabarts/big_sitemap
58
59
  post_install_message:
59
60
  rdoc_options:
60
- - --inline-source
61
61
  - --charset=UTF-8
62
62
  require_paths:
63
63
  - lib
@@ -78,7 +78,9 @@ requirements: []
78
78
  rubyforge_project:
79
79
  rubygems_version: 1.2.0
80
80
  signing_key:
81
- specification_version: 2
81
+ specification_version: 3
82
82
  summary: A Sitemap generator specifically designed for large sites (although it works equally well with small sites)
83
- test_files: []
84
-
83
+ test_files:
84
+ - test/big_sitemap_test.rb
85
+ - test/fixtures/test_model.rb
86
+ - test/test_helper.rb