base_editing_bootstrap 0.12.0 → 0.13.0

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: 2ebd5f42f60f886ca0e8c5ecff7d5be53531bf015ea7c44f763f6d07127f69ec
4
- data.tar.gz: 007b28d61ec3058efdc94488578cc2fdae37d1477296511db5e5653f77b94bee
3
+ metadata.gz: 8b84e9dad4cfafc627cd9615c427fe7668ebb638b80e2196e55fd16c4afcc33c
4
+ data.tar.gz: a1bb90eb4aebe3fe952a41a384ba50d177db408f85a2884376fa06ab9f43f6f6
5
5
  SHA512:
6
- metadata.gz: 530342bff9cac4c81404c568d89faf99293f1992e3c2aedea0042ec4ed9a3f30bf72f9a9da75036bef84eb29c8b7e8299baa4b5c548d5ef7ca2e9497732a3478
7
- data.tar.gz: 4b9e115f5ee49c9857bb243091e4ca58c70f0e02d16e241dbb93c09337728fee62455c673818fb963810d0dec36462ce332194217d590c3848bd013213126c55
6
+ metadata.gz: bbc195a2a2cdfbcb9ec6a42648d7f8a88f4643cee5260e038faaef90f3ee8a734f9c836b07f94b58717e6cc893520a4921bfc013d7b4db2435e3c7dd96055181
7
+ data.tar.gz: 2b8c5a420ad067f2bdb43ee57df81ad5dd8e9b734a59274d9db2b44373c12d02706de0e80cad0b6723d40fda54ff4900a6eb758c192372517f5494ab7abe27c3
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
  All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
3
3
 
4
4
  - - -
5
+ ## 0.13.0 - 2024-10-02
6
+ #### Bug Fixes
7
+ - Correct generator - (c3a5e60) - Marino Bonetti
8
+ #### Features
9
+ - Rails Matrix versions (#4) - (1deaa4e) - Marino Bonetti
10
+
11
+ - - -
12
+
5
13
  ## 0.12.0 - 2024-10-01
6
14
  #### Documentation
7
15
  - Update documentation - (e49af20) - Marino Bonetti
@@ -38,7 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_dependency 'kaminari', ['~> 1.2', '>= 1.2.2']
39
39
  spec.add_dependency 'kaminari-i18n', '~> 0.5'
40
40
 
41
- spec.add_development_dependency "rspec-rails", '~> 6.0'
41
+ spec.add_development_dependency "rspec-rails", '~> 7.0'
42
42
  spec.add_development_dependency "factory_bot_rails", '~> 6.4'
43
43
  spec.add_development_dependency 'faker', '~> 3.3'
44
44
  spec.add_development_dependency "puma", '~> 6.4'
@@ -1 +1 @@
1
- 0.12.0
1
+ 0.13.0
@@ -11,12 +11,12 @@ BaseEditingBootstrap.configure do |config|
11
11
  # Configurazione per alterare lo standard di azione post aggiornamento record
12
12
  # il default è andare nella pagina di editing del record
13
13
  # possibili valori :edit , :index
14
- # config.inherited_controller = :edit
14
+ # config.after_success_update_redirect = :edit
15
15
 
16
16
  ##
17
17
  # Configurazione per alterare lo standard di azione post creazione record
18
18
  # il default è andare nella pagina di editing del record
19
19
  # possibili valori :edit , :index
20
- # config.inherited_controller = :edit
20
+ # config.after_success_create_redirect = :edit
21
21
 
22
22
  end
@@ -190,7 +190,13 @@ default_unathorized_failure = -> { raise "TODO - passare proc con richiesta che
190
190
 
191
191
  RSpec.shared_examples "fail with unauthorized" do |request: default_unathorized_failure|
192
192
  it "is expected to redirect to root" do
193
- expect(Pundit).to receive(:authorize).with(user, any_args).and_raise(Pundit::NotAuthorizedError)
193
+
194
+ if Gem::Version.create( Pundit::VERSION) < Gem::Version.create('2.3.2')
195
+ allow(Pundit).to receive(:authorize).with(user, any_args).and_raise(Pundit::NotAuthorizedError)
196
+ else
197
+ allow_any_instance_of(Pundit::Context).to receive(:authorize).and_raise(Pundit::NotAuthorizedError)
198
+ end
199
+
194
200
  instance_exec(&request)
195
201
  expect(response).to redirect_to(root_path)
196
202
  expect(flash[:error]).not_to be_nil
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_editing_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marino Bonetti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-01 00:00:00.000000000 Z
11
+ date: 2024-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -110,14 +110,14 @@ dependencies:
110
110
  requirements:
111
111
  - - "~>"
112
112
  - !ruby/object:Gem::Version
113
- version: '6.0'
113
+ version: '7.0'
114
114
  type: :development
115
115
  prerelease: false
116
116
  version_requirements: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - "~>"
119
119
  - !ruby/object:Gem::Version
120
- version: '6.0'
120
+ version: '7.0'
121
121
  - !ruby/object:Gem::Dependency
122
122
  name: factory_bot_rails
123
123
  requirement: !ruby/object:Gem::Requirement