rucaptcha 0.4.1 → 0.4.2

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: 08ef563fdc980ccb099048a25e7a0b948c32a2ad
4
- data.tar.gz: f59289ce0ec6202046a762d00916230ba18879a1
3
+ metadata.gz: 3307c2eb78a6f7a75201b53a496ac8216ecf8993
4
+ data.tar.gz: c3d88218528826086a0f1e3026b094eb6da60bae
5
5
  SHA512:
6
- metadata.gz: 35db37d79fcc979cc2228aa434bc5b842de31ffc425d3449376adbdb238f845288c75661d2813585859e90183cbdf215b78dbdb1f04cc4f26e72e063256636cb
7
- data.tar.gz: a5c08b83943c28826e8845dd0b94cc373b6280ca2de3260c807121f605b09b11362ef0fe50c9bbb23160d1b995a9286691cbeda6b35c492a8bbcc28dadb17f10
6
+ metadata.gz: ff25973d8016612fff29df8ed00ae7f44adb3a8026c3a38672268da5cb02648f534e116b8dffd0eb3511bd17a2af440c1523f216f7e83bb76d903820bfdd6fba
7
+ data.tar.gz: 27e49cfbf78f078a43641397d3d076c147de77dc071ee14b843961eee2eaf50089a114b15f1c60c7099604722354bdf5035933c9373625a5c9758923d19d1223
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ 0.4.2
2
+ -----
3
+
4
+ - Fix NoMethodError bug when params[:_rucaptha] is nil.
5
+
1
6
  0.4.1
2
7
  -----
3
8
 
@@ -15,7 +15,7 @@ module RuCaptcha
15
15
 
16
16
  def verify_rucaptcha?(resource = nil)
17
17
  rucaptcha_at = session[:_rucaptcha_at].to_i
18
- captcha = params[:_rucaptcha].downcase.strip
18
+ captcha = (params[:_rucaptcha] || '').downcase.strip
19
19
 
20
20
  # Captcha chars in Session expire in 2 minutes
21
21
  valid = false
@@ -1,3 +1,3 @@
1
1
  module RuCaptcha
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rucaptcha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-24 00:00:00.000000000 Z
11
+ date: 2016-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: posix-spawn