SSEncryptor 0.0.1 → 0.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d730a320e447199d266f3841ae6694e3075c3e95
4
- data.tar.gz: 04e4f6b4dd47d77c46e27d265e421543af24ea4d
3
+ metadata.gz: b00a6ec725a02ad63ed64af667e79e6475030d3c
4
+ data.tar.gz: 7fa1b7ca10447ff7d9aaad1956d72732403e59b5
5
5
  SHA512:
6
- metadata.gz: 2ae95b4df6c9bb5d18c24bd50e1ec3b2f1b5dd623b2719d73c25b495f37108f0ed111e32988571c29ea2ed9163344348d2efe48451ebaf1b65dfed8fd5abf57f
7
- data.tar.gz: 80de7a96700c18c6e76cebe84a8ae781ee8f26bbad8a2cd63a3df49809571c1bb9616d9659efa8dce88c0c4f949be89d1e8e9612d735ea3a208ef461d1e5a573
6
+ metadata.gz: 4a0b2e29c26854b1662e50d5d8b8532ab3f5bfd8f8eea62497d705ea92ae45a872d27f06be398eda23f0f867bd15a5256e812660219a1e72cbc2e064914acfc0
7
+ data.tar.gz: 63bce18743d46cb70bda84e402d9711de736323aaa614b0e7b302ddeab00c494b083f4b7074017021a1340705d589c2273286d08637c68156e0a43cd4d7efd5e
@@ -22,15 +22,15 @@ module SSEncryptor
22
22
  def decrypt(data)
23
23
  call(:decrypt, data)
24
24
  end
25
- end
26
25
 
27
- private
26
+ private
28
27
 
29
- def call(work, data)
30
- cipher = OpenSSL::Cipher.new(@algorithm)
31
- cipher.send(work)
32
- cipher.key = @key
33
- cipher.iv = @iv if @iv
34
- cipher.update(data) + cipher.final
28
+ def call(work, data)
29
+ cipher = OpenSSL::Cipher.new(@algorithm)
30
+ cipher.send(work)
31
+ cipher.key = @key
32
+ cipher.iv = @iv if @iv
33
+ cipher.update(data) + cipher.final
34
+ end
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module SSEncryptor
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SSEncryptor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanislav Gospodinov