solvemedia 1.0.0 → 1.0.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.
- data/lib/solvemedia.rb +3 -0
- data/lib/solvemedia/version.rb +1 -1
- metadata +34 -24
- checksums.yaml +0 -7
- data/.gitignore +0 -17
data/lib/solvemedia.rb
CHANGED
@@ -127,6 +127,9 @@ module SolveMedia
|
|
127
127
|
options = { :validate_response => true,
|
128
128
|
:timeout => 5,
|
129
129
|
}.merge(options)
|
130
|
+
|
131
|
+
#disregard spam submissions
|
132
|
+
return false if (challenge.nil? || challenge.empty? || response.nil? || challenge.nil?)
|
130
133
|
|
131
134
|
#Send POST to SolveMedia
|
132
135
|
result = nil
|
data/lib/solvemedia/version.rb
CHANGED
metadata
CHANGED
@@ -1,23 +1,28 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: solvemedia
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 1.0.1
|
5
6
|
platform: ruby
|
6
|
-
authors:
|
7
|
+
authors:
|
7
8
|
- Tyler Cunnion
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
|
12
|
+
|
13
|
+
date: 2015-05-08 00:00:00 Z
|
12
14
|
dependencies: []
|
15
|
+
|
13
16
|
description: Solve Media CAPTCHA Replacement
|
14
|
-
email:
|
17
|
+
email:
|
15
18
|
- tyler@solvemedia.com
|
16
19
|
executables: []
|
20
|
+
|
17
21
|
extensions: []
|
22
|
+
|
18
23
|
extra_rdoc_files: []
|
19
|
-
|
20
|
-
|
24
|
+
|
25
|
+
files:
|
21
26
|
- Gemfile
|
22
27
|
- LICENSE.txt
|
23
28
|
- README.md
|
@@ -32,26 +37,31 @@ files:
|
|
32
37
|
- solvemedia.gemspec
|
33
38
|
homepage: http://www.solvemedia.com/
|
34
39
|
licenses: []
|
35
|
-
|
40
|
+
|
36
41
|
post_install_message:
|
37
42
|
rdoc_options: []
|
38
|
-
|
43
|
+
|
44
|
+
require_paths:
|
39
45
|
- lib
|
40
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
none: false
|
48
|
+
requirements:
|
49
|
+
- - ">="
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
version: "0"
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: "0"
|
50
58
|
requirements: []
|
59
|
+
|
51
60
|
rubyforge_project:
|
52
|
-
rubygems_version:
|
61
|
+
rubygems_version: 1.8.23
|
53
62
|
signing_key:
|
54
|
-
specification_version:
|
55
|
-
summary: Library for implementing the Solve Media CAPTCHA solution. Contains basic
|
56
|
-
Ruby library plus Railtie for Rails 3+.
|
63
|
+
specification_version: 3
|
64
|
+
summary: Library for implementing the Solve Media CAPTCHA solution. Contains basic Ruby library plus Railtie for Rails 3+.
|
57
65
|
test_files: []
|
66
|
+
|
67
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: b6db952947e80394a9fa2cd0fd3cf411aeeab69f
|
4
|
-
data.tar.gz: b72433e90e90419f653925dc707dfab211f5aec0
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 493bd6688ec5736ab23915e074018576cb91a9f2df4054de33a51b9d5bc9f51139d4ea4bbcd1569df2b0f0a2258c4d84d707fbcf3f03c4f00beb0b8155e8ee9f
|
7
|
-
data.tar.gz: 64378fd7d8f7b307d93184a1e3d843e96a4b340232f76a881ea23eb91ccf32a73ece8840b5249b944fe96f732da64929c6ad7de1071da0e5d7113b3e7bd471e2
|