strongbolt 0.3.11 → 0.3.12

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
  SHA1:
3
- metadata.gz: 04c6781eb3dc1e89763dde9b772544073a3c7887
4
- data.tar.gz: 191d6718c038d50f560bc884ac7e50e8bda654e7
3
+ metadata.gz: 7d2d10e16e058d8de08c3b8bfad0d4a0fc26326a
4
+ data.tar.gz: 3e9e1ab3a667b3e3fe3b793b2f63f7b0f0f38628
5
5
  SHA512:
6
- metadata.gz: b5e64a50b34279a805358c3a04fad85ab8beb152c41123537ce8fab87e94efb7a42003875a5b4e66020d6e7fc2ebea0d6dffc049661ddba92f84433f1a495378
7
- data.tar.gz: cad32f04c2e40d01a7f2784b5282645f7b6712423038a80498de2c056baf8f998b523558b606a264b1c5f26c689450d597ecc4cc2adb81d2f2481682cef308da
6
+ metadata.gz: 20a4dc9f2d28742bad737f88f7119d372b5508d2bf12811883269e35bebd1bc89ebd651debe5827a13629be8b85deab51afe231f0246a155f7181ecf38f584c3
7
+ data.tar.gz: bfdae782dc0ebd0e2ecb36cf160bf9660e1636aa10f5a1770810f0e0a76cae96850e51ff269bcb7d79e3768e2f99c995d230f35627931519841361083a56fa91
@@ -1 +1 @@
1
- ruby-2.3.1
1
+ ruby-2.3.3
data/README.md CHANGED
@@ -4,7 +4,7 @@ RBAC framework for model-level authorization gem with very granular control on p
4
4
 
5
5
  Checkout our [minimal example app](https://github.com/AnalyticsMediaGroup/strongbolt_example) to try it out without the need to set it up yourself.
6
6
 
7
- Only works with Rails 4.
7
+ Only works with Rails 4 and 5.
8
8
 
9
9
  ## Installation
10
10
 
@@ -1,5 +1,5 @@
1
- class FixStrongboltUsersTenantsId < ActiveRecord::Migration
1
+ class FixStrongboltUsersTenantsId < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_column :strongbolt_users_tenants, :id, :primary_key
4
4
  end
5
- end
5
+ end
@@ -1,4 +1,4 @@
1
- class FixUniqueGroupMembers < ActiveRecord::Migration
1
+ class FixUniqueGroupMembers < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_index :strongbolt_user_groups_users, [:user_group_id, :user_id], unique: true, name: :index_strongbolt_user_groups_users_unique
4
4
  end
@@ -1,4 +1,4 @@
1
- class CreateStrongboltTablesIndexes < ActiveRecord::Migration
1
+ class CreateStrongboltTablesIndexes < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  add_index :strongbolt_roles, :parent_id
4
4
  add_index :strongbolt_roles, :lft
@@ -18,4 +18,4 @@ class CreateStrongboltTablesIndexes < ActiveRecord::Migration
18
18
  add_index :strongbolt_users_tenants, :type
19
19
  add_index :strongbolt_users_tenants, [:tenant_id, :type]
20
20
  end
21
- end
21
+ end
@@ -1,4 +1,4 @@
1
- class CreateStrongboltTables < ActiveRecord::Migration
1
+ class CreateStrongboltTables < ActiveRecord::Migration[4.2]
2
2
  def change
3
3
  create_table :strongbolt_capabilities, :force => true do |t|
4
4
  t.string :name
@@ -63,6 +63,9 @@ module Strongbolt
63
63
  # and can be passed only: [] or except: []
64
64
  #
65
65
  def skip_controller_authorization opts = {}
66
+ if Rails::VERSION::MAJOR >= 5
67
+ opts = { raise: false }.merge(opts)
68
+ end
66
69
  skip_before_action :check_authorization, opts
67
70
  end
68
71
 
@@ -1,3 +1,3 @@
1
1
  module Strongbolt
2
- VERSION = "0.3.11"
2
+ VERSION = "0.3.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongbolt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.11
4
+ version: 0.3.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Césaré-Herriau
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-24 00:00:00.000000000 Z
12
+ date: 2017-05-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: awesome_nested_set
@@ -355,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
355
  version: '0'
356
356
  requirements: []
357
357
  rubyforge_project:
358
- rubygems_version: 2.5.1
358
+ rubygems_version: 2.6.8
359
359
  signing_key:
360
360
  specification_version: 4
361
361
  summary: RBAC Framework for model-level authorization