i18n_plus 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/lib/i18n_plus.rb +1 -0
- data/lib/i18n_plus/country.rb +1 -1
- data/lib/i18n_plus/currency.rb +1 -1
- data/lib/i18n_plus/language.rb +2 -2
- data/lib/i18n_plus/locale.rb +2 -2
- data/lib/i18n_plus/state.rb +1 -1
- data/lib/i18n_plus/version.rb +3 -0
- metadata +9 -8
data/CHANGELOG.md
CHANGED
data/lib/i18n_plus.rb
CHANGED
data/lib/i18n_plus/country.rb
CHANGED
@@ -2,7 +2,7 @@ require 'pathname'
|
|
2
2
|
|
3
3
|
module I18nPlus
|
4
4
|
data_path = ::Pathname.new(File.dirname(__FILE__) + '/../../data')
|
5
|
-
COUNTRIES = ::YAML.
|
5
|
+
COUNTRIES = ::YAML.load(File.open(data_path.join("countries.yml")))
|
6
6
|
|
7
7
|
def self.countries(*args)
|
8
8
|
options = args.extract_options!
|
data/lib/i18n_plus/currency.rb
CHANGED
@@ -2,7 +2,7 @@ require 'pathname'
|
|
2
2
|
|
3
3
|
module I18nPlus
|
4
4
|
data_path = ::Pathname.new(File.dirname(__FILE__) + '/../../data')
|
5
|
-
CURRENCIES = ::YAML.
|
5
|
+
CURRENCIES = ::YAML.load(File.open(data_path.join("currencies.yml")))
|
6
6
|
|
7
7
|
def self.currencies(*args)
|
8
8
|
options = args.extract_options!
|
data/lib/i18n_plus/language.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
|
3
3
|
module I18nPlus
|
4
|
-
data_path = Pathname.new(File.dirname(__FILE__) + '/../../data')
|
5
|
-
LANGUAGES = YAML.
|
4
|
+
data_path = ::Pathname.new(File.dirname(__FILE__) + '/../../data')
|
5
|
+
LANGUAGES = ::YAML.load(File.open(data_path.join("languages.yml")))
|
6
6
|
|
7
7
|
def self.languages(*args)
|
8
8
|
options = args.extract_options!
|
data/lib/i18n_plus/locale.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
require 'pathname'
|
2
2
|
|
3
3
|
module I18nPlus
|
4
|
-
data_path = Pathname.new(File.dirname(__FILE__) + '/../../data')
|
5
|
-
LOCALES = YAML.
|
4
|
+
data_path = ::Pathname.new(File.dirname(__FILE__) + '/../../data')
|
5
|
+
LOCALES = ::YAML.load(File.open(data_path.join("locales.yml")))
|
6
6
|
|
7
7
|
def self.locales(*args)
|
8
8
|
options = args.extract_options!
|
data/lib/i18n_plus/state.rb
CHANGED
@@ -2,7 +2,7 @@ require 'pathname'
|
|
2
2
|
|
3
3
|
module I18nPlus
|
4
4
|
data_path = ::Pathname.new(File.dirname(__FILE__) + '/../../data')
|
5
|
-
STATES = ::YAML.
|
5
|
+
STATES = ::YAML.load(File.open(data_path.join("states.yml")))
|
6
6
|
|
7
7
|
def self.states(country_code, *args)
|
8
8
|
options = args.extract_options!
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_plus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-12 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
16
|
-
requirement: &
|
16
|
+
requirement: &70111475010480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70111475010480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rdoc
|
27
|
-
requirement: &
|
27
|
+
requirement: &70111475010020 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,18 +32,18 @@ dependencies:
|
|
32
32
|
version: '2.5'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70111475010020
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70111475009560 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: '0.
|
43
|
+
version: '0.9'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70111475009560
|
47
47
|
description: A library for i18n of countries, states, currencies, and locales.
|
48
48
|
email:
|
49
49
|
- oliver.eilhard@gmail.com
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- lib/i18n_plus/language.rb
|
61
61
|
- lib/i18n_plus/locale.rb
|
62
62
|
- lib/i18n_plus/state.rb
|
63
|
+
- lib/i18n_plus/version.rb
|
63
64
|
- CHANGELOG.md
|
64
65
|
- LICENSE
|
65
66
|
- README.md
|