rails-web-console 0.3.1 → 0.3.2

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
  SHA1:
3
- metadata.gz: 21f803e55b29a5b8c067bc9b64f17d99ae08286b
4
- data.tar.gz: dce72f2d8337763e87e8acf0eac3b10c007a568d
3
+ metadata.gz: 9fa19e8314b00a499b44bb23fb74a13f15b12487
4
+ data.tar.gz: 38d099883bde682147bd355230bfaafcb00e62fb
5
5
  SHA512:
6
- metadata.gz: 21e15fcaa66d7220a12dfeaf701da8428110853fd26f7539c1fa01f405750a991e64e4cba7c3719fab4f05384f0a27d693e3e6558e18f82b327ab0363012d2a4
7
- data.tar.gz: 255e3d0bc54caa3b7d903ef6dbaa511004b108f05f4244e7eb52489f796c613dcb9b8223753133d49eac44c03e6674fd150aa641adf5fb7af43a0090cdbb86ce
6
+ metadata.gz: ca4bd951e2c8e4cdf64cf862d4890de72f4f029798916cc90fd04f134aeadb3255cf39c9893427cad7eff579541f2f49c72fa227d50dd88386bf684f2eeb9938
7
+ data.tar.gz: 393ad26b00ee08029127091a8d6fc0066ffb3411cb63710d2c6fb9c0845e1aa35eca71d47ea5a84d0bf5370eb837a3787fc75432b12158f1ed44974511519857
@@ -2,7 +2,10 @@ require 'stringio'
2
2
 
3
3
  module RailsWebConsole
4
4
  class ConsoleController < ::ActionController::Base
5
- skip_before_filter :verify_authenticity_token
5
+ if _process_action_callbacks.any?{|a| a.filter == :verify_authenticity_token}
6
+ # ActionController::Base no longer protects from forgery in Rails 5
7
+ skip_before_filter :verify_authenticity_token
8
+ end
6
9
  layout false
7
10
 
8
11
  def index
@@ -1,3 +1,3 @@
1
1
  module RailsWebConsole
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-web-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Rosenfeld Rosas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.2.2
63
+ rubygems_version: 2.5.1
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: A web console for Rails