middleman-sitemap-ping 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 309a3eaa887cd20194791af13c19fca0dc412eea
4
- data.tar.gz: ae0a75556a1fe627223a23f8b385a136759f4b8c
3
+ metadata.gz: a53d3cecdaa518c3879d9ca5faa05034af93c581
4
+ data.tar.gz: d9de1a526bf2d584ba84c3fac30c8c8be7e3171f
5
5
  SHA512:
6
- metadata.gz: 3cdb429c17adac0de3e6c73bb07ceee3e9cf8e45c7b4427bad637bb6ae475a8cdf8c891a314383d5a151c37a4d214e247fe4095b4d36aa450bef3906974bebd3
7
- data.tar.gz: 518b39e1abaf756e99032f7bcb27d346a394fa89cc7dd33d868b8f42e324aca1e6811c4151121011a405cb615767797fe35deeb9ce92776a3fdcf77b7c6bf0e7
6
+ metadata.gz: 48bbc14e50f72f15c94554e27ee8c8016d7977d38541c56125993bea59e73b8e965958988141b429112f3961c0db7de2e47556d5a46950212615803b1ebc6c0d
7
+ data.tar.gz: 6828c21bb9de45257ebe674e7adfb961ac7c1c28fe5fd22e07870a8c0913be09ad707a39fc693edd171243edd0c98b03e94b97cac505e7c9b6954010c1a478ea
@@ -1,3 +1,11 @@
1
+ ## 0.1.0
2
+
3
+ * Added the after_build option (defaults to true)
4
+
5
+ ## 0.0.2
6
+
7
+ * Updated gemspec
8
+
1
9
  ## 0.0.1
2
10
 
3
11
  * Initial version
data/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # Middleman Sitemap Ping
2
2
 
3
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)
4
+ [![Dependency Status](https://gemnasium.com/krautcomputing/middleman-sitemap-ping.png)](https://gemnasium.com/krautcomputing/middleman-sitemap-ping)
5
+ [![Code Climate](https://codeclimate.com/github/krautcomputing/middleman-sitemap-ping.png)](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' # 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)
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 is built.
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)
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  class SitemapPing
3
- VERSION = '0.0.2'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  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.2
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-07-26 00:00:00.000000000 Z
11
+ date: 2015-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake