as2 0.5.0 → 0.5.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: 40b3957adcdaa34f7df9fe0ee83966f7076e80bc9dc9c02b8f27a4fb22395fda
4
- data.tar.gz: 1d8002959f6b4afa70c94fd363c9d97c15b2f20a82ee96b1bc39ebba8a55972e
3
+ metadata.gz: 0225c8faac2c9bb92938878b8f2f2f919c50589d368fe4480d5ad96541d3e0ca
4
+ data.tar.gz: 897d1831f060e7ee248e2a0a6031d5b76d47b5f099d3d46ef93a000a78712873
5
5
  SHA512:
6
- metadata.gz: bb04b23ab84f14e131e74e3a213e71ae5f3009f805af08b7cc1c88dc3798745639e4cffea1a85811df51a522776797f236da98c82ab84863dd5891c0b37fc243
7
- data.tar.gz: a71c9ea6c4c82637103ae1353e5b54cee88ad4f52b388883b0b409c24722247bbd0ead903ca5ef00ba1df41403ab11f1d6b4b03f9d03f58af39ccb399848adf0
6
+ metadata.gz: 0c2a13a733a35bf8a284077258a52ed3e1da95d4c70b23053b220ff89050178be6a4478f859aba6c341866295dc1abf501ddae322f83ddcc38a297adea4c6559
7
+ data.tar.gz: af1bfdcad847e185db4cb1b0be09b2c49e8b6d8d8cf77c2abe8357fcaae1e8f5018688088eb8161e30fcf3c820b5fc6c0c5e3ade286123f2a51087697f105089
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.5.1, August 10, 2022
2
+
3
+ * Any HTTP 2xx status received from a partner should be considered successful. [#12](https://github.com/andjosh/as2/pull/12)
4
+
1
5
  ## 0.5.0, March 21, 2022
2
6
 
3
7
  * improvements to `As2::Client`. improve compatibility with non-Mendelson AS2 servers. [#8](https://github.com/andjosh/as2/pull/8)
data/README.md CHANGED
@@ -30,12 +30,10 @@ along.
30
30
  will see a MIC verification failure. AS2 RFC specifically prefers sha1 and
31
31
  mentions md5. Mendelson AS2 server supports a number of other algorithms.
32
32
  (sha256, sha512, etc)
33
- 2. Payload bodies (typically EDI files) can be binary or base64 encoded. We
34
- error if the body is not base64-encoded.
35
- 3. Payload bodies can have a few different mime types. We expect only
36
- `application/EDI-Consent`. We're unable to receive content that has any other
33
+ 2. Payload bodies can have a few different mime types. We expect a type that
34
+ matches `application/EDI-*`. We're unable to receive content that has any other
37
35
  mime type. https://datatracker.ietf.org/doc/html/rfc1767#section-1
38
- 4. AS2 partners may agree to use separate certificates for data encryption and data signing.
36
+ 3. AS2 partners may agree to use separate certificates for data encryption and data signing.
39
37
  We do not support separate certificates for these purposes.
40
38
 
41
39
  ## Installation
data/lib/as2/client.rb CHANGED
@@ -95,7 +95,7 @@ module As2
95
95
  resp = http.request(req)
96
96
  end
97
97
 
98
- if resp.code == '200'
98
+ if resp && resp.code.start_with?('2')
99
99
  mdn_report = evaluate_mdn(
100
100
  mdn_content_type: resp['Content-Type'],
101
101
  mdn_body: resp.body,
data/lib/as2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module As2
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: as2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OfficeLuv
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-03-21 00:00:00.000000000 Z
12
+ date: 2022-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mail