pdfmd 2.1.2 → 2.1.3

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: ccd9a6ec1c8f77ff310ae986cd8839a968185fb7
4
- data.tar.gz: bb26b8f1d27e79f03e845b7fd5c3c41a1030e498
3
+ metadata.gz: 2acbcf4a04464d04db5edaa18403cd282e45c61c
4
+ data.tar.gz: 5d18ef310167bd2773e02e399bafd367bca71258
5
5
  SHA512:
6
- metadata.gz: 96d44b33c4964f8d6231953644de5c07d779cba6b0e908d83a69b47c52867f959b48210337846278fbe8dc2b5ba5d5b7acfcf306d960d3abb644e39fc8030d44
7
- data.tar.gz: 34ed74f26f53716287e7b310e6039d95e87204b67f0d10c1a4e9834b43aba23bb0f1fb6026a4264847f8ed96769f1c3a308a9f9758116c085ce324b2403c54c3
6
+ metadata.gz: a0b74c9b92f6f97b7bc6684ce4a17f7a2d29009d9aef1b8a7d20748a2d67fb5993f171c6f03f4560c97207fdfc52054acd1f3179989915a5fd05ce93428ae230
7
+ data.tar.gz: 0def62208beef4845c52dc7140b9b303abb45d6cfecbe7c24989e817c5c5f5cc739601433e4676447008bc370e5bae5ce4970ee0d0bd89a10b09d79c320e2d8e
@@ -1,3 +1,6 @@
1
+ # Version 2.1.3
2
+ - Bugfix: #1, Hyphen in Author tag
3
+
1
4
  # Version 2.1.2
2
5
  - Bugfix: Removed double occurence of '__' in keywords.
3
6
 
data/bin/pdfmd CHANGED
@@ -7,7 +7,7 @@ require "fileutils"
7
7
  require "i18n"
8
8
  require 'pathname'
9
9
 
10
- VERSION = '2.1.2'
10
+ VERSION = '2.1.3'
11
11
  NAME = 'pdfmd'
12
12
 
13
13
  #
@@ -185,7 +185,7 @@ class Pdfmdedit < Pdfmd
185
185
 
186
186
  commandparameter = '-overwrite_original'
187
187
  @@metadata.each do |key,value|
188
- commandparameter = commandparameter + " -#{key}='#{value}'"
188
+ commandparameter = commandparameter + " -#{key}=\"#{value}\""
189
189
  end
190
190
 
191
191
  if !@@documentPassword.to_s.empty?
@@ -39,7 +39,7 @@ 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()
42
+ newFilename[:author] = get_author().gsub(/\'/,'') # Remove Hyphens as well
43
43
  newFilename[:doctype] = get_doctype()
44
44
  newFilename[:title] = @@metadata['title'].downcase
45
45
  newFilename[:subject] = @@metadata['subject'].downcase.gsub(/(\s|\-|\.|\&|\%)/,'_')
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.2
4
+ version: 2.1.3
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-07-18 00:00:00.000000000 Z
11
+ date: 2015-08-11 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-07-18 20:03:21'
151
- revision: '20150718200321'
150
+ created: '2015-08-11 07:39:12'
151
+ revision: '20150811073912'
152
152
  post_install_message: ". Run `pdfmd` to see the command help."
153
153
  rdoc_options: []
154
154
  require_paths: