sixarm_ruby_password_attribute
SixArm.com » Ruby » PasswordAttribute module to add BCrypt to an ActiveRecord model
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.6%) to scientific vocabulary
Keywords
Keywords from Contributors
Repository
SixArm.com » Ruby » PasswordAttribute module to add BCrypt to an ActiveRecord model
Basic Info
- Host: GitHub
- Owner: SixArm
- License: other
- Language: Ruby
- Default Branch: main
- Homepage: http://sixarm.com
- Size: 316 KB
Statistics
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
SixArm.com » Ruby » PasswordAttribute module to add strong passwords to ActiveRecord
- Git: https://github.com/SixArm/sixarm_ruby_password_attribute
- Doc: http://sixarm.com/sixarm_ruby_password_attribute/doc
- Gem: https://rubygems.org/gems/sixarm_ruby_password_attribute
- Contact: Joel Parker Henderson, joel@sixarm.com
- Project: changes, license, contributing.
Introduction
Easy way to add BCrypt strong password capability to an ActiveRecord model.
This is typically useful to add to a Ruby On Rails ActiveRecord user model.
For docs go to http://sixarm.com/sixarm_ruby_password_attribute/doc
Want to help? We're happy to get pull requests.
Install
Gem
To install this gem in your shell or terminal:
gem install sixarm_ruby_password_attribute
Gemfile
To add this gem to your Gemfile:
gem 'sixarm_ruby_password_attribute'
Require
To require the gem in your code:
require 'sixarm_ruby_password_attribute'
Examples
Include:
require 'sixarm_ruby_password_attribute'
class User
include PasswordAttribute
end
Create new user:
user=User.new
user.password='secret' # automatically converts plain text to bcrypt
user.save
Is a user's password valid?
if user.password=='secret'
# password is valid
else
# password is invalid
end
u.password='secret'
=> user's password is now secret
u.password=='secret'
=> true
u.password=='xxx'
=> false
Owner
- Name: SixArm
- Login: SixArm
- Kind: organization
- Email: sixarm@sixarm.com
- Location: San Francisco
- Website: http://sixarm.com
- Twitter: sixarm
- Repositories: 580
- Profile: https://github.com/SixArm
SixArm Software
Citation (CITATION.cff)
cff-version: 1.2.0
title: SixArm.com » Ruby » PasswordAttribute module to add strong passwords to ActiveRecord
message: >-
If you use this work and you want to cite it,
then you can use the metadata from this file.
type: software
authors:
- given-names: Joel Parker
family-names: Henderson
email: joel@joelparkerhenderson.com
affiliation: joelparkerhenderson.com
orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
- type: url
value: 'https://github.com/SixArm/sixarm_ruby_password_attribute/'
description: SixArm.com » Ruby » PasswordAttribute module to add strong passwords to ActiveRecord
repository-code: 'https://github.com/SixArm/sixarm_ruby_password_attribute/'
abstract: >-
SixArm.com » Ruby » PasswordAttribute module to add strong passwords to ActiveRecord
license: See license file
GitHub Events
Total
- Push event: 1
Last Year
- Push event: 1
Committers
Last synced: 11 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Joel Parker Henderson | j****l@j****m | 94 |
| Joel Parker Henderson | j****l@s****m | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
- bcrypt 3.1.18
- bcrypt-ruby 3.1.5
- bundler 2.3.26
- docile 1.4.0
- minitest 5.18.0
- rake 12.3.3
- simplecov 0.22.0
- simplecov-html 0.12.3
- simplecov_json_formatter 0.1.4
- sixarm_ruby_active_record_mock 1.4.6
- sixarm_ruby_minitest_extensions 1.1.1
- sixarm_ruby_password_attribute 1.6.1
- minitest >= 5.12, < 6 development
- rake >= 12.3.3, < 13 development
- simplecov >= 0.18.0, < 2 development
- sixarm_ruby_minitest_extensions >= 1.0.8, < 2 development
- bcrypt-ruby >= 3.1.5, < 4
- sixarm_ruby_active_record_mock >= 1.4.4, < 2
