tdes 3.0.2 → 3.0.5

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: 5b31d6bd07ddb3f0fc2e238d88b24ed7f4ce7810a9a1839187622472c5e4fab7
4
- data.tar.gz: 667681e3a1e9aaa3b6462215f553dd2da0ad77e49f0d19ede49132dabe2587d2
3
+ metadata.gz: 1ae48de55f0b1e0889bf1956eb0745d34be42f8a29dcd22e379a2beec51e6abf
4
+ data.tar.gz: 6f17a05730784dbac958c2cd4781d1172d587e32369994df9dd213042cdf4663
5
5
  SHA512:
6
- metadata.gz: d5ee3fce85a38a66eca812d8e69d6cce99be0d45f057999432de9433c16c49604b8a125f1857e5a18c27b16deb90a7c5de688e1cff178fc02a2e21bf089c761d
7
- data.tar.gz: e455ede1db33dd4d1fc01c2a7ee49dd6f9f30633edee6e9c53d01f0fe403aef04898cfb34d98f5307ded9c4c505bf29fa57f13abf2e095fb4ca97beefdbd226f
6
+ metadata.gz: 4e61f947fd99c9ff8d799a3a9fc7cd031fabb74b44d2171e086bd2ea9f03ea84650c3aa2134edadb91777257e10af248c4263d2fcd82e400a42b2783a471a434
7
+ data.tar.gz: 5ccb4ad585a6a7111fa07be344adbd7c40a427dfa0c9ec863f2f19c54d7664e6da9f7930598182950c6a86a3aaee917a8ad5e23c2cf1e9f9d7e6da29b5a9524c
data/ext/tdes/extconf.rb CHANGED
@@ -14,9 +14,7 @@ with_cflags(cflags) do
14
14
  abort 'missing DES_ecb3_encrypt' unless have_func('DES_ecb3_encrypt', 'openssl/des.h')
15
15
 
16
16
  # Check for a symbol/function specific to OpenSSL 3.x
17
- unless have_func('EVP_Cipher')
18
- abort 'OpenSSL 3.x required (missing EVP_Cipher function)'
19
- end
17
+ abort 'OpenSSL 3.x required (missing EVP_Cipher function)' unless have_func('EVP_Cipher')
20
18
 
21
19
  create_makefile 'tdes/tdes'
22
20
  end
@@ -83,6 +83,7 @@ static VALUE tdes_decrypt(VALUE self, VALUE data) {
83
83
 
84
84
  void setup_tdes_class(VALUE module) {
85
85
  VALUE tdes_class = rb_define_class_under(module, "TDES", rb_cObject);
86
+ rb_undef_alloc_func(tdes_class);
86
87
  rb_define_singleton_method(tdes_class, "new", tdes_new, 1);
87
88
  rb_define_method(tdes_class, "encrypt", tdes_encrypt, 1);
88
89
  rb_define_method(tdes_class, "decrypt", tdes_decrypt, 1);
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Tdes
4
+ VERSION = '3.0.5'
5
+ end
data/lib/tdes.rb CHANGED
@@ -1 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tdes/version'
4
+
5
+ # loads the C extension
1
6
  require 'tdes/tdes'
metadata CHANGED
@@ -1,44 +1,46 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tdes
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Bastos
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-07 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rake-compiler
14
+ name: minitest
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '5'
27
27
  - !ruby/object:Gem::Dependency
28
- name: jeweler
28
+ name: rake-compiler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
41
- description: triple DES encryption implemented in C using openssl
40
+ version: '1'
41
+ description: 'triple DES encryption implemented in C using openssl
42
+
43
+ '
42
44
  email: gabriel.bastos@cloudwalk.io
43
45
  executables: []
44
46
  extensions:
@@ -52,27 +54,31 @@ files:
52
54
  - ext/tdes/tdes_class.c
53
55
  - ext/tdes/tdes_class.h
54
56
  - lib/tdes.rb
57
+ - lib/tdes/version.rb
55
58
  homepage: https://github.com/cloudwalk/ruby-3des
56
59
  licenses:
57
60
  - MIT
58
- metadata: {}
59
- post_install_message:
60
- rdoc_options: []
61
+ metadata:
62
+ rubygems_mfa_required: 'true'
63
+ post_install_message:
64
+ rdoc_options:
65
+ - "--main"
66
+ - readme.md
61
67
  require_paths:
62
68
  - lib
63
69
  required_ruby_version: !ruby/object:Gem::Requirement
64
70
  requirements:
65
71
  - - ">="
66
72
  - !ruby/object:Gem::Version
67
- version: '0'
73
+ version: '2.7'
68
74
  required_rubygems_version: !ruby/object:Gem::Requirement
69
75
  requirements:
70
76
  - - ">="
71
77
  - !ruby/object:Gem::Version
72
78
  version: '0'
73
79
  requirements: []
74
- rubygems_version: 3.3.5
75
- signing_key:
80
+ rubygems_version: 3.5.11
81
+ signing_key:
76
82
  specification_version: 4
77
83
  summary: triple DES encryption implemented in C
78
84
  test_files: []