rubrik 0.1.0 → 0.1.1

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: 81d2c2fdaaf16157493e2d51d65e7b96695b6c3392456903f312e3809745405c
4
- data.tar.gz: dc1d3640cca46b468417fc15065c621ccc4187f74687fba7431eabac3088a00a
3
+ metadata.gz: b773c74e295ae4696469fb10aa10cbb80705a44b0f7f9e5b7772b08a3bab5493
4
+ data.tar.gz: 1d1d6efd3f7d53a649f3369e062bf998ac37234b7e4e4f39c73ddcf48ac4d7f5
5
5
  SHA512:
6
- metadata.gz: cfa4044ac36e578939f5759b98a1e3f4ff87794dc66f7613f204097f27b0b7640d41353f728c5e5273ae6994310a6175a5df99c7a3685566342df359ae272d8f
7
- data.tar.gz: 917ed93c196bb299da3e726fe09b4e534c8c333471a16a8c3ef672cc3dc2ef91971c6649c4770360df99e4f70c8a0037e563b7510a29b67f1f4764fa10d8d7c5
6
+ metadata.gz: 4a249b176bde1b19d968a846c3eaed6a855d5ad882bc53b9946aed4f5ff902b12c6583f5cec5caa6d8a9086ecf22da910c09832e9ff27e97d262485dff714e2c
7
+ data.tar.gz: cfe1ca7af5f35cb43f8cc1660f7c85ea8ca27a9a3ebd19bf1e97cd93e031f8a6c51bb36703c2f88cc4dbf6b8f3e0cb90d6e5c6a4bb7b4542eccdac53094ed49f
data/README.md CHANGED
@@ -10,15 +10,15 @@ This gem is under development and may be subjected to breaking changes.
10
10
 
11
11
  ### PDF Features
12
12
  - [x] Modify PDFs with incremental updates (doesn't modify the documents, only append signature appearence)
13
- - [] Signature appearence (stamp)
14
- - [] External (offline) signatures
13
+ - [ ] Signature appearence (stamp)
14
+ - [ ] External (offline) signatures
15
15
 
16
16
  ### Signature Profiles
17
17
  - [x] CMS (PKCS#7)
18
- - [] PAdES B-B (conforms with PAdES-E-BES)
19
- - [] PAdES B-T (conforms with PAdES-E-BES)
20
- - [] PAdES AD-RB
21
- - [] PAdES AD-RT
18
+ - [ ] PAdES B-B (conforms with PAdES-E-BES)
19
+ - [ ] PAdES B-T (conforms with PAdES-E-BES)
20
+ - [ ] PAdES AD-RB
21
+ - [ ] PAdES AD-RT
22
22
 
23
23
  ## Installation
24
24
 
@@ -37,7 +37,7 @@ With the gem loaded, run the following to sign an document:
37
37
  ```ruby
38
38
  # The input and output can be of types `File`, `Tempfile` or `StringIO`.
39
39
  input_pdf = File.open("example.pdf", "rb")
40
- output_pdf = File.open("signed_example.pdf", "wb")
40
+ output_pdf = File.open("signed_example.pdf", "wb+") # needs read permission
41
41
 
42
42
  # Load Certificate(s)
43
43
  certificate = File.open("example_cert.pem", "rb")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubrik
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
data/lib/rubrik.rb CHANGED
@@ -1,9 +1,6 @@
1
1
  # typed: true
2
2
  # frozen_string_literal: true
3
3
 
4
- require "bundler"
5
- Bundler.setup(:default)
6
-
7
4
  require "sorbet-runtime"
8
5
  require "pdf-reader"
9
6
  require "irb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubrik
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomás Coêlho
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.20
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Sign PDFs digitally in pure Ruby