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.
@@ -9,7 +9,7 @@ Through [pkg-isocodes](http://git.debian.org/?p=iso-codes/iso-codes.git):
9
9
 
10
10
  Install
11
11
  =======
12
- ` sudo gem install i18n_data -s http://gemcutter.org `
12
+ ` sudo gem install i18n_data
13
13
 
14
14
  Usage
15
15
  =====
data/Rakefile CHANGED
@@ -1,13 +1,9 @@
1
- $LOAD_PATH << File.join(File.dirname(__FILE__),"..","lib")
2
- require 'lib/i18n_data'#TODO should not be necessary but is :/
3
- require 'yaml'
1
+ $LOAD_PATH << "lib"
2
+ require 'i18n_data'
4
3
 
5
- desc "Run all specs in spec directory"
6
- task :default do |t|
7
- options = "--colour --format progress --loadby --reverse"
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::NoOnlineTranslationAvaiable
47
+ rescue I18nData::NoTranslationAvailable
52
48
  nil
53
49
  end
54
50
  end
55
- File.open("example_output/all_names_for_#{cc}.txt",'w') {|f|
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.5
1
+ 0.2.6
@@ -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.5"
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-11-16}
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"
@@ -1,4 +1,4 @@
1
- require 'activesupport'
1
+ require 'active_support'
2
2
 
3
3
  module I18nData
4
4
  VERSION = File.read( File.join(File.dirname(__FILE__), '..', 'VERSION') ).strip
@@ -1,7 +1,7 @@
1
1
  require 'open-uri'
2
2
  require 'rexml/document'
3
3
  gem 'activesupport', '> 2.2'
4
- require 'activesupport'
4
+ require 'active_support'
5
5
 
6
6
  module I18nData
7
7
  # fetches data online from debian svn
@@ -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::LiveDataProvider,I18nData::FileDataProvider].each do |provider|
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
@@ -1,2 +1,3 @@
1
1
  $LOAD_PATH << 'lib'
2
+ require 'rubygems'
2
3
  require 'i18n_data'
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.5
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-11-16 00:00:00 +01:00
12
+ date: 2009-12-13 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency