rabarber 0.1.5 → 1.0.0

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: 44ae657744209c8401cc25faff3aba718ce00993d4ba6f1ccd8b833cd7b2e48f
4
- data.tar.gz: a5ede8519ed62a197873b8b9f955a38d9a7cb7d34a5a7ef9518ed672b029745b
3
+ metadata.gz: 0f88bfee88b7ec649f9570494849723b509a24248938af8404f1c53340005e02
4
+ data.tar.gz: 5cbf48b7ceb94f44583a254bcebe2a2c0f523cbfcd16e59ec3cc6d328a093f1d
5
5
  SHA512:
6
- metadata.gz: 03be3074d4a98d2b9c4cf81a1686d411e9f899f9543a82ee0879a4f8935841cbc0916ce7ca739ea44181a0db2dc2b57e2cafd251b3ab7e3389ae3d15fa86fc92
7
- data.tar.gz: 647f11032bf0f935f1822f45f3edaec8e8b9db11ba786c72ffef722dcb650a0b3688dbefd9bbe0822aab0d7608f88827b3e7ff2a554f58b93c04a27bd04ec251
6
+ metadata.gz: a04e95e7e3acb020d47a14dcf5ec3396115446abf24c7e8dc49c049421e5e28d4f202a84c599f67b186167cebe58fb104cde64d3b36ffe80346c72873b1e05b6
7
+ data.tar.gz: 0b6da65b29e49b69f85249bbce40ba2434a96adada7495615164a776f7c5e22ff3aa3186f3853cff701ac890e903730ea5c5ed3c1224de5125b0cc19bde51bdd
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ require:
3
3
  - rubocop-rspec
4
4
 
5
5
  AllCops:
6
- TargetRubyVersion: 2.7
6
+ TargetRubyVersion: 3.0
7
7
 
8
8
  Layout/LineLength:
9
9
  Max: 120
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.0.0
2
+
3
+ - Drop support for Ruby 2.7
4
+ - Add support for Ruby 3.3
5
+ - Various minor improvements
6
+
1
7
  ## 0.1.5
2
8
 
3
9
  - Add missing `foreign_key` option to `CreateRabarberRoles` migration
@@ -6,11 +12,10 @@
6
12
  ## 0.1.4
7
13
 
8
14
  - Remove `role?` method as unnecessary
9
- - Update README
10
15
 
11
16
  ## 0.1.3
12
17
 
13
- - Revise and update README for clarity
18
+ - Fully revise and update README for clarity
14
19
 
15
20
  ## 0.1.2
16
21
 
@@ -8,8 +8,8 @@ class CreateRabarberRoles < ActiveRecord::Migration[<%= ActiveRecord::Migration.
8
8
  end
9
9
 
10
10
  create_table :rabarber_roles_roleables, id: false do |t|
11
- t.belongs_to :role, index: true, foreign_key: { to_table: :rabarber_roles }
12
- t.belongs_to :roleable, index: true, foreign_key: { to_table: raise(Rabarber::Error, "Please specify your user model's table name") }
11
+ t.belongs_to :role, null: false, index: true, foreign_key: { to_table: :rabarber_roles }
12
+ t.belongs_to :roleable, null: false, index: true, foreign_key: { to_table: raise(Rabarber::Error, "Please specify your user model's table name") }
13
13
  end
14
14
 
15
15
  add_index :rabarber_roles_roleables, %i[role_id roleable_id], unique: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rabarber
4
- VERSION = "0.1.5"
4
+ VERSION = "1.0.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabarber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - enjaku4
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-27 00:00:00.000000000 Z
11
+ date: 2023-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -62,14 +62,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  requirements:
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
- version: '2.7'
65
+ version: '3.0'
66
66
  required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.6
72
+ rubygems_version: 3.2.33
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple authorization library for Ruby on Rails.