onlyoffice_documentserver_conversion_helper 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 76e4586303d9e591a56bfcfe1449d052e686bab52a003c6e96b37d52e27ab55c
4
- data.tar.gz: 207964d6459a5f732c528407230657561d47e0035da7be6126d4017dd709d505
3
+ metadata.gz: 2052d02f45954ff45a8a5d222d3387e2492b6f81b7790d27a0a270d1ebde0700
4
+ data.tar.gz: 112a1889a8471d5fcc1d90dd726a5fce1d4b68c976b2e72c3d97638b9a2aade9
5
5
  SHA512:
6
- metadata.gz: 1b6607991e9781150ed057e0db906d1c2803f70a82c3bcaa268227ab595adb28436c4d6c11f06513b378a94ff19867c556381f5743ae22065a1737e1089a9876
7
- data.tar.gz: c642bc87c00c0696951bd82bb4b50de6bb505ce76708904537121f3e20bd3e92eccfe4a2e37180807ac31f14f1c86d8217f63bdc648f052562604759cb6ce94d
6
+ metadata.gz: 6f06371b23c50fc660a9aa4ee76b82cfa7e6513d62d61491320115fa566ba20950f7bdd388fa956fdf52de1c8c6b4917b060569d03ea91079c3779177341722f
7
+ data.tar.gz: 0eeee137a054d173b5fa083990e5a06aa1db09e33684353f4e050557db5d50722a7c1047c523ac82e3baeaa29475c5d8448df07b3809b25f3838a0b7085020d4
@@ -4,6 +4,6 @@ module OnlyofficeDocumentserverConversionHelper
4
4
  # This module holds the OnlyofficeDocumentserverConversionHelper gem version
5
5
  module Version
6
6
  # @return [String] version of gem
7
- STRING = '0.3.0'
7
+ STRING = '0.4.0'
8
8
  end
9
9
  end
@@ -93,7 +93,7 @@ module OnlyofficeDocumentserverConversionHelper
93
93
  # @param [Net::HTTP::Post] request to add data
94
94
  # @return [Net::HTTP::Post] request with JWT
95
95
  def add_jwt_data(request)
96
- payload_to_encode = { 'payload' => '{}' }
96
+ payload_to_encode = { 'payload' => JSON.parse(request.body) }
97
97
  jwt_encoded = JWT.encode payload_to_encode, @jwt_key
98
98
  request[@jwt_header] = "#{@jwt_prefix} #{jwt_encoded}"
99
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onlyoffice_documentserver_conversion_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ONLYOFFICE
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-12-17 00:00:00.000000000 Z
13
+ date: 2022-03-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jwt
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  requirements: []
197
- rubygems_version: 3.2.32
197
+ rubygems_version: 3.3.7
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: onlyoffice_documentserver_conversion_helper Gem