profanity-filter 0.1.2

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1c78c899f8f1da711b4cca3613a07adba89df1d7c65344ccbb6fe8f870e08ee2
4
+ data.tar.gz: 054ce0c2c328f6168aec1d67f87b18e2b06188a27848caf4fb2e555a1ddc3e72
5
+ SHA512:
6
+ metadata.gz: cb09a69cf5cbecca79893b1f0143b722b039069cca945f678a1d92fff6a01f0c7a7b1c2760a480eba62a6c1c7f470f59636d5b063587d70bdbfb56096a44e729
7
+ data.tar.gz: 7c816d8f0efd42d33fb36aa9195f8a4b4948eb545a78d824d8d17cee592687c180a73c1a026a3c6053630915c556d179c4b9d7b54ffe1e079cde734d2226de89
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /.idea/
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.5.5
7
+ before_install: gem install bundler -v 2.0.2
File without changes
@@ -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 jinghua.shih@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 profanity_filter.gemspec
4
+ gemspec
@@ -0,0 +1,34 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ profanity-filter (0.1.1)
5
+ webpurify
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ coderay (1.1.2)
11
+ json (2.2.0)
12
+ method_source (0.9.2)
13
+ minitest (5.11.3)
14
+ pry (0.12.2)
15
+ coderay (~> 1.1.0)
16
+ method_source (~> 0.9.0)
17
+ rake (10.5.0)
18
+ rr (1.2.1)
19
+ webpurify (1.0.1)
20
+ json
21
+
22
+ PLATFORMS
23
+ ruby
24
+
25
+ DEPENDENCIES
26
+ bundler (~> 2.0)
27
+ minitest (~> 5.0)
28
+ profanity-filter!
29
+ pry (~> 0.12.2)
30
+ rake (~> 10.0)
31
+ rr
32
+
33
+ BUNDLED WITH
34
+ 2.0.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 jennyshih
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,54 @@
1
+ # ProfanityFilter
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/profanity-filter`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'profanity-filter'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install profanity-filter
22
+
23
+ ## Usage
24
+
25
+ ```ruby
26
+ # without WebPurify
27
+ pf = ProfanityFilter.new
28
+ # with WebPurify
29
+ pf = ProfanityFilter.new(webpurify_api_key: [YOUR-API-KEY])
30
+
31
+ pf.profane? ('ssssshit')
32
+ # => true
33
+
34
+ pf.profanity_count('fjsdio fdsk fU_cK_THIS_shI_T')
35
+ # => 2
36
+ ```
37
+
38
+ ## Development
39
+
40
+ 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.
41
+
42
+ 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).
43
+
44
+ ## Contributing
45
+
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/cardinalblue/profanity-filter. 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.
47
+
48
+ ## License
49
+
50
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
51
+
52
+ ## Code of Conduct
53
+
54
+ Everyone interacting in the ProfanityFilter project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/profanity_filter/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,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "profanity_filter"
5
+
6
+ require "pry"
7
+ Pry.start
@@ -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,166 @@
1
+ - asshole
2
+ - assholes
3
+ - adultvideo
4
+ - badmotherfucker
5
+ - bastard
6
+ - bdsm
7
+ - beastial
8
+ - beastiality
9
+ - beastility
10
+ - bestial
11
+ - bestiality
12
+ - bitch
13
+ - bitcher
14
+ - bitchers
15
+ - bitches
16
+ - bitchin
17
+ - bitching
18
+ - blowjob
19
+ - blowjobs
20
+ - bullshit
21
+ - clit
22
+ - cocksuck
23
+ - cocksucked
24
+ - cocksucker
25
+ - cocksucking
26
+ - cocksucks
27
+ - cummer
28
+ - cumming
29
+ - cumshot
30
+ - cunillingus
31
+ - cunnilingus
32
+ - cunt
33
+ - cuntlick
34
+ - cuntlicker
35
+ - cuntlicking
36
+ - cyberfuc
37
+ - cyberfuck
38
+ - cyberfucked
39
+ - cyberfucker
40
+ - cyberfuckers
41
+ - cyberfucking
42
+ - dildo
43
+ - dildos
44
+ - ejaculate
45
+ - ejaculated
46
+ - ejaculates
47
+ - ejaculating
48
+ - ejaculatings
49
+ - ejaculation
50
+ - fag
51
+ - fagging
52
+ - faggot
53
+ - fagots
54
+ - farted
55
+ - farting
56
+ - fartings
57
+ - felatio
58
+ - fellatio
59
+ - fingerfuck
60
+ - fingerfucked
61
+ - fingerfucker
62
+ - fingerfuckers
63
+ - fingerfucking
64
+ - fingerfucks
65
+ - fistfuck
66
+ - fistfucked
67
+ - fistfucker
68
+ - fistfuckers
69
+ - fistfucking
70
+ - fistfuckings
71
+ - fistfucks
72
+ - fixation
73
+ - fuck
74
+ - fucked
75
+ - fucker
76
+ - fuckers
77
+ - fuckin
78
+ - fucking
79
+ - fuckings
80
+ - fuckme
81
+ - fuckpolitics
82
+ - gangbang
83
+ - gangbanged
84
+ - gangbangs
85
+ - gaysex
86
+ - goddamn
87
+ - hardcoresex
88
+ - horniest
89
+ - horny
90
+ - hotsex
91
+ - kondum
92
+ - kondums
93
+ - kummer
94
+ - kumming
95
+ - kunilingus
96
+ - lusting
97
+ - mothafuck
98
+ - mothafucka
99
+ - mothafuckas
100
+ - mothafuckaz
101
+ - mothafucked
102
+ - mothafucker
103
+ - mothafuckers
104
+ - mothafuckin
105
+ - mothafucking
106
+ - mothafuckings
107
+ - mothafucks
108
+ - motherfuck
109
+ - motherfucked
110
+ - motherfucker
111
+ - motherfuckers
112
+ - motherfuckin
113
+ - motherfucking
114
+ - motherfuckings
115
+ - motherfucks
116
+ - mutilation
117
+ - niger
118
+ - nigger
119
+ - niggers
120
+ - orgasim
121
+ - orgasims
122
+ - orgasm
123
+ - orgasms
124
+ - phonesex
125
+ - phuked
126
+ - phuking
127
+ - phukked
128
+ - phukking
129
+ - piss
130
+ - pisser
131
+ - pissed
132
+ - pissers
133
+ - pisses
134
+ - pissin
135
+ - pising
136
+ - pissing
137
+ - pissoff
138
+ - porn
139
+ - pornography
140
+ - pornos
141
+ - prick
142
+ - pricks
143
+ - pussies
144
+ - pusies
145
+ - pussy
146
+ - pusy
147
+ - pussys
148
+ - shit
149
+ - shited
150
+ - shitfull
151
+ - shiting
152
+ - shitings
153
+ - shitted
154
+ - shitter
155
+ - shitters
156
+ - shitting
157
+ - shittings
158
+ - shitty
159
+ - slut
160
+ - smut
161
+ - spunk
162
+ - submission
163
+ - twat
164
+ - vagina
165
+ - vegina
166
+ - vogina
@@ -0,0 +1,68 @@
1
+ - Asesinato
2
+ - asno
3
+ - bastardo
4
+ - Bollera
5
+ - Cabron
6
+ - Cabrón
7
+ - Caca
8
+ - Chupada
9
+ - Chupapollas
10
+ - Chupetón
11
+ - concha
12
+ - Concha de tu madre
13
+ - Coño
14
+ - Coprofagía
15
+ - Culo
16
+ - Drogas
17
+ - Esperma
18
+ - Fiesta de salchichas
19
+ - Follador
20
+ - Follar
21
+ - Gilipichis
22
+ - Gilipollas
23
+ - Hacer una paja
24
+ - Haciendo el amor
25
+ - Heroína
26
+ - Hija de puta
27
+ - Hijaputa
28
+ - Hijo de puta
29
+ - Hijoputa
30
+ - Idiota
31
+ - Imbécil
32
+ - infierno
33
+ - Jilipollas
34
+ - Kapullo
35
+ - Lameculos
36
+ - Maciza
37
+ - Macizorra
38
+ - maldito
39
+ - Mamada
40
+ - Marica
41
+ - Maricón
42
+ - Mariconazo
43
+ - martillo
44
+ - Mierda
45
+ - Nazi
46
+ - Orina
47
+ - Pedo
48
+ - Pervertido
49
+ - Pezón
50
+ - Pinche
51
+ - Pis
52
+ - Prostituta
53
+ - Puta
54
+ - Racista
55
+ - Ramera
56
+ - Sádico
57
+ - Semen
58
+ - Sexo
59
+ - Sexo oral
60
+ - Soplagaitas
61
+ - Soplapollas
62
+ - Tetas grandes
63
+ - Tía buena
64
+ - Travesti
65
+ - Trio
66
+ - Verga
67
+ - vete a la mierda
68
+ - Vulva