tate 1.5.0 → 1.6.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: ebc0e576a842c01f2e9763f2037357ae98b838b76f4c04dfc042490dd2568b5d
4
- data.tar.gz: 546d905a02dd3f88305a2b91d4151526ec45fa7bd4ca2c1649a3f8df0945405e
3
+ metadata.gz: 0b84cad54ae3dc9964b725f3ea6fb7561e2d6b482574d49aeb682ea95f7529e0
4
+ data.tar.gz: 152c7cbaea389367ec49c20c4acc186de8deed4a4f4c59ff9e621849fd89e6d5
5
5
  SHA512:
6
- metadata.gz: 2be7d2274c8869955f763c0abe322e1954b4f24207cc4d80789f67f085feed5f95a4de458fd3de313f24012549988059eb35d097bf4c817c9a493e0fca6a3c61
7
- data.tar.gz: 2e572cd8ed3db0154421d02db960a953597d6f48350fa56f3265dafed27fd81bb0b505f253fabcc1506fe1642a24f88a429b29cb21a8f02ef68bd873d7496dbe
6
+ metadata.gz: 8498bfb2e4a8510281863d2aea086c8e8764f5efcd8f0f965fc6595157147e7fda41b091e8fbe25329d21beb0953029c2594c525a79e79c387800638c9707c75
7
+ data.tar.gz: 4735c54d1f75b36890e37fcb5d6e66150c83df5a414d2c89c404e22e5a2279fad7c5ab11c7f9b4a30833fb08634b6529a748284ed8c3d9bb715be37466b694ae
data/bin/tate CHANGED
@@ -10,12 +10,12 @@ require 'optionparser'
10
10
  options = {}
11
11
 
12
12
  option_parser = OptionParser.new do |opts|
13
- opts.banner = 'Usage: tate [options]'
14
- opts.on('-l[LANGUAGE]', '--lang=[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
17
  opts.on('-h', '--help', 'Show this message') do
18
- options[:help] = true
18
+ options[:help] = opts.help
19
19
  end
20
20
  opts.on('-v', '--version', 'Show version') do
21
21
  options[:version] = Tate::VERSION
@@ -31,5 +31,5 @@ elsif options[:version]
31
31
  elsif options.empty?
32
32
  STDOUT.puts(Tate.transliterate(STDIN.read))
33
33
  else
34
- STDOUT.puts(option_parser.help)
34
+ STDOUT.puts(options[:help])
35
35
  end
@@ -4,11 +4,10 @@ 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
6
  require 'tate/version'
7
-
8
7
  require 'i18n'
9
8
  require 'yaml'
10
9
 
11
- I18n.load_path << Dir[File.expand_path('lib/config/locales/*.yml')]
10
+ I18n.load_path << Dir[File.expand_path("#{lib}/config/locales/*.yml")]
12
11
  I18n.enforce_available_locales = false
13
12
  I18n.default_locale = :en
14
13
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tate
4
- VERSION = '1.5.0'
4
+ VERSION = '1.6.0'
5
5
  end
@@ -16,7 +16,6 @@ Gem::Specification.new do |spec|
16
16
  spec.homepage = 'https://github.com/krmbzds/tate'
17
17
 
18
18
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
- spec.files += Dir['lib/config/locales/*.yml']
20
19
  spec.bindir = 'bin'
21
20
  spec.executables = ['tate']
22
21
  spec.require_paths = ['lib']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tate
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kerem Bozdas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-18 00:00:00.000000000 Z
11
+ date: 2020-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
135
135
  - !ruby/object:Gem::Version
136
136
  version: '0'
137
137
  requirements: []
138
- rubygems_version: 3.1.3
138
+ rubygems_version: 3.1.2
139
139
  signing_key:
140
140
  specification_version: 4
141
141
  summary: Convert accented characters and transliterate non-latin alphabets to ASCII.