washcloth 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.standard.yml +3 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +104 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/Rakefile +10 -0
- data/lib/washcloth/version.rb +5 -0
- data/lib/washcloth.rb +146 -0
- data/washcloth.gemspec +35 -0
- metadata +70 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2f1e2f66f3caf02c93d8c9a9396208294e2180f9b53c69cebb8de39160808786
|
4
|
+
data.tar.gz: 0761b52b3517c90d47afd06b37378dfc597730b92e5a323836484bdca61a8c77
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 331c0b9d2ab8eafe2d62086c413860cd7e0739df4556a2f3af93502828ecfa4221537eae677fdb5f27fb420dc4ec5424a88d5160141e35dd349ce9fcee02c992
|
7
|
+
data.tar.gz: 1647a5a54b80ebf03a9b25a0a9cec853230b5449f659f5f6de4422d342fbda35a9270f83462b6b9d5040178688b355c0a90110a2fd0db53959f8bdaccd2da0ed
|
data/.rspec
ADDED
data/.standard.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at joshua.clayton@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,104 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
washcloth (0.1.0)
|
5
|
+
activesupport (>= 7.0)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
activesupport (8.0.0)
|
11
|
+
base64
|
12
|
+
benchmark (>= 0.3)
|
13
|
+
bigdecimal
|
14
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
15
|
+
connection_pool (>= 2.2.5)
|
16
|
+
drb
|
17
|
+
i18n (>= 1.6, < 2)
|
18
|
+
logger (>= 1.4.2)
|
19
|
+
minitest (>= 5.1)
|
20
|
+
securerandom (>= 0.3)
|
21
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
22
|
+
uri (>= 0.13.1)
|
23
|
+
ast (2.4.2)
|
24
|
+
base64 (0.2.0)
|
25
|
+
benchmark (0.4.0)
|
26
|
+
bigdecimal (3.1.8)
|
27
|
+
concurrent-ruby (1.3.4)
|
28
|
+
connection_pool (2.4.1)
|
29
|
+
diff-lcs (1.5.1)
|
30
|
+
drb (2.2.1)
|
31
|
+
i18n (1.14.6)
|
32
|
+
concurrent-ruby (~> 1.0)
|
33
|
+
json (2.8.2)
|
34
|
+
language_server-protocol (3.17.0.3)
|
35
|
+
lint_roller (1.1.0)
|
36
|
+
logger (1.6.2)
|
37
|
+
minitest (5.25.2)
|
38
|
+
parallel (1.26.3)
|
39
|
+
parser (3.3.6.0)
|
40
|
+
ast (~> 2.4.1)
|
41
|
+
racc
|
42
|
+
racc (1.8.1)
|
43
|
+
rainbow (3.1.1)
|
44
|
+
rake (13.2.1)
|
45
|
+
regexp_parser (2.9.3)
|
46
|
+
rspec (3.13.0)
|
47
|
+
rspec-core (~> 3.13.0)
|
48
|
+
rspec-expectations (~> 3.13.0)
|
49
|
+
rspec-mocks (~> 3.13.0)
|
50
|
+
rspec-core (3.13.2)
|
51
|
+
rspec-support (~> 3.13.0)
|
52
|
+
rspec-expectations (3.13.3)
|
53
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
54
|
+
rspec-support (~> 3.13.0)
|
55
|
+
rspec-mocks (3.13.2)
|
56
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
57
|
+
rspec-support (~> 3.13.0)
|
58
|
+
rspec-support (3.13.1)
|
59
|
+
rubocop (1.68.0)
|
60
|
+
json (~> 2.3)
|
61
|
+
language_server-protocol (>= 3.17.0)
|
62
|
+
parallel (~> 1.10)
|
63
|
+
parser (>= 3.3.0.2)
|
64
|
+
rainbow (>= 2.2.2, < 4.0)
|
65
|
+
regexp_parser (>= 2.4, < 3.0)
|
66
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
67
|
+
ruby-progressbar (~> 1.7)
|
68
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
69
|
+
rubocop-ast (1.36.2)
|
70
|
+
parser (>= 3.3.1.0)
|
71
|
+
rubocop-performance (1.22.1)
|
72
|
+
rubocop (>= 1.48.1, < 2.0)
|
73
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
74
|
+
ruby-progressbar (1.13.0)
|
75
|
+
securerandom (0.4.0)
|
76
|
+
standard (1.42.1)
|
77
|
+
language_server-protocol (~> 3.17.0.2)
|
78
|
+
lint_roller (~> 1.0)
|
79
|
+
rubocop (~> 1.68.0)
|
80
|
+
standard-custom (~> 1.0.0)
|
81
|
+
standard-performance (~> 1.5)
|
82
|
+
standard-custom (1.0.2)
|
83
|
+
lint_roller (~> 1.0)
|
84
|
+
rubocop (~> 1.50)
|
85
|
+
standard-performance (1.5.0)
|
86
|
+
lint_roller (~> 1.1)
|
87
|
+
rubocop-performance (~> 1.22.0)
|
88
|
+
tzinfo (2.0.6)
|
89
|
+
concurrent-ruby (~> 1.0)
|
90
|
+
unicode-display_width (2.6.0)
|
91
|
+
uri (1.0.2)
|
92
|
+
|
93
|
+
PLATFORMS
|
94
|
+
arm64-darwin-23
|
95
|
+
ruby
|
96
|
+
|
97
|
+
DEPENDENCIES
|
98
|
+
rake (~> 13.0)
|
99
|
+
rspec (~> 3.0)
|
100
|
+
standard (~> 1.3)
|
101
|
+
washcloth!
|
102
|
+
|
103
|
+
BUNDLED WITH
|
104
|
+
2.5.18
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2024 Josh Clayton
|
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,62 @@
|
|
1
|
+
# Washcloth
|
2
|
+
|
3
|
+
Clean your Ruby strings.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'washcloth'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
```sh
|
16
|
+
bundle install
|
17
|
+
```
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
```sh
|
22
|
+
gem install washcloth
|
23
|
+
```
|
24
|
+
|
25
|
+
## Usage
|
26
|
+
|
27
|
+
First, register values to filter:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
Washcloth.filter(:encrypted_password)
|
31
|
+
```
|
32
|
+
|
33
|
+
Next, call `Washcloth.clean`:
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
Washcloth.clean(%(<User encrypted_password: "THIS IS MY PASSWORD">)) # => "<User encrypted_password: \"*******************\">"
|
37
|
+
```
|
38
|
+
|
39
|
+
You can override how replacement values are generated:
|
40
|
+
|
41
|
+
```ruby
|
42
|
+
Washcloth.filter(:encrypted_password, filter: Washcloth.filters.static("[FILTERED]"))
|
43
|
+
Washcloth.filter(:encrypted_password, filter: Washcloth.filters.block(->(value) { value.reverse }))
|
44
|
+
```
|
45
|
+
|
46
|
+
## Development
|
47
|
+
|
48
|
+
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.
|
49
|
+
|
50
|
+
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 the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
51
|
+
|
52
|
+
## Contributing
|
53
|
+
|
54
|
+
Bug reports and pull requests are welcome on GitHub at <https://github.com/joshuaclayton/washcloth>. 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/joshuaclayton/washcloth/blob/main/CODE_OF_CONDUCT.md).
|
55
|
+
|
56
|
+
## License
|
57
|
+
|
58
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
59
|
+
|
60
|
+
## Code of Conduct
|
61
|
+
|
62
|
+
Everyone interacting in the Washcloth project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/joshuaclayton/washcloth/blob/main/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
data/lib/washcloth.rb
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/core_ext/module/delegation"
|
4
|
+
|
5
|
+
require_relative "washcloth/version"
|
6
|
+
|
7
|
+
module Washcloth
|
8
|
+
class Error < StandardError; end
|
9
|
+
|
10
|
+
def self.reset
|
11
|
+
Internal.reset
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.filter(value, filter: filters.chars("*"))
|
15
|
+
Internal.add_filter(value, filter)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.clean(value)
|
19
|
+
Internal.configuration.filters.inject(value) do |memo, (_, filter)|
|
20
|
+
Formatters::ActiveRecord.new(filter).run(
|
21
|
+
Formatters::Xml.new(filter).run(value)
|
22
|
+
)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.filters
|
27
|
+
Filters
|
28
|
+
end
|
29
|
+
|
30
|
+
module Formatters
|
31
|
+
class Xml
|
32
|
+
def initialize(filter)
|
33
|
+
@filter = filter
|
34
|
+
end
|
35
|
+
|
36
|
+
def regexp
|
37
|
+
/<#{@filter.name}>(?<inner>.*)<\/#{@filter.name}>/mi
|
38
|
+
end
|
39
|
+
|
40
|
+
def run(value)
|
41
|
+
value.gsub(regexp) do |match|
|
42
|
+
last_match = Regexp.last_match[:inner]
|
43
|
+
match.sub(last_match, @filter.filter[last_match])
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
class ActiveRecord
|
49
|
+
def initialize(filter)
|
50
|
+
@filter = filter
|
51
|
+
end
|
52
|
+
|
53
|
+
def regexp
|
54
|
+
/ #{@filter.name}: "(?<inner>.*)"/mi
|
55
|
+
end
|
56
|
+
|
57
|
+
def run(value)
|
58
|
+
value.gsub(regexp) do |match|
|
59
|
+
last_match = Regexp.last_match[:inner]
|
60
|
+
match.sub(last_match, @filter.filter[last_match])
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
module Internal
|
67
|
+
class << self
|
68
|
+
delegate :add_filter, to: :configuration
|
69
|
+
|
70
|
+
def configuration
|
71
|
+
@configuration ||= Configuration.new
|
72
|
+
end
|
73
|
+
|
74
|
+
def reset
|
75
|
+
@configuration = nil
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
class Configuration
|
81
|
+
attr_reader :filters
|
82
|
+
|
83
|
+
def initialize
|
84
|
+
@filters = {}
|
85
|
+
end
|
86
|
+
|
87
|
+
def add_filter(filter_name, filter)
|
88
|
+
@filters[filter_name.to_sym] = Filter.new(name: filter_name.to_sym, filter:)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
class Filter
|
93
|
+
attr_reader :name, :filter
|
94
|
+
|
95
|
+
def initialize(name:, filter:)
|
96
|
+
@name = name
|
97
|
+
@filter = filter
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
module Filters
|
102
|
+
class << self
|
103
|
+
def static(value)
|
104
|
+
ReplaceWithStaticValue.new(value)
|
105
|
+
end
|
106
|
+
|
107
|
+
def chars(value)
|
108
|
+
ReplaceEachCharacter.new(value)
|
109
|
+
end
|
110
|
+
|
111
|
+
def block(value)
|
112
|
+
ReplaceWithBlockOutcome.new(value)
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
class ReplaceEachCharacter
|
117
|
+
def initialize(replacement)
|
118
|
+
@replacement = replacement
|
119
|
+
end
|
120
|
+
|
121
|
+
def [](value)
|
122
|
+
value.chars.map { @replacement }.join
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
class ReplaceWithBlockOutcome
|
127
|
+
def initialize(block)
|
128
|
+
@block = block
|
129
|
+
end
|
130
|
+
|
131
|
+
def [](value)
|
132
|
+
@block.call(value)
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
class ReplaceWithStaticValue
|
137
|
+
def initialize(value)
|
138
|
+
@value = value
|
139
|
+
end
|
140
|
+
|
141
|
+
def [](_)
|
142
|
+
@value
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
data/washcloth.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/washcloth/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "washcloth"
|
7
|
+
spec.version = Washcloth::VERSION
|
8
|
+
spec.authors = ["Josh Clayton"]
|
9
|
+
spec.email = ["joshua.clayton@gmail.com"]
|
10
|
+
|
11
|
+
spec.summary = "Clean Ruby strings"
|
12
|
+
spec.homepage = "https://github.com/joshuaclayton/washcloth"
|
13
|
+
spec.license = "MIT"
|
14
|
+
spec.required_ruby_version = ">= 3.1.0"
|
15
|
+
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
17
|
+
spec.metadata["source_code_uri"] = "https://github.com/joshuaclayton/washcloth"
|
18
|
+
|
19
|
+
# Specify which files should be added to the gem when it is released.
|
20
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
21
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
22
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
23
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
24
|
+
end
|
25
|
+
end
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
# Uncomment to register a new dependency of your gem
|
31
|
+
spec.add_dependency "activesupport", ">= 7.0"
|
32
|
+
|
33
|
+
# For more information and examples about making a new gem, check out our
|
34
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: washcloth
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Josh Clayton
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2024-12-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '7.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '7.0'
|
27
|
+
description:
|
28
|
+
email:
|
29
|
+
- joshua.clayton@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".rspec"
|
35
|
+
- ".standard.yml"
|
36
|
+
- CODE_OF_CONDUCT.md
|
37
|
+
- Gemfile
|
38
|
+
- Gemfile.lock
|
39
|
+
- LICENSE.txt
|
40
|
+
- README.md
|
41
|
+
- Rakefile
|
42
|
+
- lib/washcloth.rb
|
43
|
+
- lib/washcloth/version.rb
|
44
|
+
- washcloth.gemspec
|
45
|
+
homepage: https://github.com/joshuaclayton/washcloth
|
46
|
+
licenses:
|
47
|
+
- MIT
|
48
|
+
metadata:
|
49
|
+
homepage_uri: https://github.com/joshuaclayton/washcloth
|
50
|
+
source_code_uri: https://github.com/joshuaclayton/washcloth
|
51
|
+
post_install_message:
|
52
|
+
rdoc_options: []
|
53
|
+
require_paths:
|
54
|
+
- lib
|
55
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 3.1.0
|
60
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
requirements: []
|
66
|
+
rubygems_version: 3.5.18
|
67
|
+
signing_key:
|
68
|
+
specification_version: 4
|
69
|
+
summary: Clean Ruby strings
|
70
|
+
test_files: []
|