perfect_world 0.3.1 → 0.3.2

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.
data.tar.gz.sig CHANGED
Binary file
@@ -19,7 +19,7 @@ module PerfectWorld
19
19
  s << SecureRandom.random_bytes(len * 3.3).gsub(/[^[:graph:]]/, '')
20
20
  end
21
21
 
22
- s[0..(len - 1)]
22
+ s[0..(len - 1)].encode('utf-8')
23
23
  rescue SystemCallError, NotImplementedError => e
24
24
  raise Error, e.message
25
25
  end
@@ -69,7 +69,7 @@ module PerfectWorld
69
69
  end
70
70
 
71
71
  def encrypt(data, key)
72
- GPGME::Crypto.new(key: key).encrypt(data, recipients: key, sign: true)
72
+ GPGME::Crypto.new.encrypt(data, recipients: key, sign: true, signers: key)
73
73
  rescue GPGME::Error => e
74
74
  raise Error, e.message
75
75
  end
@@ -1,3 +1,3 @@
1
1
  module PerfectWorld
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfect_world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -36,7 +36,7 @@ cert_chain:
36
36
  bjRVQmxyeTVQVzB6ZzY0VEk5L1AzNEFHUXQ2SStUOHMKQnh0dUdkZ0YyMkpt
37
37
  M3ZYbGlySkJJSStvMDdIeDV3ZjJEUGRDMTRKRU1UUVZoRVFkc2ZwbU9ub2Q0
38
38
  SnpLdWRxNwpES1U9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
39
- date: 2013-02-08 00:00:00.000000000 Z
39
+ date: 2013-02-09 00:00:00.000000000 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: gpgme
metadata.gz.sig CHANGED
@@ -1 +1 @@
1
- ֻ�'����O%A��I|_eq#�����9�y��������KO�]̪���'�ڨ3?�0��4�vi5͌�+��ezx�˷��z@��W$��A(Տ
1
+ ��~��u�T�B�J���`y��G�S�1WiK�����?v�Ӝ����Qki��#-C�}g(�*�NF�F���#��, ��,LY�֊/�U�ԏ̾v�9�����ч�q:vaZP��*�Q���H_����LXv��c�ؽ���g] �u=|��Y7�~�].�/��F��A���E/nF�F_�6S鱲�1I��V��o�{^H-4�Y�AG�y<��+�x�z~y&V�����y0��eJO�H�2W�