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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 66c976f85fc8a2d84e80d235c37f4a490dfcb02e
4
- data.tar.gz: d9cc06b658019a62a772b126d690b271f11fa071
2
+ SHA256:
3
+ metadata.gz: 0f76b84970c20f339c9630ee82eb7cfb680411799bbbed53785dded8dc5c615b
4
+ data.tar.gz: 4351fa25b4708d67329a187fdae2f289b4d7be49534136a8a9b7336ee8dca4e2
5
5
  SHA512:
6
- metadata.gz: bd9f18be7b016d4c9d21886e90ad570def3ee786619477a94c9de55dd740325aaa8098414649f8479e6e70ed48022e3ff25b0567e6b0cd6039ba22433929dbe2
7
- data.tar.gz: c89ef48f96ce68ac51243e1d4292ea8628c57dab2a5a000cb76235312707bd4f3dafd36d3ecfd1a23cf3031030450a8d7db1086dabafd570fca9a363cf61d288
6
+ metadata.gz: 4009e3ffc9731e897c46b44c506916fba42abe306cb98dda6ba7a2377bfecb084423f3e76aaeb0bdac392d0f8b366cb29b10ff5ea462439f829028b487001e15
7
+ data.tar.gz: ef6dfcd44eb68dc1f588d381e8f396f459d3b5cc4d3593dde32913e840a3f0733864b3521c5d004149a587e0d56dda5a6b4001c2327286adf93b5c1785e0720a
@@ -0,0 +1 @@
1
+ inherit_from: https://raw.githubusercontent.com/leanpanda-com/rubocop/master/rubocop-rspec.yml
@@ -1,5 +1,13 @@
1
- sudo: false
2
1
  language: ruby
3
2
  rvm:
4
- - 2.4.1
5
- before_install: gem install bundler -v 1.14.6
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
@@ -1,3 +1,3 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
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
@@ -3,4 +3,4 @@ require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:spec)
5
5
 
6
- task :default => :spec
6
+ task default: :spec
@@ -2,7 +2,7 @@ require "u10d/version"
2
2
  require "i18n"
3
3
 
4
4
  module U10d
5
- KNOWN_LANGUAGES = %i(ar de en es fr hu it ml pt ro ru zh)
5
+ KNOWN_LANGUAGES = %i(ar de en es fr hu id it ml pt ro ru tr zh).freeze
6
6
 
7
7
  def self.activate!
8
8
  root_path = File.expand_path("..", __dir__)
@@ -1,3 +1,3 @@
1
1
  module U10d
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0".freeze
3
3
  end
@@ -1,6 +1,5 @@
1
- # coding: utf-8
2
- I18n.available_locales.reduce({}) do |a, locale|
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
@@ -1,20 +1,19 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
3
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
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 = ["joe.g.yates@gmail.com"]
9
+ spec.email = ["j.yates@leanpanda.com"]
11
10
 
12
- spec.summary = %q{Untranslated language names for i18n.}
13
- spec.description = %q{
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/cantierecreativo/u10n"
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", "~> 1.14"
30
- spec.add_development_dependency "rake", "~> 10.0"
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.2.1
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: 2017-12-16 00:00:00.000000000 Z
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
- description: "\n Get the name of any language in its original language.\n This
70
- is useful for GUI language switchers.\n "
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
- - joe.g.yates@gmail.com
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/cantierecreativo/u10n
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
- rubyforge_project:
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.