mathcha 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mathcha.rb +1 -21
- data/lib/mathcha/mathcha_helper.rb +1 -1
- data/mathcha.gemspec +55 -0
- data/pkg/mathcha-0.2.0.gem +0 -0
- metadata +3 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/mathcha.rb
CHANGED
@@ -2,24 +2,4 @@ require 'mathcha/mathcha_helper'
|
|
2
2
|
require 'mathcha/mathcha_verify'
|
3
3
|
|
4
4
|
ActionView::Base.send(:include, Mathcha::MathchaHelper)
|
5
|
-
ActionController::Base.send(:include, Mathcha::MathchaVerify)
|
6
|
-
|
7
|
-
module Recaptcha
|
8
|
-
module VERSION #:nodoc:
|
9
|
-
MAJOR = 0
|
10
|
-
MINOR = 2
|
11
|
-
TINY = 2
|
12
|
-
|
13
|
-
STRING = [MAJOR, MINOR, TINY].join('.')
|
14
|
-
end
|
15
|
-
|
16
|
-
|
17
|
-
RECAPTCHA_API_SERVER = 'http://api.recaptcha.net';
|
18
|
-
RECAPTCHA_API_SECURE_SERVER = 'https://api-secure.recaptcha.net';
|
19
|
-
RECAPTCHA_VERIFY_SERVER = 'api-verify.recaptcha.net';
|
20
|
-
|
21
|
-
SKIP_VERIFY_ENV = ['test', 'cucumber']
|
22
|
-
|
23
|
-
class RecaptchaError < StandardError
|
24
|
-
end
|
25
|
-
end
|
5
|
+
ActionController::Base.send(:include, Mathcha::MathchaVerify)
|
data/mathcha.gemspec
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mathcha}
|
8
|
+
s.version = "0.4.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Cory Wilkerson"]
|
12
|
+
s.date = %q{2009-10-16}
|
13
|
+
s.description = %q{Quick little arithmetic plain-text captcha}
|
14
|
+
s.email = %q{coryjwilkerson@gmail.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"MIT-LICENSE",
|
20
|
+
"README",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"install.rb",
|
24
|
+
"lib/mathcha.rb",
|
25
|
+
"lib/mathcha/mathcha_helper.rb",
|
26
|
+
"lib/mathcha/mathcha_verify.rb",
|
27
|
+
"mathcha.gemspec",
|
28
|
+
"pkg/mathcha-0.0.0.gem",
|
29
|
+
"pkg/mathcha-0.2.0.gem",
|
30
|
+
"rails/init.rb",
|
31
|
+
"tasks/mathcha_tasks.rake",
|
32
|
+
"test/mathcha_test.rb",
|
33
|
+
"test/test_helper.rb",
|
34
|
+
"uninstall.rb"
|
35
|
+
]
|
36
|
+
s.homepage = %q{http://github.com/corywilkerson/mathcha}
|
37
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
38
|
+
s.require_paths = ["lib"]
|
39
|
+
s.rubygems_version = %q{1.3.5}
|
40
|
+
s.summary = %q{Quick little arithmetic plain-text captcha}
|
41
|
+
s.test_files = [
|
42
|
+
"test/mathcha_test.rb",
|
43
|
+
"test/test_helper.rb"
|
44
|
+
]
|
45
|
+
|
46
|
+
if s.respond_to? :specification_version then
|
47
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
48
|
+
s.specification_version = 3
|
49
|
+
|
50
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
51
|
+
else
|
52
|
+
end
|
53
|
+
else
|
54
|
+
end
|
55
|
+
end
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mathcha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cory Wilkerson
|
@@ -30,7 +30,9 @@ files:
|
|
30
30
|
- lib/mathcha.rb
|
31
31
|
- lib/mathcha/mathcha_helper.rb
|
32
32
|
- lib/mathcha/mathcha_verify.rb
|
33
|
+
- mathcha.gemspec
|
33
34
|
- pkg/mathcha-0.0.0.gem
|
35
|
+
- pkg/mathcha-0.2.0.gem
|
34
36
|
- rails/init.rb
|
35
37
|
- tasks/mathcha_tasks.rake
|
36
38
|
- test/mathcha_test.rb
|