rokku 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e35f55f5d2b9be912f462bbd1abda316f5abe55c9e58d5dc27e99c7933004427
4
+ data.tar.gz: 1f16e58528cec63db8e6903761256df1ae19149a96610ea49cb201e5d4605dcd
5
+ SHA512:
6
+ metadata.gz: 6dbd48399c45dc6dd02c679a3f3a529bcd1ac84e165efb2379397646c92e4b30c8091ae8dd7ed2c03bd29c73377b4b6a5587ebef1b12950a6893dbe23e54f7da
7
+ data.tar.gz: 5c898ad4c83a58a253056f3612c041c45b3ab9f6242c2e5da144602ef6ff3536487ef5b09997db7fcd0d8afa597112723b08ef1c0c1b2d3361ac835c34d8177f
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.1
7
+ before_install: gem install bundler -v 2.0.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at sebastjan.hribar@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rokku.gemspec
4
+ gemspec
@@ -0,0 +1,107 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ rokku (0.5.0)
5
+ hanami-controller (~> 1.0)
6
+ hanami-router (~> 1.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ concurrent-ruby (1.1.7)
12
+ dry-configurable (0.11.6)
13
+ concurrent-ruby (~> 1.0)
14
+ dry-core (~> 0.4, >= 0.4.7)
15
+ dry-equalizer (~> 0.2)
16
+ dry-container (0.7.2)
17
+ concurrent-ruby (~> 1.0)
18
+ dry-configurable (~> 0.1, >= 0.1.3)
19
+ dry-core (0.4.10)
20
+ concurrent-ruby (~> 1.0)
21
+ dry-equalizer (0.3.0)
22
+ dry-initializer (1.4.1)
23
+ dry-logic (0.4.2)
24
+ dry-container (~> 0.2, >= 0.2.6)
25
+ dry-core (~> 0.2)
26
+ dry-equalizer (~> 0.2)
27
+ dry-struct (0.3.1)
28
+ dry-configurable (~> 0.1)
29
+ dry-core (~> 0.3)
30
+ dry-equalizer (~> 0.2)
31
+ dry-types (~> 0.9, >= 0.9.0)
32
+ ice_nine (~> 0.11)
33
+ dry-types (0.11.1)
34
+ concurrent-ruby (~> 1.0)
35
+ dry-configurable (~> 0.1)
36
+ dry-container (~> 0.3)
37
+ dry-core (~> 0.2, >= 0.2.1)
38
+ dry-equalizer (~> 0.2)
39
+ dry-logic (~> 0.4, >= 0.4.0)
40
+ inflecto (~> 0.0.0, >= 0.0.2)
41
+ hanami-controller (1.3.3)
42
+ hanami-utils (~> 1.3)
43
+ rack (~> 2.0)
44
+ hanami-model (1.3.2)
45
+ concurrent-ruby (~> 1.0)
46
+ dry-logic (~> 0.4.2, < 0.5)
47
+ dry-types (~> 0.11.0)
48
+ hanami-utils (~> 1.3)
49
+ rom (~> 3.3, >= 3.3.3)
50
+ rom-repository (~> 1.4)
51
+ rom-sql (~> 1.3, >= 1.3.5)
52
+ hanami-router (1.3.2)
53
+ hanami-utils (~> 1.3)
54
+ http_router (= 0.11.2)
55
+ rack (~> 2.0)
56
+ hanami-utils (1.3.6)
57
+ concurrent-ruby (~> 1.0)
58
+ transproc (~> 1.0)
59
+ http_router (0.11.2)
60
+ rack (>= 1.0.0)
61
+ url_mount (~> 0.2.1)
62
+ ice_nine (0.11.2)
63
+ inflecto (0.0.2)
64
+ minitest (5.13.0)
65
+ rack (2.2.3)
66
+ rake (10.5.0)
67
+ rom (3.3.3)
68
+ concurrent-ruby (~> 1.0)
69
+ dry-core (~> 0.3)
70
+ dry-equalizer (~> 0.2)
71
+ dry-initializer (~> 1.3)
72
+ dry-types (~> 0.9, >= 0.9.4)
73
+ rom-mapper (~> 0.5, >= 0.5.1)
74
+ rom-mapper (0.5.1)
75
+ dry-core (~> 0.2, >= 0.2.3)
76
+ dry-equalizer (~> 0.2)
77
+ transproc (~> 1.0)
78
+ rom-repository (1.4.0)
79
+ dry-core (~> 0.3, >= 0.3.1)
80
+ dry-struct (~> 0.3)
81
+ rom (~> 3.3)
82
+ rom-mapper (~> 0.5)
83
+ rom-sql (1.3.5)
84
+ dry-core (~> 0.3)
85
+ dry-equalizer (~> 0.2)
86
+ dry-types (~> 0.11.0)
87
+ rom (~> 3.2, >= 3.2.2)
88
+ sequel (~> 4.43)
89
+ sequel (4.49.0)
90
+ transproc (1.1.1)
91
+ url_mount (0.2.1)
92
+ rack
93
+
94
+ PLATFORMS
95
+ ruby
96
+
97
+ DEPENDENCIES
98
+ bundler (~> 2.0)
99
+ hanami-controller (~> 1.0)
100
+ hanami-model (~> 1.0)
101
+ hanami-router (~> 1.0)
102
+ minitest (~> 5.0)
103
+ rake (~> 10.0)
104
+ rokku!
105
+
106
+ BUNDLED WITH
107
+ 2.0.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 Sebastjan Hribar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,86 @@
1
+ # Rokku
2
+
3
+ [![Join the chat at https://gitter.im/sebastjan-hribar/rokku](https://badges.gitter.im/sebastjan-hribar/rokku.svg)](https://gitter.im/sebastjan-hribar/rokku?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Gem Version](https://badge.fury.io/rb/rokku.svg)](https://badge.fury.io/rb/rokku) [![Build Status](https://travis-ci.org/sebastjan-hribar/rokku.svg?branch=master)](https://travis-ci.org/sebastjan-hribar/rokku)
4
+
5
+ Rokku (ロック - lock) offers authorization for [Hanami web applications](http://hanamirb.org/).
6
+
7
+ Authorization was setup as inspired by [this blog post](http://billpatrianakos.me/blog/2013/10/22/authorize-users-based-on-roles-and-permissions-without-a-gem/). It supports the generation of policy files for each controller where authorized roles are specified for each action.
8
+
9
+
10
+ ## Installation
11
+
12
+ Add this line to your application's Gemfile:
13
+
14
+ ```ruby
15
+ gem 'rokku'
16
+ ```
17
+
18
+ And then execute:
19
+
20
+ $ bundle
21
+
22
+ Or install it yourself as:
23
+
24
+ $ gem install rokku
25
+
26
+
27
+ Rokku is already setup to be included by your Hanami application:
28
+
29
+ ```ruby
30
+ ::Hanami::Controller.configure do
31
+ prepare do
32
+ include Hanami::Rokku
33
+ end
34
+ end
35
+ ```
36
+
37
+ ## Usage
38
+
39
+ ```ruby
40
+ rokku -n mightyPoster -p post
41
+ ```
42
+ The above CLI command will generate a policy file for the application mightyPoster (not the project) and the controller post. The file will be generated as `myProject/lib/mightyPoster/policies/PostPolicy.rb`
43
+
44
+ Each application will have its own `app/policies` folders.
45
+
46
+ **The command must be run in the project root folder.**
47
+
48
+ Once the file is generated, the authorized roles variables in the initialize block for required actions need to be uncommented and supplied with specific roles.
49
+
50
+ Then we can check if a user is authorized:
51
+
52
+ ```ruby
53
+ authorized?(controller, role, action)
54
+ ```
55
+
56
+
57
+ ### ToDo
58
+
59
+ - Add support for author/owner authorizations.
60
+ - Add generators for adding authorization rules to existing policies.
61
+
62
+
63
+ ### Changelog
64
+
65
+ #### 0.5.0
66
+
67
+ Move from Tachiban
68
+
69
+
70
+ ## Development
71
+
72
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
73
+
74
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
75
+
76
+ ## Contributing
77
+
78
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sebastjan-hribar/rokku. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
79
+
80
+ ## License
81
+
82
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
83
+
84
+ ## Code of Conduct
85
+
86
+ Everyone interacting in the Rokku project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/sebastjan-hribar/rokku/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rokku"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,25 @@
1
+ require 'rokku/version'
2
+ require 'hanami/controller'
3
+
4
+ module Hanami
5
+ module Rokku
6
+ private
7
+
8
+ # ### Authorization ###
9
+ # The authorized? method checks if the specified user has the required role
10
+ # and permission to access the action. It returns true or false and
11
+ # provides the basis for further actions in either case.
12
+ #
13
+ # Example: redirect_to "/" unless authorized?("PostController", "admin", "create")
14
+
15
+ def authorized?(controller, role, action)
16
+ Object.const_get(controller.downcase.capitalize + "Policy").new(role).send("#{action.downcase}?")
17
+ end
18
+ end
19
+ end
20
+
21
+ ::Hanami::Controller.configure do
22
+ prepare do
23
+ include Hanami::Rokku
24
+ end
25
+ end
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env ruby
2
+ require 'optparse'
3
+ require_relative "../policy_generator/policy_generator.rb"
4
+
5
+ options = {}
6
+ optparse = OptionParser.new do |opts|
7
+ opts.banner = "\nHanami authorization policy generator
8
+ Usage: rokku -n myapp -p user
9
+ Flags:
10
+ \n"
11
+
12
+ opts.on("-n", "--app_name APP", "Specify the application name for the policy") do |app_name|
13
+ options[:app_name] = app_name
14
+ end
15
+
16
+ opts.on("-p", "--policy POLICY", "Specify the policy name") do |policy|
17
+ options[:policy] = policy
18
+ end
19
+
20
+ opts.on("-h", "--help", "Displays help") do
21
+ puts opts
22
+ exit
23
+ end
24
+ end
25
+
26
+ begin
27
+ optparse.parse!
28
+ puts "Add flag -h or --help to see usage instructions." if options.empty?
29
+ mandatory = [:app_name, :policy]
30
+ missing = mandatory.select{ |arg| options[arg].nil? }
31
+ unless missing.empty?
32
+ raise OptionParser::MissingArgument.new(missing.join(', '))
33
+ end
34
+ rescue OptionParser::InvalidOption, OptionParser::MissingArgument
35
+ puts $!.to_s
36
+ puts optparse
37
+ exit
38
+ end
39
+
40
+ puts "Performing task with options: #{options.inspect}"
41
+ generate_policy("#{options[:app_name]}", "#{options[:policy]}") if options[:policy]
@@ -0,0 +1,62 @@
1
+ require 'fileutils'
2
+
3
+ require 'hanami/controller'
4
+ require 'hanami/action/session'
5
+
6
+ module Hanami
7
+ module Rokku
8
+ private
9
+ # The generate_policy method creates the policy file for specified
10
+ # application and controller. By default all actions to check against
11
+ # are commented out.
12
+ # Uncomment the needed actions and define appropriate user role.
13
+
14
+ def generate_policy(app_name, controller_name)
15
+ app_name = app_name
16
+ controller = controller_name.downcase.capitalize
17
+ policy_txt = <<-TXT
18
+ class #{controller}Policy
19
+ def initialize(role)
20
+ @user_role = role
21
+ # Uncomment the required roles and add the
22
+ # appropriate user role to the @authorized_roles* array.
23
+ # @authorized_roles_for_new = []
24
+ # @authorized_roles_for_create = []
25
+ # @authorized_roles_for_show = []
26
+ # @authorized_roles_for_index = []
27
+ # @authorized_roles_for_edit = []
28
+ # @authorized_roles_for_update = []
29
+ # @authorized_roles_for_destroy = []
30
+ end
31
+ def new?
32
+ @authorized_roles_for_new.include? @user_role
33
+ end
34
+ def create?
35
+ @authorized_roles_for_create.include? @user_role
36
+ end
37
+ def show?
38
+ @authorized_roles_for_show.include? @user_role
39
+ end
40
+ def index?
41
+ @authorized_roles_for_index.include? @user_role
42
+ end
43
+ def edit?
44
+ @authorized_roles_for_edit.include? @user_role
45
+ end
46
+ def update?
47
+ @authorized_roles_for_update.include? @user_role
48
+ end
49
+ def destroy?
50
+ @authorized_roles_for_destroy.include? @user_role
51
+ end
52
+ end
53
+ TXT
54
+
55
+ FileUtils.mkdir_p "lib/#{app_name}/policies" unless File.directory?("lib/#{app_name}/policies")
56
+ unless File.file?("lib/#{app_name}/policies/#{controller}Policy.rb")
57
+ File.open("lib/#{app_name}/policies/#{controller}Policy.rb", 'w') { |file| file.write(policy_txt) }
58
+ end
59
+ puts("Generated policy: lib/#{app_name}/policies/#{controller}Policy.rb") if File.file?("lib/#{app_name}/policies/#{controller}Policy.rb")
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,3 @@
1
+ module Rokku
2
+ VERSION = "0.5.0"
3
+ end
@@ -0,0 +1,36 @@
1
+ lib = File.expand_path("lib", __dir__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require "rokku/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "rokku"
7
+ spec.version = Rokku::VERSION
8
+ spec.authors = ["Sebastjan Hribar"]
9
+ spec.email = ["sebastjan.hribar@gmail.com"]
10
+
11
+ spec.summary = %q{Rokku is a small authorization library for Hanami projects.}
12
+ spec.homepage = "https://github.com/sebastjan-hribar/rokku"
13
+ spec.license = "MIT"
14
+
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+
18
+ # Specify which files should be added to the gem when it is released.
19
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ end
23
+ spec.bindir = "exe"
24
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.require_paths = ["lib"]
26
+
27
+ spec.add_development_dependency "bundler", "~> 2.0"
28
+ spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "minitest", "~> 5.0"
30
+ spec.add_development_dependency 'hanami-model', '~> 1.0'
31
+ spec.add_development_dependency 'hanami-controller', "~> 1.0"
32
+ spec.add_development_dependency 'hanami-router', "~> 1.0"
33
+
34
+ spec.add_runtime_dependency 'hanami-controller', "~> 1.0"
35
+ spec.add_runtime_dependency 'hanami-router', "~> 1.0"
36
+ end
metadata ADDED
@@ -0,0 +1,172 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rokku
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.0
5
+ platform: ruby
6
+ authors:
7
+ - Sebastjan Hribar
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-11-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: minitest
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: hanami-model
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: hanami-controller
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: hanami-router
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: hanami-controller
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: hanami-router
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.0'
125
+ description:
126
+ email:
127
+ - sebastjan.hribar@gmail.com
128
+ executables: []
129
+ extensions: []
130
+ extra_rdoc_files: []
131
+ files:
132
+ - ".gitignore"
133
+ - ".travis.yml"
134
+ - CODE_OF_CONDUCT.md
135
+ - Gemfile
136
+ - Gemfile.lock
137
+ - LICENSE.txt
138
+ - README.md
139
+ - Rakefile
140
+ - bin/console
141
+ - bin/setup
142
+ - lib/rokku.rb
143
+ - lib/rokku/commands/commands.rb
144
+ - lib/rokku/policy_generator/policy_generator.rb
145
+ - lib/rokku/version.rb
146
+ - rokku.gemspec
147
+ homepage: https://github.com/sebastjan-hribar/rokku
148
+ licenses:
149
+ - MIT
150
+ metadata:
151
+ homepage_uri: https://github.com/sebastjan-hribar/rokku
152
+ post_install_message:
153
+ rdoc_options: []
154
+ require_paths:
155
+ - lib
156
+ required_ruby_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ requirements: []
167
+ rubyforge_project:
168
+ rubygems_version: 2.7.7
169
+ signing_key:
170
+ specification_version: 4
171
+ summary: Rokku is a small authorization library for Hanami projects.
172
+ test_files: []