sitemap_generator 5.2.0 → 5.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +8 -8
  2. data/CHANGES.md +250 -0
  3. data/README.md +156 -125
  4. data/VERSION +1 -1
  5. data/lib/capistrano/tasks/sitemap_generator.cap +21 -23
  6. data/lib/sitemap_generator.rb +1 -2
  7. data/lib/sitemap_generator/adapters/s3_adapter.rb +5 -0
  8. data/lib/sitemap_generator/application.rb +1 -1
  9. data/lib/sitemap_generator/builder/sitemap_file.rb +7 -3
  10. data/lib/sitemap_generator/builder/sitemap_url.rb +1 -10
  11. data/lib/sitemap_generator/link_set.rb +16 -10
  12. data/lib/sitemap_generator/{sitemap_namer.rb → simple_namer.rb} +1 -1
  13. data/lib/sitemap_generator/sitemap_location.rb +13 -1
  14. data/lib/sitemap_generator/tasks.rb +2 -2
  15. metadata +51 -123
  16. data/Gemfile +0 -13
  17. data/Gemfile.lock +0 -38
  18. data/Rakefile +0 -43
  19. data/spec/blueprint.rb +0 -15
  20. data/spec/files/sitemap.create.rb +0 -12
  21. data/spec/files/sitemap.groups.rb +0 -49
  22. data/spec/sitemap_generator/adapters/s3_adapter_spec.rb +0 -23
  23. data/spec/sitemap_generator/alternate_sitemap_spec.rb +0 -100
  24. data/spec/sitemap_generator/application_spec.rb +0 -69
  25. data/spec/sitemap_generator/builder/sitemap_file_spec.rb +0 -110
  26. data/spec/sitemap_generator/builder/sitemap_index_file_spec.rb +0 -124
  27. data/spec/sitemap_generator/builder/sitemap_index_url_spec.rb +0 -28
  28. data/spec/sitemap_generator/builder/sitemap_url_spec.rb +0 -192
  29. data/spec/sitemap_generator/core_ext/bigdecimal_spec.rb +0 -20
  30. data/spec/sitemap_generator/core_ext/numeric_spec.rb +0 -43
  31. data/spec/sitemap_generator/file_adaptor_spec.rb +0 -20
  32. data/spec/sitemap_generator/geo_sitemap_spec.rb +0 -30
  33. data/spec/sitemap_generator/helpers/number_helper_spec.rb +0 -196
  34. data/spec/sitemap_generator/interpreter_spec.rb +0 -90
  35. data/spec/sitemap_generator/link_set_spec.rb +0 -864
  36. data/spec/sitemap_generator/mobile_sitemap_spec.rb +0 -27
  37. data/spec/sitemap_generator/news_sitemap_spec.rb +0 -42
  38. data/spec/sitemap_generator/pagemap_sitemap_spec.rb +0 -57
  39. data/spec/sitemap_generator/sitemap_generator_spec.rb +0 -591
  40. data/spec/sitemap_generator/sitemap_groups_spec.rb +0 -144
  41. data/spec/sitemap_generator/sitemap_location_spec.rb +0 -210
  42. data/spec/sitemap_generator/sitemap_namer_spec.rb +0 -96
  43. data/spec/sitemap_generator/templates_spec.rb +0 -24
  44. data/spec/sitemap_generator/utilities/existence_spec.rb +0 -26
  45. data/spec/sitemap_generator/utilities/hash_spec.rb +0 -57
  46. data/spec/sitemap_generator/utilities/rounding_spec.rb +0 -31
  47. data/spec/sitemap_generator/utilities_spec.rb +0 -101
  48. data/spec/sitemap_generator/video_sitemap_spec.rb +0 -117
  49. data/spec/spec_helper.rb +0 -24
  50. data/spec/support/file_macros.rb +0 -39
  51. data/spec/support/schemas/siteindex.xsd +0 -73
  52. data/spec/support/schemas/sitemap-geo.xsd +0 -41
  53. data/spec/support/schemas/sitemap-mobile.xsd +0 -32
  54. data/spec/support/schemas/sitemap-news.xsd +0 -159
  55. data/spec/support/schemas/sitemap-pagemap.xsd +0 -97
  56. data/spec/support/schemas/sitemap-video.xsd +0 -643
  57. data/spec/support/schemas/sitemap.xsd +0 -115
  58. data/spec/support/xml_macros.rb +0 -67
data/VERSION CHANGED
@@ -1 +1 @@
1
- 5.2.0
1
+ 5.3.0
@@ -1,34 +1,32 @@
1
- namespace :deploy do
2
- namespace :sitemap do
3
- desc 'Create sitemap and ping search engines'
4
- task :refresh do
5
- on roles :web do
6
- within release_path do
7
- with rails_env: (fetch(:rails_env) || fetch(:stage)) do
8
- execute :rake, "sitemap:refresh"
9
- end
1
+ namespace :sitemap do
2
+ desc 'Create sitemap and ping search engines'
3
+ task :refresh do
4
+ on roles :web do
5
+ within release_path do
6
+ with rails_env: (fetch(:rails_env) || fetch(:stage)) do
7
+ execute :rake, "sitemap:refresh"
10
8
  end
11
9
  end
12
10
  end
11
+ end
13
12
 
14
- desc 'Create sitemap without pinging search engines'
15
- task :create do
16
- on roles :web do
17
- within release_path do
18
- with rails_env: (fetch(:rails_env) || fetch(:stage)) do
19
- execute :rake, "sitemap:create"
20
- end
13
+ desc 'Create sitemap without pinging search engines'
14
+ task :create do
15
+ on roles :web do
16
+ within release_path do
17
+ with rails_env: (fetch(:rails_env) || fetch(:stage)) do
18
+ execute :rake, "sitemap:create"
21
19
  end
22
20
  end
23
21
  end
22
+ end
24
23
 
25
- desc 'Clean up sitemaps in sitemap_generator path'
26
- task :clean do
27
- on roles :web do
28
- within release_path do
29
- with rails_env: (fetch(:rails_env) || fetch(:stage)) do
30
- execute :rake, "sitemap:clean"
31
- end
24
+ desc 'Clean up sitemaps in sitemap_generator path'
25
+ task :clean do
26
+ on roles :web do
27
+ within release_path do
28
+ with rails_env: (fetch(:rails_env) || fetch(:stage)) do
29
+ execute :rake, "sitemap:clean"
32
30
  end
33
31
  end
34
32
  end
@@ -1,4 +1,4 @@
1
- require 'sitemap_generator/sitemap_namer'
1
+ require 'sitemap_generator/simple_namer'
2
2
  require 'sitemap_generator/builder'
3
3
  require 'sitemap_generator/link_set'
4
4
  require 'sitemap_generator/templates'
@@ -28,7 +28,6 @@ module SitemapGenerator
28
28
  MAX_SITEMAP_NEWS = 1_000 # max news sitemap per index_file
29
29
  MAX_SITEMAP_FILESIZE = 10_000_000 # bytes
30
30
  SCHEMAS = {
31
- 'geo' => 'http://www.google.com/geo/schemas/sitemap/1.0',
32
31
  'image' => 'http://www.google.com/schemas/sitemap-image/1.1',
33
32
  'mobile' => 'http://www.google.com/schemas/sitemap-mobile/1.0',
34
33
  'news' => 'http://www.google.com/schemas/sitemap-news/0.9',
@@ -1,3 +1,8 @@
1
+ # Without this require, fog-core 1.2.0 raises
2
+ # NameError: uninitialized constant Fog::ServicesMixin.
3
+ # I don't know which versions this affects.
4
+ require 'fog/core/services_mixin' rescue nil
5
+
1
6
  begin
2
7
  require 'fog/storage'
3
8
  rescue LoadError
@@ -3,7 +3,7 @@ require 'pathname'
3
3
  module SitemapGenerator
4
4
  class Application
5
5
  def rails?
6
- defined?(Rails)
6
+ !!defined?(Rails::VERSION)
7
7
  end
8
8
 
9
9
  # Returns a boolean indicating whether this environment is Rails 3
@@ -18,7 +18,8 @@ module SitemapGenerator
18
18
  # === Options
19
19
  #
20
20
  # * <tt>location</tt> - a SitemapGenerator::SitemapLocation instance or a Hash of options
21
- # from which a SitemapLocation will be created for you.
21
+ # from which a SitemapLocation will be created for you. See `SitemapGenerator::SitemapLocation` for
22
+ # the supported list of options.
22
23
  def initialize(opts={})
23
24
  @location = opts.is_a?(Hash) ? SitemapGenerator::SitemapLocation.new(opts) : opts
24
25
  @link_count = 0
@@ -33,7 +34,6 @@ module SitemapGenerator
33
34
  xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
34
35
  xmlns:image="#{SitemapGenerator::SCHEMAS['image']}"
35
36
  xmlns:video="#{SitemapGenerator::SCHEMAS['video']}"
36
- xmlns:geo="#{SitemapGenerator::SCHEMAS['geo']}"
37
37
  xmlns:news="#{SitemapGenerator::SCHEMAS['news']}"
38
38
  xmlns:mobile="#{SitemapGenerator::SCHEMAS['mobile']}"
39
39
  xmlns:pagemap="#{SitemapGenerator::SCHEMAS['pagemap']}"
@@ -67,7 +67,7 @@ module SitemapGenerator
67
67
  # bytesize will be calculated for you.
68
68
  def file_can_fit?(bytes)
69
69
  bytes = bytes.is_a?(String) ? SitemapGenerator::Utilities.bytesize(bytes) : bytes
70
- (@filesize + bytes) < SitemapGenerator::MAX_SITEMAP_FILESIZE && @link_count < SitemapGenerator::MAX_SITEMAP_LINKS && @news_count < SitemapGenerator::MAX_SITEMAP_NEWS
70
+ (@filesize + bytes) < SitemapGenerator::MAX_SITEMAP_FILESIZE && @link_count < max_sitemap_links && @news_count < SitemapGenerator::MAX_SITEMAP_NEWS
71
71
  end
72
72
 
73
73
  # Add a link to the sitemap file.
@@ -164,6 +164,10 @@ module SitemapGenerator
164
164
  location.delete(:filename) if location.namer
165
165
  self.class.new(location)
166
166
  end
167
+
168
+ def max_sitemap_links
169
+ @location[:max_sitemap_links] || SitemapGenerator::MAX_SITEMAP_LINKS
170
+ end
167
171
  end
168
172
  end
169
173
  end
@@ -25,7 +25,6 @@ module SitemapGenerator
25
25
  # * +lastmod+
26
26
  # * +images+
27
27
  # * +video+/+videos+
28
- # * +geo+
29
28
  # * +news+
30
29
  # * +mobile+
31
30
  # * +alternate+/+alternates+
@@ -37,7 +36,7 @@ module SitemapGenerator
37
36
  path = sitemap.location.path_in_public
38
37
  end
39
38
 
40
- SitemapGenerator::Utilities.assert_valid_keys(options, :priority, :changefreq, :lastmod, :expires, :host, :images, :video, :geo, :news, :videos, :mobile, :alternate, :alternates, :pagemap)
39
+ SitemapGenerator::Utilities.assert_valid_keys(options, :priority, :changefreq, :lastmod, :expires, :host, :images, :video, :news, :videos, :mobile, :alternate, :alternates, :pagemap)
41
40
  SitemapGenerator::Utilities.reverse_merge!(options, :priority => 0.5, :changefreq => 'weekly', :lastmod => Time.now, :images => [], :news => {}, :videos => [], :mobile => false, :alternates => [])
42
41
  raise "Cannot generate a url without a host" unless SitemapGenerator::Utilities.present?(options[:host])
43
42
 
@@ -60,7 +59,6 @@ module SitemapGenerator
60
59
  :images => prepare_images(options[:images], options[:host]),
61
60
  :news => prepare_news(options[:news]),
62
61
  :videos => options[:videos],
63
- :geo => options[:geo],
64
62
  :mobile => options[:mobile],
65
63
  :alternates => options[:alternates],
66
64
  :pagemap => options[:pagemap]
@@ -142,13 +140,6 @@ module SitemapGenerator
142
140
  builder.xhtml :link, attributes
143
141
  end
144
142
 
145
- unless SitemapGenerator::Utilities.blank?(self[:geo])
146
- geo = self[:geo]
147
- builder.geo :geo do
148
- builder.geo :format, geo[:format].to_s if geo[:format]
149
- end
150
- end
151
-
152
143
  unless SitemapGenerator::Utilities.blank?(self[:mobile])
153
144
  builder.mobile :mobile
154
145
  end
@@ -8,7 +8,7 @@ module SitemapGenerator
8
8
  @@new_location_opts = [:filename, :sitemaps_path, :namer]
9
9
 
10
10
  attr_reader :default_host, :sitemaps_path, :filename, :create_index
11
- attr_accessor :include_root, :include_index, :adapter, :yield_sitemap
11
+ attr_accessor :include_root, :include_index, :adapter, :yield_sitemap, :max_sitemap_links
12
12
  attr_writer :verbose
13
13
 
14
14
  # Create a new sitemap index and sitemap files. Pass a block with calls to the following
@@ -112,7 +112,10 @@ module SitemapGenerator
112
112
  # file in the group will not be compressed, the rest will). So if you require different behaviour for your
113
113
  # groups, pass in a `:compress` option e.g. <tt>group(:compress => false) { add('/link') }</tt>
114
114
  #
115
- # KJV: When adding a new option be sure to include it in `options_for_group()` if
115
+ # * <tt>:max_sitemap_links</tt> - The maximum number of links to put in each sitemap.
116
+ # Default is `SitemapGenerator::MAX_SITEMAPS_LINKS`, or 50,000.
117
+ #
118
+ # Note: When adding a new option be sure to include it in `options_for_group()` if
116
119
  # the option should be inherited by groups.
117
120
  def initialize(options={})
118
121
  options = SitemapGenerator::Utilities.reverse_merge(options,
@@ -124,7 +127,8 @@ module SitemapGenerator
124
127
  :bing => "http://www.bing.com/ping?sitemap=%s"
125
128
  },
126
129
  :create_index => :auto,
127
- :compress => true
130
+ :compress => true,
131
+ :max_sitemap_links => SitemapGenerator::MAX_SITEMAP_LINKS
128
132
  )
129
133
  options.each_pair { |k, v| instance_variable_set("@#{k}".to_sym, v) }
130
134
 
@@ -397,8 +401,9 @@ module SitemapGenerator
397
401
  )
398
402
  opts.delete(:public_path)
399
403
 
400
- # Reverse merge the current settings
401
- # KJV: This hash could be a problem because it needs to be maintained
404
+ # Reverse merge the current settings.
405
+ #
406
+ # This hash could be a problem because it needs to be maintained
402
407
  # when new options are added, but can easily be missed. We really could
403
408
  # do with a separate SitemapOptions class.
404
409
  current_settings = [
@@ -411,11 +416,11 @@ module SitemapGenerator
411
416
  :default_host,
412
417
  :adapter,
413
418
  :create_index,
414
- :compress
419
+ :compress,
420
+ :max_sitemap_links
415
421
  ].inject({}) do |hash, key|
416
- if !(value = instance_variable_get(:"@#{key}")).nil?
417
- hash[key] = value
418
- end
422
+ value = instance_variable_get(:"@#{key}")
423
+ hash[key] = value unless value.nil?
419
424
  hash
420
425
  end
421
426
  SitemapGenerator::Utilities.reverse_merge!(opts, current_settings)
@@ -570,7 +575,8 @@ module SitemapGenerator
570
575
  :sitemaps_path => @sitemaps_path,
571
576
  :adapter => @adapter,
572
577
  :verbose => verbose,
573
- :compress => @compress
578
+ :compress => @compress,
579
+ :max_sitemap_links => max_sitemap_links
574
580
  )
575
581
  end
576
582
 
@@ -14,7 +14,7 @@ module SitemapGenerator
14
14
  #
15
15
  # Arguments:
16
16
  # base - string or symbol that forms the base of the generated filename e.g.
17
- # if `:geo` files are generated like `geo.xml.gz`, `geo1.xml.gz`, `geo2.xml.gz` etc.
17
+ # if `:geo`, files are generated like `geo.xml.gz`, `geo1.xml.gz`, `geo2.xml.gz` etc.
18
18
  #
19
19
  # Options:
20
20
  # :extension - Default: '.xml.gz'. File extension to append.
@@ -44,8 +44,20 @@ module SitemapGenerator
44
44
  # * <tt>compress</tt> - The LinkSet compress setting. Default: +true+. If `false` any `.gz` extension is
45
45
  # stripped from the filename. If `:all_but_first`, only the `.gz` extension of the first
46
46
  # filename is stripped off. If `true` the extensions are left unchanged.
47
+ # * <tt>max_sitemap_links</tt> - The maximum number of links to put in each sitemap.
47
48
  def initialize(opts={})
48
- SitemapGenerator::Utilities.assert_valid_keys(opts, [:adapter, :public_path, :sitemaps_path, :host, :filename, :namer, :verbose, :create_index, :compress])
49
+ SitemapGenerator::Utilities.assert_valid_keys(opts, [
50
+ :adapter,
51
+ :public_path,
52
+ :sitemaps_path,
53
+ :host,
54
+ :filename,
55
+ :namer,
56
+ :verbose,
57
+ :create_index,
58
+ :compress,
59
+ :max_sitemap_links
60
+ ])
49
61
  opts[:adapter] ||= SitemapGenerator::FileAdapter.new
50
62
  opts[:public_path] ||= SitemapGenerator.app.root + 'public/'
51
63
  # This is a bit of a hack to make the SimpleNamer act like the old SitemapNamer.
@@ -11,7 +11,7 @@ namespace :sitemap do
11
11
  begin
12
12
  require 'sitemap_generator'
13
13
  rescue LoadError => e
14
- if defined?(Rails)
14
+ if defined?(Rails::VERSION)
15
15
  Rake::Task['sitemap:require_environment'].invoke
16
16
  else
17
17
  raise e
@@ -22,7 +22,7 @@ namespace :sitemap do
22
22
  # Require sitemap_generator after loading the Rails environment. We still need the require
23
23
  # in case we are installed as a gem and are setup to not automatically be required.
24
24
  task :require_environment do
25
- if defined?(Rails)
25
+ if defined?(Rails::VERSION)
26
26
  Rake::Task['environment'].invoke
27
27
  end
28
28
  require 'sitemap_generator'
metadata CHANGED
@@ -1,90 +1,111 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitemap_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: !binary |-
5
- NS4yLjA=
4
+ version: 5.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Karl Varga
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2016-09-23 00:00:00.000000000 Z
11
+ date: 2017-02-21 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: mocha
14
+ name: builder
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: fog-aws
16
29
  requirement: !ruby/object:Gem::Requirement
17
30
  requirements:
18
31
  - - ~>
19
32
  - !ruby/object:Gem::Version
20
- version: !binary |-
21
- MC4xMC4w
33
+ version: '1.2'
22
34
  type: :development
23
35
  prerelease: false
24
36
  version_requirements: !ruby/object:Gem::Requirement
25
37
  requirements:
26
38
  - - ~>
27
39
  - !ruby/object:Gem::Version
28
- version: !binary |-
29
- MC4xMC4w
40
+ version: '1.2'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: nokogiri
32
43
  requirement: !ruby/object:Gem::Requirement
33
44
  requirements:
34
- - - '='
45
+ - - ~>
35
46
  - !ruby/object:Gem::Version
36
- version: 1.15.10
47
+ version: '1.6'
37
48
  type: :development
38
49
  prerelease: false
39
50
  version_requirements: !ruby/object:Gem::Requirement
40
51
  requirements:
41
- - - '='
52
+ - - ~>
42
53
  - !ruby/object:Gem::Version
43
- version: 1.15.10
54
+ version: '1.6'
44
55
  - !ruby/object:Gem::Dependency
45
56
  name: rspec
46
57
  requirement: !ruby/object:Gem::Requirement
47
58
  requirements:
48
59
  - - ~>
49
60
  - !ruby/object:Gem::Version
50
- version: '2.8'
61
+ version: '3.5'
51
62
  type: :development
52
63
  prerelease: false
53
64
  version_requirements: !ruby/object:Gem::Requirement
54
65
  requirements:
55
66
  - - ~>
56
67
  - !ruby/object:Gem::Version
57
- version: '2.8'
68
+ version: '3.5'
58
69
  - !ruby/object:Gem::Dependency
59
- name: builder
70
+ name: webmock
60
71
  requirement: !ruby/object:Gem::Requirement
61
72
  requirements:
62
73
  - - ~>
63
74
  - !ruby/object:Gem::Version
64
- version: !binary |-
65
- My4w
66
- type: :runtime
75
+ version: '2.3'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '2.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ~>
88
+ - !ruby/object:Gem::Version
89
+ version: '12'
90
+ type: :development
67
91
  prerelease: false
68
92
  version_requirements: !ruby/object:Gem::Requirement
69
93
  requirements:
70
94
  - - ~>
71
95
  - !ruby/object:Gem::Version
72
- version: !binary |-
73
- My4w
96
+ version: '12'
74
97
  description: SitemapGenerator is a framework-agnostic XML Sitemap generator written
75
- in Ruby with automatic Rails integration. It supports Video, News, Image, Geo,
76
- Mobile, PageMap and Alternate Links sitemap extensions and includes Rake tasks for
77
- managing your sitemaps, as well as many other great features.
98
+ in Ruby with automatic Rails integration. It supports Video, News, Image, Mobile,
99
+ PageMap and Alternate Links sitemap extensions and includes Rake tasks for managing
100
+ your sitemaps, as well as many other great features.
78
101
  email: kjvarga@gmail.com
79
102
  executables: []
80
103
  extensions: []
81
104
  extra_rdoc_files: []
82
105
  files:
83
- - Gemfile
84
- - Gemfile.lock
106
+ - CHANGES.md
85
107
  - MIT-LICENSE
86
108
  - README.md
87
- - Rakefile
88
109
  - VERSION
89
110
  - lib/capistrano/sitemap_generator.rb
90
111
  - lib/capistrano/tasks/sitemap_generator.cap
@@ -107,73 +128,20 @@ files:
107
128
  - lib/sitemap_generator/interpreter.rb
108
129
  - lib/sitemap_generator/link_set.rb
109
130
  - lib/sitemap_generator/railtie.rb
131
+ - lib/sitemap_generator/simple_namer.rb
110
132
  - lib/sitemap_generator/sitemap_location.rb
111
- - lib/sitemap_generator/sitemap_namer.rb
112
133
  - lib/sitemap_generator/tasks.rb
113
134
  - lib/sitemap_generator/templates.rb
114
135
  - lib/sitemap_generator/utilities.rb
115
136
  - lib/tasks/sitemap_generator_tasks.rake
116
137
  - rails/install.rb
117
138
  - rails/uninstall.rb
118
- - spec/blueprint.rb
119
- - spec/files/sitemap.create.rb
120
- - spec/files/sitemap.groups.rb
121
- - spec/sitemap_generator/adapters/s3_adapter_spec.rb
122
- - spec/sitemap_generator/alternate_sitemap_spec.rb
123
- - spec/sitemap_generator/application_spec.rb
124
- - spec/sitemap_generator/builder/sitemap_file_spec.rb
125
- - spec/sitemap_generator/builder/sitemap_index_file_spec.rb
126
- - spec/sitemap_generator/builder/sitemap_index_url_spec.rb
127
- - spec/sitemap_generator/builder/sitemap_url_spec.rb
128
- - spec/sitemap_generator/core_ext/bigdecimal_spec.rb
129
- - spec/sitemap_generator/core_ext/numeric_spec.rb
130
- - spec/sitemap_generator/file_adaptor_spec.rb
131
- - spec/sitemap_generator/geo_sitemap_spec.rb
132
- - spec/sitemap_generator/helpers/number_helper_spec.rb
133
- - spec/sitemap_generator/interpreter_spec.rb
134
- - spec/sitemap_generator/link_set_spec.rb
135
- - spec/sitemap_generator/mobile_sitemap_spec.rb
136
- - spec/sitemap_generator/news_sitemap_spec.rb
137
- - spec/sitemap_generator/pagemap_sitemap_spec.rb
138
- - spec/sitemap_generator/sitemap_generator_spec.rb
139
- - spec/sitemap_generator/sitemap_groups_spec.rb
140
- - spec/sitemap_generator/sitemap_location_spec.rb
141
- - spec/sitemap_generator/sitemap_namer_spec.rb
142
- - spec/sitemap_generator/templates_spec.rb
143
- - spec/sitemap_generator/utilities/existence_spec.rb
144
- - spec/sitemap_generator/utilities/hash_spec.rb
145
- - spec/sitemap_generator/utilities/rounding_spec.rb
146
- - spec/sitemap_generator/utilities_spec.rb
147
- - spec/sitemap_generator/video_sitemap_spec.rb
148
- - spec/spec_helper.rb
149
- - spec/support/file_macros.rb
150
- - spec/support/schemas/siteindex.xsd
151
- - spec/support/schemas/sitemap-geo.xsd
152
- - spec/support/schemas/sitemap-mobile.xsd
153
- - spec/support/schemas/sitemap-news.xsd
154
- - spec/support/schemas/sitemap-pagemap.xsd
155
- - spec/support/schemas/sitemap-video.xsd
156
- - spec/support/schemas/sitemap.xsd
157
- - spec/support/xml_macros.rb
158
139
  - templates/sitemap.rb
159
140
  homepage: http://github.com/kjvarga/sitemap_generator
160
141
  licenses:
161
142
  - MIT
162
143
  metadata: {}
163
- post_install_message: ! 'NOTE: SitemapGenerator 4.x uses a new file naming scheme
164
- which is more standards-compliant.
165
-
166
- If you''re upgrading from 3.x, please see the release note in the README:
167
-
168
-
169
- https://github.com/kjvarga/sitemap_generator#important-changes-in-version-4
170
-
171
-
172
- The simple answer is that your index file is now called sitemap.xml.gz
173
-
174
- and not sitemap_index.xml.gz, but please take a look and see what else has changed.
175
-
176
- '
144
+ post_install_message:
177
145
  rdoc_options: []
178
146
  require_paths:
179
147
  - lib
@@ -189,48 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
157
  version: '0'
190
158
  requirements: []
191
159
  rubyforge_project:
192
- rubygems_version: 2.4.6
160
+ rubygems_version: 2.6.10
193
161
  signing_key:
194
162
  specification_version: 4
195
163
  summary: Easily generate XML Sitemaps
196
- test_files:
197
- - spec/blueprint.rb
198
- - spec/files/sitemap.create.rb
199
- - spec/files/sitemap.groups.rb
200
- - spec/sitemap_generator/adapters/s3_adapter_spec.rb
201
- - spec/sitemap_generator/alternate_sitemap_spec.rb
202
- - spec/sitemap_generator/application_spec.rb
203
- - spec/sitemap_generator/builder/sitemap_file_spec.rb
204
- - spec/sitemap_generator/builder/sitemap_index_file_spec.rb
205
- - spec/sitemap_generator/builder/sitemap_index_url_spec.rb
206
- - spec/sitemap_generator/builder/sitemap_url_spec.rb
207
- - spec/sitemap_generator/core_ext/bigdecimal_spec.rb
208
- - spec/sitemap_generator/core_ext/numeric_spec.rb
209
- - spec/sitemap_generator/file_adaptor_spec.rb
210
- - spec/sitemap_generator/geo_sitemap_spec.rb
211
- - spec/sitemap_generator/helpers/number_helper_spec.rb
212
- - spec/sitemap_generator/interpreter_spec.rb
213
- - spec/sitemap_generator/link_set_spec.rb
214
- - spec/sitemap_generator/mobile_sitemap_spec.rb
215
- - spec/sitemap_generator/news_sitemap_spec.rb
216
- - spec/sitemap_generator/pagemap_sitemap_spec.rb
217
- - spec/sitemap_generator/sitemap_generator_spec.rb
218
- - spec/sitemap_generator/sitemap_groups_spec.rb
219
- - spec/sitemap_generator/sitemap_location_spec.rb
220
- - spec/sitemap_generator/sitemap_namer_spec.rb
221
- - spec/sitemap_generator/templates_spec.rb
222
- - spec/sitemap_generator/utilities/existence_spec.rb
223
- - spec/sitemap_generator/utilities/hash_spec.rb
224
- - spec/sitemap_generator/utilities/rounding_spec.rb
225
- - spec/sitemap_generator/utilities_spec.rb
226
- - spec/sitemap_generator/video_sitemap_spec.rb
227
- - spec/spec_helper.rb
228
- - spec/support/file_macros.rb
229
- - spec/support/schemas/siteindex.xsd
230
- - spec/support/schemas/sitemap-geo.xsd
231
- - spec/support/schemas/sitemap-mobile.xsd
232
- - spec/support/schemas/sitemap-news.xsd
233
- - spec/support/schemas/sitemap-pagemap.xsd
234
- - spec/support/schemas/sitemap-video.xsd
235
- - spec/support/schemas/sitemap.xsd
236
- - spec/support/xml_macros.rb
164
+ test_files: []