i81n 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/Gemfile +2 -12
  2. data/Gemfile.lock +9 -3
  3. data/Rakefile +2 -28
  4. data/i81n.gemspec +19 -57
  5. data/lib/i81n.rb +1 -1
  6. data/test/test_i81n.rb +1 -0
  7. metadata +21 -28
data/Gemfile CHANGED
@@ -1,14 +1,4 @@
1
1
  source "http://rubygems.org"
2
- # Add dependencies required to use your gem here.
3
- # Example:
4
- # gem "activesupport", ">= 2.3.5"
5
2
 
6
- gem 'i18n'
7
-
8
- # Add dependencies to develop your gem here.
9
- # Include everything needed to run rake, tests, features, etc.
10
- group :development do
11
- gem "shoulda", ">= 0"
12
- gem "bundler", "~> 1.0.0"
13
- gem "jeweler", "~> 1.5.2"
14
- end
3
+ # Specify your gem's dependencies in i81n.gemspec
4
+ gemspec
@@ -1,3 +1,9 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ i81n (0.2.1)
5
+ i18n
6
+
1
7
  GEM
2
8
  remote: http://rubygems.org/
3
9
  specs:
@@ -14,7 +20,7 @@ PLATFORMS
14
20
  ruby
15
21
 
16
22
  DEPENDENCIES
17
- bundler (~> 1.0.0)
18
- i18n
19
- jeweler (~> 1.5.2)
23
+ bundler
24
+ i81n!
25
+ jeweler
20
26
  shoulda
data/Rakefile CHANGED
@@ -1,32 +1,6 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- begin
4
- Bundler.setup(:default, :development)
5
- rescue Bundler::BundlerError => e
6
- $stderr.puts e.message
7
- $stderr.puts "Run `bundle install` to install missing gems"
8
- exit e.status_code
9
- end
10
- require 'rake'
11
-
12
- require 'jeweler'
13
- Jeweler::Tasks.new do |gem|
14
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
- gem.name = "i81n"
16
- gem.homepage = "http://github.com/jugyo/i81n"
17
- gem.license = "MIT"
18
- gem.summary = %Q{I81n is 'Internationalizaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaation'.}
19
- gem.description = %Q{I81n aims that make I18n easy to use.}
20
- gem.email = "jugyo.org@gmail.com"
21
- gem.authors = ["jugyo"]
22
- # Include your dependencies below. Runtime dependencies are required when using your gem,
23
- # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
24
- # gem.add_runtime_dependency 'jabber4r', '> 0.1'
25
- # gem.add_development_dependency 'rspec', '> 1.2.3'
26
- end
27
- Jeweler::RubygemsDotOrgTasks.new
28
-
1
+ require "bundler/gem_tasks"
29
2
  require 'rake/testtask'
3
+
30
4
  Rake::TestTask.new(:test) do |test|
31
5
  test.libs << 'lib' << 'test'
32
6
  test.pattern = 'test/**/test_*.rb'
@@ -1,64 +1,26 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
3
  Gem::Specification.new do |s|
7
- s.name = "i81n"
8
- s.version = "0.2.1"
4
+ s.name = "i81n"
5
+ s.version = "0.2.2"
6
+ s.authors = ["jugyo"]
7
+ s.email = ["jugyo.org@gmail.com"]
8
+ s.homepage = "https://github.com/jugyo/i81n"
9
+ s.summary = %Q{I81n is 'Internationalizaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaation'.}
10
+ s.description = %Q{I81n aims that make I18n easy to use.}
9
11
 
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["jugyo"]
12
- s.date = "2011-11-17"
13
- s.description = "I81n aims that make I18n easy to use."
14
- s.email = "jugyo.org@gmail.com"
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.md"
18
- ]
19
- s.files = [
20
- ".document",
21
- "Gemfile",
22
- "Gemfile.lock",
23
- "LICENSE.txt",
24
- "README.md",
25
- "Rakefile",
26
- "VERSION",
27
- "i81n.gemspec",
28
- "lib/i81n.rb",
29
- "test/fixtures/en.yml",
30
- "test/helper.rb",
31
- "test/test_i81n.rb"
32
- ]
33
- s.homepage = "http://github.com/jugyo/i81n"
34
- s.licenses = ["MIT"]
35
- s.require_paths = ["lib"]
36
- s.rubygems_version = "1.8.11"
37
- s.summary = "I81n is 'Internationalizaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaation'."
38
- s.test_files = [
39
- "test/helper.rb",
40
- "test/test_i81n.rb"
41
- ]
12
+ s.rubyforge_project = "i81n"
42
13
 
43
- if s.respond_to? :specification_version then
44
- s.specification_version = 3
14
+ s.files = `git ls-files`.split("\n")
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
16
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
+ s.require_paths = ["lib"]
45
18
 
46
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
47
- s.add_runtime_dependency(%q<i18n>, [">= 0"])
48
- s.add_development_dependency(%q<shoulda>, [">= 0"])
49
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
50
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
51
- else
52
- s.add_dependency(%q<i18n>, [">= 0"])
53
- s.add_dependency(%q<shoulda>, [">= 0"])
54
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
55
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
56
- end
57
- else
58
- s.add_dependency(%q<i18n>, [">= 0"])
59
- s.add_dependency(%q<shoulda>, [">= 0"])
60
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
61
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
62
- end
19
+ # specify any dependencies here; for example:
20
+ # s.add_development_dependency "rspec"
21
+ # s.add_runtime_dependency "rest-client"
22
+ s.add_runtime_dependency "i18n"
23
+ s.add_development_dependency "shoulda"
24
+ s.add_development_dependency "bundler"
25
+ s.add_development_dependency "jeweler"
63
26
  end
64
-
@@ -4,7 +4,7 @@ class I18n::Backend::I81n < I18n::Backend::Simple
4
4
 
5
5
  def initialize(ignore_pattern = nil)
6
6
  @ignore_pattern = ignore_pattern
7
- super
7
+ super()
8
8
  end
9
9
 
10
10
  def lookup(locale, key, scope = [], options = {})
@@ -3,6 +3,7 @@ require 'helper'
3
3
  class TestI81n < Test::Unit::TestCase
4
4
  context '' do
5
5
  setup do
6
+ I18n.backend = I18n::Backend::I81n.new
6
7
  I18n.config.load_path << File.expand_path('../fixtures/en.yml', __FILE__)
7
8
  end
8
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i81n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-11-17 00:00:00.000000000Z
12
+ date: 2011-11-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &2160161520 !ruby/object:Gem::Requirement
16
+ requirement: &14600820 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2160161520
24
+ version_requirements: *14600820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shoulda
27
- requirement: &2160160400 !ruby/object:Gem::Requirement
27
+ requirement: &14531960 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,36 +32,35 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2160160400
35
+ version_requirements: *14531960
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &2160159120 !ruby/object:Gem::Requirement
38
+ requirement: &14530700 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
- - - ~>
41
+ - - ! '>='
42
42
  - !ruby/object:Gem::Version
43
- version: 1.0.0
43
+ version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2160159120
46
+ version_requirements: *14530700
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &2160157800 !ruby/object:Gem::Requirement
49
+ requirement: &14529740 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
- - - ~>
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.5.2
54
+ version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2160157800
57
+ version_requirements: *14529740
58
58
  description: I81n aims that make I18n easy to use.
59
- email: jugyo.org@gmail.com
59
+ email:
60
+ - jugyo.org@gmail.com
60
61
  executables: []
61
62
  extensions: []
62
- extra_rdoc_files:
63
- - LICENSE.txt
64
- - README.md
63
+ extra_rdoc_files: []
65
64
  files:
66
65
  - .document
67
66
  - Gemfile
@@ -75,9 +74,8 @@ files:
75
74
  - test/fixtures/en.yml
76
75
  - test/helper.rb
77
76
  - test/test_i81n.rb
78
- homepage: http://github.com/jugyo/i81n
79
- licenses:
80
- - MIT
77
+ homepage: https://github.com/jugyo/i81n
78
+ licenses: []
81
79
  post_install_message:
82
80
  rdoc_options: []
83
81
  require_paths:
@@ -88,9 +86,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
88
86
  - - ! '>='
89
87
  - !ruby/object:Gem::Version
90
88
  version: '0'
91
- segments:
92
- - 0
93
- hash: -4339420276035753115
94
89
  required_rubygems_version: !ruby/object:Gem::Requirement
95
90
  none: false
96
91
  requirements:
@@ -98,11 +93,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
93
  - !ruby/object:Gem::Version
99
94
  version: '0'
100
95
  requirements: []
101
- rubyforge_project:
96
+ rubyforge_project: i81n
102
97
  rubygems_version: 1.8.11
103
98
  signing_key:
104
99
  specification_version: 3
105
100
  summary: I81n is 'Internationalizaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaation'.
106
- test_files:
107
- - test/helper.rb
108
- - test/test_i81n.rb
101
+ test_files: []