unaccent 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22fd05234b8a82c9fb4528e7490bc96d35d6004891106e64b89a41c3019fb05d
4
- data.tar.gz: c8878cdf36d7647264676d22b6068398a9c5a4c67dc48a65a7e2033a9d65e97c
3
+ metadata.gz: 9659e66d5944e31de52b6ae6127f839eafffe2f0647705135d5d292913d5f0a0
4
+ data.tar.gz: d7c141e5078de647653ddcb88f21acd9fdcce8bc49f5e4f618d0371f159f00a8
5
5
  SHA512:
6
- metadata.gz: 8fddd65833fc29aaaee6dd35088181403803714bd54d0dccfaa499dad55928c2263db27561cdefa0a565d0bb587a64d969f2523a3a87994caa9935b530a1461b
7
- data.tar.gz: 33b518cba22b0919320a1b4ac65bd4406b2dac1b2cbe17b63448a59ea132967a2014120dc5ca461e74de9fa4cf782ceb9422fe548a56538c204ec723c6549457
6
+ metadata.gz: d8791eb553569a93862373effcd0a3be832c05a85526c5b7d9d97218eab245b06c371eef607110958f1f8a12feef3af01d94f3b90bf892aa8c7e41c155d9d1bf
7
+ data.tar.gz: d3555caf43ca4d7d7e7ebbc526bd745482003d856cbc449183e031c30f53a3d33f975dc0070f17c9c85fd22068036e84617ded5031e063c19582272834aa8321
@@ -19,7 +19,7 @@ jobs:
19
19
  strategy:
20
20
  matrix:
21
21
  os: [ubuntu-latest]
22
- ruby: ['2.7']
22
+ ruby: ['2.7', '3.1']
23
23
  runs-on: ${{ matrix.os }}
24
24
 
25
25
  steps:
data/.yardopts ADDED
@@ -0,0 +1,2 @@
1
+ --no-private
2
+ --exclude lib/unaccent/accentmap.rb
data/LICENSE.txt CHANGED
@@ -1,5 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
+ Copyright (c) 2010-2020 Joel Parker Henderson
3
4
  Copyright (c) 2022 Jonian Guveli
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -20,4 +20,6 @@ module Unaccent
20
20
  end
21
21
  end
22
22
 
23
- String.include Unaccent::String
23
+ class String
24
+ include Unaccent::String
25
+ end
@@ -1,3 +1,3 @@
1
1
  module Unaccent
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.2.0'.freeze
3
3
  end
data/lib/unaccent.rb CHANGED
@@ -6,8 +6,8 @@ module Unaccent
6
6
  # Replace a string's accented characters with unaccented characters.
7
7
  #
8
8
  # @example
9
- # s = 'Å Ç ß'
10
- # Unaccent.unaccent(s) = > 'AA C ss'
9
+ # str = 'Å Ç ß'
10
+ # Unaccent.unaccent(str) = > 'AA C ss'
11
11
  #
12
12
  # @return [String] a string that has no accents
13
13
 
data/unaccent.gemspec CHANGED
@@ -21,4 +21,5 @@ Gem::Specification.new do |spec|
21
21
 
22
22
  spec.add_development_dependency 'bundler', '~> 2.0'
23
23
  spec.add_development_dependency 'minitest', '~> 5.0'
24
+ spec.add_development_dependency 'rake', '~> 13.0'
24
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unaccent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonian Guveli
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '13.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '13.0'
41
55
  description: Replace accented characters with unaccented characters.
42
56
  email:
43
57
  - jonian@hardpixel.eu
@@ -48,6 +62,7 @@ files:
48
62
  - ".github/workflows/build.yml"
49
63
  - ".gitignore"
50
64
  - ".ruby-version"
65
+ - ".yardopts"
51
66
  - Gemfile
52
67
  - LICENSE.txt
53
68
  - README.md
@@ -79,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
94
  - !ruby/object:Gem::Version
80
95
  version: '0'
81
96
  requirements: []
82
- rubygems_version: 3.3.14
97
+ rubygems_version: 3.3.7
83
98
  signing_key:
84
99
  specification_version: 4
85
100
  summary: Replace accented characters with unaccented characters