publication 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee2b8ec7539e4ed98bdfe45924a1575e9b46d0c3
4
- data.tar.gz: 80b2ec43ee0fbad6c1334c125e3603754a948473
3
+ metadata.gz: 5415ebce5f5d5332eb8606df637bf9691b6cee20
4
+ data.tar.gz: afe9cafe6f16df6c8af87c61676a85d3383d57d3
5
5
  SHA512:
6
- metadata.gz: eede8eaadd43ab1d02dc31acb48033c65ef632730ec14f253a7fabf532a02dbb2f6107626f5bba68801cc198cd7aba68140183905220edd39adcdfbe8cf81c17
7
- data.tar.gz: a448a33f4f712799da398a6771a5a904f3c85506b8837036a3daf6925122c23ff88332ca422472fa54304305910c135ce3ffa478ba2ca31b81dcf2e3b619bd0d
6
+ metadata.gz: b71c7d2f2018ac476122cff50e4ce89e779dea259f0ed8ce1285b62a28434bef616eab213c897a4c5e08b91bbdd30219c4f4d58bb5cb127018a39404ccd55a3b
7
+ data.tar.gz: 907892c846a7be502baa4303ba31966ca3ca664bfcb698c34c7f608b7af841b502380215116d32ae15d58f1342d418fd99d2064efb2385133681732f0fc49eac
@@ -4,7 +4,7 @@ module Publication
4
4
  class Publisher
5
5
 
6
6
  def initialize(paths: nil, type: nil, output: nil, formats: [], extraopts: nil)
7
- @paths = Dir["#{Dir.pwd}/#{paths}"]
7
+ @paths = Dir["#{Dir.pwd}/#{paths}"].sort
8
8
  @type = type
9
9
  @output = output
10
10
  @formats = formats
@@ -15,6 +15,7 @@ module Publication
15
15
 
16
16
  def publish
17
17
  @formats.each do |format|
18
+ puts @paths
18
19
  RubyPandoc::Converter.new(@paths, from: @type, output: "#{@output}.#{format}", extra: @extraopts).convert
19
20
  end
20
21
  end
@@ -3,7 +3,7 @@ module Publication
3
3
  extend self
4
4
 
5
5
  def check
6
- files = Dir['doc/**/*'].map { |f| f if File.file?(f) }
6
+ files = Dir['./**/*'].map { |f| f if File.file?(f) }
7
7
  puts `bundle exec mdspell #{files.join(' ')} #{"-c .mdspell.config" if File.exists?('.mdspell.config')}`
8
8
  end
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module Publication
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publication
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel