pdfh 0.1.3 → 0.1.4

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: 8946e2ef210a5573d2654e9514f775c950e42a65b429365703450b117d3b073e
4
- data.tar.gz: d9a5927dc608bb8e0ab74cbe28e7d2ff18597158b0daed41784e486dfe83eb92
3
+ metadata.gz: abfe40299db0b68678beba21f329093fa9ecde2caa3e9df684e16b312c9b8fe2
4
+ data.tar.gz: 49ee2fc202fbc0cbe279185c4177c27f543c6946d9decdbc4fbf67af9e6b8bf8
5
5
  SHA512:
6
- metadata.gz: 4927717bb5ed460cd444db6a6088d852969e2804c3ebb6efde21b9f7f73a6a310b814b83f062f3ef453d06aaad90a1bff6b9d7cf44bdb6bca22f8dd60cd80d43
7
- data.tar.gz: 1a7d43a0ebd0bd9d990337cda4470193b18f645fd3011828dc82c88c6e1d7e75670d3580ccdde721214e80848eb98086b9162ce7ed2b75a536ac8a04f3100f1f
6
+ metadata.gz: 60b8883dd62e730ac46306d79d3cd967cd220d8486fe3cf0e21597a7f1c642271528d8a94a37ab21a3cb01bb805cd4f054f46bb918381c39b4325cb3467a2ae0
7
+ data.tar.gz: 1cd81d3feb7305d5df3119eee85de42587dcae07ddffc9966cdc86e3c87420f0925f105c41fa9d689c2cc68f6b2c75f5ad8260974abd6997a209691595e03c12
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- pdfh (0.1.2)
4
+ pdfh (0.1.3)
5
5
  colorize (~> 0.8.1)
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -42,7 +42,7 @@ gem install pdfh-*
42
42
 
43
43
  ## Contributing
44
44
 
45
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/pdfh. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
45
+ Bug reports and pull requests are welcome on GitHub at https://github.com/iax7/pdfh. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
46
46
 
47
47
  ## License
48
48
 
@@ -50,4 +50,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
50
50
 
51
51
  ## Code of Conduct
52
52
 
53
- 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/[USERNAME]/pdfh/blob/master/CODE_OF_CONDUCT.md).
53
+ 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).
data/lib/pdfh/document.rb CHANGED
@@ -1,8 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'fileutils'
4
+ require 'ext/string'
4
5
 
5
6
  module Pdfh
7
+ using Pdfh::String
8
+
6
9
  ##
7
10
  # Handles the PDF detected by the rules
8
11
  # TODO: Replace command utils with this gem
@@ -86,11 +89,11 @@ module Pdfh
86
89
  end
87
90
 
88
91
  def type_name
89
- @type ? @type.name : 'N/A'
92
+ @type ? @type.name.titleize : 'N/A'
90
93
  end
91
94
 
92
95
  def sub_type
93
- @sub_type ? @sub_type.name : 'N/A'
96
+ @sub_type ? @sub_type.name.titleize : 'N/A'
94
97
  end
95
98
 
96
99
  def new_name
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.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
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.1.3
4
+ version: 0.1.4
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: 2019-01-19 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize