emailbutler 0.7.2 → 0.7.4

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: 38f01cada60bc61027e918007e400a162c4967582ce229dacd76126ee174fe57
4
- data.tar.gz: d88f440f59faabcfe46731d82b148d49c53a4a7e4e1a63619063b3e25d6f9d78
3
+ metadata.gz: f7f08303328cc8a7b8d6ded0971cde6446c34fc572532a18b77481a40e06d92b
4
+ data.tar.gz: 7313c40aebce4c00e1a76d834f55c6be2b535a42dd1552bd2b18963c6a0c48df
5
5
  SHA512:
6
- metadata.gz: c1eec6d808d55c4ee327b23cf271c675791cfe649d0c7bc7ae4b581887bd3f431e21e2a3dca0f6ed433a8ea888b3f39b735d4ed7c40f91f21d96dbf996da6ee8
7
- data.tar.gz: 4e76c5459db5e9e4c951277bbbe47e19c1a9b942b5134f9c379e8003ca2a630e241094e5bd8b3ccd678733f8743315cf0f02ba7676de1f836fc2dfcd375c9303
6
+ metadata.gz: 68aa0b392d1ff131a0f6d74cf3d2effcd97f0841ab0fc5f2a5856b232509f88f0f21e1c2f494be3b72f618a4c47b87404a382d53a0db094d970dc065c06df696
7
+ data.tar.gz: 0f6205befbd32ee52cd59ee1bb8f3c88039d833067f4db6cb3ff57384cb01ccb3274b71490f4100dafc262cdab8f14fc0963ce240f63410bd4969ea6ec361680
data/README.md CHANGED
@@ -11,6 +11,7 @@ Emailbutler allows you to monitor the sending of letters, collects notifications
11
11
  Add this line to your application's Gemfile:
12
12
  ```ruby
13
13
  gem 'emailbutler'
14
+ gem 'pagy'
14
15
  ```
15
16
 
16
17
  And then execute:
@@ -36,7 +37,6 @@ Emailbutler.configure do |config|
36
37
  config.ui_username = 'username'
37
38
  config.ui_password = 'password'
38
39
  config.ui_secured_environments = ['production']
39
- config.skip_before_actions = %i[verify_authenticity_token]
40
40
  end
41
41
  ```
42
42
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Emailbutler
4
- class ApplicationController < ApplicationController
4
+ class ApplicationController < ActionController::Base
5
5
  end
6
6
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Emailbutler
4
4
  class WebhooksController < Emailbutler::ApplicationController
5
- skip_before_action(*Emailbutler.configuration.skip_before_actions)
5
+ skip_before_action :verify_authenticity_token
6
6
 
7
7
  def create
8
8
  ::Emailbutler::Webhooks::Receiver.call(
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Emailbutler
4
4
  class Configuration
5
- attr_accessor :adapter, :ui_username, :ui_password, :ui_secured_environments, :skip_before_actions
5
+ attr_accessor :adapter, :ui_username, :ui_password, :ui_secured_environments
6
6
 
7
7
  def initialize
8
8
  @adapter = nil
@@ -12,9 +12,6 @@ module Emailbutler
12
12
  @ui_password = ''
13
13
  # Secured environments variable must directly contains environment names
14
14
  @ui_secured_environments = []
15
-
16
- # Skip before_actions from your ApplicationController
17
- @skip_before_actions = %i[verify_authenticity_token]
18
15
  end
19
16
  end
20
17
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Emailbutler
4
- VERSION = '0.7.2'
4
+ VERSION = '0.7.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailbutler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bogdanov Anton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-08 00:00:00.000000000 Z
11
+ date: 2023-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pagy