prohibited-usernames 0.1.1
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 +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +56 -0
- data/LICENSE +45 -0
- data/README.md +105 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/prohibited/prohibited_validator.rb +10 -0
- data/lib/prohibited/usernames.rb +73 -0
- data/lib/prohibited/version.rb +3 -0
- data/prohibited-usernames.gemspec +29 -0
- metadata +64 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dd5471578c9c45a21204e961522593b39a715875dec26ea17cdfe20b7802f6b1
|
4
|
+
data.tar.gz: 762d9da337e4c6f9ee381b7dc3d57e14d13c0624d2d1f220f0cef70d342caaa2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 158bf1f36845d4d9be5b46dd808cd8a960ecde512a00a6dd474e58ba7b4d17f01f2cf30bf57501aa01cb568c4ac3b6a73b4da5dae77d9136aebf912872280d73
|
7
|
+
data.tar.gz: 1b10ede69df570a7e94feef13880bc4bbc2876c04d4b49dc9910b4ba3521d3d678694fa975244db8385d1e51611b236fb4f8fd006c30c36564c6c2f9c48090f6
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -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 hey@vito.io. 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 [https://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: https://contributor-covenant.org
|
74
|
+
[version]: https://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,56 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
prohibited-usernames (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
activemodel (5.0.7.2)
|
10
|
+
activesupport (= 5.0.7.2)
|
11
|
+
activerecord (5.0.7.2)
|
12
|
+
activemodel (= 5.0.7.2)
|
13
|
+
activesupport (= 5.0.7.2)
|
14
|
+
arel (~> 7.0)
|
15
|
+
activesupport (5.0.7.2)
|
16
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
17
|
+
i18n (>= 0.7, < 2)
|
18
|
+
minitest (~> 5.1)
|
19
|
+
tzinfo (~> 1.1)
|
20
|
+
arel (7.1.4)
|
21
|
+
concurrent-ruby (1.1.7)
|
22
|
+
diff-lcs (1.4.4)
|
23
|
+
i18n (1.8.5)
|
24
|
+
concurrent-ruby (~> 1.0)
|
25
|
+
minitest (5.14.2)
|
26
|
+
rake (12.3.3)
|
27
|
+
rspec (3.9.0)
|
28
|
+
rspec-core (~> 3.9.0)
|
29
|
+
rspec-expectations (~> 3.9.0)
|
30
|
+
rspec-mocks (~> 3.9.0)
|
31
|
+
rspec-core (3.9.3)
|
32
|
+
rspec-support (~> 3.9.3)
|
33
|
+
rspec-expectations (3.9.2)
|
34
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
+
rspec-support (~> 3.9.0)
|
36
|
+
rspec-mocks (3.9.1)
|
37
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
38
|
+
rspec-support (~> 3.9.0)
|
39
|
+
rspec-support (3.9.3)
|
40
|
+
sqlite3 (1.3.13)
|
41
|
+
thread_safe (0.3.6)
|
42
|
+
tzinfo (1.2.7)
|
43
|
+
thread_safe (~> 0.1)
|
44
|
+
|
45
|
+
PLATFORMS
|
46
|
+
ruby
|
47
|
+
|
48
|
+
DEPENDENCIES
|
49
|
+
activerecord (~> 5.0.0)
|
50
|
+
prohibited-usernames!
|
51
|
+
rake (~> 12.0)
|
52
|
+
rspec (~> 3.0)
|
53
|
+
sqlite3 (~> 1.3.6)
|
54
|
+
|
55
|
+
BUNDLED WITH
|
56
|
+
2.1.2
|
data/LICENSE
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2020 Vito Sartori
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
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, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
21
|
+
|
22
|
+
This software includes portions from github.com/shouldbee/reserved-usernames,
|
23
|
+
licensed under MIT:
|
24
|
+
|
25
|
+
The MIT License (MIT)
|
26
|
+
|
27
|
+
Copyright (c) 2014
|
28
|
+
|
29
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
30
|
+
of this software and associated documentation files (the "Software"), to deal
|
31
|
+
in the Software without restriction, including without limitation the rights
|
32
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
33
|
+
copies of the Software, and to permit persons to whom the Software is
|
34
|
+
furnished to do so, subject to the following conditions:
|
35
|
+
|
36
|
+
The above copyright notice and this permission notice shall be included in all
|
37
|
+
copies or substantial portions of the Software.
|
38
|
+
|
39
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
40
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
41
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
42
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
43
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
44
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
45
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
# ProhibitedUsernames
|
2
|
+
|
3
|
+
`ProhibitedUsernames` provides an extensive list of usernames that should not
|
4
|
+
be available for users to claim as theirs.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'prohibited-usernames'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle install
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install prohibited-usernames
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
This gem provides a basic list, and an `include?` method, allowing easy
|
25
|
+
integration. For instance, to use as a Rails validator:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
class User < ApplicationRecord
|
29
|
+
validates :username, prohibited: true
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
With a custom validator...
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
class User < ApplicationRecord
|
37
|
+
validates :username, exclusion: { in: ProhibitedUsernames::LIST },
|
38
|
+
message: "%{value} is reserved."
|
39
|
+
end
|
40
|
+
```
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
45
|
+
|
46
|
+
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).
|
47
|
+
|
48
|
+
## Contributing
|
49
|
+
|
50
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/heyvito/prohibited-usernames. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/heyvito/prohibited-usernames/blob/master/CODE_OF_CONDUCT.md).
|
51
|
+
|
52
|
+
|
53
|
+
## Code of Conduct
|
54
|
+
|
55
|
+
Everyone interacting in the Prohibited::Usernames project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/heyvito/prohibited-usernames/blob/master/CODE_OF_CONDUCT.md).
|
56
|
+
|
57
|
+
## LICENSE
|
58
|
+
|
59
|
+
```
|
60
|
+
The MIT License (MIT)
|
61
|
+
|
62
|
+
Copyright (c) 2020 Vito Sartori
|
63
|
+
|
64
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
65
|
+
this software and associated documentation files (the "Software"), to deal in
|
66
|
+
the Software without restriction, including without limitation the rights to
|
67
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
68
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
69
|
+
subject to the following conditions:
|
70
|
+
|
71
|
+
The above copyright notice and this permission notice shall be included in all
|
72
|
+
copies or substantial portions of the Software.
|
73
|
+
|
74
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
75
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
76
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
77
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
78
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
79
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
80
|
+
|
81
|
+
This software includes portions from github.com/shouldbee/reserved-usernames,
|
82
|
+
licensed under MIT:
|
83
|
+
|
84
|
+
The MIT License (MIT)
|
85
|
+
|
86
|
+
Copyright (c) 2014
|
87
|
+
|
88
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
89
|
+
of this software and associated documentation files (the "Software"), to deal
|
90
|
+
in the Software without restriction, including without limitation the rights
|
91
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
92
|
+
copies of the Software, and to permit persons to whom the Software is
|
93
|
+
furnished to do so, subject to the following conditions:
|
94
|
+
|
95
|
+
The above copyright notice and this permission notice shall be included in all
|
96
|
+
copies or substantial portions of the Software.
|
97
|
+
|
98
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
99
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
100
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
101
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
102
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
103
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
104
|
+
SOFTWARE.
|
105
|
+
```
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "prohibited/usernames"
|
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__)
|
data/bin/setup
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
if Gem::Specification::find_all_by_name('activerecord').any?
|
2
|
+
require 'active_model'
|
3
|
+
class ProhibitedValidator < ::ActiveModel::EachValidator
|
4
|
+
def validate_each(record, attribute, value)
|
5
|
+
if ProhibitedUsernames::include?(value)
|
6
|
+
record.errors[attribute] << (options[:message] || "#{value} is reserved")
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
require "prohibited/version"
|
2
|
+
|
3
|
+
module ProhibitedUsernames
|
4
|
+
LIST = %w(
|
5
|
+
0 about access account accounts activate activities activity ad add
|
6
|
+
address adm admin administration administrator ads adult advertising
|
7
|
+
affiliate affiliates ajax all alpha analysis analytics android anon
|
8
|
+
anonymous api app apps archive archives article asct asset atom auth
|
9
|
+
authentication avatar backup balancer-manager banner banners beta
|
10
|
+
billing bin blog blogs board book bookmark bot bots bug business
|
11
|
+
cache cadastro calendar call campaign cancel captcha career careers
|
12
|
+
cart categories category cgi cgi-bin changelog chat check checking
|
13
|
+
checkout client cliente clients code codereview comercial comment
|
14
|
+
comments communities community company compare compras config
|
15
|
+
configuration connect contact contact-us contact_us contactus
|
16
|
+
contest contribute corp create css dashboard data db default delete
|
17
|
+
demo design designer destroy dev devel developer developers diagram
|
18
|
+
diary dict dictionary die dir direct_messages directory dist doc docs
|
19
|
+
documentation domain download downloads ecommerce edit editor edu
|
20
|
+
education email employment empty end enterprise entries entry error
|
21
|
+
errors eval event exit explore facebook faq favorite favorites feature
|
22
|
+
features feed feedback feeds file files first flash fleet fleets flog
|
23
|
+
follow followers following forgot form forum forums founder free friend
|
24
|
+
friends ftp gadget gadgets game games get ghost gift gifts gist github
|
25
|
+
graph group groups guest guests help home homepage host hosting
|
26
|
+
hostmaster hostname howto hpg html http httpd https i iamges icon icons
|
27
|
+
id idea ideas image images imap img index indice info information
|
28
|
+
inquiry instagram intranet invitations invite ipad iphone irc is issue
|
29
|
+
issues it item items java javascript job jobs join js json jump
|
30
|
+
knowledgebase language languages last ldap-status legal license link
|
31
|
+
links linux list lists log log-in log-out log_in log_out login logout
|
32
|
+
logs m mac mail mail1 mail2 mail3 mail4 mail5 mailer mailing maintenance
|
33
|
+
manager manual map maps marketing master me media member members message
|
34
|
+
messages messenger microblog microblogs mine mis mob mobile movie movies
|
35
|
+
mp3 msg msn music musicas mx my mysql name named nan navi navigation net
|
36
|
+
network new news newsletter nick nickname notes noticias notification
|
37
|
+
notifications notify ns ns1 ns10 ns2 ns3 ns4 ns5 ns6 ns7 ns8 ns9 null
|
38
|
+
oauth oauth_clients offer offers official old online openid operator
|
39
|
+
order orders organization organizations overview owner owners page pager
|
40
|
+
pages panel password payment perl phone photo photoalbum photos php
|
41
|
+
phpmyadmin phppgadmin phpredisadmin pic pics ping plan plans plugin
|
42
|
+
plugins policy pop pop3 popular portal post postfix postmaster posts
|
43
|
+
pr premium press price pricing privacy privacy-policy privacy_policy
|
44
|
+
privacypolicy private product products profile project projects promo
|
45
|
+
pub public purpose put python query random ranking read readme recent
|
46
|
+
recruit recruitment register registration release remove replies report
|
47
|
+
reports repositories repository req request requests reset roc root
|
48
|
+
rss ruby rule sag sale sales sample samples save school script scripts
|
49
|
+
search secure security self send server server-info server-status
|
50
|
+
service services session sessions setting settings setup share shop
|
51
|
+
show sign-in sign-up sign_in sign_up signin signout signup site
|
52
|
+
sitemap sites smartphone smtp soporte source spec special sql src ssh
|
53
|
+
ssl ssladmin ssladministrator sslwebmaster staff stage staging start
|
54
|
+
stat state static stats status store stores stories style styleguide
|
55
|
+
stylesheet stylesheets subdomain subscribe subscriptions suporte
|
56
|
+
support svn swf sys sysadmin sysadministrator system tablet tablets
|
57
|
+
tag talk task tasks team teams tech telnet term terms terms-of-service
|
58
|
+
terms_of_service termsofservice test test1 test2 test3 teste testing
|
59
|
+
tests theme themes thread threads tmp todo tool tools top topic
|
60
|
+
topics tos tour translations trends tutorial tux tv twitter undef
|
61
|
+
unfollow unsubscribe update upload uploads url usage user username
|
62
|
+
users usuario vendas ver version video videos visitor watch weather
|
63
|
+
web webhook webhooks webmail webmaster website websites welcome
|
64
|
+
widget widgets wiki win windows word work works workshop ww wws www
|
65
|
+
www1 www2 www3 www4 www5 www6 www7 wwws wwww xfn xml xmpp xpg xxx yaml
|
66
|
+
year yml you yourdomain yourname yoursite yourusername)
|
67
|
+
|
68
|
+
def self.include?(val)
|
69
|
+
LIST.include?(val.downcase)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
require "prohibited/prohibited_validator"
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative 'lib/prohibited/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "prohibited-usernames"
|
5
|
+
spec.version = ProhibitedUsernames::VERSION
|
6
|
+
spec.authors = ["Vito Sartori"]
|
7
|
+
spec.email = ["hey@vito.io"]
|
8
|
+
spec.licenses = ['MIT']
|
9
|
+
|
10
|
+
spec.summary = %q{ProhibitedUsernames provides an extensive list of usernames not supposed to be available for users to use}
|
11
|
+
spec.description = %q{ProhibitedUsernames provides an extensive list of usernames not supposed to be available for users to use}
|
12
|
+
spec.homepage = "https://github.com/heyvito/prohibited-usernames"
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
14
|
+
|
15
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/heyvito/prohibited-usernames"
|
19
|
+
spec.metadata["changelog_uri"] = "https://github.com/heyvito/prohibited-usernames"
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: prohibited-usernames
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Vito Sartori
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-10-11 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: ProhibitedUsernames provides an extensive list of usernames not supposed
|
14
|
+
to be available for users to use
|
15
|
+
email:
|
16
|
+
- hey@vito.io
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- ".gitignore"
|
22
|
+
- ".rspec"
|
23
|
+
- ".travis.yml"
|
24
|
+
- CODE_OF_CONDUCT.md
|
25
|
+
- Gemfile
|
26
|
+
- Gemfile.lock
|
27
|
+
- LICENSE
|
28
|
+
- README.md
|
29
|
+
- Rakefile
|
30
|
+
- bin/console
|
31
|
+
- bin/setup
|
32
|
+
- lib/prohibited/prohibited_validator.rb
|
33
|
+
- lib/prohibited/usernames.rb
|
34
|
+
- lib/prohibited/version.rb
|
35
|
+
- prohibited-usernames.gemspec
|
36
|
+
homepage: https://github.com/heyvito/prohibited-usernames
|
37
|
+
licenses:
|
38
|
+
- MIT
|
39
|
+
metadata:
|
40
|
+
allowed_push_host: https://rubygems.org
|
41
|
+
homepage_uri: https://github.com/heyvito/prohibited-usernames
|
42
|
+
source_code_uri: https://github.com/heyvito/prohibited-usernames
|
43
|
+
changelog_uri: https://github.com/heyvito/prohibited-usernames
|
44
|
+
post_install_message:
|
45
|
+
rdoc_options: []
|
46
|
+
require_paths:
|
47
|
+
- lib
|
48
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 2.3.0
|
53
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: '0'
|
58
|
+
requirements: []
|
59
|
+
rubygems_version: 3.1.2
|
60
|
+
signing_key:
|
61
|
+
specification_version: 4
|
62
|
+
summary: ProhibitedUsernames provides an extensive list of usernames not supposed
|
63
|
+
to be available for users to use
|
64
|
+
test_files: []
|