ascii_binder 0.1.14 → 0.1.15

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
- SHA1:
3
- metadata.gz: 212faa11c6800de991285d33ab3e538a3dda1e19
4
- data.tar.gz: 22ea55e36faa743586e736de2c8eb862a6ee04b8
2
+ SHA256:
3
+ metadata.gz: d071bdab3033acf56883cc5d409694442b8e5bdf39c04653a38b89573b89b6f7
4
+ data.tar.gz: d183b0ccea38287afd33c2f726c6bb5fa98c6a1c8aa8350e81b181cc6f884f22
5
5
  SHA512:
6
- metadata.gz: '076619a219d12c97890f8dfee5ee97574b78d9cab9af8979a75b93061df651a53752ecff217ee69f037ec2759efc5aa5f6ad5d7f43e8fc398a18e8fd1fa72375'
7
- data.tar.gz: 6fbffc6bc4aa5be720e995fdce8cd7e72ea5afef70da9362c0b129c9ea48ba4295139ebd413c64e73841541de196269ec2406949aa70bdc0c45bcd750bc5ab1b
6
+ metadata.gz: ea33d627cd2a46d5dbf34f7ba536f2b932cbd2656979604ed46caa87cd0f1bfeb7d536ad789fc011e65e4c8a469270fbac0bcf0af70cb8a535b3534e9e9aff8f
7
+ data.tar.gz: 649817f08a00ac2ec3c2253d24d8c3096bc111894f73cf43c6caaaf610e2d20cc6adf308a16d1dc6267456243b0a755e198ae1cc4243436826a0bd0d86d7ae7d
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ require 'ascii_binder/distro_map'
3
4
  require 'ascii_binder/engine'
4
5
  require 'ascii_binder/helpers'
5
6
  require 'ascii_binder/version'
@@ -284,9 +285,14 @@ if cmd == 'clone'
284
285
  repo_check(docs_basedir)
285
286
 
286
287
  if cmd_opts[:branches]
288
+ cloned_map = AsciiBinder::DistroMap.new(File.join(docs_basedir,DISTRO_MAP_FILENAME))
289
+ unless cloned_map.is_valid?
290
+ error_info = cloned_map.errors.join("\n")
291
+ Trollop::die "The distro map in the newly cloned repo is invalid, with the following errors:\n#{error_info}"
292
+ end
287
293
  Dir.chdir(docs_basedir)
288
294
  puts "Tracking branch setup:"
289
- distro_branches.each do |doc_branch|
295
+ cloned_map.distro_branches.each do |doc_branch|
290
296
  next if doc_branch == 'master'
291
297
  puts "- #{doc_branch}"
292
298
  system("git branch #{doc_branch} origin/#{doc_branch}")
@@ -1,3 +1,3 @@
1
1
  module AsciiBinder
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
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.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - N. Harrison Ripps
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-12-21 00:00:00.000000000 Z
14
+ date: 2018-02-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler
@@ -349,7 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
349
  version: '0'
350
350
  requirements: []
351
351
  rubyforge_project:
352
- rubygems_version: 2.6.14
352
+ rubygems_version: 2.7.4
353
353
  signing_key:
354
354
  specification_version: 4
355
355
  summary: AsciiBinder is an AsciiDoc-based system for authoring and publishing closely