iso639 1.3.0 → 1.3.1
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 +4 -4
- data/README.md +10 -4
- data/lib/iso639.rb +1 -1
- data/lib/iso639/version.rb +1 -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: e6c0d3ba3653783f434a993129179069a9682645
|
|
4
|
+
data.tar.gz: 9011077aebff118c5fd15c5bd89764da4ad2ab47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9d3a876bce34b1fc2ebe6c408833c5238c26289ebb80f193ea9dedcbb2e180abd5fa48645dfca922903afb3688ad731f8f525b2fe580899a2c2896d04f99e21
|
|
7
|
+
data.tar.gz: 663e2a7bd7372739ad673c19c21f5622e2c7d9e5c2e09ef0eff67f52503c32fbbfd0a9e872a88fbfc4b909412a29a08a37aa24f97580b383a69572a8f0c8f4bc
|
data/README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
# iso639
|
|
1
|
+
# iso639
|
|
2
|
+
|
|
3
|
+
[](http://badge.fury.io/rb/iso639)
|
|
4
|
+
[](https://travis-ci.org/rmm5t/iso639)
|
|
5
|
+
[](https://codeclimate.com/github/rmm5t/iso639)
|
|
6
|
+
[](https://rubygems.org/gems/iso639)
|
|
2
7
|
|
|
3
8
|
The iso639 gem provides convenience methods for looking up ISO-639-1 or
|
|
4
9
|
ISO-639-2 language codes by their english name, 2-char, or 3-char counterpart
|
|
@@ -14,15 +19,16 @@ All data was generated from the Library of Congress's list of UTF-8
|
|
|
14
19
|
[][paypal]
|
|
15
20
|
[][codementor]
|
|
16
21
|
|
|
17
|
-
If you like this project, [buy me a coffee][paypal], or [book a session with me
|
|
18
|
-
|
|
19
|
-
Bitcoin: `1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m`
|
|
22
|
+
If you like this project, [buy me a coffee][paypal], or [book a session with me][codementor], or donate bitcoin: `1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m`
|
|
20
23
|
|
|
21
24
|
[square]: https://cash.me/$rmm5t/5 "Donate to rmm5t for open source!"
|
|
22
25
|
[paypal]: https://www.paypal.me/rmm5t/5 "Donate to rmm5t for open source!"
|
|
23
26
|
[bitcoin]: bitcoin:1rmm5tv6f997JK5bLcGbRCZyVjZUPkQ2m?amount=0.01&label=Coffee%20to%20rmm5t%20for%20Open%20Source "Buy rmm5t a coffee for open source!"
|
|
24
27
|
[codementor]: https://www.codementor.io/rmm5t?utm_campaign=profile&utm_source=button-rmm5t&utm_medium=shields "Book a session with rmm5t on Codementor!"
|
|
25
28
|
|
|
29
|
+
[](https://twitter.com/rmm5t)
|
|
30
|
+
[](http://stackoverflow.com/users/8985/ryan-mcgeary)
|
|
31
|
+
|
|
26
32
|
## Installation
|
|
27
33
|
|
|
28
34
|
Add this line to your application's Gemfile:
|
data/lib/iso639.rb
CHANGED
|
@@ -36,7 +36,7 @@ module Iso639
|
|
|
36
36
|
LanguagesByFrenchName = InsensitiveHash.new
|
|
37
37
|
|
|
38
38
|
iso639_file = File.expand_path(File.join("..", "iso639", "ISO-639-2_utf-8.txt"), __FILE__)
|
|
39
|
-
File.readlines(iso639_file).each do |line|
|
|
39
|
+
File.readlines(iso639_file, encoding: "utf-8").each do |line|
|
|
40
40
|
lang = Language.new *line.split("|")
|
|
41
41
|
LanguagesByAlpha2[lang.alpha2] = lang if lang.alpha2
|
|
42
42
|
LanguagesByAlpha3[lang.alpha3] = lang if lang.alpha3
|
data/lib/iso639/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iso639
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryan McGeary
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
83
83
|
version: '0'
|
|
84
84
|
requirements: []
|
|
85
85
|
rubyforge_project:
|
|
86
|
-
rubygems_version: 2.5.
|
|
86
|
+
rubygems_version: 2.5.2
|
|
87
87
|
signing_key:
|
|
88
88
|
specification_version: 4
|
|
89
89
|
summary: ISO 639-1 and ISO 639-2 lookups by name, alpha-2 code, or alpha-3 code
|