u10d 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.rubocop.yml +1 -0
- data/.travis.yml +11 -3
- data/Gemfile +1 -1
- data/README.md +5 -0
- data/Rakefile +1 -1
- data/lib/u10d.rb +1 -1
- data/lib/u10d/version.rb +1 -1
- data/locales/untranslated.rb +4 -4
- data/u10d.gemspec +12 -11
- metadata +41 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 0f76b84970c20f339c9630ee82eb7cfb680411799bbbed53785dded8dc5c615b
|
4
|
+
data.tar.gz: 4351fa25b4708d67329a187fdae2f289b4d7be49534136a8a9b7336ee8dca4e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4009e3ffc9731e897c46b44c506916fba42abe306cb98dda6ba7a2377bfecb084423f3e76aaeb0bdac392d0f8b366cb29b10ff5ea462439f829028b487001e15
|
7
|
+
data.tar.gz: ef6dfcd44eb68dc1f588d381e8f396f459d3b5cc4d3593dde32913e840a3f0733864b3521c5d004149a587e0d56dda5a6b4001c2327286adf93b5c1785e0720a
|
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: https://raw.githubusercontent.com/leanpanda-com/rubocop/master/rubocop-rspec.yml
|
data/.travis.yml
CHANGED
@@ -1,5 +1,13 @@
|
|
1
|
-
sudo: false
|
2
1
|
language: ruby
|
3
2
|
rvm:
|
4
|
-
- 2.4
|
5
|
-
|
3
|
+
- 2.4
|
4
|
+
- 2.5
|
5
|
+
- 2.6
|
6
|
+
branches:
|
7
|
+
only:
|
8
|
+
- master
|
9
|
+
before_install:
|
10
|
+
- gem update --system
|
11
|
+
- gem install bundler --version "1.17.3"
|
12
|
+
script:
|
13
|
+
- bundle exec rake
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
[![Build Status](https://secure.travis-ci.org/leanpanda-com/u10d.svg)][Continuous Integration]
|
2
|
+
|
3
|
+
[Source Code]: https://github.org/leanpanda-com/u10d "Source code at GitHub"
|
4
|
+
[Continuous Integration]: http://travis-ci.org/leanpanda-com/u10d "Build status by Travis-CI"
|
5
|
+
|
1
6
|
# U10d - Untranslated language names
|
2
7
|
|
3
8
|
In multilingual user interfaces, it is common to present choices as language
|
data/Rakefile
CHANGED
data/lib/u10d.rb
CHANGED
data/lib/u10d/version.rb
CHANGED
data/locales/untranslated.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
a[locale] = {
|
1
|
+
I18n.available_locales.each.with_object({}) do |locale, acc|
|
2
|
+
acc[locale] = {
|
4
3
|
untranslated: {
|
5
4
|
language: {
|
6
5
|
by_code: {
|
@@ -11,16 +10,17 @@ I18n.available_locales.reduce({}) do |a, locale|
|
|
11
10
|
es: "español",
|
12
11
|
fr: "français",
|
13
12
|
hu: "magyar",
|
13
|
+
id: "indonesia",
|
14
14
|
it: "italiano",
|
15
15
|
ml: "മലയാളം",
|
16
16
|
pt: "Português",
|
17
17
|
ro: "română",
|
18
18
|
ru: "русский",
|
19
|
+
tr: "türk",
|
19
20
|
uk: "УКРАЇНСЬКА",
|
20
21
|
zh: "中文"
|
21
22
|
}
|
22
23
|
}
|
23
24
|
}
|
24
25
|
}
|
25
|
-
a
|
26
26
|
end
|
data/u10d.gemspec
CHANGED
@@ -1,20 +1,19 @@
|
|
1
|
-
|
2
|
-
lib
|
3
|
-
|
4
|
-
require 'u10d/version'
|
1
|
+
lib = File.expand_path("lib", __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) if !$LOAD_PATH.include?(lib)
|
3
|
+
require "u10d/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = "u10d"
|
8
7
|
spec.version = U10d::VERSION
|
9
8
|
spec.authors = ["Joe Yates"]
|
10
|
-
spec.email = ["
|
9
|
+
spec.email = ["j.yates@leanpanda.com"]
|
11
10
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
11
|
+
spec.summary = "Untranslated language names for i18n."
|
12
|
+
spec.description = <<~MESSAGE
|
14
13
|
Get the name of any language in its original language.
|
15
14
|
This is useful for GUI language switchers.
|
16
|
-
|
17
|
-
spec.homepage = "https://github.com/
|
15
|
+
MESSAGE
|
16
|
+
spec.homepage = "https://github.com/leanpanda-com/u10n"
|
18
17
|
spec.license = "MIT"
|
19
18
|
|
20
19
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -26,7 +25,9 @@ Gem::Specification.new do |spec|
|
|
26
25
|
|
27
26
|
spec.add_dependency "i18n"
|
28
27
|
|
29
|
-
spec.add_development_dependency "bundler", "
|
30
|
-
spec.add_development_dependency "rake", "
|
28
|
+
spec.add_development_dependency "bundler", ">= 1.14"
|
29
|
+
spec.add_development_dependency "rake", ">= 10.0"
|
31
30
|
spec.add_development_dependency "rspec", "~> 3.0"
|
31
|
+
spec.add_development_dependency "rubocop", "~> 0.70"
|
32
|
+
spec.add_development_dependency "rubocop-rspec", "~> 1.33"
|
32
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: u10d
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Yates
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -28,28 +28,28 @@ dependencies:
|
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.14'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.14'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '10.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '10.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
@@ -66,16 +66,46 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '3.0'
|
69
|
-
|
70
|
-
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.70'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.70'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.33'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.33'
|
97
|
+
description: |
|
98
|
+
Get the name of any language in its original language.
|
99
|
+
This is useful for GUI language switchers.
|
71
100
|
email:
|
72
|
-
-
|
101
|
+
- j.yates@leanpanda.com
|
73
102
|
executables: []
|
74
103
|
extensions: []
|
75
104
|
extra_rdoc_files: []
|
76
105
|
files:
|
77
106
|
- ".gitignore"
|
78
107
|
- ".rspec"
|
108
|
+
- ".rubocop.yml"
|
79
109
|
- ".travis.yml"
|
80
110
|
- CODE_OF_CONDUCT.md
|
81
111
|
- Gemfile
|
@@ -88,7 +118,7 @@ files:
|
|
88
118
|
- lib/u10d/version.rb
|
89
119
|
- locales/untranslated.rb
|
90
120
|
- u10d.gemspec
|
91
|
-
homepage: https://github.com/
|
121
|
+
homepage: https://github.com/leanpanda-com/u10n
|
92
122
|
licenses:
|
93
123
|
- MIT
|
94
124
|
metadata: {}
|
@@ -107,8 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
137
|
- !ruby/object:Gem::Version
|
108
138
|
version: '0'
|
109
139
|
requirements: []
|
110
|
-
|
111
|
-
rubygems_version: 2.6.11
|
140
|
+
rubygems_version: 3.1.2
|
112
141
|
signing_key:
|
113
142
|
specification_version: 4
|
114
143
|
summary: Untranslated language names for i18n.
|