pdfmd 2.4.2 → 2.5.0

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: ac8e737cb17c20406bc8d5f53493ae4f3872bbfe
4
- data.tar.gz: 1f08b6fc1cfcb69bad38bf93cf0b7a6575439079
3
+ metadata.gz: 970844407051f137b893c42e9702e1a51a7558e8
4
+ data.tar.gz: a0f7daf1d0fa37e297f37650b087181a3ae64402
5
5
  SHA512:
6
- metadata.gz: 4f005080f01cf0302c6efae8e41cfbb326e709bd18e8888a673af8913402f4548d874138e9423b5411c325d27c4fd53090224db81c6f84b2588228b36767bc32
7
- data.tar.gz: bb4f2e75523c716c86ddeb0eca5e7f22053d1c38fb92d0f5089210c977881a9bf4af28b434acc1a9cea5f07453b3ab157689b86643a2b40b003beb0816ce1630
6
+ metadata.gz: 2b36151807b90b6474065900c29414b4ff95b74adb9a956ae56b1fab5439628f64994091a654ccf51d5bd255abffc072c90fed9edeb1b06e3d8043601dba905e
7
+ data.tar.gz: 6ee948b86f665d1ae105083fb0075d6e25cd0fde22f69d9172041da0b0e9041c57f2a90a9cec6556f2ef088f710f35f756e9e5ef907361a7f96f346aed8e07d8
@@ -1,3 +1,7 @@
1
+ # Version 2.5.0
2
+ - Bugfix, Removing output of debugging and empty lines.
3
+ - Changing edit separation sign from ':' to '='.
4
+
1
5
  # Version 2.4.2
2
6
  - Bugfix, overwriting hiera settings with commandline parameters were not working.
3
7
 
data/bin/pdfmd CHANGED
@@ -8,7 +8,7 @@ require "fileutils"
8
8
  require "i18n"
9
9
  require 'pathname'
10
10
 
11
- VERSION = '2.4.2'
11
+ VERSION = '2.5.0'
12
12
  NAME = 'pdfmd'
13
13
 
14
14
  # Read the content of the long description from an external file
@@ -148,7 +148,6 @@ def edit(*filename)
148
148
 
149
149
  pdfdoc = Pdfmdedit.new current_file
150
150
  tags = pdfdoc.determineValidSetting(options[:tag],'edit:tags')
151
- puts 'tag: ' + tags
152
151
  pdfdoc.opendoc = pdfdoc.determineValidSetting(options[:opendoc], 'edit:opendoc')
153
152
  pdfdoc.pdfviewer = pdfdoc.determineValidSetting(nil, 'edit:pdfviewer')
154
153
  pdfdoc.set_tags tags
@@ -233,7 +232,6 @@ def sort(*input)
233
232
 
234
233
  if File.file?(file)
235
234
  pdfdoc = Pdfmdsort.new file
236
- puts options[:copy]
237
235
  pdfdoc.copy = pdfdoc.determineValidSetting(options[:copy], 'sort:copy')
238
236
  pdfdoc.interactive = pdfdoc.determineValidSetting(options[:interactive], 'sort:interactive')
239
237
  pdfdoc.destination = pdfdoc.determineValidSetting(options[:destination], 'sort:destination')
@@ -35,6 +35,9 @@ class Pdfmd
35
35
  # Hiera configuration data
36
36
  @@hieradata = Hash.new
37
37
 
38
+ # Field seperator for edit tags
39
+ @@edit_separator = '='
40
+
38
41
  def initialize(filename)
39
42
 
40
43
  # Default Logfile location and logging enabled
@@ -87,7 +87,7 @@ $ pdfmd edit -t tag1,tag2,tag3 <filename>
87
87
 
88
88
  # Edit multiple Tags and set a new value in batch mode.
89
89
 
90
- $ pdfmd edit -t tag1:'value1',tag2:'value2' <filename>
90
+ $ pdfmd edit -t tag1='value1',tag2='value2' <filename>
91
91
 
92
92
 
93
93
 
@@ -108,9 +108,9 @@ $ pdfmd edit -t all example.pdf
108
108
 
109
109
  # Set tags 'Author', 'CreateDate' in example.pdf in batch mode (non-interactive:
110
110
 
111
- pdfmd edit -t author:'Me',createdate:'1970:00:00 01:01:01' example.pdf
111
+ pdfmd edit -t author='Me',createdate='1970:00:00 01:01:01' example.pdf
112
112
 
113
- pdfmd edit -t author:'Me',Createdate:19700000 example.pdf
113
+ pdfmd edit -t author='Me',Createdate=19700000 example.pdf
114
114
 
115
115
 
116
116
 
@@ -57,10 +57,12 @@ class Pdfmdedit < Pdfmd
57
57
  tagsForEditing = tags.split(',')
58
58
  tagsForEditing.each do |value|
59
59
 
60
- if value.match(/:/)
60
+ # Matchin for seperator
61
+ separator = @@edit_separator
62
+ if value.match(/#{separator}/)
61
63
 
62
64
  self.log('debug', 'Found tag value assignment.')
63
- tagmatching = value.split(':')
65
+ tagmatching = value.split(separator)
64
66
 
65
67
  # Check date for validity
66
68
  if tagmatching[0] == 'createdate'
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.4.2
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Roos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-25 00:00:00.000000000 Z
11
+ date: 2016-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -174,8 +174,8 @@ homepage: https://github.com/Micronarrativ/ruby-pmd
174
174
  licenses:
175
175
  - MIT
176
176
  metadata:
177
- created: '2016-08-25 10:10:09'
178
- revision: '20160825101009'
177
+ created: '2016-09-25 20:19:06'
178
+ revision: '20160925201906'
179
179
  post_install_message: ". Run `pdfmd` to see the command help."
180
180
  rdoc_options: []
181
181
  require_paths:
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  requirements:
194
194
  - "[exiftools](http://www.sno.phy.queensu.ca/~phil/exiftool/)"
195
195
  rubyforge_project:
196
- rubygems_version: 2.4.8
196
+ rubygems_version: 2.4.6
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: pdfmd - pdf-meta-data management