wework 0.3.3 → 0.3.4

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
  SHA1:
3
- metadata.gz: 7fd0fba30711d459472452515ea3b09889c338de
4
- data.tar.gz: 8a357c5d834ed76679f0154d0fd8014c1ff2083f
3
+ metadata.gz: 0c98841b29ce00aabf378c3af49d92a9630154ef
4
+ data.tar.gz: e3b52725ac3c261041b0ee6c8a29ef1ab925b213
5
5
  SHA512:
6
- metadata.gz: 05091199323f8124cbfb3626a43dc7fe63ce43cf90b211b74899855bfbba8a51e77c4492cb3e9ff981a4209e76a0fe0ac22976bfaca848dc9b84d33548343cac
7
- data.tar.gz: b8f1ff8c78db59828d96f02e55ab9373c3b52287be5233baafe3cf51adf18fe1dfc23662f9c1abb0f4b403ca793d4290283e5dd3d0edbf47ad8b9cedd707752e
6
+ metadata.gz: 9214b0af6797808be69002d24daa4090e863a9854add081e61f6d817789e6627275b44ec2bbcf27451e72bea0afa9987ca446b7930e866c23e1814e95577c17f
7
+ data.tar.gz: f9f43733cb23887ad7490862378bb567f38b898abf0aa99a25188a3ed6d0f0acca720041a64693ec789c3c241a29da780b3522224bc3cea61dbf3b46a48eafd0
@@ -15,7 +15,7 @@ module Wework
15
15
  cipher.padding = 0
16
16
  key_data = Base64.decode64(encoding_aes_key + '=')
17
17
  cipher.key = key_data
18
- cipher.iv = key_data[0..16]
18
+ cipher.iv = [key_data].pack('H*')
19
19
 
20
20
  cipher.update(plain) + cipher.final
21
21
  end
@@ -27,7 +27,7 @@ module Wework
27
27
  cipher.padding = 0
28
28
  key_data = Base64.decode64(encoding_aes_key + '=')
29
29
  cipher.key = key_data
30
- cipher.iv = key_data[0..16]
30
+ cipher.iv = [key_data].pack('H*')
31
31
 
32
32
  plain = cipher.update(msg) + cipher.final
33
33
  decode_padding(plain)
@@ -1,3 +1,3 @@
1
1
  module Wework
2
- VERSION = '0.3.3'.freeze
2
+ VERSION = '0.3.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - seandong
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-14 00:00:00.000000000 Z
11
+ date: 2017-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http