tachiban 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 664c75489c53111c15f0624f918846a6e64c837e
4
+ data.tar.gz: 82a5a8531f61133be195b32f7c0c431baf0c8d79
5
+ SHA512:
6
+ metadata.gz: dbb45889b53b0a7745f3cc42c5f41c270741369fcad73c957366859485f59313be4ffd7b2d2dc1064b30a6317a394a444c0b3fd8966979fbe47d3a4aa527df5a
7
+ data.tar.gz: b605d49a0f8c94f2a8878095ea9a0319d782e1b174706a02f58da294f69e7d3eff393708b55eab09f69c6e3c8de874d77e74053f4b5697ae734fc723a55a3aaf
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,4 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ before_install: gem install bundler -v 1.11.2
@@ -0,0 +1,49 @@
1
+ # Contributor Code of Conduct
2
+
3
+ As contributors and maintainers of this project, and in the interest of
4
+ fostering an open and welcoming community, we pledge to respect all people who
5
+ contribute through reporting issues, posting feature requests, updating
6
+ documentation, submitting pull requests or patches, and other activities.
7
+
8
+ We are committed to making participation in this project a harassment-free
9
+ experience for everyone, regardless of level of experience, gender, gender
10
+ identity and expression, sexual orientation, disability, personal appearance,
11
+ body size, race, ethnicity, age, religion, or nationality.
12
+
13
+ Examples of unacceptable behavior by participants include:
14
+
15
+ * The use of sexualized language or imagery
16
+ * Personal attacks
17
+ * Trolling or insulting/derogatory comments
18
+ * Public or private harassment
19
+ * Publishing other's private information, such as physical or electronic
20
+ addresses, without explicit permission
21
+ * Other unethical or unprofessional conduct
22
+
23
+ Project maintainers have the right and responsibility to remove, edit, or
24
+ reject comments, commits, code, wiki edits, issues, and other contributions
25
+ that are not aligned to this Code of Conduct, or to ban temporarily or
26
+ permanently any contributor for other behaviors that they deem inappropriate,
27
+ threatening, offensive, or harmful.
28
+
29
+ By adopting this Code of Conduct, project maintainers commit themselves to
30
+ fairly and consistently applying these principles to every aspect of managing
31
+ this project. Project maintainers who do not follow or enforce the Code of
32
+ Conduct may be permanently removed from the project team.
33
+
34
+ This code of conduct applies both within project spaces and in public spaces
35
+ when an individual is representing the project or its community.
36
+
37
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
38
+ reported by contacting a project maintainer at sebastjan.hribar@gmail.com. All
39
+ complaints will be reviewed and investigated and will result in a response that
40
+ is deemed necessary and appropriate to the circumstances. Maintainers are
41
+ obligated to maintain confidentiality with regard to the reporter of an
42
+ incident.
43
+
44
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
45
+ version 1.3.0, available at
46
+ [http://contributor-covenant.org/version/1/3/0/][version]
47
+
48
+ [homepage]: http://contributor-covenant.org
49
+ [version]: http://contributor-covenant.org/version/1/3/0/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in tachiban.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 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.
data/README.md ADDED
@@ -0,0 +1,158 @@
1
+ # Tachiban
2
+
3
+ [![Join the chat at https://gitter.im/sebastjan-hribar/tachiban](https://badges.gitter.im/sebastjan-hribar/tachiban.svg)](https://gitter.im/sebastjan-hribar/tachiban?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
+
5
+ Tachiban (立ち番 - standing watch) provides simple authentication system for [Hanami web applications](http://hanamirb.org/) by using bcrypt for password hashing and
6
+ offers the following functionalities (with methods listed below
7
+ under Methods by features):
8
+ - Signup
9
+ - Login
10
+ - Authentication
11
+ - Session handling
12
+
13
+ The Tachiban logic and code were extracted from a Hanami based web app using
14
+ Hanami::Model and was also used in a Camping based web app using Active Record.
15
+
16
+
17
+ ## Installation
18
+
19
+ Add this line to your application's Gemfile:
20
+
21
+ ```ruby
22
+ gem 'tachiban'
23
+ ```
24
+
25
+ And then execute:
26
+
27
+ $ bundle
28
+
29
+ Or install it yourself as:
30
+
31
+ $ gem install tachiban
32
+
33
+ Tachiban is already setup to be included by your Hanami application:
34
+
35
+ ```ruby
36
+ ::Hanami::Controller.configure do
37
+ prepare do
38
+ include Hanami::Tachiban
39
+ end
40
+ end
41
+ ```
42
+
43
+ ## Usage
44
+
45
+ #### Prerequisites
46
+ The entity for which authentication is used must have the
47
+ attribute `hashed_pass` to hold the generated hashed password.
48
+
49
+ Prior to authenticating or logging in the user, retrieve them from the database and assign them to the instance variable of `@user`.
50
+
51
+
52
+ #### Usage by features
53
+
54
+ ###### Signup
55
+ To create a user with a hashed password use the `hashed_password(password)` method for the password and store it as the user's attribute `hashed_pass`.
56
+
57
+ *Example*
58
+
59
+ ```ruby
60
+ # Create action for an entity
61
+ def call(params)
62
+ password = params[:newuser][:password]
63
+ hashed_pass = hashed_password(password)
64
+ repository = UserRepository.new
65
+
66
+ @user = repository.create(name: name, surname: surname, email: email,
67
+ hashed_pass: hashed_pass))
68
+ end
69
+ ```
70
+
71
+ ###### Login
72
+ To authenticate a user use the `authenticated?(input_password)` method and log them in with the `login` method. Authentication is successful if the user exists and passwords match.
73
+
74
+ The user is logged in by setting the user object as the `session[:current_user]`. After the user is logged in the session start time is defined as `session[:session_start_time] = Time.now`. A flash message is also assigned as `flash[:success_notice] = flash_message`.
75
+
76
+ The `session[:session_start_time]` is then used by the `session_expired?` method to determine whether the session has expired or not.
77
+
78
+ *Example*
79
+
80
+ ```ruby
81
+ # Create action for an entity session
82
+ email = params[:entity_session][:email]
83
+ password = params[:entity_session][:password]
84
+
85
+ @user = EntityRepository.new.find_by_email(email)
86
+ login("You have been successfully logged in.") if authenticated?(password)
87
+ ```
88
+
89
+
90
+ ###### Authentication
91
+ To check whether the user is logged in use the `check_for_logged_in_user
92
+ ` method.
93
+
94
+
95
+ ###### Session handling
96
+ Tachiban handles session expiration by checking if a session has
97
+ expired and then restarts the session start time if the session
98
+ is still valid or proceeds with the following if the session
99
+ has expired:
100
+
101
+ - setting the `session[:current_user]` to `nil`
102
+ - a flash message is set: `flash[:failed_notice] = "Your session has expired"`
103
+ - redirects to the `routes.root_path` which can be overwritten by assigning
104
+ a different url to @redirect_url
105
+
106
+
107
+ The `session_expired?` method compares the session start time
108
+ increased for the defined `@validity_time` (set to 10 minutes
109
+ by default, but can be overwritten) with the current time.
110
+
111
+ `handle_session` method:
112
+ ```ruby
113
+ def handle_session
114
+ if session_expired?
115
+ @redirect_url ||= routes.root_path
116
+ session[:current_user] = nil
117
+ flash[:failed_notice] = "Your session has expired"
118
+ redirect_to @redirect_url
119
+ else
120
+ restart_session_counter
121
+ end
122
+ end
123
+ ```
124
+
125
+ *Example of session handling in a share code module*
126
+
127
+ ```ruby
128
+ module Web
129
+ module HandleSession
130
+
131
+ def self.included(action)
132
+ action.class_eval do
133
+ before :handle_session
134
+ end
135
+ end
136
+
137
+ end
138
+ end
139
+ ```
140
+
141
+ ### ToDo
142
+ 1. Add support for password reset and update.
143
+ 2. Add support for level based authorizations.
144
+
145
+ <!-- ## Development
146
+
147
+ 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.
148
+
149
+ 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). -->
150
+
151
+ ## Contributing
152
+
153
+ Bug reports and pull requests are welcome on GitHub at https://github.com/sebastjan-hribar/tachiban. 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.
154
+
155
+
156
+ ## License
157
+
158
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,13 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+ require "hanami/controller"
4
+ require 'hanami/action/session'
5
+
6
+ Rake::TestTask.new(:test) do |t|
7
+ t.libs << "test"
8
+ t.libs << "lib"
9
+ t.test_files = FileList['test/**/*_test.rb']
10
+ t.warning = false
11
+ end
12
+
13
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "tachiban"
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
data/bin/setup ADDED
@@ -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
data/lib/tachiban.rb ADDED
@@ -0,0 +1,126 @@
1
+ require 'tachiban/version'
2
+ require 'bcrypt'
3
+ require 'hanami/controller'
4
+ require 'hanami/action/session'
5
+
6
+ module Hanami
7
+ module Tachiban
8
+
9
+ private
10
+
11
+ # ### Signup ###
12
+
13
+ # The hashed_password method generates a hashed version of the user's
14
+ # password. By default it includes a salt and the default cost factor
15
+ # of 10 provided by BCrypt. Hashed password should be stored in the database
16
+ # as a user's attribute so it can be retrieved during the login process.
17
+
18
+ def hashed_password(password)
19
+ BCrypt::Password.create(password)
20
+ end
21
+
22
+
23
+ # ### Login ###
24
+
25
+ # The authenticated? method returns true if the the following criteria
26
+ # are true:
27
+ # - a user exists
28
+ # - a user's hashed password from the database matches the input password
29
+
30
+ def authenticated?(input_pass)
31
+ @user && BCrypt::Password.new(@user.hashed_pass) == input_pass
32
+ end
33
+
34
+
35
+ # The login method can be used in combination with the authenticated? method to
36
+ # log the user in if the authenticated? method returns true. The user is
37
+ # logged in by setting the user object as the session[:current_user].
38
+ # After the user is logged in the session start time is defined, which is then used
39
+ # by the session_expired? method to determine whether the session has
40
+ # expired or not.
41
+
42
+ # Example:
43
+ # login if authenticated?(input_pass)
44
+
45
+ def login(flash_message)
46
+ session[:current_user] = @user
47
+ session[:session_start_time] = Time.now
48
+ flash[:success_notice] = flash_message
49
+ end
50
+
51
+
52
+ # The logout method sets the current user in the session to nil
53
+ # and performs a redirect to the @redirect_to which is set to
54
+ # routes.root_path and can be overwritten as needed with a specific url.
55
+
56
+ def logout
57
+ session[:current_user] = nil
58
+ @redirect_url ||= routes.root_path
59
+ redirect_to @redirect_url
60
+ end
61
+
62
+
63
+ # ### Authentication ###
64
+
65
+ # The check_for_logged_in_user method can be used to check for each
66
+ # request whether the user is logged in. If the user is not logged in
67
+ # the logout method takes over.
68
+
69
+ def check_for_logged_in_user
70
+ logout unless session[:current_user]
71
+ end
72
+
73
+
74
+ # ### Session handling ###
75
+
76
+ # Session handling includes methods session_expired?,
77
+ # restart_session_counter and handle session.
78
+
79
+ # The session_expired? method compares the session start time
80
+ # increased for the defined validity time (set to 10 minutes
81
+ # by default and can be overwritten) with the current time.
82
+
83
+ def session_expired?
84
+ if session[:current_user]
85
+ @validity_time ||= 600
86
+ session[:session_start_time] + @validity_time.to_i < Time.now
87
+ end
88
+ end
89
+
90
+
91
+ # The restart_session_counter method resets the session start time to
92
+ # Time.now. It's used in the handle session method.
93
+
94
+ def restart_session_counter
95
+ session[:session_start_time] = Time.now
96
+ end
97
+
98
+
99
+ # The handle_session method is used to handle the incoming requests
100
+ # based on the the session expiration. If the session has expired the
101
+ # session user is set to nil, a flash message of "Your session has expired"
102
+ # is provided and a redirect to a default url of routes.root_path
103
+ # is triggered.
104
+
105
+ # If the session hasn't expired the restart_session_counter method is
106
+ # called to reset the session start time.
107
+
108
+ def handle_session
109
+ if session_expired?
110
+ @redirect_url ||= routes.root_path
111
+ session[:current_user] = nil
112
+ flash[:failed_notice] = "Your session has expired"
113
+ redirect_to @redirect_url
114
+ else
115
+ restart_session_counter
116
+ end
117
+ end
118
+
119
+ end
120
+ end
121
+
122
+ ::Hanami::Controller.configure do
123
+ prepare do
124
+ include Hanami::Tachiban
125
+ end
126
+ end
@@ -0,0 +1,3 @@
1
+ module Tachiban
2
+ VERSION = "0.3.0"
3
+ end
data/tachiban.gemspec ADDED
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'tachiban/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "tachiban"
8
+ spec.version = Tachiban::VERSION
9
+ spec.authors = ["Sebastjan Hribar"]
10
+ spec.email = ["sebastjan.hribar@gmail.com"]
11
+
12
+ spec.summary = %q{Tachiban provides simple password hashing for user authentication with bcrypt for Hanami web applications.}
13
+ spec.homepage = "https://github.com/sebastjan-hribar/tachiban"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.11"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "minitest", "~> 5.0"
24
+ spec.add_development_dependency "hanami-model", "~> 1.0"
25
+ spec.add_development_dependency "timecop", "0.8.1"
26
+ spec.add_development_dependency 'hanami-controller', "~> 1.0"
27
+ spec.add_development_dependency 'hanami-router'
28
+ spec.add_development_dependency 'pry'
29
+
30
+ spec.add_runtime_dependency "bcrypt", "~> 3.1"
31
+ spec.add_runtime_dependency 'hanami-controller', "~> 1.0"
32
+ spec.add_runtime_dependency 'hanami-router'
33
+ end
metadata ADDED
@@ -0,0 +1,211 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tachiban
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - Sebastjan Hribar
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-04-26 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: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
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: timecop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: 0.8.1
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: 0.8.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: hanami-controller
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-router
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: pry
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: bcrypt
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '3.1'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '3.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: hanami-controller
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: hanami-router
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ description:
168
+ email:
169
+ - sebastjan.hribar@gmail.com
170
+ executables: []
171
+ extensions: []
172
+ extra_rdoc_files: []
173
+ files:
174
+ - ".gitignore"
175
+ - ".travis.yml"
176
+ - CODE_OF_CONDUCT.md
177
+ - Gemfile
178
+ - LICENSE.txt
179
+ - README.md
180
+ - Rakefile
181
+ - bin/console
182
+ - bin/setup
183
+ - lib/tachiban.rb
184
+ - lib/tachiban/version.rb
185
+ - tachiban.gemspec
186
+ homepage: https://github.com/sebastjan-hribar/tachiban
187
+ licenses:
188
+ - MIT
189
+ metadata: {}
190
+ post_install_message:
191
+ rdoc_options: []
192
+ require_paths:
193
+ - lib
194
+ required_ruby_version: !ruby/object:Gem::Requirement
195
+ requirements:
196
+ - - ">="
197
+ - !ruby/object:Gem::Version
198
+ version: '0'
199
+ required_rubygems_version: !ruby/object:Gem::Requirement
200
+ requirements:
201
+ - - ">="
202
+ - !ruby/object:Gem::Version
203
+ version: '0'
204
+ requirements: []
205
+ rubyforge_project:
206
+ rubygems_version: 2.5.2
207
+ signing_key:
208
+ specification_version: 4
209
+ summary: Tachiban provides simple password hashing for user authentication with bcrypt
210
+ for Hanami web applications.
211
+ test_files: []