middleman-sitemap-ping 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 65ef273916608b6928af3408da4d82cde0c186fc
4
- data.tar.gz: c5e870a1253ac105c0d4e20e26e05380e7eacb3e
3
+ metadata.gz: 309a3eaa887cd20194791af13c19fca0dc412eea
4
+ data.tar.gz: ae0a75556a1fe627223a23f8b385a136759f4b8c
5
5
  SHA512:
6
- metadata.gz: a7b85031c342b0b02ff4418c885f7e4d7ab63702a92c6c27fcae1c414fcebd2c21b8586d98a227325e959603304d8e4d4e5c3fa18e8d8a0df270d8efb0f6af86
7
- data.tar.gz: 7b95c5ded97adcf622729e38823674ad854ee5ee53348d38afb9a11b0045c66175ce04e0dca830c66d13c64442ab060fb61ab610e6890bdde3b0d10d0bf17fb6
6
+ metadata.gz: 3cdb429c17adac0de3e6c73bb07ceee3e9cf8e45c7b4427bad637bb6ae475a8cdf8c891a314383d5a151c37a4d214e247fe4095b4d36aa450bef3906974bebd3
7
+ data.tar.gz: 518b39e1abaf756e99032f7bcb27d346a394fa89cc7dd33d868b8f42e324aca1e6811c4151121011a405cb615767797fe35deeb9ce92776a3fdcf77b7c6bf0e7
data/CHANGELOG.md ADDED
@@ -0,0 +1,3 @@
1
+ ## 0.0.1
2
+
3
+ * Initial version
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 kraut computing UG (haftungsbeschränkt)
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # Middleman Sitemap Ping
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/middleman-sitemap-ping.png)](http://badge.fury.io/rb/middleman-sitemap-ping)
4
+ [![Build Status](https://secure.travis-ci.org/bootstrap-ruby/middleman-sitemap-ping.png)](http://travis-ci.org/bootstrap-ruby/middleman-sitemap-ping)
5
+ [![Dependency Status](https://gemnasium.com/bootstrap-ruby/middleman-sitemap-ping.png)](https://gemnasium.com/bootstrap-ruby/middleman-sitemap-ping)
6
+ [![Code Climate](https://codeclimate.com/github/bootstrap-ruby/middleman-sitemap-ping.png)](https://codeclimate.com/github/bootstrap-ruby/middleman-sitemap-ping)
7
+
8
+ [Middleman](https://middlemanapp.com/) extension to ping search engines (Google and Bing) with a sitemap URL
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ gem 'middleman-sitemap-ping'
15
+
16
+ And then execute:
17
+
18
+ $ bundle
19
+
20
+ Or install it yourself as:
21
+
22
+ $ gem install middleman-sitemap-ping
23
+
24
+ ## Usage
25
+
26
+ ### Activate extension
27
+
28
+ Activate the extensions in `config.rb` in your Middleman app:
29
+
30
+ ```ruby
31
+ activate :sitemap_ping do |config|
32
+ config.host = 'http://www.mywebsite.com' # The host of your website (required)
33
+ config.sitemap_file = 'custom-sitemap-file.xml' # The name of your sitemap file (optional, default: sitemap.xml)
34
+ config.ping_google = false # Ping Google? (optional, default: true)
35
+ config.ping_bing = false # Ping Bing? (optional, default: true)
36
+ end
37
+ ```
38
+
39
+ Once the extension is activated, it will ping the search engines automatically every time your site is built.
40
+
41
+ ## Contributing
42
+
43
+ 1. Fork it
44
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
45
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
46
+ 4. Push to the branch (`git push origin my-new-feature`)
47
+ 5. Create new Pull Request
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  class SitemapPing
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
@@ -3,8 +3,8 @@ require 'middleman-core'
3
3
  module Middleman
4
4
  class SitemapPing < Extension
5
5
  SERVICES = {
6
- google: 'http://www.google.com/webmasters/tools/ping?sitemap=SITEMAP_URL',
7
- bing: 'http://www.bing.com/ping?sitemap=SITEMAP_URL'
6
+ google: 'http://www.google.com/webmasters/tools/ping?sitemap=%SITEMAP_URL%',
7
+ bing: 'http://www.bing.com/ping?sitemap=%SITEMAP_URL%'
8
8
  }
9
9
 
10
10
  SERVICES.each_key do |service|
@@ -25,7 +25,7 @@ module Middleman
25
25
  sitemap_url = File.join(host, options.sitemap_file)
26
26
  SERVICES.each do |service, url|
27
27
  next unless options.send("ping_#{service}")
28
- url.sub! /SITEMAP_URL\z/, CGI.escape(sitemap_url)
28
+ url.sub! /%SITEMAP_URL%\z/, CGI.escape(sitemap_url)
29
29
  builder.say "Pinging #{url}"
30
30
  open url do |f|
31
31
  if f.status[0] == '200'
@@ -11,9 +11,9 @@ Gem::Specification.new do |gem|
11
11
  gem.platform = Gem::Platform::RUBY
12
12
  gem.author = 'Manuel Meurer'
13
13
  gem.email = 'manuel@krautcomputing.com'
14
- gem.summary = 'Middleman extension to ping search engines with a sitemap'
15
- gem.description = 'Middleman extension to ping search engines with a sitemap'
16
- gem.homepage = 'http://bootstrap-ruby.github.io/middleman-sitemap-ping'
14
+ gem.summary = 'Middleman extension to ping search engines (Google and Bing) with a sitemap URL'
15
+ gem.description = 'Middleman extension to ping search engines (Google and Bing) with a sitemap URL'
16
+ gem.homepage = 'http://krautcomputing.github.io/middleman-sitemap-ping/'
17
17
  gem.license = 'MIT'
18
18
 
19
19
  gem.files = `git ls-files`.split($/)
@@ -22,5 +22,5 @@ Gem::Specification.new do |gem|
22
22
  gem.require_paths = ['lib']
23
23
 
24
24
  gem.add_development_dependency 'rake', '~> 10.0'
25
- gem.add_runtime_dependency 'middleman-core', '>= 3.0'
25
+ gem.add_runtime_dependency 'middleman-core', '~> 3.0'
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-sitemap-ping
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-13 00:00:00.000000000 Z
11
+ date: 2015-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -28,30 +28,34 @@ dependencies:
28
28
  name: middleman-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
- description: Middleman extension to ping search engines with a sitemap
41
+ description: Middleman extension to ping search engines (Google and Bing) with a sitemap
42
+ URL
42
43
  email: manuel@krautcomputing.com
43
44
  executables: []
44
45
  extensions: []
45
46
  extra_rdoc_files: []
46
47
  files:
47
48
  - ".gitignore"
49
+ - CHANGELOG.md
48
50
  - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
49
53
  - Rakefile
50
54
  - lib/middleman-sitemap-ping.rb
51
55
  - lib/middleman-sitemap-ping/version.rb
52
56
  - lib/middleman_extension.rb
53
57
  - middleman-sitemap-ping.gemspec
54
- homepage: http://bootstrap-ruby.github.io/middleman-sitemap-ping
58
+ homepage: http://krautcomputing.github.io/middleman-sitemap-ping/
55
59
  licenses:
56
60
  - MIT
57
61
  metadata: {}
@@ -74,6 +78,7 @@ rubyforge_project:
74
78
  rubygems_version: 2.4.5
75
79
  signing_key:
76
80
  specification_version: 4
77
- summary: Middleman extension to ping search engines with a sitemap
81
+ summary: Middleman extension to ping search engines (Google and Bing) with a sitemap
82
+ URL
78
83
  test_files: []
79
84
  has_rdoc: