ascii_folding 0.1.0 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e6e3df775278ff0540cd14e7b60b07851509733f52d509fd20afeb87e124e82d
4
- data.tar.gz: d4182fd9bcf18bc5e4878cbd9a9847ac42f20062eeb093eafcf2706fbc973c30
3
+ metadata.gz: c8c1d8a37fb41dce050ea3e8ae6ce146ea8ec0e8d76d426de658616ba4a295f1
4
+ data.tar.gz: '081daca62e24b280c012a59eb6e94438695de65ff729e0befb7a4a86599c8b46'
5
5
  SHA512:
6
- metadata.gz: 531212795ca301e468f038aa21cf04e80635f844002b5e17e361b122dbf5f406969cc636cd8b214887baefc8a2a4d1cd81cd0cca45a275e85deca3e142de0905
7
- data.tar.gz: ab2ec1b83517cd81ecfda38736d556a02039febc1ec7f26c01ad94f08578471f0252c9426ebb4498c4f1a973c4816f3ebaf3d3752dfb8a9ecf139813c1f5194a
6
+ metadata.gz: 429d17a21b3bdf8cd2186903d1aaa505b697c5403aad6bbaf7b1183ec78d2ad1046eccc0b6149369192fdcf570df257577b88fd43fd7ac86e5c94f227388da9c
7
+ data.tar.gz: 7924d983aa050b1493c054ee8608964e7df4f3e63ac5ebb3a74fa7f58cfbb92f559aa71305c708da4087120171e42f33507aa90bd417502ef66bc2a47340d719
data/README.md CHANGED
@@ -1,23 +1,23 @@
1
1
  # AsciiFolding
2
2
 
3
- UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG 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.
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 UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
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 UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG
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 'UPDATE_WITH_YOUR_GEM_NAME_PRIOR_TO_RELEASE_TO_RUBYGEMS_ORG'
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)
@@ -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.
@@ -1244,5 +1244,5 @@ module AsciiFolding
1244
1244
  "_" => "_",
1245
1245
  "⁓" => "~",
1246
1246
  "~" => "~"
1247
- }
1247
+ }.freeze
1248
1248
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AsciiFolding
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
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.0
4
+ version: 0.1.2
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: