ecm-blockchain-api 1.1.5 → 1.1.7

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: 46ab9972cadc52aea450e45bb15b43c7696fd78cd9db2f329bb8b0a07d888fa9
4
- data.tar.gz: 547eaea104fe9b9d5dcf42769cfd5285caa84b7c9cad17656549539aec8b31f7
3
+ metadata.gz: 5bf76b8b3c2905b2deca8804371da185eaf46584c94e2d9b6df53a7cd85f0183
4
+ data.tar.gz: 38b7fa9bd5975bf42fc067979fb9fa96308ee76b926650e0de5be778e004f1b2
5
5
  SHA512:
6
- metadata.gz: 35420456aa3bf55f9b92f340592378eec24819bab1326a34d77c73a4bd0194772966059b0459cf85d3658a369e3bc86062931945798c33fd7c45d0dc1419c761
7
- data.tar.gz: 32c0fe067486ff0c8baeea6e8196c7b86f8c54f401faf8a75962d7650941f49c8d787c505d09e397741c22677abcab28adab115bdb82dc5a803ef229ce6d14f7
6
+ metadata.gz: 9146a8ad43062d06db6e0d105e4a80f1f0483393ef4e69c56306d9aacf8917317097e127053c647182b864086ab829bf91302f6f6b4333988592c5cb5c3c8c18
7
+ data.tar.gz: 2c1b59adae257ac93f5f653e95860f25c2bfbf8d5ba6c5e669c43831916ddff0ea882393cebd96ad3a4b727aece74e3b6c82aeed6f06f2035303e6f4005e1101
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ecm-blockchain-api (1.1.4)
4
+ ecm-blockchain-api (1.1.6)
5
5
  activemodel (~> 7.0, >= 7.0.4.3)
6
6
  httparty (~> 0.22.0)
7
7
 
@@ -154,7 +154,7 @@ CHECKSUMS
154
154
  csv (3.3.5)
155
155
  diff-lcs (1.6.2)
156
156
  drb (2.2.3)
157
- ecm-blockchain-api (1.1.4)
157
+ ecm-blockchain-api (1.1.6)
158
158
  factory_bot (6.5.6)
159
159
  faker (3.5.3)
160
160
  hashdiff (1.2.1)
@@ -11,7 +11,8 @@ module ECMBlockchain
11
11
 
12
12
  def timestamp(identity, data)
13
13
  verify_file(data)
14
- asset(request( :patch, "/#{identity}#{ASSET_URL}/document_timestamp", data ))
14
+ binding.pry
15
+ file(request( :post, "/#{identity}#{ASSET_URL}/document_timestamp", data ))
15
16
  end
16
17
 
17
18
  # def batch_create(identity, data)
@@ -44,6 +45,10 @@ module ECMBlockchain
44
45
  verify_asset(asset_data)
45
46
  end
46
47
 
48
+ def file(file_data)
49
+ verify_file(file_data)
50
+ end
51
+
47
52
  def verify_asset(asset)
48
53
  ECMBlockchain::AssetModel.verify(asset)
49
54
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ECMBlockchain
4
- VERSION = "1.1.5"
4
+ VERSION = "1.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecm-blockchain-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wardy