ghpages_deploy 2.0.1 → 2.0.2

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: 336a0892ebb30fef17cde724a8438280704357da
4
- data.tar.gz: 59edb3095b769c61bcfa4d1b15e0a8ed5f7eadbf
3
+ metadata.gz: 0525252796aa962d1826b113d58f76dec9d69f95
4
+ data.tar.gz: 71b23f1044a1a19224e8a3dab3b369f4d13b12d7
5
5
  SHA512:
6
- metadata.gz: 196dbb0218754c9be3c51b46ea9f79f1fae81c6d408f0d8e877f55eeef84fd1e0ec7951af9ccff5cf501bca51ce4a909523e0f367b07a94297672c6b182b5306
7
- data.tar.gz: acdada27188062e0680f570dd3bc8fea2827fc33b2e48d96fe426ef17cc5a390aaa874eb5f5a1b00092ed411adf0a37ad3272f4c2439471b97de6dff80a6fa97
6
+ metadata.gz: ecad93f5168574521e96d09d22642911271db55ba310ee5fd5f6a1b9a2328db8e33321f60e10ba3db073881534b890f0eede04dc1f47dd10d6a9c777fadff5fc
7
+ data.tar.gz: 450662e1f20cd6be1e67f3efd76b5f95fbcfcfcfd85e566091d2a0355c25b08a16597191405a310bb2cd2f01cc3c1468b0226aace8c3c1e8c2723854cf49b2bc
@@ -37,18 +37,23 @@ module GithubPages
37
37
  def mash
38
38
  Hash.new { |h, k| h[k] = directory_mash }
39
39
  end
40
+
41
+ def sitemap(directory, output, whitelist, blacklist)
42
+ files = expand_lists(directory, whitelist, blacklist)
43
+ map = directory_sitemap(files)
44
+
45
+ File.open(output, 'w+') { |f| f.puts map.to_json }
46
+ end
40
47
  end
41
48
 
42
49
  def generate_json_sitemap(
43
50
  directory: '.', output: 'sitemap.json',
44
51
  whitelist: ['**/*'], blacklist: []
45
52
  )
46
- files = JsonRakeExt.expand_lists(directory, whitelist, blacklist)
47
- map = JsonRakeExt.directory_sitemap(files)
48
-
49
- File.open(output, 'w+') { |f| f.puts map.to_json }
50
-
51
- [output]
53
+ handler.handle_deploy do
54
+ JsonRakeExt.sitemap(directory, output, whitelist, blacklist)
55
+ [output]
56
+ end
52
57
  end
53
58
  end
54
59
 
@@ -2,5 +2,5 @@
2
2
  # Copyright (c) 2016 Nathan Currier
3
3
 
4
4
  module GithubPages
5
- VERSION = '2.0.1'.freeze
5
+ VERSION = '2.0.2'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghpages_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Currier