captcher 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b308e19833b1334f3679d81759e743eaecdea0e90521362a63b3bc2eeea65c4f
4
- data.tar.gz: 36dc88101bfde8ef8e531f19a41d14015982b79c1edec09aabc748608653dae1
3
+ metadata.gz: 655e91ab3e9dd90b4f3736f5a65a0159c870c20273b6d9e20a3a9622c08c0847
4
+ data.tar.gz: e92710d444b0318f60e733187c651dcb074b334dd2e57397cd1380a39729e270
5
5
  SHA512:
6
- metadata.gz: 4ee7d6c0f8026794644cc02d990ca6a71bae8dcca7d69cca527d7f40c0c2279046112df706cfdd38c4563a3263051f5908bb6a318167c2262e8f5db69e78a3b4
7
- data.tar.gz: 0c5825b78edbfc5b7ceedeb8aedb1e77e6eff1f4bceac3e1ee025ca71729626555ff0c46256f974aa73d8b9d8fa2671586e99917abfea37e9bf388b8c0e37e73
6
+ metadata.gz: 5f6121883bfaa55eaec17c68e8017533d70215e9fbb3d39732db81ebd8b2dfa636e10c6fe0d235379040c353f9f2e68c590f02435cc364e0863269b562e4196c
7
+ data.tar.gz: 419cb3352bb8770c1e5e0077ba96dfee9162c083c876212773142e95238b240a33f3dbb82d9f28d6547762bdcc7ad9ebffcc9b481e613f632cdf2df42460cdaf
@@ -3,16 +3,16 @@ module Captcher
3
3
  include Captcher::CaptchaAware
4
4
 
5
5
  def show
6
- render_captcha(load_captcha(session))
6
+ render_captcha(load_captcha)
7
7
  end
8
8
 
9
9
  def reload
10
- render_captcha(reload_captcha(session))
10
+ render_captcha(reload_captcha)
11
11
  end
12
12
  alias refresh reload
13
13
 
14
14
  def confirm
15
- if confirm_captcha?(session, params[:confirmation])
15
+ if confirm_captcha?(params[:captcha])
16
16
  render json: { success: true }, status: 200
17
17
  else
18
18
  render json: { success: false }, status: 422
@@ -1,3 +1,3 @@
1
1
  module Captcher
2
- VERSION = "0.3.0".freeze
2
+ VERSION = "0.3.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: captcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Zinovyev