language_list 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/language_list/version.rb +1 -1
- data/lib/language_list.rb +4 -0
- data/test/language_list_test.rb +7 -0
- metadata +22 -31
data/lib/language_list.rb
CHANGED
data/test/language_list_test.rb
CHANGED
@@ -48,4 +48,11 @@ class LanguageListTest < Test::Unit::TestCase
|
|
48
48
|
assert_equal 'eng', english.iso_639_3
|
49
49
|
assert_equal 'English', english.name
|
50
50
|
end
|
51
|
+
|
52
|
+
def test_sort_should_order_by_name
|
53
|
+
sorted = LanguageList::COMMON_LANGUAGES.sort
|
54
|
+
expected = LanguageList::COMMON_LANGUAGES.map(&:name).sort
|
55
|
+
|
56
|
+
assert_equal expected, sorted.map(&:name)
|
57
|
+
end
|
51
58
|
end
|
metadata
CHANGED
@@ -1,29 +1,24 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: language_list
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.0.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Steve Smith
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
date: 2011-06-15 00:00:00 +01:00
|
14
|
-
default_executable:
|
12
|
+
date: 2011-10-26 00:00:00.000000000 Z
|
15
13
|
dependencies: []
|
16
|
-
|
17
|
-
|
18
|
-
email:
|
14
|
+
description: A list of languages based upon ISO-639-1 and ISO-639-3 with functions
|
15
|
+
to retrieve only common languages.
|
16
|
+
email:
|
19
17
|
- gems@dynedge.co.uk
|
20
18
|
executables: []
|
21
|
-
|
22
19
|
extensions: []
|
23
|
-
|
24
20
|
extra_rdoc_files: []
|
25
|
-
|
26
|
-
files:
|
21
|
+
files:
|
27
22
|
- .gitignore
|
28
23
|
- Gemfile
|
29
24
|
- README.md
|
@@ -33,33 +28,29 @@ files:
|
|
33
28
|
- lib/language_list.rb
|
34
29
|
- lib/language_list/version.rb
|
35
30
|
- test/language_list_test.rb
|
36
|
-
has_rdoc: true
|
37
31
|
homepage: https://github.com/scsmith/language_list
|
38
32
|
licenses: []
|
39
|
-
|
40
33
|
post_install_message:
|
41
34
|
rdoc_options: []
|
42
|
-
|
43
|
-
require_paths:
|
35
|
+
require_paths:
|
44
36
|
- lib
|
45
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
46
38
|
none: false
|
47
|
-
requirements:
|
48
|
-
- -
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version:
|
51
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - ! '>='
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0'
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
44
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
45
|
+
requirements:
|
46
|
+
- - ! '>='
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: '0'
|
57
49
|
requirements: []
|
58
|
-
|
59
50
|
rubyforge_project: language_list
|
60
|
-
rubygems_version: 1.
|
51
|
+
rubygems_version: 1.8.10
|
61
52
|
signing_key:
|
62
53
|
specification_version: 3
|
63
54
|
summary: A list of languages and methods to find and work with these langauges.
|
64
|
-
test_files:
|
55
|
+
test_files:
|
65
56
|
- test/language_list_test.rb
|