rtl 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/rtl/core.rb +2 -2
- data/lib/rtl/version.rb +1 -1
- data/rtl.gemspec +2 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6571b3f57a8a1124799f0cfda3a5fd030dfde4a4
|
4
|
+
data.tar.gz: 78212aa6ccd87e71c5827c6b96c540a7a1511813
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0217f4e1bab48c2eeb42d323471ba6e1138dbb57e5acd760dd80fd8f4c30ededf781df81887a285bd30ebbbd9fb472841e976f0b1f2afe4acbe3ce324952ba10
|
7
|
+
data.tar.gz: 58b1b4a7d07bdeb739d6bb4ab70529470c2993d5c5da008c58d40bb709f5029204fa9dabf1a9a07dc6a4be9f93e9d9fc9031f9ed0894abd27befc53766d52582
|
data/README.md
CHANGED
@@ -65,6 +65,13 @@ Rtl.rtl? 'Hebrew', :unicode_alias #=> true
|
|
65
65
|
Rtl.rtl? :Persian, :full_name #=> true
|
66
66
|
```
|
67
67
|
|
68
|
+
#### Or check all ways ..
|
69
|
+
|
70
|
+
```ruby
|
71
|
+
Rtl.rtl? :kur, :all #=> true
|
72
|
+
```
|
73
|
+
|
74
|
+
|
68
75
|
#### Get List of all languages by any of the above criteria:
|
69
76
|
|
70
77
|
```ruby
|
data/lib/rtl/core.rb
CHANGED
@@ -9,12 +9,12 @@ module Rtl
|
|
9
9
|
"Inscriptional Pahlavi", "Psalter Pahlavi", "Book Pahlavi", "Phoenician",
|
10
10
|
"Inscriptional Parthian", "Samaritan", "Old South Arabian", "Syriac",
|
11
11
|
"Syriac (Estrangelo variant)", "Syriac (Western variant)",
|
12
|
-
"Syriac (Eastern variant)", "Thaana", "Woleai", "Persian", "Kurdish"]
|
12
|
+
"Syriac (Eastern variant)", "Thaana", "Woleai", "Persian", "Kurdish", "Urdu"]
|
13
13
|
|
14
14
|
# ISO 639 codes for RTL languages.
|
15
15
|
# If a language has 639-1 and 639-2 codes, both are included.
|
16
16
|
ISO_CODES = ["ar", "ara", "arc", "ae", "ave", "egy", "he", "heb", "nqo", "pal", "phn", "sam",
|
17
|
-
"syc", "syr", "fa", "per", "fas", "ku", "kur"]
|
17
|
+
"syc", "syr", "fa", "per", "fas", "ku", "kur", "ur", "urd"]
|
18
18
|
|
19
19
|
# ISO 15924 codes for RTL languages.
|
20
20
|
ISO_LONG_CODES = ['Adlm', 'Arab', 'Aran', 'Armi', 'Avst', 'Cprt', 'Egyd', 'Egyh', 'Hatr',
|
data/lib/rtl/version.rb
CHANGED
data/rtl.gemspec
CHANGED
@@ -2,11 +2,12 @@
|
|
2
2
|
lib = File.expand_path('../lib', __FILE__)
|
3
3
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
4
|
require 'rtl/version'
|
5
|
+
require 'date'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
8
|
spec.name = "rtl"
|
8
9
|
spec.version = Rtl::VERSION
|
9
|
-
spec.date =
|
10
|
+
spec.date = Date.today.to_s
|
10
11
|
spec.authors = ["Abdullah Barrak (abarrak)"]
|
11
12
|
spec.email = ["a@abarrak.com"]
|
12
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Abdullah Barrak (abarrak)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
94
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
95
|
+
rubygems_version: 2.6.10
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: A gem for checking RTL direction of a language.
|