bookbindery 9.11.2 → 9.12.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: fcd5e2f139245d235d3e225698f2985b6458ba73
4
- data.tar.gz: 9e4a26c0cf99324f2a201cd801ec4d5ab0f4bfcb
3
+ metadata.gz: bfa7154a06a317f1b9334f00c2f37c2fe43e0b23
4
+ data.tar.gz: f12a6feab16e8db591ecd9fe2759dcc04837e67c
5
5
  SHA512:
6
- metadata.gz: 309ebaec04b27d5b89075c79cc1c735fbfc444646289436d6aa5a12e025526538e8e70c8e6a97bf377da8b003991d6a473a3d4306b88c7ebb1397989e1b04fc2
7
- data.tar.gz: c8260a429816001b1c12bf883a37ae259d965a1c82f6a368d72f2a3bf932056972e693ce273266867183eea1454f69ab7cad53edba64b21a8a4cfe84d2c138e4
6
+ metadata.gz: 064ea8ecc10fb4610496ffdaafc26280a0238f7d914efa0fafebaa131a329dc5975aa3aaba37bde9c26146aa29a2f497fffa78ab80c63705a6edcf5778a6fe44
7
+ data.tar.gz: 7881c57485aeae0b6e17f9409f4cdba0b9425b0c2b895c3107d78ea437a20c7cb8dadc5a9b8694a26b24b027529cb3fe15fb076fb0f15832e9c46637f6030ce8
@@ -2,7 +2,7 @@ require 'base64'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'bookbindery'
5
- s.version = '9.11.2'
5
+ s.version = '9.12.0'
6
6
  s.summary = 'Markdown to Rackup application documentation generator'
7
7
  s.description = 'A command line utility to be run in Book repositories to stitch together their constituent Markdown repos into a static-HTML-serving application'
8
8
  s.authors = ['Mike Grafton', 'Lucas Marks', 'Gavin Morgan', 'Nikhil Gajwani', 'Dan Wendorf', 'Brenda Chan', 'Matthew Boedicker', 'Andrew Bruce', 'Frank Kotsianas', 'Elena Sharma', 'Christa Hartsock', 'Michael Trestman', 'Alpha Chen', 'Sarah McAlear', 'Gregg Van Hove']
@@ -39,6 +39,10 @@ module Bookbinder
39
39
  repo['at_path']
40
40
  end
41
41
 
42
+ def no_docs?
43
+ config.fetch('no_docs', false)
44
+ end
45
+
42
46
  def dependent_sections
43
47
  @sections ||= (config['dependent_sections'] || []).map do |dep_section|
44
48
  SectionConfig.new(dep_section)
@@ -19,7 +19,8 @@ module Bookbinder
19
19
  source_repo_name,
20
20
  Pathname(user_repo_dir).join(source_repo_name.split('/').last),
21
21
  Pathname(destination_parent_dir).join(DestinationDirectory.new(source_repo_name, destination_dir_name)),
22
- source_ref
22
+ source_ref,
23
+ source_repo_name.split('/').first
23
24
  )
24
25
  end
25
26
 
@@ -27,12 +28,20 @@ module Bookbinder
27
28
 
28
29
  attr_reader :streams, :filesystem, :user_repo_dir
29
30
 
30
- def link!(source_repo_name, source_dir, dest_dir, source_ref)
31
+ def link!(source_repo_name, source_dir, dest_dir, source_ref, source_org)
31
32
  source_exists = filesystem.file_exist?(source_dir)
32
33
  unless source_exists
33
34
  source_dir_with_ref = "#{source_dir}-#{source_ref}"
34
35
  source_exists = filesystem.file_exist?(source_dir_with_ref)
35
- source_dir = source_dir_with_ref if source_exists
36
+
37
+ if source_exists
38
+ source_dir = source_dir_with_ref
39
+ else
40
+ source_dir_with_org_and_ref = "#{source_dir}-#{source_org}-#{source_ref}"
41
+ source_exists = filesystem.file_exist?(source_dir_with_org_and_ref)
42
+
43
+ source_dir = source_dir_with_org_and_ref if source_exists
44
+ end
36
45
  end
37
46
 
38
47
  if !source_exists
@@ -19,11 +19,13 @@ module Bookbinder
19
19
 
20
20
  if section_config.dependent_sections.any?
21
21
  section_config.dependent_sections.map do |dependent_config|
22
- streams[:success].puts("Gathering #{dependent_config.repo_name}")
23
- cloner.call(source_repo_name: dependent_config.repo_name,
24
- source_ref: ref_override || dependent_config.repo_ref,
25
- destination_parent_dir: "#{destination_dir}/#{section_config.desired_directory_name}",
26
- destination_dir_name: dependent_config.desired_directory_name)
22
+ unless dependent_config.no_docs?
23
+ streams[:success].puts("Gathering #{dependent_config.repo_name}")
24
+ cloner.call(source_repo_name: dependent_config.repo_name,
25
+ source_ref: ref_override || dependent_config.repo_ref,
26
+ destination_parent_dir: "#{destination_dir}/#{section_config.desired_directory_name}",
27
+ destination_dir_name: dependent_config.desired_directory_name)
28
+ end
27
29
  end
28
30
  end
29
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookbindery
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.11.2
4
+ version: 9.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Grafton
@@ -22,7 +22,7 @@ authors:
22
22
  autorequire:
23
23
  bindir: install_bin
24
24
  cert_chain: []
25
- date: 2016-06-23 00:00:00.000000000 Z
25
+ date: 2016-06-24 00:00:00.000000000 Z
26
26
  dependencies:
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fog-aws