iso-639 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +49 -0
- data/Gemfile.lock +2 -2
- data/iso-639.gemspec +2 -5
- data/lib/iso-639.rb +10 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec1e8f8a3a7d3756372c7f4c9d430ab953b12296
|
4
|
+
data.tar.gz: b100ced5493c3528450d2f211ee71b9f961e020a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24671297fdc8a177feb42f9bca6f4fdf0b3b9447e184cdaa2b3881c2f2ae2277a251e07d606dcdc0747d47f9572083dfb3eaba239e52ebf3a189ef3d5e649caa
|
7
|
+
data.tar.gz: b367169929dab8ad3f30d9b1e6084d31423b3f9f58cff4ce27b5f6a04592a984cccb7f2b1e124f2d9d15c23bab7547489c9f86c98dbfb7ae05722a191eab9a6d
|
data/Gemfile
CHANGED
@@ -6,11 +6,60 @@ source "http://rubygems.org"
|
|
6
6
|
# Add dependencies to develop your gem here.
|
7
7
|
# Include everything needed to run rake, tests, features, etc.
|
8
8
|
group :development, :test do
|
9
|
+
# allocation_stats
|
10
|
+
#
|
11
|
+
# Tooling for tracing object allocations in Ruby 2.1
|
12
|
+
#
|
13
|
+
# https://rubygems.org/gems/allocation_stats/
|
14
|
+
# https://github.com/srawlins/allocation_stats
|
9
15
|
gem "allocation_stats"
|
16
|
+
# minitest
|
17
|
+
#
|
18
|
+
# minitest provides a complete suite of testing facilities supporting TDD,
|
19
|
+
# BDD, mocking, and benchmarking.
|
20
|
+
#
|
21
|
+
# https://rubygems.org/gems/minitest
|
22
|
+
# https://github.com/seattlerb/minitest
|
10
23
|
gem "minitest"
|
24
|
+
# mocha
|
25
|
+
#
|
26
|
+
# Mocking and stubbing library with JMock/SchMock syntax, which allows
|
27
|
+
# mocking and stubbing of methods on real (non-mock) classes.
|
28
|
+
#
|
29
|
+
# https://rubygems.org/gems/mocha
|
30
|
+
# http://gofreerange.com/mocha/docs/
|
31
|
+
# https://github.com/freerange/mocha
|
11
32
|
gem "mocha"
|
33
|
+
# rake
|
34
|
+
#
|
35
|
+
# Rake is a Make-like program implemented in Ruby.
|
36
|
+
#
|
37
|
+
# https://rubygems.org/gems/rake
|
38
|
+
# https://github.com/ruby/rake
|
12
39
|
gem "rake"
|
40
|
+
# rdoc
|
41
|
+
#
|
42
|
+
# RDoc produces HTML and command-line documentation for Ruby projects.
|
43
|
+
#
|
44
|
+
# https://rubygems.org/gems/rdoc
|
45
|
+
# http://docs.seattlerb.org/rdoc/
|
46
|
+
# https://github.com/rdoc/rdoc
|
13
47
|
gem "rdoc"
|
48
|
+
# rubocop
|
49
|
+
#
|
50
|
+
# Automatic Ruby code style checking tool. Aims to enforce the
|
51
|
+
# community-driven Ruby Style Guide.
|
52
|
+
#
|
53
|
+
# https://rubygems.org/gems/rubocop
|
54
|
+
# https://github.com/bbatsov/rubocop
|
14
55
|
gem "rubocop"
|
56
|
+
# test-unit
|
57
|
+
#
|
58
|
+
# Test::Unit (test-unit) is unit testing framework for Ruby, based on xUnit
|
59
|
+
# principles.
|
60
|
+
#
|
61
|
+
# https://rubygems.org/gems/test-unit
|
62
|
+
# http://test-unit.github.io/
|
63
|
+
# https://github.com/test-unit/
|
15
64
|
gem "test-unit"
|
16
65
|
end
|
data/Gemfile.lock
CHANGED
data/iso-639.gemspec
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
5
2
|
|
6
3
|
Gem::Specification.new do |s|
|
7
4
|
s.name = "iso-639"
|
8
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.8"
|
9
6
|
|
10
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
8
|
s.authors = ["William Melody"]
|
12
|
-
s.date = "2016-06-
|
9
|
+
s.date = "2016-06-26"
|
13
10
|
s.description = "ISO 639-1 and ISO 639-2 language code entries and convenience methods"
|
14
11
|
s.email = "hi@williammelody.com"
|
15
12
|
s.extra_rdoc_files = [
|
data/lib/iso-639.rb
CHANGED
@@ -7,11 +7,17 @@ class ISO_639 < Array
|
|
7
7
|
#
|
8
8
|
# Ruby 2.3+ uses the `frozen_string_literal` magic comment to freeze all
|
9
9
|
# strings, while previous versions require the `#map` approach.
|
10
|
-
def self.[](
|
11
|
-
if
|
12
|
-
super(
|
10
|
+
def self.[](a3_bib, a3_term, a2, english_name, french_name)
|
11
|
+
if a3_bib.frozen? # then Ruby 2.3+
|
12
|
+
super(a3_bib, a3_term, a2, english_name, french_name).freeze
|
13
13
|
else
|
14
|
-
super(
|
14
|
+
super(
|
15
|
+
a3_bib.freeze,
|
16
|
+
a3_term.freeze,
|
17
|
+
a2.freeze,
|
18
|
+
english_name.freeze,
|
19
|
+
french_name.freeze
|
20
|
+
).freeze
|
15
21
|
end
|
16
22
|
end
|
17
23
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iso-639
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Melody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|