easy-crypto 0.1.7 → 0.2.0

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: 31671eab7f89fa8fc412441808f40e9d9e4ccbe1a969070b5249d56a5cef5bcc
4
- data.tar.gz: 36d78c9ef113c69143b7588a3bf9a9884e0c9b2c0179efd6936622b9b41da401
3
+ metadata.gz: 2369e9cd1cf25eb55d1ffc9e3d055f5bdfccd482f185143dcdcb02a01f959b99
4
+ data.tar.gz: 67321bb551ecb6bb8158f57b035d8ef0786c0349ee964c9e3e775a5a7d8240bd
5
5
  SHA512:
6
- metadata.gz: c5ce234ec34ea19d1701f6c2810539013bb64c7af5ea9b19692995012f1db6398b199bbd9b7c830eb9de80513f58c724a4b4a336cfa552742251b0f4c1bc0e26
7
- data.tar.gz: 48282d3f7edef07f465e33e5adad4cfe8e597cfd8c4e5c497032eecc23fb23a82dc744efafc4745eab566e8470519b454e70fe9e2487d9994d1d5ead89b04d98
6
+ metadata.gz: 6c2ee0062fb829389884cb05b5da579d8b328a320bd7d64bfae3444d919364bcea5a4b569de1acdf675ef73976ab2bf96fba9f96bd84a79d3860d83c13638525
7
+ data.tar.gz: dfb823270baea84b63da358c116b732ca7dc7449b13427519d2652c5878ee23c0ad16eee993489debeef6148cb937c9149d6ba4833281664c3384ff7d7db32f3
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.4.1
4
+ - 2.4.1
5
+ - jruby-9.2.7.0
5
6
  before_install: gem install bundler -v 1.16.1
6
7
  deploy:
7
8
  provider: rubygems
data/Gemfile CHANGED
@@ -1,2 +1,5 @@
1
1
  source "https://rubygems.org"
2
- gemspec
2
+ gemspec
3
+
4
+ gem 'jruby-openssl', '~> 0.10.2', '>= 0.10.2', :platform => :jruby
5
+ gem 'openssl', '~> 2.1.1', '>= 2.1.1', :platform => :ruby
data/Gemfile.lock CHANGED
@@ -1,16 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- easy-crypto (0.1.7)
5
- openssl (~> 2.1.1, >= 2.1.1)
4
+ easy-crypto (0.2.0)
6
5
 
7
6
  GEM
8
7
  remote: https://rubygems.org/
9
8
  specs:
10
9
  diff-lcs (1.3)
11
- ipaddr (1.2.2)
10
+ jruby-openssl (0.10.2-java)
12
11
  openssl (2.1.2)
13
- ipaddr
14
12
  rake (12.3.2)
15
13
  rspec (3.8.0)
16
14
  rspec-core (~> 3.8.0)
@@ -27,13 +25,16 @@ GEM
27
25
  rspec-support (3.8.0)
28
26
 
29
27
  PLATFORMS
28
+ java
30
29
  ruby
31
30
 
32
31
  DEPENDENCIES
33
32
  bundler (~> 1.16)
34
33
  easy-crypto!
34
+ jruby-openssl (~> 0.10.2, >= 0.10.2)
35
+ openssl (~> 2.1.1, >= 2.1.1)
35
36
  rake (~> 12.3)
36
37
  rspec (~> 3.0)
37
38
 
38
39
  BUNDLED WITH
39
- 1.17.3
40
+ 1.16.1
data/README.md CHANGED
@@ -31,7 +31,7 @@ plaintext = 'some data'
31
31
  ecrypto = EasyCrypto::Crypto.new
32
32
 
33
33
  encrypted = ecrypto.encrypt(password, plaintext)
34
- decrypted = ecrypto.encrypt(password, encrypted)
34
+ decrypted = ecrypto.decrypt(password, encrypted)
35
35
 
36
36
  decrypted == plaintext
37
37
  ```
data/easy-crypto.gemspec CHANGED
@@ -18,6 +18,4 @@ Gem::Specification.new do |spec|
18
18
  spec.add_development_dependency 'bundler', '~> 1.16'
19
19
  spec.add_development_dependency 'rake', '~> 12.3'
20
20
  spec.add_development_dependency 'rspec', '~> 3.0'
21
-
22
- spec.add_runtime_dependency 'openssl', '~> 2.1.1', '>= 2.1.1'
23
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EasyCrypto
4
- VERSION = '0.1.7'
4
+ VERSION = '0.2.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy-crypto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emarsys Security
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-15 00:00:00.000000000 Z
11
+ date: 2019-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,26 +52,6 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: openssl
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: 2.1.1
62
- - - "~>"
63
- - !ruby/object:Gem::Version
64
- version: 2.1.1
65
- type: :runtime
66
- prerelease: false
67
- version_requirements: !ruby/object:Gem::Requirement
68
- requirements:
69
- - - ">="
70
- - !ruby/object:Gem::Version
71
- version: 2.1.1
72
- - - "~>"
73
- - !ruby/object:Gem::Version
74
- version: 2.1.1
75
55
  description:
76
56
  email:
77
57
  - security@emarsys.com
@@ -113,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
93
  - !ruby/object:Gem::Version
114
94
  version: '0'
115
95
  requirements: []
116
- rubygems_version: 3.0.2
96
+ rubygems_version: 3.0.3
117
97
  signing_key:
118
98
  specification_version: 4
119
99
  summary: Provides simple wrappers around openssl crypto implementation.