tate 1.6.0 → 1.8.0

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: 0b84cad54ae3dc9964b725f3ea6fb7561e2d6b482574d49aeb682ea95f7529e0
4
- data.tar.gz: 152c7cbaea389367ec49c20c4acc186de8deed4a4f4c59ff9e621849fd89e6d5
3
+ metadata.gz: 3e460326267ad0d7690972b194563b588f3690874d2bd36f4a987f79d1fd7dae
4
+ data.tar.gz: a8580828ad2f949ba524e033f8a8ec0e95e3c169b46fcb0cd6d60e796006b145
5
5
  SHA512:
6
- metadata.gz: 8498bfb2e4a8510281863d2aea086c8e8764f5efcd8f0f965fc6595157147e7fda41b091e8fbe25329d21beb0953029c2594c525a79e79c387800638c9707c75
7
- data.tar.gz: 4735c54d1f75b36890e37fcb5d6e66150c83df5a414d2c89c404e22e5a2279fad7c5ab11c7f9b4a30833fb08634b6529a748284ed8c3d9bb715be37466b694ae
6
+ metadata.gz: 1801e9f1b00e26a9cdf614bf2d62e508034b61e3142a36240eda8f1032b43d8443f48c1944c49d92104da2d019b588a72e227c827c74ba7f191fcb1521fc6c6d
7
+ data.tar.gz: 072a778d9711eb2adb2528bbaf86352337258e16620711975b34ccb8dd3ec004594ac2ff6b325275754cd856f9cbf89722e1b32fa8c83bcfd4b5258ec6179c9a
@@ -0,0 +1,52 @@
1
+ name: Test
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ push:
7
+ branches: [develop, master]
8
+
9
+ env:
10
+ GIT_COMMIT_SHA: ${{ github.sha }}
11
+ GIT_BRANCH: ${{ github.ref }}
12
+ COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
13
+
14
+ jobs:
15
+ lint:
16
+ runs-on: ubuntu-latest
17
+ name: lint ${{ matrix.ruby }}
18
+ strategy:
19
+ fail-fast: false
20
+ matrix:
21
+ ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6", "3.0.7"]
22
+
23
+ steps:
24
+ - uses: actions/checkout@v4
25
+ - uses: ruby/setup-ruby@v1
26
+ with:
27
+ ruby-version: ${{ matrix.ruby }}
28
+ bundler-cache: true
29
+
30
+ - name: StandardRB
31
+ continue-on-error: ${{ matrix.experimental }}
32
+ run: bundle exec standardrb --parallel --format progress
33
+
34
+ test:
35
+ needs: [lint]
36
+ runs-on: ubuntu-latest
37
+ name: test ${{ matrix.ruby }}
38
+ strategy:
39
+ fail-fast: false
40
+ matrix:
41
+ ruby: ["3.4.1", "3.3.6", "3.2.6", "3.1.6", "3.0.7"]
42
+
43
+ steps:
44
+ - uses: actions/checkout@v4
45
+ - uses: ruby/setup-ruby@v1
46
+ with:
47
+ ruby-version: ${{ matrix.ruby }}
48
+ bundler-cache: true
49
+
50
+ - name: Test
51
+ continue-on-error: ${{ matrix.experimental }}
52
+ run: bundle exec rake
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.4.1
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  # Specify your gem's dependencies in tate.gemspec
6
6
  gemspec
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2019 Kerem Bozdas
3
+ Copyright (c) 2016-2025 Kerem Bozdas
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,9 +1,9 @@
1
1
  # Tate ✍️
2
2
 
3
- [![Build Status](https://img.shields.io/travis/krmbzds/tate.svg)](https://travis-ci.org/krmbzds/tate)
4
- [![Code Coverage](https://img.shields.io/codeclimate/coverage/krmbzds/tate.svg)](https://codeclimate.com/github/krmbzds/tate/test_coverage)
3
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/krmbzds/tate/test.yml?branch=master)](https://github.com/krmbzds/tate/actions/workflows/test.yml)
4
+ [![Coveralls](https://img.shields.io/coveralls/github/krmbzds/tate)](https://coveralls.io/github/krmbzds/tate)
5
5
  [![Maintainability](https://img.shields.io/codeclimate/maintainability/krmbzds/tate.svg)](https://codeclimate.com/github/krmbzds/tate/maintainability)
6
- [![Downloaded](https://img.shields.io/gem/dt/tate.svg)](https://rubygems.org/gems/tate)
6
+ [![Downloads](https://img.shields.io/gem/dt/tate.svg)](https://rubygems.org/gems/tate)
7
7
  [![Gem Version](https://img.shields.io/gem/v/tate.svg)](https://rubygems.org/gems/tate)
8
8
 
9
9
  **Tate** converts accented characters and transliterates non-latin scripts to their closest ASCII equivalent.
@@ -127,9 +127,11 @@ Yes.
127
127
 
128
128
  This gem is tested against the following Ruby versions:
129
129
 
130
- - ✅ `2.7.1` (stable)
131
- - ✅ `2.6.6` (stable)
132
- - `2.5.8` (security maintenance)
130
+ - ✅ `3.4.1` (stable)
131
+ - ✅ `3.3.6` (stable)
132
+ - `3.2.6` (stable)
133
+ - ⏳ `3.1.6` (security maintenance)
134
+ - 🪦 `3.0.7` (end of life)
133
135
 
134
136
  ## Development
135
137
 
@@ -161,7 +163,7 @@ Nobody has time to type transliterate in the terminal.
161
163
 
162
164
  ## License
163
165
 
164
- Copyright © 2016-2020 [Kerem Bozdas][Personal Webpage]
166
+ Copyright © 2016-2025 [Kerem Bozdas][Personal Webpage]
165
167
 
166
168
  This project is available under the terms of the [MIT License][License].
167
169
 
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
data/bin/console CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'bundler/setup'
5
- require 'tate'
4
+ require "bundler/setup"
5
+ require "tate"
6
6
 
7
7
  # You can add fixtures and/or initialization code here to make experimenting
8
8
  # with your gem easier. You can also use a different console, if you like.
@@ -11,5 +11,5 @@ require 'tate'
11
11
  # require "pry"
12
12
  # Pry.start
13
13
 
14
- require 'irb'
14
+ require "irb"
15
15
  IRB.start
data/bin/tate CHANGED
@@ -1,23 +1,23 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
4
+ lib = File.expand_path(File.dirname(__FILE__) + "/../lib")
5
5
  $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
6
6
 
7
- require 'tate'
8
- require 'optionparser'
7
+ require "tate"
8
+ require "optionparser"
9
9
 
10
10
  options = {}
11
11
 
12
12
  option_parser = OptionParser.new do |opts|
13
- opts.banner = 'Usage: tate [-l LANGUAGE]'
14
- opts.on('-l LANGUAGE', '--language LANGUAGE', String, 'Set language for custom filters') do |language|
13
+ opts.banner = "Usage: tate [-l LANGUAGE]"
14
+ opts.on("-l LANGUAGE", "--language LANGUAGE", String, "Set language for custom filters") do |language|
15
15
  options[:language] = language
16
16
  end
17
- opts.on('-h', '--help', 'Show this message') do
17
+ opts.on("-h", "--help", "Show this message") do
18
18
  options[:help] = opts.help
19
19
  end
20
- opts.on('-v', '--version', 'Show version') do
20
+ opts.on("-v", "--version", "Show version") do
21
21
  options[:version] = Tate::VERSION
22
22
  end
23
23
  end
data/lib/tate/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tate
4
- VERSION = '1.6.0'
4
+ VERSION = "1.8.0"
5
5
  end
data/lib/tate.rb CHANGED
@@ -1,18 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path(File.dirname(__FILE__) + '/../lib')
3
+ lib = File.expand_path(File.dirname(__FILE__) + "/../lib")
4
4
  $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
5
5
 
6
- require 'tate/version'
7
- require 'i18n'
8
- require 'yaml'
6
+ require "tate/version"
7
+ require "i18n"
8
+ require "yaml"
9
9
 
10
10
  I18n.load_path << Dir[File.expand_path("#{lib}/config/locales/*.yml")]
11
11
  I18n.enforce_available_locales = false
12
12
  I18n.default_locale = :en
13
13
 
14
14
  module Tate
15
- def self.transliterate(string, language = nil, _replacement = '?')
15
+ def self.transliterate(string, language = nil, _replacement = "?")
16
16
  I18n.transliterate(string, locale: language)
17
17
  end
18
18
  end
data/tate.gemspec CHANGED
@@ -1,28 +1,29 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
3
+ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'tate/version'
5
+ require "tate/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = 'tate'
9
- spec.version = Tate::VERSION
10
- spec.licenses = 'MIT'
11
- spec.authors = ['Kerem Bozdas']
12
- spec.email = ['krmbzds.github@gmail.com']
8
+ spec.name = "tate"
9
+ spec.version = Tate::VERSION
10
+ spec.licenses = "MIT"
11
+ spec.authors = ["Kerem Bozdas"]
12
+ spec.email = ["krmbzds.github@gmail.com"]
13
13
 
14
- spec.summary = 'Convert accented characters and transliterate non-latin alphabets to ASCII.'
15
- spec.description = 'Convert accented characters and transliterate non-latin alphabets to ASCII.'
16
- spec.homepage = 'https://github.com/krmbzds/tate'
14
+ spec.summary = "Convert accented characters and transliterate non-latin alphabets to ASCII."
15
+ spec.description = "Convert accented characters and transliterate non-latin alphabets to ASCII."
16
+ spec.homepage = "https://github.com/krmbzds/tate"
17
17
 
18
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
- spec.bindir = 'bin'
20
- spec.executables = ['tate']
21
- spec.require_paths = ['lib']
18
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.bindir = "bin"
20
+ spec.executables = ["tate"]
21
+ spec.require_paths = ["lib"]
22
22
 
23
- spec.add_runtime_dependency 'i18n', '~> 1.6'
24
- spec.add_development_dependency 'bundler'
25
- spec.add_development_dependency 'rake'
26
- spec.add_development_dependency 'rspec'
27
- spec.add_development_dependency 'simplecov', '=0.17.1'
23
+ spec.add_runtime_dependency "i18n", "~> 1.10"
24
+ spec.add_development_dependency "bundler"
25
+ spec.add_development_dependency "rake"
26
+ spec.add_development_dependency "rspec"
27
+ spec.add_development_dependency "standard"
28
+ spec.add_development_dependency "coveralls_reborn"
28
29
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerem Bozdas
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-08-13 00:00:00.000000000 Z
10
+ date: 2025-01-01 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: i18n
@@ -16,14 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - "~>"
18
17
  - !ruby/object:Gem::Version
19
- version: '1.6'
18
+ version: '1.10'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - "~>"
25
24
  - !ruby/object:Gem::Version
26
- version: '1.6'
25
+ version: '1.10'
27
26
  - !ruby/object:Gem::Dependency
28
27
  name: bundler
29
28
  requirement: !ruby/object:Gem::Requirement
@@ -67,19 +66,33 @@ dependencies:
67
66
  - !ruby/object:Gem::Version
68
67
  version: '0'
69
68
  - !ruby/object:Gem::Dependency
70
- name: simplecov
69
+ name: standard
71
70
  requirement: !ruby/object:Gem::Requirement
72
71
  requirements:
73
- - - '='
72
+ - - ">="
74
73
  - !ruby/object:Gem::Version
75
- version: 0.17.1
74
+ version: '0'
76
75
  type: :development
77
76
  prerelease: false
78
77
  version_requirements: !ruby/object:Gem::Requirement
79
78
  requirements:
80
- - - '='
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
82
+ - !ruby/object:Gem::Dependency
83
+ name: coveralls_reborn
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
81
87
  - !ruby/object:Gem::Version
82
- version: 0.17.1
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
83
96
  description: Convert accented characters and transliterate non-latin alphabets to
84
97
  ASCII.
85
98
  email:
@@ -89,11 +102,10 @@ executables:
89
102
  extensions: []
90
103
  extra_rdoc_files: []
91
104
  files:
105
+ - ".github/workflows/test.yml"
92
106
  - ".gitignore"
93
107
  - ".rspec"
94
- - ".ruby-gemset"
95
- - ".ruby-version"
96
- - ".travis.yml"
108
+ - ".tool-versions"
97
109
  - Gemfile
98
110
  - LICENSE.txt
99
111
  - README.md
@@ -120,7 +132,6 @@ homepage: https://github.com/krmbzds/tate
120
132
  licenses:
121
133
  - MIT
122
134
  metadata: {}
123
- post_install_message:
124
135
  rdoc_options: []
125
136
  require_paths:
126
137
  - lib
@@ -135,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
146
  - !ruby/object:Gem::Version
136
147
  version: '0'
137
148
  requirements: []
138
- rubygems_version: 3.1.2
139
- signing_key:
149
+ rubygems_version: 3.6.2
140
150
  specification_version: 4
141
151
  summary: Convert accented characters and transliterate non-latin alphabets to ASCII.
142
152
  test_files: []
data/.ruby-gemset DELETED
@@ -1 +0,0 @@
1
- tate
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- ruby-2.7.1
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.7.1
5
- - 2.6.6
6
- - 2.5.8
7
- before_install:
8
- - 'gem update --system'
9
- - 'gem --version'
10
- - 'gem install bundler'
11
- before_script:
12
- - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
13
- - chmod +x ./cc-test-reporter
14
- - "./cc-test-reporter before-build"
15
- script:
16
- - bundle exec rspec
17
- after_script:
18
- - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
19
- env:
20
- global:
21
- - CC_TEST_REPORTER_ID=8ec95d64844683a9ce73f086a637d7bb2c7ae00a0042c4efa75ee34637a0fd58