ascii_binder 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ascii_binder/helpers.rb +11 -9
- data/lib/ascii_binder/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b9eb469c874a00d0bcd79d7101c79a4e071bb7f
|
4
|
+
data.tar.gz: fd166c8b16a299abaa7fe093211936d546726734
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e989f582dabbbe9d5be0625081061954775406394d165b73df3c0d3cbe990d42bd6c649921c66bab5c2ddcf0d93e2a0cc0df123561795cc62f4163186132893
|
7
|
+
data.tar.gz: 1a2aa9d1aa7ec585bf2e7e3edc214d0ad5bce041b0b1ecfcdd55016847d78effb450cb83169d318eb6c59c299453b686020016775299e458dc273d3d1eb6b5d4
|
data/lib/ascii_binder/helpers.rb
CHANGED
@@ -663,7 +663,6 @@ module AsciiBinder
|
|
663
663
|
def package_docs(package_site)
|
664
664
|
site_map.each do |site,site_config|
|
665
665
|
next if not package_site == '' and not package_site == site
|
666
|
-
puts "\nBuilding #{site} site."
|
667
666
|
site_config[:distros].each do |distro,branches|
|
668
667
|
branches.each do |branch,branch_config|
|
669
668
|
src_dir = File.join(preview_dir,distro,branch_config["dir"])
|
@@ -681,6 +680,8 @@ module AsciiBinder
|
|
681
680
|
end
|
682
681
|
site_dir = File.join(package_dir,site)
|
683
682
|
if File.directory?(site_dir)
|
683
|
+
puts "\nBuilding #{site} site."
|
684
|
+
|
684
685
|
# With this update, site index files will always come from the master branch
|
685
686
|
working_branch_site_index = File.join(source_dir,'index-' + site + '.html')
|
686
687
|
if File.exists?(working_branch_site_index)
|
@@ -691,14 +692,15 @@ module AsciiBinder
|
|
691
692
|
else
|
692
693
|
FileUtils.cp(File.join(preview_dir,distro,'index.html'),File.join(package_dir,site,'index.html'))
|
693
694
|
end
|
694
|
-
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
695
|
+
|
696
|
+
# Now build a sitemap
|
697
|
+
site_dir_path = Pathname.new(site_dir)
|
698
|
+
SitemapGenerator::Sitemap.default_host = site_config[:url]
|
699
|
+
SitemapGenerator::Sitemap.create( :compress => false, :filename => File.join(site_dir,'sitemap') ) do
|
700
|
+
file_list = Find.find(site_dir).select{ |path| not path.nil? and path =~ /.*\.html$/ }.map{ |path| '/' + Pathname.new(path).relative_path_from(site_dir_path).to_s }
|
701
|
+
file_list.each do |file|
|
702
|
+
add(file, :changefreq => 'daily')
|
703
|
+
end
|
702
704
|
end
|
703
705
|
end
|
704
706
|
end
|
data/lib/ascii_binder/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ascii_binder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N. Harrison Ripps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
version: '0'
|
246
246
|
requirements: []
|
247
247
|
rubyforge_project:
|
248
|
-
rubygems_version: 2.4.
|
248
|
+
rubygems_version: 2.4.8
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: Builder for multi product documention websites.
|