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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2712179d57dd943569d10c85468d8c29695778a4
4
- data.tar.gz: ff3209d960df6d6fb660396de2e9ece06a6d5e80
3
+ metadata.gz: 9b9eb469c874a00d0bcd79d7101c79a4e071bb7f
4
+ data.tar.gz: fd166c8b16a299abaa7fe093211936d546726734
5
5
  SHA512:
6
- metadata.gz: cb44c1f68095c9d03d3cdc595d1b110ea6e99b5bdff5acb831ac318e0aae1f397594e7ed1c36842a0b124c6b9c169ea8a01ac18c52250c7832f53f4c43993d90
7
- data.tar.gz: 4a8ff2bde4269cb0b71818d7338f2b5694cc3c19635dbe69226824687a0012073ebd5bf41798a1e02c316b5c5b1de396e17f486b36e232a39e938d8f3066289f
6
+ metadata.gz: 8e989f582dabbbe9d5be0625081061954775406394d165b73df3c0d3cbe990d42bd6c649921c66bab5c2ddcf0d93e2a0cc0df123561795cc62f4163186132893
7
+ data.tar.gz: 1a2aa9d1aa7ec585bf2e7e3edc214d0ad5bce041b0b1ecfcdd55016847d78effb450cb83169d318eb6c59c299453b686020016775299e458dc273d3d1eb6b5d4
@@ -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
- end
695
- # Now build a sitemap
696
- site_dir_path = Pathname.new(site_dir)
697
- SitemapGenerator::Sitemap.default_host = site_config[:url]
698
- SitemapGenerator::Sitemap.create( :compress => false, :filename => File.join(site_dir,'sitemap') ) do
699
- 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 }
700
- file_list.each do |file|
701
- add(file, :changefreq => 'daily')
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
@@ -1,3 +1,3 @@
1
1
  module AsciiBinder
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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.5
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-03 00:00:00.000000000 Z
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.5
248
+ rubygems_version: 2.4.8
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: Builder for multi product documention websites.