graphql_devise 0.11.3 → 0.11.4

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
  SHA256:
3
- metadata.gz: cd40a4f584377ba8e3cbac60b40a6cc5451ca9ed9cbaaf2d958f07e6d684b36b
4
- data.tar.gz: ff5087145891c784cce89cf304dad94adc919ffc926f7db9030c15914e97bcec
3
+ metadata.gz: 77e78a89405d9294b587abd9684c4448a4c08f89386d332dd73386ffe4a6f60b
4
+ data.tar.gz: d9451d952032587e3ea983ffa6edd34347f3227bb4ea038d0c5da4e8c35ffaa1
5
5
  SHA512:
6
- metadata.gz: 6d0415cf1b11e0b5f80966710fbe8b15ad373dfaea322e4acbb5bea7020cdf8ae85fe2fe2a47b3a236677f1a49e1a9ad2440de1ba65135020839e85e295fa263
7
- data.tar.gz: b7d62d5a5607462f9486b5403370c3f62898b009d1519fb1ddc302d1d8d5ea2e6e601e1fb71510ab17f47c5414e091a2e0ca955782288eafad42637ade300f03
6
+ metadata.gz: f963bf770985c5ce4f4d533efb9a15b468ba4c6827dca1ad7b64eecc9afb4cd3944ab383452cc897367d156f950d0f19f84d501e3ae6d6b34d3a528fe4d2473f
7
+ data.tar.gz: 4d49b3cbb3050db885d18265394e7e6acbc5c2208c4913dcc988aae13865dbc6b6f57e3f079cbb8edb943c4de025ca2816d6b18562ce9b625972aae82cdc4c3a
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## [v0.11.3](https://github.com/graphql-devise/graphql_devise/tree/v0.11.3) (2020-05-22)
3
+ ## [v0.11.4](https://github.com/graphql-devise/graphql_devise/tree/v0.11.4) (2020-05-23)
4
+
5
+ [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.11.3...v0.11.4)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Do nothing if forgery protection enabled in ApplicationController [\#93](https://github.com/graphql-devise/graphql_devise/pull/93) ([mcelicalderon](https://github.com/mcelicalderon))
10
+
11
+ ## [v0.11.3](https://github.com/graphql-devise/graphql_devise/tree/v0.11.3) (2020-05-23)
4
12
 
5
13
  [Full Changelog](https://github.com/graphql-devise/graphql_devise/compare/v0.11.2...v0.11.3)
6
14
 
@@ -1,4 +1,8 @@
1
1
  module GraphqlDevise
2
2
  class ApplicationController < DeviseTokenAuth::ApplicationController
3
+ private
4
+
5
+ def verify_authenticity_token
6
+ end
3
7
  end
4
8
  end
@@ -1,3 +1,3 @@
1
1
  module GraphqlDevise
2
- VERSION = '0.11.3'.freeze
2
+ VERSION = '0.11.4'.freeze
3
3
  end
@@ -8,6 +8,11 @@ module Api
8
8
  def graphql
9
9
  render json: DummySchema.execute(params[:query])
10
10
  end
11
+
12
+ private
13
+
14
+ def verify_authenticity_token
15
+ end
11
16
  end
12
17
  end
13
18
  end
@@ -1,2 +1,3 @@
1
1
  class ApplicationController < ActionController::Base
2
+ protect_from_forgery with: :exception
2
3
  end
@@ -39,4 +39,8 @@ RSpec.configure do |config|
39
39
  config.include(Requests::AuthHelpers, type: :request)
40
40
  config.include(ActiveSupport::Testing::TimeHelpers)
41
41
  config.include(Generators::FileHelpers, type: :generator)
42
+
43
+ config.before(:suite) do
44
+ ActionController::Base.allow_forgery_protection = true
45
+ end
42
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphql_devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.3
4
+ version: 0.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Celi