camaleon_sitemap_customizer 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e3b2de62c6a36766e25f4a1e66779e40dbed80fda1956abf2b39196b2b4c30b
4
- data.tar.gz: 274372e1b11f769b706b2d9a2e5c37687dd7563587246c5b6bf28fcdb395647b
3
+ metadata.gz: 6ad9758dc86d24fe6230d89e0b42d1e5e80d1317e1f8be9f6bca54ae3d0bb2be
4
+ data.tar.gz: 8f9d394eab31aba632a49e2a96f17dbea90acc56a941e30f17d36b96d4abeafe
5
5
  SHA512:
6
- metadata.gz: e8ab214a2b7c6bde032d58fbb43dade4f1fcaccb45f0c014029e27caca070a2ed4e9e51a65869576d655abd78d3e9dfadb2b32c5d8db5cee1712d84cc7e92c11
7
- data.tar.gz: 1dcce635a28669151d5055b3ba02ad98155e597ca2bb40e0198f9a8e9aace780515db293a3a95ad6cd447ba4e84f6b3851b5174acedee3a12bff469c296eb93d
6
+ metadata.gz: 215630221044ccefc5579e0260fdabd49d856f324b739cd88b4e3f6edb22ef98b3caaceed6946cdbb44fa0cdcd3036fa2390833af289c7a4f1f341cc5b0cc60b
7
+ data.tar.gz: e43d31a7c9b32f85d79e3f17463252a15685889c07af38ca85582ecf74c797a8673ce6853eded983cab522a09a83645f9189f869211135053f6427796fea0af4
data/README.md CHANGED
@@ -1,14 +1,19 @@
1
- ![](https://img.shields.io/badge/ruby-2.3%2B-red.svg)
1
+ ![](https://img.shields.io/badge/ruby-2.4%2B-red.svg)
2
2
  ![Gem Version](https://img.shields.io/gem/v/camaleon_sitemap_customizer.svg?colorB=blue)
3
+ [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)
3
4
  [![Build Status](https://travis-ci.com/brian-kephart/camaleon_sitemap_customizer.svg?branch=master)](https://travis-ci.com/brian-kephart/camaleon_sitemap_customizer)
4
5
 
6
+
5
7
  # Camaleon Sitemap Customizer
6
8
  Camaleon CMS automatically generates sitemaps for all content of your site. This plugin allows you to select content to omit from the sitemap. You may wish to do this for a variety of reasons:
7
9
  - Keep search engines from indexing pages that are not relevant to the general public.
8
10
  - Keep search engines from indexing summary pages that only contain duplicate content.
9
11
  - Remove redundant entries. (ex. – 'https://yoursite.com', 'https://yoursite.com/index')
10
12
 
11
- This plugin also comes with an optional sitemap template that includes caching to speed up rendering.
13
+ This plugin also comes with:
14
+ - an optional sitemap template that includes caching to speed up rendering,
15
+ - links in plugin settings to submit your sitemap to Google,
16
+ - an option to automatically resubmit your sitemap to Google when changes are made (requires ActiveJob).
12
17
 
13
18
  ## Installation
14
19
  Add this line to your application's Gemfile:
@@ -45,7 +50,7 @@ This plugin offers an XML builder template that uses Russian doll caching to spe
45
50
 
46
51
  If you wish to make changes to the included template:
47
52
  1. **Disable** the caching option in the plugin settings.
48
- 2. Copy the included `app/views/themes/default/views/sitemap_with_caching.xml.builder` into your app's `app/apps/themes/your_theme/views/sitemap.xml.builder` and make your changes. Camaleon will use the `sitemap.xml.builder` file in your theme directory by default.
53
+ 2. Copy the included `app/views/camaleon_cms/default_theme/sitemap_with_caching.xml.builder` into your app's `app/apps/themes/your_theme/views/sitemap.xml.builder` and make your changes. Camaleon will use the `sitemap.xml.builder` file in your theme directory by default.
49
54
 
50
55
  ## Contributing
51
56
  See CONTRIBUTING.md
data/Rakefile CHANGED
@@ -1,31 +1,33 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
- require 'bundler/setup'
4
+ require "bundler/setup"
3
5
  rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ puts "You must `gem install bundler` and `bundle install` to run rake tasks"
5
7
  end
6
8
 
7
- require 'rdoc/task'
9
+ require "rdoc/task"
8
10
 
9
11
  RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'CamaleonSitemapCustomizer'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
12
+ rdoc.rdoc_dir = "rdoc"
13
+ rdoc.title = "CamaleonSitemapCustomizer"
14
+ rdoc.options << "--line-numbers"
15
+ rdoc.rdoc_files.include("README.md")
16
+ rdoc.rdoc_files.include("lib/**/*.rb")
15
17
  end
16
18
 
17
- APP_RAKEFILE = File.expand_path('test/dummy/Rakefile', __dir__)
18
- load 'rails/tasks/engine.rake'
19
+ APP_RAKEFILE = File.expand_path("test/dummy/Rakefile", __dir__)
20
+ load "rails/tasks/engine.rake"
19
21
 
20
- load 'rails/tasks/statistics.rake'
22
+ load "rails/tasks/statistics.rake"
21
23
 
22
- require 'bundler/gem_tasks'
24
+ require "bundler/gem_tasks"
23
25
 
24
- require 'rake/testtask'
26
+ require "rake/testtask"
25
27
 
26
28
  Rake::TestTask.new(:test) do |t|
27
- t.libs << 'test'
28
- t.pattern = 'test/**/*_test.rb'
29
+ t.libs << "test"
30
+ t.pattern = "test/**/*_test.rb"
29
31
  t.verbose = false
30
32
  end
31
33
 
@@ -1,19 +1,24 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class Plugins::CamaleonSitemapCustomizer::AdminController < CamaleonCms::Apps::PluginsAdminController
2
4
  DEFAULT_OPTIONS = {
3
- 'skip_post_types' => [],
4
- 'skip_post_list_types' => [],
5
- 'skip_category_list_types' => [],
6
- 'skip_all_categories' => false,
7
- 'skip_tags' => false,
8
- 'skip_home' => false,
9
- 'cache' => Rails.env.test? ? true : false
5
+ "skip_post_types" => [],
6
+ "skip_post_list_types" => [],
7
+ "skip_category_list_types" => [],
8
+ "skip_all_categories" => false,
9
+ "skip_tags" => false,
10
+ "skip_home" => false,
11
+ "cache" => Rails.env.test?,
12
+ "submit_changes_to_google" => false
10
13
  }.freeze
11
14
 
12
15
  include Plugins::CamaleonSitemapCustomizer::MainHelper
13
- def index; end
16
+ def index
17
+ end
14
18
 
15
19
  # show settings form
16
- def settings; end
20
+ def settings
21
+ end
17
22
 
18
23
  # save values from settings form
19
24
  def save_settings
@@ -21,6 +26,6 @@ class Plugins::CamaleonSitemapCustomizer::AdminController < CamaleonCms::Apps::P
21
26
  @plugin.set_options(options) # save option values
22
27
  @plugin.set_metas(params[:metas]) if params[:metas].present? # save meta values
23
28
  @plugin.set_field_values(params[:field_options]) if params[:field_options].present? # save custom field values
24
- redirect_to url_for(action: :settings), notice: 'Settings Saved Successfully'
29
+ redirect_to url_for(action: :settings), notice: "Settings Saved Successfully"
25
30
  end
26
31
  end
@@ -1,25 +1,35 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Plugins::CamaleonSitemapCustomizer::MainHelper
4
+ # methods accessible from views
2
5
  def self.included(klass)
3
- # klass.helper_method [:my_helper_method] rescue "" # here your methods accessible from views
6
+ klass.helper_method [:camaleon_sitemap_customizer_google_submit_url]
7
+ rescue
8
+ ""
4
9
  end
5
10
 
6
11
  def camaleon_sitemap_customizer_on_active(plugin)
7
12
  skip_posts plugin
8
13
  end
9
14
 
10
- def camaleon_sitemap_customizer_on_inactive(plugin); end
15
+ def camaleon_sitemap_customizer_on_inactive(plugin)
16
+ end
11
17
 
12
18
  def camaleon_sitemap_customizer_on_upgrade(plugin)
13
19
  skip_posts plugin
14
20
  end
15
21
 
16
22
  def camaleon_sitemap_customizer_on_plugin_options(args)
17
- args[:links] << [link_to('Settings', admin_plugins_camaleon_sitemap_customizer_settings_path), link_to('View Sitemap', '/sitemap', target: :blank)]
23
+ args[:links] << [
24
+ link_to("Settings", admin_plugins_camaleon_sitemap_customizer_settings_path),
25
+ link_to("View Sitemap", cama_sitemap_url, target: :blank),
26
+ link_to("Submit Sitemap to Google", camaleon_sitemap_customizer_google_submit_url, target: :blank)
27
+ ]
18
28
  end
19
29
 
20
30
  def customize_sitemap(args)
21
31
  # completely excluded content types
22
- args[:skip_posttype_ids] += current_plugin.get_option('skip_post_types')&.map(&:to_i).presence || []
32
+ args[:skip_posttype_ids] += current_plugin.get_option("skip_post_types")&.map(&:to_i).presence || []
23
33
  args[:skip_posttype_ids].each do |ptype|
24
34
  # leave out post pages within content type
25
35
  args[:skip_post_ids] += current_site.the_posts(ptype).map(&:id)
@@ -28,51 +38,64 @@ module Plugins::CamaleonSitemapCustomizer::MainHelper
28
38
  end
29
39
 
30
40
  # excluded list pages
31
- args[:skip_posttype_ids] += current_plugin.get_option('skip_post_list_types')&.map(&:to_i).presence || []
32
- args[:skip_cat_ids] += select_categories
33
- args[:skip_tag_ids] += current_site.the_tags.map(&:id) if current_plugin.get_option('skip_tags')
41
+ args[:skip_posttype_ids] += current_plugin.get_option("skip_post_list_types")&.map(&:to_i).presence || []
42
+ args[:skip_cat_ids] += select_categories
43
+ args[:skip_tag_ids] += current_site.the_tags.map(&:id) if current_plugin.get_option("skip_tags")
34
44
 
35
45
  # exclude individual posts via post editor option
36
- args[:skip_post_ids] += current_plugin.get_option('skip_posts').presence || []
46
+ args[:skip_post_ids] += current_plugin.get_option("skip_posts").presence || []
37
47
 
38
48
  # exclude redundant home page url
39
- args[:skip_post_ids] << current_site.options.dig(:home_page).to_i if current_plugin.get_option('skip_home') && current_site.options.dig(:home_page).present?
49
+ args[:skip_post_ids] << current_site.options.dig(:home_page).to_i if current_plugin.get_option("skip_home") && current_site.options.dig(:home_page).present?
40
50
 
41
51
  # use caching in sitemap
42
- args[:render] = cached_sitemap_template if current_plugin.get_option('cache').present?
52
+ args[:render] = cached_sitemap_template if current_plugin.get_option("cache").present?
43
53
  end
44
54
 
45
55
  def camaleon_sitemap_customizer_form(args)
46
56
  args[:extra_settings] << "
47
57
  <div class='form-group'>
48
58
  <label for='options_hide_in_sitemap' class='control-label'>
49
- <input type='checkbox' name='options[hide_in_sitemap]' id='options_hide_in_sitemap' value='true' #{'checked' if args[:post].get_option('hide_in_sitemap').present?}>
50
- &nbsp;&nbsp;#{cama_t('hide_in_sitemap')}?
59
+ <input type='checkbox' name='options[hide_in_sitemap]' id='options_hide_in_sitemap' value='true' #{"checked" if args[:post].get_option("hide_in_sitemap").present?}>
60
+ &nbsp;&nbsp;#{cama_t("hide_in_sitemap")}?
51
61
  </label>
52
62
  </div>
53
63
  "
54
64
  end
55
65
 
66
+ def camaleon_sitemap_customizer_google_submit_url
67
+ "https://www.google.com/ping?sitemap=#{cama_sitemap_url}"
68
+ end
69
+
56
70
  def camaleon_sitemap_customizer_save(args)
57
- args[:post].set_option 'hide_in_sitemap', false unless params.dig(:options, 'hide_in_sitemap').present?
71
+ args[:post].set_option "hide_in_sitemap", false unless params.dig(:options, "hide_in_sitemap").present?
58
72
  skip_posts current_plugin
59
73
  end
60
74
 
75
+ def camaleon_sitemap_customizer_submit_sitemap(_args)
76
+ plugin = current_site.get_plugin("camaleon_sitemap_customizer").decorate
77
+ return unless plugin.get_option "submit_changes_to_google"
78
+ CamaleonSitemapCustomizer::SubmitSitemapJob.perform_later camaleon_sitemap_customizer_google_submit_url
79
+ flash[:alert] = "Sitemap submitted."
80
+ rescue => e
81
+ flash[:alert] = e.message
82
+ end
83
+
61
84
  private
62
85
 
63
86
  def skip_posts(plugin)
64
- plugin.set_option 'skip_posts', current_site.the_posts.eager_load(:metas).select { |post| post.get_option('hide_in_sitemap').present? } .map(&:id)
87
+ plugin.set_option "skip_posts", current_site.the_posts.eager_load(:metas).select { |post| post.get_option("hide_in_sitemap").present? } .map(&:id)
65
88
  end
66
89
 
67
90
  def select_categories
68
- if current_plugin.get_option('skip_all_categories').present?
91
+ if current_plugin.get_option("skip_all_categories").present?
69
92
  current_site.the_full_categories.pluck(:id)
70
93
  else
71
- current_plugin.get_option('skip_category_list_types')&.map(&:to_i).presence || []
94
+ current_plugin.get_option("skip_category_list_types")&.map(&:to_i).presence || []
72
95
  end
73
96
  end
74
97
 
75
98
  def cached_sitemap_template
76
- 'sitemap_with_caching'
99
+ "sitemap_with_caching"
77
100
  end
78
101
  end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ class CamaleonSitemapCustomizer::SubmitSitemapJob < ActiveJob::Base
4
+ queue_as :default
5
+
6
+ def perform(submit_url)
7
+ url = URI.parse submit_url
8
+ Net::HTTP.get url
9
+ end
10
+ end
@@ -1,23 +1,26 @@
1
- xml.instruct! :xml, version: '1.0'
2
- xml.urlset xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9' do
1
+ # frozen_string_literal: true
2
+
3
+ xml.instruct! :xml, version: "1.0"
4
+ xml.urlset xmlns: "http://www.sitemaps.org/schemas/sitemap/0.9" do
3
5
  current_site.get_languages.each_with_index do |lang, index|
4
6
  lang = (index.zero? ? nil : lang)
5
7
  xml.url do
6
8
  xml.loc current_site.the_url(locale: lang)
7
9
  xml.lastmod current_site.updated_at.to_date
8
- xml.changefreq 'daily'
9
- xml.priority '1.0'
10
+ xml.changefreq "daily"
11
+ xml.priority "1.0"
10
12
  end
11
13
 
12
14
  cache ["xml_sitemap/posts/#{current_site.the_posts.maximum :updated_at}", @r[:skip_post_ids]] do
13
15
  current_site.the_posts.decorate.each do |post|
14
16
  next if @r[:skip_post_ids].include? post.id
17
+
15
18
  cache post do
16
19
  xml.url do
17
20
  xml.loc post.the_url(locale: lang)
18
21
  xml.lastmod post.updated_at.to_date
19
- xml.changefreq 'monthly'
20
- xml.priority '0.5'
22
+ xml.changefreq "monthly"
23
+ xml.priority "0.5"
21
24
  end
22
25
  end
23
26
  end
@@ -26,12 +29,13 @@ xml.urlset xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9' do
26
29
  cache ["xml_sitemap/categories/#{current_site.full_categories.maximum :updated_at}", @r[:skip_cat_ids]] do
27
30
  current_site.full_categories.no_empty.decorate.each do |cat|
28
31
  next if @r[:skip_cat_ids].include? cat.id
32
+
29
33
  cache cat do
30
34
  xml.url do
31
35
  xml.loc cat.the_url(locale: lang)
32
36
  xml.lastmod cat.updated_at.to_date
33
- xml.changefreq 'monthly'
34
- xml.priority '0.5'
37
+ xml.changefreq "monthly"
38
+ xml.priority "0.5"
35
39
  end
36
40
  end
37
41
  end
@@ -40,12 +44,13 @@ xml.urlset xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9' do
40
44
  cache ["xml_sitemap/post_types/#{current_site.post_types.maximum :updated_at}", @r[:skip_posttype_ids]] do
41
45
  current_site.post_types.decorate.each do |ptype|
42
46
  next if @r[:skip_posttype_ids].include? ptype.id
47
+
43
48
  cache ptype do
44
49
  xml.url do
45
50
  xml.loc ptype.the_url(locale: lang)
46
51
  xml.lastmod ptype.updated_at.to_date
47
- xml.changefreq 'monthly'
48
- xml.priority '0.5'
52
+ xml.changefreq "monthly"
53
+ xml.priority "0.5"
49
54
  end
50
55
  end
51
56
  end
@@ -54,12 +59,13 @@ xml.urlset xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9' do
54
59
  cache ["xml_sitemap/post_tags/#{current_site.post_types.maximum :updated_at}", @r[:skip_tag_ids]] do
55
60
  current_site.post_tags.decorate.each do |tag|
56
61
  next if @r[:skip_tag_ids].include? tag.id
62
+
57
63
  cache tag do
58
64
  xml.url do
59
65
  xml.loc tag.the_url(locale: lang)
60
66
  xml.lastmod tag.updated_at.to_date
61
- xml.changefreq 'monthly'
62
- xml.priority '0.5'
67
+ xml.changefreq "monthly"
68
+ xml.priority "0.5"
63
69
  end
64
70
  end
65
71
  end
@@ -72,8 +78,8 @@ xml.urlset xmlns: 'http://www.sitemaps.org/schemas/sitemap/0.9' do
72
78
  xml.url do
73
79
  xml.loc item[:url]
74
80
  xml.lastmod item[:lastmod] || Date.today.to_s
75
- xml.changefreq item[:changefreq] || 'monthly'
76
- xml.priority item[:priority] || '0.5'
81
+ xml.changefreq item[:changefreq] || "monthly"
82
+ xml.priority item[:priority] || "0.5"
77
83
  end
78
84
  end
79
85
  end
@@ -61,7 +61,13 @@
61
61
  <%= check_box_tag "options[cache]", 1, @plugin.get_option('cache'), style: 'display: block;' %>
62
62
  </div>
63
63
 
64
+ <div class="form-group">
65
+ <label><%= cama_t 'submit_changes_to_google' %></label>
66
+ <%= check_box_tag "options[submit_changes_to_google]", 1, @plugin.get_option('submit_changes_to_google'), style: 'display: block;' %>
67
+ </div>
68
+
64
69
  <div class="form-group text-right">
70
+ <%= link_to cama_t("submit_sitemap_to_google"), camaleon_sitemap_customizer_google_submit_url, target: :blank %>&nbsp;&nbsp;&nbsp;&nbsp;
65
71
  <%= link_to 'View Sitemap', '/sitemap', target: 'blank' %>&nbsp;&nbsp;&nbsp;&nbsp;
66
72
  <%= submit_tag 'Save Settings', class: 'btn btn-primary' %>
67
73
  </div>
@@ -6,12 +6,15 @@
6
6
  "Plugins::CamaleonSitemapCustomizer::MainHelper"
7
7
  ],
8
8
  "hooks": {
9
- "new_post":["camaleon_sitemap_customizer_form"],
10
- "edit_post":["camaleon_sitemap_customizer_form"],
11
- "updated_post": ["camaleon_sitemap_customizer_save"],
9
+ "created_post": ["camaleon_sitemap_customizer_submit_sitemap"],
10
+ "edit_post": ["camaleon_sitemap_customizer_form"],
11
+ "new_post": ["camaleon_sitemap_customizer_form"],
12
12
  "on_active": ["camaleon_sitemap_customizer_on_active"],
13
13
  "on_inactive": ["camaleon_sitemap_customizer_on_inactive"],
14
+ "on_render_sitemap": ["customize_sitemap"],
14
15
  "plugin_options": ["camaleon_sitemap_customizer_on_plugin_options"],
15
- "on_render_sitemap": ["customize_sitemap"]
16
+ "restored_post": ["camaleon_sitemap_customizer_submit_sitemap"],
17
+ "trashed_post": ["camaleon_sitemap_customizer_submit_sitemap"],
18
+ "updated_post": ["camaleon_sitemap_customizer_save", "camaleon_sitemap_customizer_submit_sitemap"]
16
19
  }
17
20
  }
@@ -9,3 +9,5 @@ en:
9
9
  tags: "Exclude Tags"
10
10
  homepage: "Exclude duplicate home page url? (ex. – remove www.mysite.com/home if this renders the same post as www.mysite.com)"
11
11
  cache: "Use caching to speed up sitemap rendering?"
12
+ submit_changes_to_google: "Submit sitemap to Google when changes are made? (requires ActiveJob)"
13
+ submit_sitemap_to_google: "Submit sitemap to Google"
@@ -1,12 +1,14 @@
1
- require 'plugin_routes'
2
- require 'camaleon_cms/engine'
1
+ # frozen_string_literal: true
2
+
3
+ require "plugin_routes"
4
+ require "camaleon_cms/engine"
3
5
 
4
6
  Rails.application.routes.draw do
5
- scope PluginRoutes.system_info['relative_url_root'] do
7
+ scope PluginRoutes.system_info["relative_url_root"] do
6
8
  # Admin Panel
7
- scope :admin, as: 'admin', path: PluginRoutes.system_info['admin_path_name'] do
8
- namespace 'plugins' do
9
- namespace 'camaleon_sitemap_customizer' do
9
+ scope :admin, as: "admin", path: PluginRoutes.system_info["admin_path_name"] do
10
+ namespace "plugins" do
11
+ namespace "camaleon_sitemap_customizer" do
10
12
  controller :admin do
11
13
  get :index
12
14
  get :settings
@@ -1,4 +1,6 @@
1
- require 'camaleon_sitemap_customizer/engine'
1
+ # frozen_string_literal: true
2
+
3
+ require "camaleon_sitemap_customizer/engine"
2
4
 
3
5
  module CamaleonSitemapCustomizer
4
6
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CamaleonSitemapCustomizer
2
4
  class Engine < ::Rails::Engine
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module CamaleonSitemapCustomizer
2
- VERSION = '1.0.0'.freeze
4
+ VERSION = "1.1.0"
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camaleon_sitemap_customizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Kephart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-10 00:00:00.000000000 Z
11
+ date: 2020-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: camaleon_cms
@@ -25,33 +25,33 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rubocop
28
+ name: sqlite3
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.56'
33
+ version: '1.4'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.56'
40
+ version: '1.4'
41
41
  - !ruby/object:Gem::Dependency
42
- name: sqlite3
42
+ name: rails
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.3.13
47
+ version: 6.0.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.3.13
54
+ version: 6.0.0
55
55
  description: Customize auto-generated sitemap in Camaleon CMS. Eliminate duplicate
56
56
  content and list pages.
57
57
  email:
@@ -65,6 +65,7 @@ files:
65
65
  - Rakefile
66
66
  - app/controllers/plugins/camaleon_sitemap_customizer/admin_controller.rb
67
67
  - app/helpers/plugins/camaleon_sitemap_customizer/main_helper.rb
68
+ - app/jobs/camaleon_sitemap_customizer/submit_sitemap_job.rb
68
69
  - app/views/camaleon_cms/default_theme/sitemap_with_caching.xml.builder
69
70
  - app/views/plugins/camaleon_sitemap_customizer/admin/settings.html.erb
70
71
  - config/camaleon_plugin.json
@@ -88,15 +89,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
89
  requirements:
89
90
  - - "~>"
90
91
  - !ruby/object:Gem::Version
91
- version: '2.3'
92
+ version: '2.5'
92
93
  required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  requirements:
94
95
  - - ">="
95
96
  - !ruby/object:Gem::Version
96
97
  version: '0'
97
98
  requirements: []
98
- rubyforge_project:
99
- rubygems_version: 2.7.6
99
+ rubygems_version: 3.1.2
100
100
  signing_key:
101
101
  specification_version: 4
102
102
  summary: Customize auto-generated sitemap in Camaleon CMS