ascii_binder 0.1.5 → 0.1.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 +17 -6
- data/lib/ascii_binder/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: d18f48c4d3a375a016de45f0e47737c1b32ab07a
|
4
|
+
data.tar.gz: 7b0b662b3f881776229518077135fb6c40c92459
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 026e842c5c884d0ff9e164c008ae7bbd87a9df5d8e7a173cf4203d9495af896c3e80a2bea3639c4cfdc8fe0c6330ab79c2db8ae9ff27b7f9910dcf2720ec4866
|
7
|
+
data.tar.gz: 7a729e900f87874e46dfd782599c2b42ea69b9db02a4d0a1efa82f0e7a28a180fec451e96baf26828a5fd030bb2c776dd48863e686931d887a7a837afdbff551
|
data/lib/ascii_binder/helpers.rb
CHANGED
@@ -845,16 +845,27 @@ module AsciiBinder
|
|
845
845
|
if File.directory?(site_dir)
|
846
846
|
puts "\nBuilding #{site} site."
|
847
847
|
|
848
|
-
#
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
848
|
+
# Any files in the root of the docs repo with names ending in:
|
849
|
+
# *-#{site}.html
|
850
|
+
# will get copied into the root dir of the packaged site with
|
851
|
+
# the site name stripped out.
|
852
|
+
#
|
853
|
+
# Example: for site name 'commercial', the files:
|
854
|
+
# * index-commercial.html would end up as #{site_root}/index.html
|
855
|
+
# * search-commercial.html would end up as #{site_root}/search.html
|
856
|
+
# * index-community.html would be ignored
|
857
|
+
site_files = Dir.glob(File.join(source_dir, '*-' + site + '.html'))
|
858
|
+
unless site_files.empty?
|
859
|
+
site_files.each do |fpath|
|
860
|
+
target_basename = File.basename(fpath).gsub(/-#{site}\.html$/, '.html')
|
861
|
+
FileUtils.cp(fpath,File.join(package_dir,site,target_basename))
|
854
862
|
end
|
855
863
|
else
|
856
864
|
FileUtils.cp(File.join(preview_dir,distro,'index.html'),File.join(package_dir,site,'index.html'))
|
857
865
|
end
|
866
|
+
['_images','_stylesheets'].each do |support_dir|
|
867
|
+
FileUtils.cp_r(File.join(source_dir,support_dir),File.join(package_dir,site,support_dir))
|
868
|
+
end
|
858
869
|
|
859
870
|
# Now build a sitemap
|
860
871
|
site_dir_path = Pathname.new(site_dir)
|
data/lib/ascii_binder/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ascii_binder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- N. Harrison Ripps
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|