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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 783e91d8560cea74e32677a3ef1240f8812d09de
4
- data.tar.gz: 487e40a00939a8943f4fced187806c1af5cc1d97
3
+ metadata.gz: e6c0d3ba3653783f434a993129179069a9682645
4
+ data.tar.gz: 9011077aebff118c5fd15c5bd89764da4ad2ab47
5
5
  SHA512:
6
- metadata.gz: 0f79c10aba4ba454e90aa8acd7698f357be181aa5b8bf928f2a093fe91fcaf49e2020c71f48298599210233321b1ad6c2d9178620ab8a0732f4aff07bb630d34
7
- data.tar.gz: 49a0dde4ad5a0293ae55c25b5e5663ecbb3894be4ac92da6527d19ce324d1ea62291d381788fb993e144166e4ad61d759fb7e7fa9cee7146823114255a342d51
6
+ metadata.gz: a9d3a876bce34b1fc2ebe6c408833c5238c26289ebb80f193ea9dedcbb2e180abd5fa48645dfca922903afb3688ad731f8f525b2fe580899a2c2896d04f99e21
7
+ data.tar.gz: 663e2a7bd7372739ad673c19c21f5622e2c7d9e5c2e09ef0eff67f52503c32fbbfd0a9e872a88fbfc4b909412a29a08a37aa24f97580b383a69572a8f0c8f4bc
data/README.md CHANGED
@@ -1,4 +1,9 @@
1
- # iso639 [![Gem Version](http://img.shields.io/gem/v/iso639.svg)](http://badge.fury.io/rb/iso639) [![Build Status](https://travis-ci.org/rmm5t/iso639.svg?branch=master)](https://travis-ci.org/rmm5t/iso639) [![Code Climate](http://img.shields.io/codeclimate/github/rmm5t/iso639.svg)](https://codeclimate.com/github/rmm5t/iso639)
1
+ # iso639
2
+
3
+ [![Gem Version](http://img.shields.io/gem/v/iso639.svg)](http://badge.fury.io/rb/iso639)
4
+ [![Build Status](https://travis-ci.org/rmm5t/iso639.svg?branch=master)](https://travis-ci.org/rmm5t/iso639)
5
+ [![Code Climate](http://img.shields.io/codeclimate/github/rmm5t/iso639.svg)](https://codeclimate.com/github/rmm5t/iso639)
6
+ [![Gem Downloads](https://img.shields.io/gem/dt/iso639.svg)](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](http://img.shields.io/badge/paypal-rmm5t-blue.svg)][paypal]
15
20
  [![Book a Codementor session](http://img.shields.io/badge/codementor-book%20a%20session-orange.svg)][codementor]
16
21
 
17
- If you like this project, [buy me a coffee][paypal], or [book a session with me on Codementor][codementor].
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
+ [![Twitter](https://img.shields.io/twitter/follow/rmm5t.svg?style=social)](https://twitter.com/rmm5t)
30
+ [![Stack Overflow](https://img.shields.io/stackexchange/stackoverflow/r/8985.svg?style=social)](http://stackoverflow.com/users/8985/ryan-mcgeary)
31
+
26
32
  ## Installation
27
33
 
28
34
  Add this line to your application's Gemfile:
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Iso639
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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.0
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-02-06 00:00:00.000000000 Z
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.1
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