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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52a05ff32c88115b82812230bbbc0b61aef2e892
|
4
|
+
data.tar.gz: f4a2bef9f67335431fa0e9e86dfa5367efc2febb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de253666011b78aed8d1715d0520cc9a2d9d0092e58d48f9a7a5f5ef83a2d8e967d882f4c41e2b47fbac70aeb859dd36fdce2c6471bf123cc5bfda31cd69d7aa
|
7
|
+
data.tar.gz: 6fecab52770549cedb2a6b6894413d2fc2228889894412a9b7590d800c9f4a641bdbf888d87ca90d7e309e17bbed1ddcb14d85842b8b0ed558023c24b91a5e09
|
data/CHANGELOG.rdoc
CHANGED
data/recaptcha-mailhide.gemspec
CHANGED
@@ -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 '
|
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").
|
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").
|
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").
|
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.
|
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').
|
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.
|
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:
|
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:
|
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.
|
103
|
+
rubygems_version: 2.6.11
|
90
104
|
signing_key:
|
91
105
|
specification_version: 4
|
92
106
|
summary: ReCAPTCHA Mailhide client
|