rbac_core 0.0.8 → 0.0.9

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
  SHA1:
3
- metadata.gz: 182b7ad2b6341073589eec3dbe9e9f474aff13a9
4
- data.tar.gz: 1258e16f111a0f93b102e1354c7134552df76015
3
+ metadata.gz: 0bbd6c1e6b50b5f7ff2739f0b048c6040ca97605
4
+ data.tar.gz: 9951ed9363ea8de6a724471090024835211a9940
5
5
  SHA512:
6
- metadata.gz: 3300e10306df1f9a8d95b77e59e3e6278780a645d89b2cf5889f2f82c084462f438e9e87f85efa15dcbe58868063d9705650549d809cdcf1b7170e80a1ee85a8
7
- data.tar.gz: 3d009cda9b7b1443938061b08d79f56720aec3b636552300a65be9c38dc91a04c05cce2668d9b86fca7278cf8359f2314cc9dec8cac7aee1226afb0c19e1f02e
6
+ metadata.gz: c0e75ec8d8a8f42aab7c15fbbd6a035a78bb56c752c932912c94597914f3614b0ca9986d84e6b34f0a15faab7af83d40977b858234cd43703794487d82fbad31
7
+ data.tar.gz: 7511cce134113a021330e0b0dc8eec819f5c8ade59332f921cc5b633cf14983bf361701f691629b226b9d11d9a66046073b522b7ac4dd5dc3ae3142c5ab9c818
data/README.md CHANGED
@@ -59,12 +59,6 @@ Run bundler
59
59
  $ bundle install
60
60
  ```
61
61
 
62
- Run yarn
63
-
64
- ```sh
65
- $ test/dummy/bin/yarn
66
- ```
67
-
68
62
  Preparing database
69
63
 
70
64
  ```sh
data/Rakefile CHANGED
@@ -1,36 +1,34 @@
1
+ # frozen_string_literal: true
2
+
1
3
  begin
2
- require 'bundler/setup'
4
+ require "bundler/setup"
3
5
  rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
+ puts "You must `gem install bundler` and `bundle install` to run rake tasks"
5
7
  end
6
8
 
7
- require 'rdoc/task'
9
+ require "rdoc/task"
8
10
 
9
11
  RDoc::Task.new(:rdoc) do |rdoc|
10
- rdoc.rdoc_dir = 'rdoc'
11
- rdoc.title = 'RbacCore'
12
- rdoc.options << '--line-numbers'
13
- rdoc.rdoc_files.include('README.md')
14
- rdoc.rdoc_files.include('lib/**/*.rb')
12
+ rdoc.rdoc_dir = "rdoc"
13
+ rdoc.title = "RbacCore"
14
+ rdoc.options << "--line-numbers"
15
+ rdoc.rdoc_files.include("README.md")
16
+ rdoc.rdoc_files.include("lib/**/*.rb")
15
17
  end
16
18
 
17
19
  APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
18
- load 'rails/tasks/engine.rake'
19
-
20
-
21
- load 'rails/tasks/statistics.rake'
20
+ load "rails/tasks/engine.rake"
22
21
 
22
+ load "rails/tasks/statistics.rake"
23
23
 
24
+ require "bundler/gem_tasks"
24
25
 
25
- require 'bundler/gem_tasks'
26
-
27
- require 'rake/testtask'
26
+ require "rake/testtask"
28
27
 
29
28
  Rake::TestTask.new(:test) do |t|
30
- t.libs << 'test'
31
- t.pattern = 'test/**/*_test.rb'
29
+ t.libs << "test"
30
+ t.pattern = "test/**/*_test.rb"
32
31
  t.verbose = false
33
32
  end
34
33
 
35
-
36
34
  task default: :test
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
4
  class ApplicationRecord < ActiveRecord::Base
3
5
  self.abstract_class = true
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
4
  class Role < ApplicationRecord
3
5
  include RbacCore::Concerns::Models::Role
data/lib/rbac_core.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require "rbac_core/engine"
2
4
 
3
5
  require "options_model"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
4
  class ComputedPermissions
3
5
  delegate :each, :map, :to_a, :to_ary, to: :@permissions
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore::Concerns
2
4
  module Models
3
5
  module Role
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
4
  class Engine < ::Rails::Engine
3
5
  isolate_namespace RbacCore
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
4
  class Mapper
3
5
  def initialize(set, **constraints) #:nodoc:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
4
  class Permission
3
5
  attr_reader :name, :priority
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
4
  class PermissionSet < OptionsModel::Base
3
5
  def permitted_permission_names
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module RbacCore
2
- VERSION = "0.0.8".freeze
4
+ VERSION = "0.0.9"
3
5
  end
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # desc "Explaining what the task does"
2
3
  # task :rbac_core do
3
4
  # # Task goes here
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbac_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - jasl
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-30 00:00:00.000000000 Z
11
+ date: 2017-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails