recaptcha-mailhide 1.0.1 → 1.0.2

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
  SHA1:
3
- metadata.gz: 7ab58d5a66085370e7beefacbed5bdab9b4a0cc7
4
- data.tar.gz: 2aca6ea76ff8ea0b4843970b3a9bb9464741c945
3
+ metadata.gz: 52a05ff32c88115b82812230bbbc0b61aef2e892
4
+ data.tar.gz: f4a2bef9f67335431fa0e9e86dfa5367efc2febb
5
5
  SHA512:
6
- metadata.gz: 0a4c6d50fca94d7f358804f4839d99751c76340e10344aa61763086540a099aefb7febf84b9759ef4101825d848bdbc028b07ceb7881c7717d19b5e5fe016abb
7
- data.tar.gz: 5dabdfb1fd81f241d1a7279dcd86e9ab0be494f6a387dd182e6433a92d5359b136b158ead03293578971c3a9e18c83988deee628ed2e69475dc5a200f7653b6c
6
+ metadata.gz: de253666011b78aed8d1715d0520cc9a2d9d0092e58d48f9a7a5f5ef83a2d8e967d882f4c41e2b47fbac70aeb859dd36fdce2c6471bf123cc5bfda31cd69d7aa
7
+ data.tar.gz: 6fecab52770549cedb2a6b6894413d2fc2228889894412a9b7590d800c9f4a641bdbf888d87ca90d7e309e17bbed1ddcb14d85842b8b0ed558023c24b91a5e09
@@ -1,3 +1,7 @@
1
+ == 1.0.2
2
+
3
+ * Use OpenSSL::Cipher rather than deprecated OpenSSL::Cipher::Cipher (edsimpson)
4
+
1
5
  == 1.0.0
2
6
 
3
7
  * Added Rails view helpers
@@ -36,7 +36,7 @@ module RecaptchaMailhide
36
36
  # Initializes the cipher.
37
37
  #
38
38
  def self.build_aes
39
- aes = OpenSSL::Cipher::Cipher.new("aes-128-cbc")
39
+ aes = OpenSSL::Cipher.new("aes-128-cbc")
40
40
  aes.encrypt
41
41
  aes.iv = INITIALIZATION_VECTOR
42
42
  aes.padding = 0
@@ -1,3 +1,3 @@
1
1
  module RecaptchaMailhide
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
@@ -21,5 +21,6 @@ Gem::Specification.new do |s|
21
21
  s.require_paths = ['lib']
22
22
 
23
23
  s.add_development_dependency 'bundler', ['>= 1.0.0']
24
- s.add_development_dependency 'rspec', ['>= 0']
24
+ s.add_development_dependency 'rake'
25
+ s.add_development_dependency 'rspec', ['>= 2.11']
25
26
  end
@@ -3,15 +3,15 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
3
3
  describe RecaptchaMailhide::Encrypt do
4
4
  describe ".encrypt" do
5
5
  it("properly encrypts x@example.com") do
6
- RecaptchaMailhide::Encrypt.encrypt("x@example.com").should eq("wBG7nOgntKqWeDpF9ucVNQ==")
6
+ expect(RecaptchaMailhide::Encrypt.encrypt("x@example.com")).to eq("wBG7nOgntKqWeDpF9ucVNQ==")
7
7
  end
8
8
 
9
9
  it("properly encrypts johndoe@example.com") do
10
- RecaptchaMailhide::Encrypt.encrypt("johndoe@example.com").should eq("whWIqk0r4urZ-3S7y7uSceC9_ECd3hpAGy71E2o0HpI=")
10
+ expect(RecaptchaMailhide::Encrypt.encrypt("johndoe@example.com")).to eq("whWIqk0r4urZ-3S7y7uSceC9_ECd3hpAGy71E2o0HpI=")
11
11
  end
12
12
 
13
13
  it("properly encrypts long emails") do
14
- RecaptchaMailhide::Encrypt.encrypt("this.sure.is.a.very.long.email.address@example.com").should eq("Ax_miTfkXPP_jPPoe130TlwgEaiBCPUuCxaJy3KalZsWP8_Z_Qcc1Awpwk-cPjVvnsbi6P6Bf_de2U1A5aocVA==")
14
+ expect(RecaptchaMailhide::Encrypt.encrypt("this.sure.is.a.very.long.email.address@example.com")).to eq("Ax_miTfkXPP_jPPoe130TlwgEaiBCPUuCxaJy3KalZsWP8_Z_Qcc1Awpwk-cPjVvnsbi6P6Bf_de2U1A5aocVA==")
15
15
  end
16
16
  end
17
17
  end
@@ -2,12 +2,12 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
2
2
 
3
3
  describe RecaptchaMailhide::URL do
4
4
  before do
5
- RecaptchaMailhide::Encrypt.stub(:encrypt).and_return("ABC")
5
+ allow(RecaptchaMailhide::Encrypt).to receive(:encrypt).and_return("ABC")
6
6
  end
7
7
 
8
8
  describe ".url_for" do
9
9
  it("returns the proper URL") do
10
- RecaptchaMailhide::URL.url_for('foo@bar.com').should eq('https://www.google.com/recaptcha/mailhide/d?k=PUBLIC_KEY&c=ABC')
10
+ expect(RecaptchaMailhide::URL.url_for('foo@bar.com')).to eq('https://www.google.com/recaptcha/mailhide/d?k=PUBLIC_KEY&c=ABC')
11
11
  end
12
12
  end
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recaptcha-mailhide
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedro Fayolle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-11 00:00:00.000000000 Z
11
+ date: 2018-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: rspec
28
+ name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '2.11'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '2.11'
41
55
  description: Implementation of Google's ReCAPTCHA Mailhide API
42
56
  email:
43
57
  - pfayolle@gmail.com
@@ -86,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
100
  version: '0'
87
101
  requirements: []
88
102
  rubyforge_project:
89
- rubygems_version: 2.4.8
103
+ rubygems_version: 2.6.11
90
104
  signing_key:
91
105
  specification_version: 4
92
106
  summary: ReCAPTCHA Mailhide client