ez-permissions 0.2.2 → 0.2.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: 6145e511809044ca7673cfd275fa009fbfad5a5dfccd9457469116bf6039a0ad
4
- data.tar.gz: aaac5b48a4fa790de8df4f97ee86b4b42c52c5d130a24289c1876a298f7d1691
3
+ metadata.gz: 283631e0353e45353ed08297b64b0d2b00b44264b8b1b98b941834236c8313e1
4
+ data.tar.gz: 0f4281977ff55d2e57fc6d845cd06854334544f0bc3ba5742819c5602c3d41a7
5
5
  SHA512:
6
- metadata.gz: 90d8bc79ec20592692ca6c4a62096c8a6d166dec53e3514f53da77271cf80c83292e3fd8dfc3bec25dd11771abe70b632e365b7a646aa597b1fc8f3e18a54b96
7
- data.tar.gz: bd6f64a211c6b233c673a74ef2992531794045a56025d7fa6dbec8326290caeb3b1647109105408300a8a960f33f094fd5492cb79b8c324b5132cebce8b9408d
6
+ metadata.gz: 8a0a0d1d268c6ee6a9358eaeb75d6ea2d3ab311670fbe1ffa03e3f35257869630b488cddd02c3f7762ac8fe0355f67f82ed165ac19ccd7f1f86adf5f06f7e307
7
+ data.tar.gz: 3b7072cefc9aaa7ec1311b4775c6486ec092e8de3af7b5aa7c31c5249d526d92e51190bc7c5048158d567d216580830cd3c8e4ab2783302773ae283d50227f20
data/README.md CHANGED
@@ -36,6 +36,9 @@ Ez::Permissions.configure do |config|
36
36
  config.models_roles_table_name = 'my_model_roles'
37
37
  config.permissions_roles_table_name = 'my_permissions_roles'
38
38
 
39
+ # Suppress stdoud messages for test environment
40
+ config.mute_stdout = true if Rails.env.test?
41
+
39
42
  # Define your custom callbacks
40
43
  config.handle_no_permission_model = lambda { |context|
41
44
  raise 'User not exist'
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ez
4
4
  module Permissions
5
- VERSION = '0.2.2'
5
+ VERSION = '0.2.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ez-permissions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Volodya Sveredyuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-14 00:00:00.000000000 Z
11
+ date: 2019-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ez-core
@@ -160,7 +160,6 @@ files:
160
160
  - MIT-LICENSE
161
161
  - README.md
162
162
  - Rakefile
163
- - app/controllers/ez/permissions/application_controller.rb
164
163
  - app/models/ez/permissions/application_record.rb
165
164
  - app/models/ez/permissions/model.rb
166
165
  - app/models/ez/permissions/model_role.rb
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # TODO: Use this for potential UI or API features
4
- # module Ez
5
- # module Permissions
6
- # class ApplicationController < ActionController::Base
7
- # protect_from_forgery with: :exception
8
- # end
9
- # end
10
- # end