i18n_data 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/Rakefile +8 -12
- data/VERSION +1 -1
- data/i18n_data.gemspec +2 -2
- data/lib/i18n_data.rb +1 -1
- data/lib/i18n_data/live_data_provider.rb +1 -1
- data/spec/i18n_data_spec.rb +4 -2
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
data/README.markdown
CHANGED
data/Rakefile
CHANGED
@@ -1,13 +1,9 @@
|
|
1
|
-
$LOAD_PATH <<
|
2
|
-
require '
|
3
|
-
require 'yaml'
|
1
|
+
$LOAD_PATH << "lib"
|
2
|
+
require 'i18n_data'
|
4
3
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
files = FileList['spec/**/*_spec.rb']
|
9
|
-
system("spec #{options} #{files}")
|
10
|
-
end
|
4
|
+
task :default => :spec
|
5
|
+
require 'spec/rake/spectask'
|
6
|
+
Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color']}
|
11
7
|
|
12
8
|
desc "write all languages to output"
|
13
9
|
task :all_languages do
|
@@ -48,13 +44,13 @@ task :example_output do
|
|
48
44
|
names = I18nData.languages.keys.map do |lc|
|
49
45
|
begin
|
50
46
|
[I18nData.countries(lc)[cc], I18nData.languages[lc]]
|
51
|
-
rescue I18nData::
|
47
|
+
rescue I18nData::NoTranslationAvailable
|
52
48
|
nil
|
53
49
|
end
|
54
50
|
end
|
55
|
-
File.open("example_output/all_names_for_#{cc}.txt",'w')
|
51
|
+
File.open("example_output/all_names_for_#{cc}.txt",'w') do |f|
|
56
52
|
f.puts names.reject(&:nil?).map{|x|x*" ---- "} * "\n"
|
57
|
-
|
53
|
+
end
|
58
54
|
end
|
59
55
|
end
|
60
56
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/i18n_data.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{i18n_data}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.6"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Michael Grosser"]
|
12
|
-
s.date = %q{2009-
|
12
|
+
s.date = %q{2009-12-13}
|
13
13
|
s.email = %q{grosser.michael@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README.markdown"
|
data/lib/i18n_data.rb
CHANGED
data/spec/i18n_data_spec.rb
CHANGED
@@ -6,8 +6,10 @@ NUM_COUNTRIES = 246
|
|
6
6
|
describe I18nData do
|
7
7
|
require "i18n_data/live_data_provider"
|
8
8
|
require "i18n_data/file_data_provider"
|
9
|
-
|
10
|
-
[I18nData::
|
9
|
+
|
10
|
+
providers = [I18nData::FileDataProvider]
|
11
|
+
providers << I18nData::LiveDataProvider unless ENV['RUN_CODE_RUN']
|
12
|
+
providers.each do |provider|
|
11
13
|
describe "using #{provider}" do
|
12
14
|
before :all do
|
13
15
|
I18nData.data_provider = provider
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: i18n_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-12-13 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|