str_sanitizer 0.1.0 → 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 +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +13 -5
- data/lib/str_sanitizer/quotes.rb +2 -2
- data/lib/str_sanitizer/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b538c943e4d55ad6963787e0959efa1bdc2c22e1
|
|
4
|
+
data.tar.gz: d0c9877e414a122aba5837fcf040e96e8f3064ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6c2d75091881c70ade7114a0e057df01e338d43221a6d3882b39ff4aa0b798a25e352911a1240a0a0afc8b11503fe4dc75b0884ada0a7985beb6fb59e7e64c7
|
|
7
|
+
data.tar.gz: 8c5da11e494e9d36f4734c7d1cfc543a81a8d707d7aa7738d14e925380cd35c76538b348d7f75f321dc0a03053726e2f5ed2d021c5a502b92c705f9384f30854
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
# StrSanitizer
|
|
2
2
|
|
|
3
|
-
Welcome to
|
|
3
|
+
Welcome to this gem. This gem is about String Sanitization. This gem sanitizes the string which is given.
|
|
4
4
|
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
6
5
|
|
|
7
6
|
## Installation
|
|
8
7
|
|
|
@@ -22,7 +21,16 @@ Or install it yourself as:
|
|
|
22
21
|
|
|
23
22
|
## Usage
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
##### To escape quotes of a string
|
|
25
|
+
```ruby
|
|
26
|
+
require "str_sanitizer"
|
|
27
|
+
|
|
28
|
+
hello = "He said, 'Hello!'"
|
|
29
|
+
StrSanitizer.double_quote hello # => He said, \'Hello!\'
|
|
30
|
+
|
|
31
|
+
hello = 'She said, "Hello!"'
|
|
32
|
+
StrSanitizer.single_quote hello # => She said, \"Hello!\"
|
|
33
|
+
```
|
|
26
34
|
|
|
27
35
|
## Development
|
|
28
36
|
|
|
@@ -32,7 +40,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
|
32
40
|
|
|
33
41
|
## Contributing
|
|
34
42
|
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/JakariaBlaine/str_sanitizer. 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.
|
|
36
44
|
|
|
37
45
|
## License
|
|
38
46
|
|
|
@@ -40,4 +48,4 @@ The gem is available as open source under the terms of the [MIT License](http://
|
|
|
40
48
|
|
|
41
49
|
## Code of Conduct
|
|
42
50
|
|
|
43
|
-
Everyone interacting in the StrSanitizer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
51
|
+
Everyone interacting in the StrSanitizer project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/JakariaBlaine/str_sanitizer/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/str_sanitizer/quotes.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: str_sanitizer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jakaria Blaine
|
|
@@ -62,6 +62,7 @@ files:
|
|
|
62
62
|
- ".gitignore"
|
|
63
63
|
- ".rspec"
|
|
64
64
|
- ".travis.yml"
|
|
65
|
+
- CHANGELOG.md
|
|
65
66
|
- CODE_OF_CONDUCT.md
|
|
66
67
|
- Gemfile
|
|
67
68
|
- LICENSE.txt
|