iq_captcha 0.0.2 → 1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +30 -1
  2. data/lib/iq_captcha/version.rb +1 -1
  3. metadata +7 -18
@@ -1,3 +1,32 @@
1
1
  = IqCaptcha
2
2
 
3
- This project rocks and uses MIT-LICENSE.
3
+ Prerequisites package:
4
+ ubuntu 10.04, sudo apt-get install libmagickwand-dev
5
+ ubuntu 11.04, sudo apt-get install libmagick9-dev
6
+ ubuntu 12.04, sudo apt-get install graphicsmagick-libmagick-dev-compat
7
+ CentOS, yum install ImageMagick-devel
8
+ Mac, brew install imagemagick
9
+
10
+ Pre requisite gem rmagick
11
+
12
+ Installation:
13
+ 1. Place captcha background image named(iq_captcha_background.png) in your project's public folder
14
+ 2. in Gemfile, gem 'iq_captcha' and run bundle install
15
+ 3. in routes.rb, mount IqCaptcha::Engine, :at => '/iq_captcha'
16
+
17
+ 4. Now browse for testing, for exaample, http://localhost:3000/iq_captcha, if the captcha comes then it is OK for the test
18
+
19
+ 5. to use the captcha in your project's view
20
+ <img src="/iq_captcha?t=<%= Time.now.to_i %>&pointsize=25&color_code=ffffff"> <input type="text" name="iq_captcha_result" />
21
+
22
+ 6. in controller,
23
+ if Captcha::valid?(session,params)
24
+ # You are human being
25
+ else
26
+ # You are not human
27
+ end
28
+
29
+ 7. You are Done
30
+
31
+
32
+ This project rocks and uses MIT-LICENSE.
@@ -1,3 +1,3 @@
1
1
  module IqCaptcha
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iq_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: '1.0'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-10-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &82952380 !ruby/object:Gem::Requirement
16
+ requirement: &74384160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.2
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *82952380
24
+ version_requirements: *74384160
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rmagick
27
- requirement: &82952170 !ruby/object:Gem::Requirement
27
+ requirement: &74383950 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,19 +32,8 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *82952170
36
- - !ruby/object:Gem::Dependency
37
- name: sqlite3
38
- requirement: &82951940 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ! '>='
42
- - !ruby/object:Gem::Version
43
- version: '0'
44
- type: :development
45
- prerelease: false
46
- version_requirements: *82951940
47
- description: Generates capctha based on simple match and simple logic
35
+ version_requirements: *74383950
36
+ description: MVC based Math, Logic Captcha
48
37
  email:
49
38
  - barek2k2@gmail.com
50
39
  executables: []
@@ -125,7 +114,7 @@ rubyforge_project:
125
114
  rubygems_version: 1.8.17
126
115
  signing_key:
127
116
  specification_version: 3
128
- summary: Generates capctha based on simple match and simple logic
117
+ summary: Generates capctha based on simple math and simple logic
129
118
  test_files:
130
119
  - test/test_helper.rb
131
120
  - test/dummy/config/database.yml