pdfmd 2.1.4 → 2.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/bin/pdfmd +1 -1
- data/lib/pdfmd/pdfmdrename.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95d7f0080e7a24588e5881e62a467912d247e733
|
4
|
+
data.tar.gz: 8e092a66c880c71ea567c15a02238bd014092957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f301a21313482520487efe4a88453564b2978aac685c5db15f2f47797ab6e5533c14f453438bdde0c15e84ae4bc1142972e4e43068f60e97494679f2799e8674
|
7
|
+
data.tar.gz: 47306852eb0d5f1f46620f0f704eedfaa6f97cb7fe6bdf34adf7667d0675ef60ccabc2245678f3a6abc98ed2042c16deee68621d0b7bfb7075c1a864cd4d85db
|
data/CHANGELOG.md
CHANGED
data/bin/pdfmd
CHANGED
data/lib/pdfmd/pdfmdrename.rb
CHANGED
@@ -39,10 +39,10 @@ class Pdfmdrename < Pdfmd
|
|
39
39
|
# Build new filename elements
|
40
40
|
newFilename = Hash.new
|
41
41
|
newFilename[:date] = @@metadata['createdate'].gsub(/\ \d{2}\:\d{2}\:\d{2}.*$/,'').gsub(/\:/,'')
|
42
|
-
newFilename[:author] = get_author().gsub(/\'/,'').gsub(/\_$/, '')
|
42
|
+
newFilename[:author] = get_author().gsub(/\'/,'').gsub(/\_$/, '')
|
43
43
|
newFilename[:doctype] = get_doctype()
|
44
44
|
newFilename[:title] = @@metadata['title'].downcase
|
45
|
-
newFilename[:subject] = @@metadata['subject'].downcase.gsub(/(\s
|
45
|
+
newFilename[:subject] = @@metadata['subject'].downcase.gsub(/(\s|\-|\.|\&|\%|\,)/,'_').gsub(/\_+/, '_')
|
46
46
|
newFilename[:keywords] = get_keywords(get_keywordsPreface(newFilename))
|
47
47
|
newFilename[:extension] = @fileextension
|
48
48
|
newFilename[:outputdir] = get_outputdir(@outputdir)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pdfmd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Roos
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -147,8 +147,8 @@ homepage: https://github.com/Micronarrativ/ruby-pmd
|
|
147
147
|
licenses:
|
148
148
|
- MIT
|
149
149
|
metadata:
|
150
|
-
created: '2015-09-
|
151
|
-
revision: '
|
150
|
+
created: '2015-09-07 07:46:28'
|
151
|
+
revision: '20150907074628'
|
152
152
|
post_install_message: ". Run `pdfmd` to see the command help."
|
153
153
|
rdoc_options: []
|
154
154
|
require_paths:
|