traptcha 0.0.10 → 0.0.11

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.
@@ -3,16 +3,16 @@ class Traptcha::CaptchasController < ApplicationController
3
3
 
4
4
  def show
5
5
  session[:captcha] = generated_captcha.value
6
- send_data generated_captcha.to_png, :disposition => 'inline', :type => 'image/png'
6
+ send_date generated_captcha.to_png, :disposition => "inline", :type => "image/png"
7
7
  end
8
8
 
9
9
  protected
10
10
 
11
11
  def set_cache_buster
12
-    response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate'
13
-    response.headers['Pragma']        = 'no-cache'
14
-    response.headers['Expires']       = 'Fri, 01 Jan 1990 00:00:00 GMT'
15
-  end
12
+ response.headers["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
13
+ response.headers["Pragma"] = "no-cache"
14
+ response.headers["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
15
+ end
16
16
 
17
17
  def generated_captcha
18
18
  @generated_captcha ||= Traptcha::Captcha.generate
@@ -1,3 +1,3 @@
1
1
  module Traptcha
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -1,8 +1,8 @@
1
1
  module Traptcha
2
2
  module ViewHelpers
3
3
  def captcha_image_tag
4
-      tag :img, :src => "#{captcha_path}?#{rand}", :id => 'traptcha', :alt => 'captcha'
5
-    end
4
+ tag :img, :src => "#{captcha_path}?#{rand}", :id => "traptcha", :alt => "captcha"
5
+ end
6
6
 
7
7
  def captcha_label_tag
8
8
  label_tag :captcha
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traptcha
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
9
+ - 11
10
+ version: 0.0.11
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rodrigo Navarro