sodium 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +22 -0
- data/VERSION +1 -1
- data/lib/sodium/buffer.rb +2 -2
- data/sodium.gemspec +1 -0
- data/tasks/libsodium.rake +0 -1
- data/tasks/test.rake +1 -1
- metadata +8 -16
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5a3148373bee8b0f0b69de9c46f285dad93954b2
|
4
|
+
data.tar.gz: 86ca6e4c75fe2cf604b4bfbe0e187512b6eed95f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b44881a0c21a5d9f9d3bf18f4f19bc686e12323bec0021e871800b2c94d96fa36d3e7a47b63e2669c08b90b56340083ce63e00ccf7483728a3b7611481390b9b
|
7
|
+
data.tar.gz: 796b92d6768403b5c034f7e905fc71296d4a3428a482e488f2e2539546f4eca0c6f889d41367831b75127d8c227562fcf9b4403d11c770af56fdff58c5cf0761
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Stephen Touset
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.2
|
data/lib/sodium/buffer.rb
CHANGED
@@ -51,10 +51,10 @@ class Sodium::Buffer
|
|
51
51
|
# initialize with a forced hard copy of the bytes (Ruby is smart
|
52
52
|
# about using copy-on-write for strings 24 bytes or longer, so we
|
53
53
|
# have to perform a no-op that forces Ruby to copy the bytes)
|
54
|
-
@bytes = bytes.
|
54
|
+
@bytes = bytes.dup.tap {|s|
|
55
55
|
s.force_encoding('BINARY') if
|
56
56
|
s.respond_to?(:force_encoding)
|
57
|
-
}.freeze
|
57
|
+
}.tr('', '').freeze
|
58
58
|
|
59
59
|
self.class._mlock! @bytes
|
60
60
|
self.class._mwipe! bytes
|
data/sodium.gemspec
CHANGED
@@ -8,6 +8,7 @@ Gem::Specification.new do |gem|
|
|
8
8
|
gem.homepage = 'https://github.com/stouset/sodium'
|
9
9
|
gem.summary = 'A Ruby binding to the easy-to-use high-speed crypto library libsodium'
|
10
10
|
gem.description = 'A library for performing cryptography based on modern ciphers and protocols'
|
11
|
+
gem.license = 'MIT'
|
11
12
|
|
12
13
|
gem.bindir = 'bin'
|
13
14
|
gem.files = `git ls-files` .split("\n")
|
data/tasks/libsodium.rake
CHANGED
@@ -3,7 +3,6 @@ require 'rake/clean'
|
|
3
3
|
require 'rbconfig'
|
4
4
|
require 'digest/sha2'
|
5
5
|
|
6
|
-
|
7
6
|
LIBSODIUM_MIRROR = ENV['LIBSODIUM_MIRROR'] || "https://github.com/jedisct1/libsodium/tarball/%s"
|
8
7
|
LIBSODIUM_VERSION = ENV['LIBSODIUM_VERSION'] || 'master'
|
9
8
|
LIBSODIUM_DIGEST = ENV['LIBSODIUM_DIGEST'] || nil
|
data/tasks/test.rake
CHANGED
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sodium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Stephen Touset
|
@@ -30,12 +29,11 @@ cert_chain:
|
|
30
29
|
/fYRy+X91OOKL0AyBJRoXo4iT7YeerdeYuWB9HZjJZSR13qeIn2vgJOS4qpPgqyu
|
31
30
|
S0VfcA==
|
32
31
|
-----END CERTIFICATE-----
|
33
|
-
date: 2013-
|
32
|
+
date: 2013-07-10 00:00:00.000000000 Z
|
34
33
|
dependencies:
|
35
34
|
- !ruby/object:Gem::Dependency
|
36
35
|
name: ffi
|
37
36
|
requirement: !ruby/object:Gem::Requirement
|
38
|
-
none: false
|
39
37
|
requirements:
|
40
38
|
- - ~>
|
41
39
|
- !ruby/object:Gem::Version
|
@@ -43,7 +41,6 @@ dependencies:
|
|
43
41
|
type: :runtime
|
44
42
|
prerelease: false
|
45
43
|
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
44
|
requirements:
|
48
45
|
- - ~>
|
49
46
|
- !ruby/object:Gem::Version
|
@@ -51,7 +48,6 @@ dependencies:
|
|
51
48
|
- !ruby/object:Gem::Dependency
|
52
49
|
name: rake
|
53
50
|
requirement: !ruby/object:Gem::Requirement
|
54
|
-
none: false
|
55
51
|
requirements:
|
56
52
|
- - ~>
|
57
53
|
- !ruby/object:Gem::Version
|
@@ -59,7 +55,6 @@ dependencies:
|
|
59
55
|
type: :development
|
60
56
|
prerelease: false
|
61
57
|
version_requirements: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
58
|
requirements:
|
64
59
|
- - ~>
|
65
60
|
- !ruby/object:Gem::Version
|
@@ -67,7 +62,6 @@ dependencies:
|
|
67
62
|
- !ruby/object:Gem::Dependency
|
68
63
|
name: minitest
|
69
64
|
requirement: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
65
|
requirements:
|
72
66
|
- - ~>
|
73
67
|
- !ruby/object:Gem::Version
|
@@ -75,7 +69,6 @@ dependencies:
|
|
75
69
|
type: :development
|
76
70
|
prerelease: false
|
77
71
|
version_requirements: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
72
|
requirements:
|
80
73
|
- - ~>
|
81
74
|
- !ruby/object:Gem::Version
|
@@ -83,7 +76,6 @@ dependencies:
|
|
83
76
|
- !ruby/object:Gem::Dependency
|
84
77
|
name: version
|
85
78
|
requirement: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
79
|
requirements:
|
88
80
|
- - ~>
|
89
81
|
- !ruby/object:Gem::Version
|
@@ -91,7 +83,6 @@ dependencies:
|
|
91
83
|
type: :development
|
92
84
|
prerelease: false
|
93
85
|
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
86
|
requirements:
|
96
87
|
- - ~>
|
97
88
|
- !ruby/object:Gem::Version
|
@@ -107,6 +98,7 @@ files:
|
|
107
98
|
- .travis.yml
|
108
99
|
- CHANGELOG.md
|
109
100
|
- Gemfile
|
101
|
+
- LICENSE.txt
|
110
102
|
- README.md
|
111
103
|
- Rakefile
|
112
104
|
- VERSION
|
@@ -155,19 +147,19 @@ files:
|
|
155
147
|
- test/sodium/sign_test.rb
|
156
148
|
- test/test_helper.rb
|
157
149
|
homepage: https://github.com/stouset/sodium
|
158
|
-
licenses:
|
150
|
+
licenses:
|
151
|
+
- MIT
|
152
|
+
metadata: {}
|
159
153
|
post_install_message:
|
160
154
|
rdoc_options: []
|
161
155
|
require_paths:
|
162
156
|
- lib
|
163
157
|
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
-
none: false
|
165
158
|
requirements:
|
166
159
|
- - '>='
|
167
160
|
- !ruby/object:Gem::Version
|
168
161
|
version: '0'
|
169
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
-
none: false
|
171
163
|
requirements:
|
172
164
|
- - '>='
|
173
165
|
- !ruby/object:Gem::Version
|
@@ -175,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
167
|
requirements:
|
176
168
|
- libsodium ~> 0.5
|
177
169
|
rubyforge_project:
|
178
|
-
rubygems_version:
|
170
|
+
rubygems_version: 2.0.3
|
179
171
|
signing_key:
|
180
|
-
specification_version:
|
172
|
+
specification_version: 4
|
181
173
|
summary: A Ruby binding to the easy-to-use high-speed crypto library libsodium
|
182
174
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|