ascii_folding 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/README.md +4 -4
- data/ascii_folding.gemspec +2 -2
- data/lib/ascii_folding/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48f8922be7f7af9c208cae33b92f270a2efdf3a881ee9adbd63aa6206528ae03
|
4
|
+
data.tar.gz: 7e91a8b284f1f072d1422eea2aaaa4bdea6892996fd3095b5d403c018ec925bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd03e01cc1fd3ae8b934117fe7122702b7792e753da77facdbee9ced83a30ac655937757ab80ad776d9bc0ecdff08eb32698fb987769955960bf00372dcce258
|
7
|
+
data.tar.gz: a35fd5f9709933d83b991ff74d89c5bed97d75ab5323e866d74edbd7cf09011f3c9079a4395c0e216ab68de90bbec79eaa743099d8edf5ae3502cbbf7ab3c50a
|
data/README.md
CHANGED
@@ -1,23 +1,23 @@
|
|
1
1
|
# AsciiFolding
|
2
2
|
|
3
|
-
|
3
|
+
ascii_folding is a Ruby gem providing functionality for ASCII folding. This gem converts non-ASCII characters in a string to their ASCII approximations based on predefined mappings, making it useful for applications requiring standard ASCII characters, such as slug generation or text normalization.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
7
|
Install the gem and add to the application's Gemfile by executing:
|
8
8
|
|
9
|
-
$ bundle add
|
9
|
+
$ bundle add ascii_folding
|
10
10
|
|
11
11
|
If bundler is not being used to manage dependencies, install the gem by executing:
|
12
12
|
|
13
|
-
$ gem install
|
13
|
+
$ gem install ascii_folding
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
17
17
|
To use the ASCII folding functionality, require the gem in your Ruby script and call the fold method with the string you want to process:
|
18
18
|
|
19
19
|
```ruby
|
20
|
-
require '
|
20
|
+
require 'ascii_folding'
|
21
21
|
|
22
22
|
input_string = "Your string with special characters like À, É, etc."
|
23
23
|
ascii_folded_string = AsciiFolding.fold(input_string)
|
data/ascii_folding.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |spec|
|
|
13
13
|
"mapping tables that are the same as those used by Lucene's ASCIIFoldingFilter."
|
14
14
|
spec.required_ruby_version = ">= 2.6.0"
|
15
15
|
|
16
|
-
spec.metadata["homepage_uri"] = "https://github.com/donny741/ascii_folding"
|
17
|
-
spec.metadata["source_code_uri"] = "https://github.com/donny741/ascii_folding"
|
16
|
+
spec.metadata["homepage_uri"] = "https://github.com/donny741/ascii_folding-rb"
|
17
|
+
spec.metadata["source_code_uri"] = "https://github.com/donny741/ascii_folding-rb"
|
18
18
|
|
19
19
|
# Specify which files should be added to the gem when it is released.
|
20
20
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ascii_folding
|
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
|
- Donatas Povilaitis
|
@@ -30,8 +30,8 @@ files:
|
|
30
30
|
homepage:
|
31
31
|
licenses: []
|
32
32
|
metadata:
|
33
|
-
homepage_uri: https://github.com/donny741/ascii_folding
|
34
|
-
source_code_uri: https://github.com/donny741/ascii_folding
|
33
|
+
homepage_uri: https://github.com/donny741/ascii_folding-rb
|
34
|
+
source_code_uri: https://github.com/donny741/ascii_folding-rb
|
35
35
|
post_install_message:
|
36
36
|
rdoc_options: []
|
37
37
|
require_paths:
|