ayah_integration 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.md +10 -10
  2. metadata +5 -5
data/README.md CHANGED
@@ -28,7 +28,7 @@ know so we can add it to the list.
28
28
 
29
29
  * Simply install from RubyGems:
30
30
 
31
- gem install ayah_integration
31
+ gem install ayah_integration
32
32
 
33
33
  ## Setup
34
34
 
@@ -40,7 +40,7 @@ you first instantiate the AYAH::Integration class
40
40
  ## Integration (Examples)
41
41
 
42
42
  Below are the basic steps and examples needed to get the AYAH Integration gem working.
43
- PUBLISHER_KEY and SCORING_KEY can be found in the AYAH Portal and CLIENT_IP is the IP
43
+ PUBLISHER\_KEY and SCORING\_KEY can be found in the AYAH Portal and CLIENT_IP is the IP
44
44
  address of the client playing the AYAH PlayThru.
45
45
 
46
46
  You can also register a conversion, for example, when a user passes the AYAH PlayThru
@@ -48,20 +48,20 @@ and completes an order or sign up.
48
48
 
49
49
  1. Get the HTML needed to be embedded in the form page (in your controller perhaps?):
50
50
 
51
- ayah = AYAH::Integration.new(PUBLISHER_KEY, SCORING_KEY)
52
- @publisher_html = ayah.get_publisher_html
51
+ ayah = AYAH::Integration.new(PUBLISHER_KEY, SCORING_KEY)
52
+ @publisher_html = ayah.get_publisher_html
53
53
 
54
54
  2. Handle the form submission and get score (pass/fail):
55
55
 
56
- session_secret = params['session_secret'] # in this case, using Rails
57
- ayah = AYAH::Integration.new(PUBLISHER_KEY, SCORING_KEY)
58
- ayah_passed = ayah.score_result(session_secret, CLIENT_IP)
56
+ session_secret = params['session_secret'] # in this case, using Rails
57
+ ayah = AYAH::Integration.new(PUBLISHER_KEY, SCORING_KEY)
58
+ ayah_passed = ayah.score_result(session_secret, CLIENT_IP)
59
59
 
60
60
  3. Registering a conversion (optional):
61
61
 
62
- session_secret = params['session_secret'] # or anywhere else it's stored
63
- ayah = AYAH::Integration.new(PUBLISHER_KEY, SCORING_KEY)
64
- @ayah_conversion_html = ayah.record_conversion(session_secret)
62
+ session_secret = params['session_secret'] # or anywhere else it's stored
63
+ ayah = AYAH::Integration.new(PUBLISHER_KEY, SCORING_KEY)
64
+ @ayah_conversion_html = ayah.record_conversion(session_secret)
65
65
 
66
66
  4. THAT'S IT! You're Done!
67
67
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ayah_integration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-12-13 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
16
- requirement: &2156430540 !ruby/object:Gem::Requirement
16
+ requirement: &2156405940 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2156430540
24
+ version_requirements: *2156405940
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: json
27
- requirement: &2156429900 !ruby/object:Gem::Requirement
27
+ requirement: &2156405400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2156429900
35
+ version_requirements: *2156405400
36
36
  description: Integrate the AreYouAHuman.com CAPTCHA alternative human verification
37
37
  into your Ruby/Rails application
38
38
  email: plugins@areyouahuman.com