will-paginate-i18n 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1 @@
1
+ rvm: 1.9.2
data/Gemfile CHANGED
@@ -2,7 +2,8 @@ source "http://rubygems.org"
2
2
 
3
3
  group :development do
4
4
  gem "rspec", "~> 2.3.0"
5
- gem "bundler", "~> 1.0.0"
5
+ gem "bundler", "~> 1.1.rc.3"
6
6
  gem "jeweler", "~> 1.6.4"
7
7
  gem "rcov", ">= 0"
8
+ gem 'i18n-spec'
8
9
  end
data/Gemfile.lock CHANGED
@@ -3,10 +3,13 @@ GEM
3
3
  specs:
4
4
  diff-lcs (1.1.3)
5
5
  git (1.2.5)
6
+ i18n-spec (0.0.2)
7
+ psych
6
8
  jeweler (1.6.4)
7
9
  bundler (~> 1.0)
8
10
  git (>= 1.2.5)
9
11
  rake
12
+ psych (1.2.2)
10
13
  rake (0.9.2.2)
11
14
  rcov (0.9.11)
12
15
  rspec (2.3.0)
@@ -22,7 +25,8 @@ PLATFORMS
22
25
  ruby
23
26
 
24
27
  DEPENDENCIES
25
- bundler (~> 1.0.0)
28
+ bundler (~> 1.1.rc.3)
29
+ i18n-spec
26
30
  jeweler (~> 1.6.4)
27
31
  rcov
28
32
  rspec (~> 2.3.0)
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- = will-paginate-i18n
1
+ # will-paginate-i18n
2
2
 
3
- Description goes here.
3
+ [![Build Status](https://secure.travis-ci.org/tigrish/will-paginate-i18n.png)](http://travis-ci.org/tigrish/will-paginate-i18n)
4
4
 
5
- == Contributing to will-paginate-i18n
5
+ ## Contributing to will-paginate-i18n
6
6
 
7
7
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
8
8
  * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
@@ -12,7 +12,7 @@ Description goes here.
12
12
  * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
13
  * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
14
14
 
15
- == Copyright
15
+ ## Copyright
16
16
 
17
17
  Copyright (c) 2011 Christopher Dell. See LICENSE.txt for
18
18
  further details.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -0,0 +1,10 @@
1
+ require 'rails'
2
+
3
+ module WillPaginateI18n
4
+ class Railtie < ::Rails::Railtie #:nodoc:
5
+ initializer 'rails-i18n' do |app|
6
+ I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../locale'), '*.yml')]
7
+ I18n.load_path.flatten!
8
+ end
9
+ end
10
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
2
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
3
  require 'rspec'
4
- require 'will-paginate-i18n'
4
+ require 'i18n-spec'
5
5
 
6
6
  # Requires supporting files with custom matchers and macros, etc,
7
7
  # in ./support/ and its subdirectories.
@@ -1,7 +1,7 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
- describe "WillPaginateI18n" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
3
+ Dir.glob('locale/*.yml').each do |locale_file|
4
+ describe 'a locale file' do
5
+ it_behaves_like 'a valid locale file', locale_file
6
6
  end
7
- end
7
+ end
@@ -0,0 +1,79 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{will-paginate-i18n}
8
+ s.version = "0.0.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = [%q{Christopher Dell}]
12
+ s.date = %q{2011-12-13}
13
+ s.description = %q{Translations for the will_paginate gem}
14
+ s.email = %q{chris@tigrish.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ ".rvmrc",
23
+ ".travis.yml",
24
+ "Gemfile",
25
+ "Gemfile.lock",
26
+ "LICENSE.txt",
27
+ "README.md",
28
+ "Rakefile",
29
+ "VERSION",
30
+ "lib/will-paginate-i18n.rb",
31
+ "locale/bg.yml",
32
+ "locale/da.yml",
33
+ "locale/de.yml",
34
+ "locale/en-AU.yml",
35
+ "locale/en-GB.yml",
36
+ "locale/en-US.yml",
37
+ "locale/es.yml",
38
+ "locale/fr.yml",
39
+ "locale/hu.yml",
40
+ "locale/it.yml",
41
+ "locale/ja.yml",
42
+ "locale/nl.yml",
43
+ "locale/pt-PT.yml",
44
+ "locale/ru.yml",
45
+ "spec/spec_helper.rb",
46
+ "spec/will-paginate-i18n_spec.rb",
47
+ "will-paginate-i18n.gemspec"
48
+ ]
49
+ s.homepage = %q{http://github.com/tigrish/will-paginate-i18n}
50
+ s.licenses = [%q{MIT}]
51
+ s.require_paths = [%q{lib}]
52
+ s.rubygems_version = %q{1.8.6}
53
+ s.summary = %q{Translations for the will_paginate gem}
54
+
55
+ if s.respond_to? :specification_version then
56
+ s.specification_version = 3
57
+
58
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
59
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
60
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.rc.3"])
61
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
62
+ s.add_development_dependency(%q<rcov>, [">= 0"])
63
+ s.add_development_dependency(%q<i18n-spec>, [">= 0"])
64
+ else
65
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
66
+ s.add_dependency(%q<bundler>, ["~> 1.1.rc.3"])
67
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
68
+ s.add_dependency(%q<rcov>, [">= 0"])
69
+ s.add_dependency(%q<i18n-spec>, [">= 0"])
70
+ end
71
+ else
72
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
73
+ s.add_dependency(%q<bundler>, ["~> 1.1.rc.3"])
74
+ s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
75
+ s.add_dependency(%q<rcov>, [">= 0"])
76
+ s.add_dependency(%q<i18n-spec>, [">= 0"])
77
+ end
78
+ end
79
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will-paginate-i18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.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-12-12 00:00:00.000000000Z
12
+ date: 2011-12-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70097065426440 !ruby/object:Gem::Requirement
16
+ requirement: &70347079564320 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,21 +21,21 @@ dependencies:
21
21
  version: 2.3.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70097065426440
24
+ version_requirements: *70347079564320
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70097065425960 !ruby/object:Gem::Requirement
27
+ requirement: &70347079563840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.0
32
+ version: 1.1.rc.3
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70097065425960
35
+ version_requirements: *70347079563840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: jeweler
38
- requirement: &70097065425480 !ruby/object:Gem::Requirement
38
+ requirement: &70347079563360 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 1.6.4
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70097065425480
46
+ version_requirements: *70347079563360
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rcov
49
- requirement: &70097065425000 !ruby/object:Gem::Requirement
49
+ requirement: &70347079562880 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,18 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70097065425000
57
+ version_requirements: *70347079562880
58
+ - !ruby/object:Gem::Dependency
59
+ name: i18n-spec
60
+ requirement: &70347079562400 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: *70347079562400
58
69
  description: Translations for the will_paginate gem
59
70
  email: chris@tigrish.com
60
71
  executables: []
@@ -66,6 +77,7 @@ files:
66
77
  - .document
67
78
  - .rspec
68
79
  - .rvmrc
80
+ - .travis.yml
69
81
  - Gemfile
70
82
  - Gemfile.lock
71
83
  - LICENSE.txt
@@ -89,6 +101,7 @@ files:
89
101
  - locale/ru.yml
90
102
  - spec/spec_helper.rb
91
103
  - spec/will-paginate-i18n_spec.rb
104
+ - will-paginate-i18n.gemspec
92
105
  homepage: http://github.com/tigrish/will-paginate-i18n
93
106
  licenses:
94
107
  - MIT
@@ -104,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
104
117
  version: '0'
105
118
  segments:
106
119
  - 0
107
- hash: -4106261364145868694
120
+ hash: -4440422118256798141
108
121
  required_rubygems_version: !ruby/object:Gem::Requirement
109
122
  none: false
110
123
  requirements: