tate 1.5.0 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tate +4 -4
- data/lib/tate.rb +1 -2
- data/lib/tate/version.rb +1 -1
- data/tate.gemspec +0 -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: 0b84cad54ae3dc9964b725f3ea6fb7561e2d6b482574d49aeb682ea95f7529e0
|
4
|
+
data.tar.gz: 152c7cbaea389367ec49c20c4acc186de8deed4a4f4c59ff9e621849fd89e6d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 [
|
14
|
-
opts.on('-l
|
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] =
|
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(
|
34
|
+
STDOUT.puts(options[:help])
|
35
35
|
end
|
data/lib/tate.rb
CHANGED
@@ -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(
|
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
|
|
data/lib/tate/version.rb
CHANGED
data/tate.gemspec
CHANGED
@@ -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.
|
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-
|
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.
|
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.
|