gibberish 1.3.0 → 1.3.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.mdown +3 -0
- data/lib/gibberish/aes.rb +1 -0
- data/lib/gibberish/version.rb +1 -1
- data/spec/aes_spec.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c83983d7b49f4602074981db57d824c5192d1fd
|
4
|
+
data.tar.gz: 155562f750efe604ba2f5af4ae21c327705519cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eb9f30edb1073003b327918ad421229c63cc3fc8abc49f3f55e88b91f2d528fe56e472d69dbf3b7811cab109352e790bd09c26dd07785841996c7b601831e5e
|
7
|
+
data.tar.gz: ac672b666f806f45b85249983c247a19161641cb0abba0e57ec1b6405b7e014ec4e0896784799ff527c911c3fbcfc4ea04c46e5fabc126a8108d4fd9ee0641d2
|
data/CHANGELOG.mdown
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
### v1.3.1
|
2
|
+
* Better errors [PR #14](https://github.com/mdp/gibberish/pull/14)
|
3
|
+
|
1
4
|
### v1.3.0
|
2
5
|
* Add support for file encryption [PR #12](https://github.com/mdp/gibberish/pull/12)
|
3
6
|
* Add support for streaming encryption [PR #11](https://github.com/mdp/gibberish/pull/11)
|
data/lib/gibberish/aes.rb
CHANGED
data/lib/gibberish/version.rb
CHANGED
data/spec/aes_spec.rb
CHANGED
@@ -82,6 +82,10 @@ describe "the aes cipher" do
|
|
82
82
|
FileUtils.cmp(source_file_path, decrypted_file.path).must_equal(true)
|
83
83
|
end
|
84
84
|
|
85
|
+
it "should throw correct exception when decryption string is too short" do
|
86
|
+
assert_raises(ArgumentError) {@cipher.d("short")}
|
87
|
+
end
|
88
|
+
|
85
89
|
describe 'stream encryption' do
|
86
90
|
|
87
91
|
it 'encrypts a file' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gibberish
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mark Percival
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Supports OpenSSL compatible AES, HMAC, and RSA encryption
|
14
14
|
email:
|