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 +4 -4
- data/lib/publication/publish.rb +2 -1
- data/lib/publication/spellchecker.rb +1 -1
- data/lib/publication/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5415ebce5f5d5332eb8606df637bf9691b6cee20
|
|
4
|
+
data.tar.gz: afe9cafe6f16df6c8af87c61676a85d3383d57d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b71c7d2f2018ac476122cff50e4ce89e779dea259f0ed8ce1285b62a28434bef616eab213c897a4c5e08b91bbdd30219c4f4d58bb5cb127018a39404ccd55a3b
|
|
7
|
+
data.tar.gz: 907892c846a7be502baa4303ba31966ca3ca664bfcb698c34c7f608b7af841b502380215116d32ae15d58f1342d418fd99d2064efb2385133681732f0fc49eac
|
data/lib/publication/publish.rb
CHANGED
|
@@ -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['
|
|
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
|
data/lib/publication/version.rb
CHANGED