pdfh 0.2.1 → 3.0.0

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
  SHA256:
3
- metadata.gz: a3761420b1befc7788493ed341094bffcf3b6f86bc2f6685f7b4de0a8201752b
4
- data.tar.gz: 9da09a68dff012c3e22e67581c73b1bf874ed3abd0f9d58be8c760fa37ca6561
3
+ metadata.gz: ce33aa4da82a840716b3af1e3ae8a755075c991afd361da6916ba3418c523ba4
4
+ data.tar.gz: 49618addd2323056b8312b9a8bba29947623fcdfd4813c671a34078e7fe8ff57
5
5
  SHA512:
6
- metadata.gz: 5a9ba91f43fcb3e96469bf1d4499ab9e857211553bebe4732e0d3d287e4fe7946fe635b7f6e345576d69da6b07573acce2794619098d62ae40309c7f3d170f2d
7
- data.tar.gz: 80a52f67d7c47159918b5cff641f5744022d1400bf71ac9fe6247814a0369e0a2ec8e2915b791a5e85e1107a28d9c64777471aa1ec448aa1ad093ecf83805287
6
+ metadata.gz: 5d64fbcff7d7aed4a3e085ec42c6980be840abddce68faa50d064074957262e6e475cb803b379a71ed8b9d86f6d3a821f7aacc8610fcc3745c61ba8df97c3abc
7
+ data.tar.gz: '069fe2a97fbceeb475116cfab0b27666ce73613d1a13b5af46c8e2026eb13d35bbe593376bca4fdd34591e2fba58ffcc2b4d1104b00cd386bef85e7bda18fe9f'
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
- --format documentation
1
+ --format progress
2
2
  --color
3
3
  --require spec_helper
data/.rubocop.yml CHANGED
@@ -16,7 +16,7 @@ AllCops:
16
16
 
17
17
  Layout/LineLength:
18
18
  Max: 120
19
- IgnoredPatterns: ['^\s*#']
19
+ AllowedPatterns: ['^\s*#']
20
20
 
21
21
  Style/StringLiterals:
22
22
  Enabled: true
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-3.1.0
1
+ 3.1.2
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,26 +1,31 @@
1
+ ## v3.0.0
2
+ * Migrate to `asdf` from `rvm`
3
+ * Upgrade old gems
4
+ * Bump to v3 (as this is project's the third iteration)
5
+
1
6
  ## v0.2.0
2
- * Major gem refactoring
3
- * Changed setting `base_path` to `destination_base_path`
4
- * Add DocumentType listing option on executable file
5
- * Add process individual documents providing type and files
6
- ```bash
7
- pdfh -t document_type_id path/to_files.pdf
8
- ```
9
- * Add settings.yml template in order to create a sample file
7
+ * Major gem refactoring
8
+ * Change setting `base_path` to `destination_base_path`
9
+ * Add DocumentType listing option on executable file
10
+ * Add process individual documents providing type and files
11
+ ```bash
12
+ pdfh -t document_type_id path/to_files.pdf
13
+ ```
14
+ * Add `settings.yml` template in order to create a sample file
10
15
 
11
16
  ## v0.1.9
12
- * Add dependencies validation at run
17
+ * Add dependencies validation at run
13
18
 
14
19
  ## v0.1.5
15
- * Add print_cmd field in config file for information purposes
16
- * Settings now validates a no existing directory
17
- * Refactor for easier maintenance
20
+ * Add `print_cmd` field in config file for information purposes
21
+ * Settings now validates an unexisting directory
22
+ * Refactor for easier maintenance
18
23
 
19
24
  ## v0.1.4
20
- * Add titleize format when writing new file
25
+ * Add titleize format when writing new file
21
26
 
22
27
  ## v0.1.3
23
- * Fixed copy companion files, which was not copying the files.
28
+ * Fixed copy companion files, which was not copying the files.
24
29
 
25
30
  ## v0.1.2
26
- * Initial Release
31
+ * Initial Release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pdfh (0.2.1)
4
+ pdfh (3.0.0)
5
5
  colorize (~> 0.8.0)
6
6
 
7
7
  GEM
@@ -10,56 +10,58 @@ GEM
10
10
  ansi (1.5.0)
11
11
  ast (2.4.2)
12
12
  blockenspiel (0.5.0)
13
- code-scanning-rubocop (0.5.0)
13
+ code-scanning-rubocop (0.6.1)
14
14
  rubocop (~> 1.0)
15
15
  coderay (1.1.3)
16
16
  colorize (0.8.1)
17
17
  diff-lcs (1.5.0)
18
18
  docile (1.4.0)
19
+ json (2.6.2)
19
20
  method_source (1.0.0)
20
- parallel (1.21.0)
21
- parser (3.1.0.0)
21
+ parallel (1.22.1)
22
+ parser (3.1.2.0)
22
23
  ast (~> 2.4.1)
23
24
  pry (0.14.1)
24
25
  coderay (~> 1.1)
25
26
  method_source (~> 1.0)
26
- rainbow (3.0.0)
27
+ rainbow (3.1.1)
27
28
  rake (13.0.6)
28
- regexp_parser (2.2.0)
29
+ regexp_parser (2.5.0)
29
30
  rexml (3.2.5)
30
- rspec (3.10.0)
31
- rspec-core (~> 3.10.0)
32
- rspec-expectations (~> 3.10.0)
33
- rspec-mocks (~> 3.10.0)
34
- rspec-core (3.10.1)
35
- rspec-support (~> 3.10.0)
36
- rspec-expectations (3.10.1)
31
+ rspec (3.11.0)
32
+ rspec-core (~> 3.11.0)
33
+ rspec-expectations (~> 3.11.0)
34
+ rspec-mocks (~> 3.11.0)
35
+ rspec-core (3.11.0)
36
+ rspec-support (~> 3.11.0)
37
+ rspec-expectations (3.11.0)
37
38
  diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.10.0)
39
- rspec-mocks (3.10.2)
39
+ rspec-support (~> 3.11.0)
40
+ rspec-mocks (3.11.1)
40
41
  diff-lcs (>= 1.2.0, < 2.0)
41
- rspec-support (~> 3.10.0)
42
- rspec-support (3.10.3)
42
+ rspec-support (~> 3.11.0)
43
+ rspec-support (3.11.0)
43
44
  rspec_junit_formatter (0.5.1)
44
45
  rspec-core (>= 2, < 4, != 2.12.0)
45
- rubocop (1.24.1)
46
+ rubocop (1.32.0)
47
+ json (~> 2.3)
46
48
  parallel (~> 1.10)
47
- parser (>= 3.0.0.0)
49
+ parser (>= 3.1.0.0)
48
50
  rainbow (>= 2.2.2, < 4.0)
49
51
  regexp_parser (>= 1.8, < 3.0)
50
- rexml
51
- rubocop-ast (>= 1.15.1, < 2.0)
52
+ rexml (>= 3.2.5, < 4.0)
53
+ rubocop-ast (>= 1.19.1, < 2.0)
52
54
  ruby-progressbar (~> 1.7)
53
55
  unicode-display_width (>= 1.4.0, < 3.0)
54
- rubocop-ast (1.15.1)
55
- parser (>= 3.0.1.1)
56
- rubocop-performance (1.13.1)
56
+ rubocop-ast (1.19.1)
57
+ parser (>= 3.1.1.0)
58
+ rubocop-performance (1.14.3)
57
59
  rubocop (>= 1.7.0, < 2.0)
58
60
  rubocop-ast (>= 0.4.0)
59
61
  rubocop-rake (0.6.0)
60
62
  rubocop (~> 1.0)
61
- rubocop-rspec (2.7.0)
62
- rubocop (~> 1.19)
63
+ rubocop-rspec (2.12.1)
64
+ rubocop (~> 1.31)
63
65
  ruby-progressbar (1.11.0)
64
66
  simplecov (0.21.2)
65
67
  docile (~> 1.1)
@@ -70,10 +72,10 @@ GEM
70
72
  simplecov
71
73
  terminal-table
72
74
  simplecov-html (0.12.3)
73
- simplecov_json_formatter (0.1.3)
75
+ simplecov_json_formatter (0.1.4)
74
76
  terminal-table (3.0.2)
75
77
  unicode-display_width (>= 1.1.1, < 3)
76
- unicode-display_width (2.1.0)
78
+ unicode-display_width (2.2.0)
77
79
  versionomy (0.5.0)
78
80
  blockenspiel (~> 0.5)
79
81
 
@@ -97,4 +99,4 @@ DEPENDENCIES
97
99
  versionomy (~> 0.5)
98
100
 
99
101
  BUNDLED WITH
100
- 2.2.17
102
+ 2.3.19
data/README.md CHANGED
@@ -81,5 +81,5 @@ The gem is available as open source under the terms of the [MIT License](https:/
81
81
  Everyone interacting in the Pdfh project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/iax7/pdfh/blob/master/CODE_OF_CONDUCT.md).
82
82
 
83
83
  <!-- Links -->
84
- [ruby-badge]: https://img.shields.io/badge/ruby-3.1.0-blue?style=flat&logo=ruby&logoColor=CC342D&labelColor=white
84
+ [ruby-badge]: https://img.shields.io/badge/ruby-3.1-blue?style=flat&logo=ruby&logoColor=CC342D&labelColor=white
85
85
  [ruby-url]: https://www.ruby-lang.org/en/
@@ -126,7 +126,7 @@ module Pdfh
126
126
  full_path = File.join(base_path, document.store_path, document.new_name)
127
127
  dir_path = File.join(base_path, document.store_path)
128
128
 
129
- FileUtils.mkdir_p(dir_path) unless File.exist?(dir_path)
129
+ FileUtils.mkdir_p(dir_path)
130
130
 
131
131
  document.pdf_doc.write_new_pdf(dir_path, full_path)
132
132
  make_document_backup(document)
data/lib/pdfh/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pdfh
4
- VERSION = "0.2.1"
4
+ VERSION = "3.0.0"
5
5
  end
data/lib/pdfh.rb CHANGED
@@ -130,8 +130,8 @@ module Pdfh
130
130
  end
131
131
  end
132
132
 
133
- raise SettingsIOError, "no configuration file (#{names_to_look.join(" or ")}) was found\n"\
134
- " within paths: #{dir_order.join(", ")}"
133
+ raise SettingsIOError, "no configuration file (#{names_to_look.join(" or ")}) was found\n " \
134
+ "within paths: #{dir_order.join(", ")}"
135
135
  end
136
136
  end
137
137
  end
data/pdfh.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["iax7@users.noreply.github.com"]
11
11
 
12
12
  spec.summary = "Organize PDF files"
13
- spec.description = "Examine all PDF files in Look up directories, remove password (if has one), "\
13
+ spec.description = "Examine all PDF files in Look up directories, remove password (if has one), " \
14
14
  "rename and copy to a new directory using regular expressions."
15
15
  spec.homepage = "https://github.com/iax7/pdfh"
16
16
  spec.license = "MIT"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdfh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaias Piña
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-06 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -38,6 +38,7 @@ files:
38
38
  - ".rubocop.yml"
39
39
  - ".rubocop_todo.yml"
40
40
  - ".ruby-version"
41
+ - ".tool-versions"
41
42
  - CHANGELOG.md
42
43
  - CODE_OF_CONDUCT.md
43
44
  - Gemfile
@@ -86,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
87
  - !ruby/object:Gem::Version
87
88
  version: '0'
88
89
  requirements: []
89
- rubygems_version: 3.3.3
90
+ rubygems_version: 3.3.7
90
91
  signing_key:
91
92
  specification_version: 4
92
93
  summary: Organize PDF files