godmin 2.2.0 → 2.3.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: 11671dfd7c0219abf4626b93f1f7273ee5769486e48a43b82889fe43601f3370
4
- data.tar.gz: 0bb8078a5792d05b7fbf4543fd20d924432571e22dc87e00beafc6309a4cae08
3
+ metadata.gz: 65e09e2c95f74bf8ff9ec342b5a454c102a698cf96490c045b7c9e1757650df2
4
+ data.tar.gz: a11e4a9601d42c414115e809ebfc960c76c012f1324c0e0538c0d877d18bedc9
5
5
  SHA512:
6
- metadata.gz: 7f02e2821b7bae9cd0611a97292f6cb8159e9bcaac1f871e7077ddf0f1ad553be98804e4385c434de5326ca12138310032fa52e459db0b9c6572eeac381dbc51
7
- data.tar.gz: 166aef398cffb04a6b38560b177f991cdaf5e9cec4be9bf8d2025188d3b83a7c8763502b183ca891bb32b5e2ce7a4a8bc3ba90b7e464164b3be90400bd6b22b6
6
+ metadata.gz: 292650fbb1682db6d28beccb627f84e3400189dbe45c714bd96a0aebf9c0c2ce66c4e2ab5272db5117c3f875a3730f5d4959af14aea5cb34b1f3eb08cdffdc9e
7
+ data.tar.gz: f757d276836223a0e0cad7b037336143bf68ec2eaa0bd7cd75328cf6c0f9bb7b8a9581c59905219c1c4bb275abd5f0ae08698f58f1f541533882265a27e307c3
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  bundler_args: "--without debug"
2
2
  cache: bundler
3
3
  script: bundle exec rake test
4
+ dist: focal
4
5
  rvm:
5
6
  - 2.6.7
6
7
  - 2.7.3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ### 2.3.0 - 2022-03-09
4
+
5
+ Other
6
+ - Upgrade to latest Pundit: 2.2.0 (https://github.com/varvet/godmin/pull/266)
7
+
8
+ ### 2.2.2 - 2021-11-08
9
+
10
+ Fix
11
+ - Render values in columns (https://github.com/varvet/godmin/pull/263)
12
+ - Correct README to match Godmin 2 (https://github.com/varvet/godmin/pull/262)
13
+
14
+ ### 2.2.1 - 2021-05-20
15
+
16
+ Fix
17
+ - Use Pundit >= 2.0.0 so that namespaces are handled correctly (https://github.com/varvet/godmin/pull/260)
18
+
3
19
  ### 2.2.0 - 2021-05-20
4
20
 
5
21
  Other
data/README.md CHANGED
@@ -733,7 +733,7 @@ module Admin
733
733
  include Godmin::ApplicationController
734
734
  include Godmin::Authentication
735
735
 
736
- def authenticate_admin_user
736
+ def authenticate
737
737
  authenticate_user!
738
738
  end
739
739
 
data/godmin.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |gem|
25
25
  gem.add_dependency "csv_builder", "~> 2.1"
26
26
  gem.add_dependency "jquery-rails", [">= 4.0", "< 5.0"]
27
27
  gem.add_dependency "momentjs-rails", "~> 2.8"
28
- gem.add_dependency "pundit", [">= 1.1", "< 2.0"]
28
+ gem.add_dependency "pundit", [">= 2.2.0", "< 3.0"]
29
29
  gem.add_dependency "rails", [">= 5.0", "< 7.0"]
30
30
  gem.add_dependency "sass-rails", [">= 5.0", "< 7.0"]
31
31
  gem.add_dependency "selectize-rails", "~> 0.12"
@@ -5,7 +5,7 @@ module Godmin
5
5
  module Authorization
6
6
  extend ActiveSupport::Concern
7
7
 
8
- include Pundit
8
+ include Pundit::Authorization
9
9
 
10
10
  included do
11
11
  rescue_from Pundit::NotAuthorizedError do
@@ -33,7 +33,7 @@ module Godmin
33
33
  column_value = t(column_value.to_s)
34
34
  end
35
35
 
36
- column_value
36
+ return column_value
37
37
  end
38
38
  end
39
39
  end
@@ -1,3 +1,3 @@
1
1
  module Godmin
2
- VERSION = "2.2.0"
2
+ VERSION = "2.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: godmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Ljungblad
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-05-20 00:00:00.000000000 Z
13
+ date: 2022-03-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt
@@ -114,20 +114,20 @@ dependencies:
114
114
  requirements:
115
115
  - - ">="
116
116
  - !ruby/object:Gem::Version
117
- version: '1.1'
117
+ version: 2.2.0
118
118
  - - "<"
119
119
  - !ruby/object:Gem::Version
120
- version: '2.0'
120
+ version: '3.0'
121
121
  type: :runtime
122
122
  prerelease: false
123
123
  version_requirements: !ruby/object:Gem::Requirement
124
124
  requirements:
125
125
  - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: '1.1'
127
+ version: 2.2.0
128
128
  - - "<"
129
129
  - !ruby/object:Gem::Version
130
- version: '2.0'
130
+ version: '3.0'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: rails
133
133
  requirement: !ruby/object:Gem::Requirement
@@ -553,7 +553,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
553
553
  - !ruby/object:Gem::Version
554
554
  version: '0'
555
555
  requirements: []
556
- rubygems_version: 3.1.4
556
+ rubygems_version: 3.1.6
557
557
  signing_key:
558
558
  specification_version: 4
559
559
  summary: Godmin is an admin framework for Rails 5+