yandex_captcha 0.4.3 → 0.4.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 81fe4ac018adcdad7ad4a6af3c810b6fe0fe7b1c
4
- data.tar.gz: 1a066cb0d9643a30f86b0f37984667f3f344b972
3
+ metadata.gz: a8bfb7505a2114b720360721d2a5e81a9bfdf0a2
4
+ data.tar.gz: 982bdd9d04c3ea6f697404bbaed5680bf91e5484
5
5
  SHA512:
6
- metadata.gz: 2e62ea594139cd88c8f10497c0d1385fd4fba11120322b04edc743a5cda150ef1d657ce3d591f0a1ba692b128d21719c69395588d3987ea202d03eae415419f6
7
- data.tar.gz: 6105150031f7f391ed9d9c850c171175264c82870e94a7089d4ab2d5aaf25883114398735f366f696aabcc0a7134c3e7eea1f79e449f3d2b015b8dbb3df80c66
6
+ metadata.gz: 4cde01cbaf9648ec509839e43a8792e6ed7ae5d91c3d10f05fd93593afe188005124c681c12914b071fbcaaa76d04f5622ab642e136ee8688defa5edcc235d43
7
+ data.tar.gz: 720f1b250f37bf0d44b07b0f236ba45b66a6d360c8c21688cdf22f0890a489fea2036f2e480638b72717260dca3612c9d6dd3a2293ac4bbdd9dbb74f1f634730
data/README.md CHANGED
@@ -11,7 +11,7 @@ Unfortunatelly, this gem *is not capable with MRI 1.8.7* because of MRI 1.8.7 do
11
11
 
12
12
  Add this line to your application's Gemfile:
13
13
 
14
- gem 'yandex_captcha', '~> 0.4.2'
14
+ gem 'yandex_captcha', '~> 0.4.3.1'
15
15
 
16
16
  Or:
17
17
 
@@ -35,11 +35,6 @@ Tested:
35
35
 
36
36
  Get the api key: [http://api.yandex.ru/cleanweb/getkey.xml](http://api.yandex.ru/cleanweb/getkey.xml)
37
37
 
38
- ### Options
39
-
40
- - `ajax` = `true/false`
41
- - `noscript` = `true/false` Only for non ajax version.
42
-
43
38
  ### Code
44
39
 
45
40
  ```ruby
@@ -55,7 +50,14 @@ YandexCaptcha.configure do |config|
55
50
  end
56
51
  ```
57
52
 
58
- In Views:
53
+ ### In Views
54
+
55
+ #### View Helper Options
56
+
57
+ - `ajax` = `true/false`
58
+ - `noscript` = `true/false` Only for non ajax version.
59
+
60
+ #### Code
59
61
 
60
62
  ```erb
61
63
  <%= captcha_tags %>
@@ -63,7 +65,7 @@ In Views:
63
65
  <%= captcha_tags noscript:true %>
64
66
  ```
65
67
 
66
- In Controllers:
68
+ ### In Controllers
67
69
 
68
70
  ```ruby
69
71
  if YandexCaptcha::Verify.valid_captcha?(params[:captcha_response_id], params[:captcha_response_field])
@@ -71,7 +73,7 @@ if YandexCaptcha::Verify.valid_captcha?(params[:captcha_response_id], params[:ca
71
73
  end
72
74
  ```
73
75
 
74
- Other examples:
76
+ ### Other examples
75
77
 
76
78
  ```ruby
77
79
  # Methods
@@ -85,7 +87,7 @@ YandexCaptcha::Verify.spam?(body_html: "some spam <a href='http://spam.com'>spam
85
87
  => { id: "request id", links: [ ['http://spam.com', true] ] }
86
88
  ```
87
89
 
88
- More complex example:
90
+ ### More complex example
89
91
 
90
92
  ```ruby
91
93
 
@@ -1,3 +1,3 @@
1
1
  module YandexCaptcha
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yandex_captcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Merkulov