agilibox 1.7.2 → 1.7.3

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: 82f003a923d98f8dcb155878247c2600d8e4523e37a05ca2c49ba0ccf03a5b4c
4
- data.tar.gz: 0b8bb2a5857011d4499bc28abffef7d0bba70423d864a7b3dc786e2512008c40
3
+ metadata.gz: d03c38e4cb322c43a75cd9e8a3f3e03918d79b7706a67ac24ba70ae74a5b298d
4
+ data.tar.gz: e6a821402dd6fa5f1a1871d37ca6b09f7e309cdba1bdfa849737f43d7b87c629
5
5
  SHA512:
6
- metadata.gz: 42262402c421a72a5d2f05c7fa70443d734ffa752fcf05de48bc98c69dd811e03b6f8c226d82f04e4d23ae16ed32c8625a28655342154f92fae0a1c21d70e28e
7
- data.tar.gz: 749d1f2507d356401b719c8a707c95c3c5f921e51cf0c0276c1bc25230508060a96bbfe54793da2966d0761d35411a6350749d9f90e8b328568b0be1d79d1259
6
+ metadata.gz: 3f13d8e252c29a1cb2100ed4cffad5b82c179d5761ff47e8b0d562173f9d0af52a7c0313fe68675c181e3fd9b9a0f8f3258b4f3599607d3b1592a22d786aeece
7
+ data.tar.gz: 064dad7f1a3cb4b3229bb97d73f904a28c666e0366b5bc73174fac43e7ecb46ee6b21345f8ef495ee346d2602a0e4b03d835b361970abdd07f22e78e1a4bbbe2
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.7.3
6
+ - Do not require auth in FiltersController
7
+ - Refactor FiltersController Pundit after_actions
8
+
5
9
  ## 1.7.2
6
10
  - Fix FontAwesome helper
7
11
 
@@ -1,12 +1,10 @@
1
1
  class Agilibox::SmallData::FiltersController < ::Agilibox::ApplicationController
2
+ skip_before_action :verify_authenticity_token, raise: false
3
+ skip_before_action :authenticate_user!, raise: false
2
4
  skip_after_action :verify_authorized, raise: false
3
5
  skip_after_action :verify_policy_scoped, raise: false
4
- skip_before_action :verify_authenticity_token, raise: false
5
6
 
6
7
  def create
7
- skip_authorization if respond_to?(:skip_authorization)
8
- skip_policy_scope if respond_to?(:skip_policy_scope)
9
-
10
8
  filters = ::Agilibox::SmallData::Filter.new(cookies)
11
9
  new_filters = params.fetch(:filters, {}).permit!.to_h
12
10
  filters.merge new_filters
@@ -2,7 +2,6 @@ module Agilibox::BootstrapHelper
2
2
  class << self
3
3
  attr_writer :card_classes
4
4
 
5
- # rubocop:disable Rails/HelperInstanceVariable
6
5
  def card_classes
7
6
  @card_classes ||= {
8
7
  :card => "card",
@@ -11,7 +10,6 @@ module Agilibox::BootstrapHelper
11
10
  :footer => "card-footer",
12
11
  }
13
12
  end
14
- # rubocop:enable Rails/HelperInstanceVariable
15
13
  end
16
14
 
17
15
  def bs_progress_bar(percentage)
@@ -19,11 +19,9 @@ module Agilibox::FontAwesomeHelper
19
19
  end
20
20
 
21
21
  class << self
22
- # rubocop:disable Rails/HelperInstanceVariable
23
22
  def database
24
23
  @database ||= YAML.safe_load(database_yml).deep_symbolize_keys
25
24
  end
26
- # rubocop:enable Rails/HelperInstanceVariable
27
25
 
28
26
  def database_path
29
27
  Rails.root.join("tmp", "fa_database_#{version}.yml")
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.7.2"
2
+ VERSION = "1.7.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.2
4
+ version: 1.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-19 00:00:00.000000000 Z
11
+ date: 2019-09-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n