middleman-sitemap-ping 0.0.2 → 0.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +7 -10
- data/lib/middleman-sitemap-ping.rb +2 -0
- data/lib/middleman-sitemap-ping/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a53d3cecdaa518c3879d9ca5faa05034af93c581
|
4
|
+
data.tar.gz: d9de1a526bf2d584ba84c3fac30c8c8be7e3171f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48bbc14e50f72f15c94554e27ee8c8016d7977d38541c56125993bea59e73b8e965958988141b429112f3961c0db7de2e47556d5a46950212615803b1ebc6c0d
|
7
|
+
data.tar.gz: 6828c21bb9de45257ebe674e7adfb961ac7c1c28fe5fd22e07870a8c0913be09ad707a39fc693edd171243edd0c98b03e94b97cac505e7c9b6954010c1a478ea
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# Middleman Sitemap Ping
|
2
2
|
|
3
3
|
[](http://badge.fury.io/rb/middleman-sitemap-ping)
|
4
|
-
[](https://codeclimate.com/github/bootstrap-ruby/middleman-sitemap-ping)
|
4
|
+
[](https://gemnasium.com/krautcomputing/middleman-sitemap-ping)
|
5
|
+
[](https://codeclimate.com/github/krautcomputing/middleman-sitemap-ping)
|
7
6
|
|
8
7
|
[Middleman](https://middlemanapp.com/) extension to ping search engines (Google and Bing) with a sitemap URL
|
9
8
|
|
@@ -23,20 +22,18 @@ Or install it yourself as:
|
|
23
22
|
|
24
23
|
## Usage
|
25
24
|
|
26
|
-
### Activate extension
|
27
|
-
|
28
25
|
Activate the extensions in `config.rb` in your Middleman app:
|
29
26
|
|
30
27
|
```ruby
|
31
28
|
activate :sitemap_ping do |config|
|
32
|
-
config.host = 'http://www.mywebsite.com'
|
33
|
-
config.sitemap_file = 'custom-sitemap-file.xml'
|
34
|
-
config.ping_google = false
|
35
|
-
config.ping_bing = false
|
29
|
+
config.host = 'http://www.mywebsite.com' # (required) Host of your website
|
30
|
+
config.sitemap_file = 'custom-sitemap-file.xml' # (optional, default: sitemap.xml) Name of your sitemap file
|
31
|
+
config.ping_google = false # (optional, default: true) Ping Google?
|
32
|
+
config.ping_bing = false # (optional, default: true) Ping Bing?
|
36
33
|
end
|
37
34
|
```
|
38
35
|
|
39
|
-
Once the extension is activated, it will ping the search engines automatically every time your site
|
36
|
+
Once the extension is activated, it will ping the search engines automatically every time you build your site.
|
40
37
|
|
41
38
|
## Contributing
|
42
39
|
|
@@ -10,6 +10,7 @@ module Middleman
|
|
10
10
|
SERVICES.each_key do |service|
|
11
11
|
option "ping_#{service}".to_sym, true, "Ping #{service.capitalize}?"
|
12
12
|
end
|
13
|
+
option :after_build, true, 'Execute automatically after the site was built?'
|
13
14
|
option :host, nil, 'The host of your website'
|
14
15
|
option :sitemap_file, 'sitemap.xml', 'The name of your sitemap file'
|
15
16
|
|
@@ -20,6 +21,7 @@ module Middleman
|
|
20
21
|
end
|
21
22
|
|
22
23
|
def after_build(builder)
|
24
|
+
return unless options.after_build
|
23
25
|
raise 'Please set the `host` option for the sitemap ping extension!' unless host = options.host
|
24
26
|
host = "http://#{host}" unless host =~ %r(\Ahttps?://)
|
25
27
|
sitemap_url = File.join(host, options.sitemap_file)
|
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
|
4
|
+
version: 0.1.0
|
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-
|
11
|
+
date: 2015-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|