polish 0.0.5 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. data/.gitignore +2 -0
  2. data/Gemfile +14 -0
  3. data/README.md +9 -10
  4. data/Rakefile +25 -46
  5. data/VERSION +1 -0
  6. data/lib/polish.rb +5 -64
  7. data/lib/polish/locale/actionview.yml +5 -1
  8. data/lib/polish/locale/activerecord.yml +6 -1
  9. data/lib/polish/locale/datetime.rb +44 -0
  10. data/lib/polish/locale/datetime.yml +6 -15
  11. data/lib/polish/locale/pluralize.rb +16 -11
  12. data/lib/polish/proxies.rb +45 -0
  13. data/lib/proxies.rb +2 -0
  14. data/polish.gemspec +75 -0
  15. data/rails/init.rb +1 -0
  16. data/spec/fixtures/en.yml +2 -1
  17. data/spec/i18n/locale/datetime_spec.rb +30 -13
  18. data/spec/locale_spec.rb +23 -10
  19. data/spec/polish_spec.rb +11 -59
  20. data/spec/proxies_spec.rb +66 -0
  21. data/spec/spec_helper.rb +2 -0
  22. metadata +44 -79
  23. data/init.rb +0 -1
  24. data/lib/polish/backend/advanced.rb +0 -107
  25. data/lib/vendor/i18n/CHANGELOG.textile +0 -57
  26. data/lib/vendor/i18n/MIT-LICENSE +0 -20
  27. data/lib/vendor/i18n/README.textile +0 -42
  28. data/lib/vendor/i18n/Rakefile +0 -21
  29. data/lib/vendor/i18n/VERSION +0 -1
  30. data/lib/vendor/i18n/i18n.gemspec +0 -141
  31. data/lib/vendor/i18n/lib/i18n.rb +0 -270
  32. data/lib/vendor/i18n/lib/i18n/backend/base.rb +0 -251
  33. data/lib/vendor/i18n/lib/i18n/backend/cache.rb +0 -71
  34. data/lib/vendor/i18n/lib/i18n/backend/chain.rb +0 -64
  35. data/lib/vendor/i18n/lib/i18n/backend/fallbacks.rb +0 -53
  36. data/lib/vendor/i18n/lib/i18n/backend/gettext.rb +0 -65
  37. data/lib/vendor/i18n/lib/i18n/backend/pluralization.rb +0 -56
  38. data/lib/vendor/i18n/lib/i18n/backend/simple.rb +0 -23
  39. data/lib/vendor/i18n/lib/i18n/exceptions.rb +0 -61
  40. data/lib/vendor/i18n/lib/i18n/gettext.rb +0 -25
  41. data/lib/vendor/i18n/lib/i18n/helpers/gettext.rb +0 -35
  42. data/lib/vendor/i18n/lib/i18n/locale/fallbacks.rb +0 -100
  43. data/lib/vendor/i18n/lib/i18n/locale/tag.rb +0 -27
  44. data/lib/vendor/i18n/lib/i18n/locale/tag/parents.rb +0 -24
  45. data/lib/vendor/i18n/lib/i18n/locale/tag/rfc4646.rb +0 -78
  46. data/lib/vendor/i18n/lib/i18n/locale/tag/simple.rb +0 -44
  47. data/lib/vendor/i18n/lib/i18n/string.rb +0 -95
  48. data/lib/vendor/i18n/test/all.rb +0 -5
  49. data/lib/vendor/i18n/test/api/basics.rb +0 -15
  50. data/lib/vendor/i18n/test/api/interpolation.rb +0 -85
  51. data/lib/vendor/i18n/test/api/lambda.rb +0 -52
  52. data/lib/vendor/i18n/test/api/link.rb +0 -47
  53. data/lib/vendor/i18n/test/api/localization/date.rb +0 -65
  54. data/lib/vendor/i18n/test/api/localization/date_time.rb +0 -63
  55. data/lib/vendor/i18n/test/api/localization/lambda.rb +0 -26
  56. data/lib/vendor/i18n/test/api/localization/time.rb +0 -63
  57. data/lib/vendor/i18n/test/api/pluralization.rb +0 -37
  58. data/lib/vendor/i18n/test/api/translation.rb +0 -51
  59. data/lib/vendor/i18n/test/backend/cache/cache_test.rb +0 -57
  60. data/lib/vendor/i18n/test/backend/chain/api_test.rb +0 -80
  61. data/lib/vendor/i18n/test/backend/chain/chain_test.rb +0 -64
  62. data/lib/vendor/i18n/test/backend/fallbacks/api_test.rb +0 -79
  63. data/lib/vendor/i18n/test/backend/fallbacks/fallbacks_test.rb +0 -29
  64. data/lib/vendor/i18n/test/backend/pluralization/api_test.rb +0 -81
  65. data/lib/vendor/i18n/test/backend/pluralization/pluralization_test.rb +0 -39
  66. data/lib/vendor/i18n/test/backend/simple/all.rb +0 -5
  67. data/lib/vendor/i18n/test/backend/simple/api_test.rb +0 -90
  68. data/lib/vendor/i18n/test/backend/simple/lookup_test.rb +0 -24
  69. data/lib/vendor/i18n/test/backend/simple/setup.rb +0 -147
  70. data/lib/vendor/i18n/test/backend/simple/translations_test.rb +0 -89
  71. data/lib/vendor/i18n/test/fixtures/locales/de.po +0 -61
  72. data/lib/vendor/i18n/test/fixtures/locales/en.rb +0 -3
  73. data/lib/vendor/i18n/test/fixtures/locales/en.yml +0 -3
  74. data/lib/vendor/i18n/test/fixtures/locales/plurals.rb +0 -112
  75. data/lib/vendor/i18n/test/gettext/api_test.rb +0 -78
  76. data/lib/vendor/i18n/test/gettext/backend_test.rb +0 -35
  77. data/lib/vendor/i18n/test/i18n_exceptions_test.rb +0 -97
  78. data/lib/vendor/i18n/test/i18n_load_path_test.rb +0 -23
  79. data/lib/vendor/i18n/test/i18n_test.rb +0 -163
  80. data/lib/vendor/i18n/test/locale/fallbacks_test.rb +0 -128
  81. data/lib/vendor/i18n/test/locale/tag/rfc4646_test.rb +0 -147
  82. data/lib/vendor/i18n/test/locale/tag/simple_test.rb +0 -35
  83. data/lib/vendor/i18n/test/string_test.rb +0 -94
  84. data/lib/vendor/i18n/test/test_helper.rb +0 -71
  85. data/lib/vendor/i18n/test/with_options.rb +0 -34
  86. data/lib/vendor/i18n/vendor/po_parser.rb +0 -329
@@ -0,0 +1 @@
1
+ require 'lib/polish'
@@ -1,4 +1,5 @@
1
1
  # Fixture dummy translation
2
- # Need this to test if we preserve translation data that is already loaded when switching backends
2
+ # Need this to test if we preserve translation data that is already loaded
3
+ # when switching backends
3
4
  en:
4
5
  foo: "bar"
@@ -12,18 +12,19 @@ describe I18n, "Polish Date/Time localization" do
12
12
  end
13
13
 
14
14
  it "should use short format" do
15
- l(@date, :format => :short).should == "01. gru."
15
+ l(@date, :format => :short).should == " 1 gru."
16
16
  end
17
17
 
18
18
  it "should use long format" do
19
- l(@date, :format => :long).should == "01. grudnia 1985"
19
+ l(@date, :format => :long).should == " 1 grudnia 1985"
20
20
  end
21
21
  end
22
22
 
23
23
  describe "with date day names" do
24
24
  it "should use day names" do
25
25
  l(@date, :format => "%d %B (%A)").should == "01 grudnia (niedziela)"
26
- l(@date, :format => "%d %B %Y roku była %A").should == "01 grudnia 1985 roku była niedziela"
26
+ l(@date, :format => "%d %B %Y roku była %A").should ==
27
+ "01 grudnia 1985 roku była niedziela"
27
28
  end
28
29
 
29
30
  it "should use standalone day names" do
@@ -32,8 +33,8 @@ describe I18n, "Polish Date/Time localization" do
32
33
  end
33
34
 
34
35
  it "should use abbreviated day names" do
35
- l(@date, :format => "%a").should == "Nie."
36
- l(@date, :format => "%a, %d %b %Y").should == "Nie., 01 gru. 1985"
36
+ l(@date, :format => "%a").should == "Niedz."
37
+ l(@date, :format => "%a, %d %b %Y").should == "Niedz., 01 gru. 1985"
37
38
  end
38
39
  end
39
40
 
@@ -42,8 +43,10 @@ describe I18n, "Polish Date/Time localization" do
42
43
  l(@date, :format => "%d %B").should == "01 grudnia"
43
44
  l(@date, :format => "%e %B %Y").should == " 1 grudnia 1985"
44
45
  l(@date, :format => "<b>%d</b> %B").should == "<b>01</b> grudnia"
45
- l(@date, :format => "<strong>%e</strong> %B %Y").should == "<strong> 1</strong> grudnia 1985"
46
- l(@date, :format => "A było to dnia %ego miesiąca %B %Y").should == "A było to dnia 1go miesiąca grudnia 1985"
46
+ l(@date, :format => "<strong>%e</strong> %B %Y").should ==
47
+ "<strong> 1</strong> grudnia 1985"
48
+ l(@date, :format => "A było to dnia %ego miesiąca %B %Y").should ==
49
+ "A było to dnia 1go miesiąca grudnia 1985"
47
50
  end
48
51
 
49
52
  it "should use standalone month names" do
@@ -65,20 +68,21 @@ describe I18n, "Polish Date/Time localization" do
65
68
  end
66
69
 
67
70
  it "should define default date components order: year, month, day" do
68
- I18n.backend.translate(Polish.locale, :"date.order").should == [:day, :month, :year]
71
+ I18n.backend.translate(Polish.locale, :"date.order").should ==
72
+ [:day, :month, :year]
69
73
  end
70
74
 
71
75
  describe "with time formats" do
72
76
  it "should use default format" do
73
- l(@time).should =~ /^Nie., 01. grudnia 1985, 16:05:00/
77
+ l(@time).should =~ /^Niedz., 1 grudnia 1985, 16:05:00/
74
78
  end
75
79
 
76
80
  it "should use short format" do
77
- l(@time, :format => :short).should == "01. gru., 16:05"
81
+ l(@time, :format => :short).should == " 1 gru., 16:05"
78
82
  end
79
83
 
80
84
  it "should use long format" do
81
- l(@time, :format => :long).should == "01. grudnia 1985, 16:05"
85
+ l(@time, :format => :long).should == " 1 grudnia 1985, 16:05"
82
86
  end
83
87
 
84
88
  it "should define am and pm" do
@@ -86,9 +90,22 @@ describe I18n, "Polish Date/Time localization" do
86
90
  I18n.backend.translate(Polish.locale, :"time.pm").should_not be_nil
87
91
  end
88
92
  end
89
-
93
+
94
+ describe "with time distances" do
95
+ before do
96
+ @now = Time.now
97
+ @three_minutes_from_now = @now + 3 * 60
98
+ @hour_ago = @now - 60 * 60
99
+ end
100
+
101
+ # it "should translate distance of time in words" do
102
+ # distance_of_time_in_words(@now, @three_minutes_from_now).should == "3 minuty"
103
+ # end
104
+
105
+ end
106
+
90
107
  protected
91
108
  def l(object, options = {})
92
109
  I18n.l(object, options.merge( { :locale => Polish.locale }))
93
110
  end
94
- end
111
+ end
@@ -9,13 +9,6 @@ describe Polish, "loading locales" do
9
9
  date.formats.default
10
10
  date.formats.short
11
11
  date.formats.long
12
- date.day_names
13
- date.standalone_day_names
14
- date.abbr_day_names
15
- date.month_names
16
- date.standalone_month_names
17
- date.abbr_month_names
18
- date.standalone_abbr_month_names
19
12
  date.order
20
13
 
21
14
  time.formats.default
@@ -27,11 +20,31 @@ describe Polish, "loading locales" do
27
20
  it "should define '#{key}' in datetime translations" do
28
21
  lookup(key).should_not be_nil
29
22
  end
23
+
24
+ it "should define month_names in datetime translations" do
25
+ lookup(:"date.month_names").should_not be_nil
26
+ lookup(:"date.month_names").is_a?(Proc).should be_true
27
+ end
28
+
29
+ it "should define abbr_month_names in datetime translations" do
30
+ lookup(:"date.abbr_month_names").should_not be_nil
31
+ lookup(:"date.abbr_month_names").is_a?(Proc).should be_true
32
+ end
33
+
34
+ it "should define day_names in datetime translations" do
35
+ lookup(:"date.day_names").should_not be_nil
36
+ lookup(:"date.day_names").is_a?(Proc).should be_true
37
+ end
38
+
39
+ it "should define abbr_day_names in datetime translations" do
40
+ lookup(:"date.abbr_day_names").should_not be_nil
41
+ lookup(:"date.abbr_day_names").is_a?(Proc).should be_true
42
+ end
30
43
  end
31
44
 
32
45
  it "should load pluralization rules" do
33
- lookup(:"pluralize").should_not be_nil
34
- lookup(:"pluralize").is_a?(Proc).should be_true
46
+ lookup(:"i18n.plural.rule").should_not be_nil
47
+ lookup(:"i18n.plural.rule").is_a?(Proc).should be_true
35
48
  end
36
49
 
37
50
  %w(
@@ -124,4 +137,4 @@ describe Polish, "loading locales" do
124
137
  def lookup(*args)
125
138
  I18n.backend.send(:lookup, Polish.locale, *args)
126
139
  end
127
- end
140
+ end
@@ -19,21 +19,14 @@ describe Polish do
19
19
  end
20
20
  end
21
21
 
22
- describe "with custom backend class" do
23
- it "should define i18n_backend_class" do
24
- Polish.i18n_backend_class.should == I18n::Backend::Advanced
25
- end
26
- end
27
-
28
22
  describe "during i18n initialization" do
29
23
  after(:each) do
30
24
  I18n.load_path = []
31
25
  Polish.init_i18n
32
26
  end
33
27
 
34
- it "should set I18n backend to an instance of a custom backend" do
35
- Polish.init_i18n
36
- I18n.backend.class.should == Polish.i18n_backend_class
28
+ it "should extend the backend with I18n::Backend::Pluralization" do
29
+ I18n.backend.class.ancestors.should include(I18n::Backend::Pluralization)
37
30
  end
38
31
 
39
32
  it "should keep existing translations while switching backends" do
@@ -55,51 +48,6 @@ describe Polish do
55
48
  end
56
49
  end
57
50
 
58
- describe "with localize proxy" do
59
- before(:all) do
60
- @time = mock(:time)
61
- @options = { :format => "%d %B %Y" }
62
- end
63
-
64
- %w(l localize).each do |method|
65
- it "'#{method}' should call I18n backend localize" do
66
- I18n.should_receive(:localize).with(@time, @options.merge({ :locale => Polish.locale }))
67
- Polish.send(method, @time, @options)
68
- end
69
- end
70
- end
71
-
72
- describe "with translate proxy" do
73
- before(:all) do
74
- @object = :bar
75
- @options = { :scope => :foo }
76
- end
77
-
78
- %w(t translate).each do |method|
79
- it "'#{method}' should call I18n backend translate" do
80
- I18n.should_receive(:translate).with(@object, @options.merge({ :locale => Polish.locale }))
81
- Polish.send(method, @object, @options)
82
- end
83
- end
84
- end
85
-
86
- describe "strftime" do
87
- before(:all) do
88
- @time = mock(:time)
89
- end
90
-
91
- it "should call localize with object and format" do
92
- format = "%d %B %Y"
93
- Polish.should_receive(:localize).with(@time, { :format => format })
94
- Polish.strftime(@time, format)
95
- end
96
-
97
- it "should call localize with object and default format when format is not specified" do
98
- Polish.should_receive(:localize).with(@time, { :format => :default })
99
- Polish.strftime(@time)
100
- end
101
- end
102
-
103
51
  describe "with pluralization" do
104
52
  %w(p pluralize).each do |method|
105
53
  it "'#{method}' should pluralize with variants given" do
@@ -128,15 +76,19 @@ describe Polish do
128
76
  end
129
77
 
130
78
  it "should raise an exception when first parameter is not a number" do
131
- lambda { Polish.send(method, nil, "dom", "domy", "domów") }.should raise_error(ArgumentError)
132
- lambda { Polish.send(method, "dom", "domy", "domów", "domów") }.should raise_error(ArgumentError)
79
+ lambda { Polish.send(method, nil, "dom", "domy", "domów") }.should
80
+ raise_error(ArgumentError)
81
+ lambda { Polish.send(method, "dom", "domy", "domów", "domów") }.should
82
+ raise_error(ArgumentError)
133
83
  end
134
84
 
135
85
  it "should raise an exception when there are not enough variants" do
136
86
  lambda { Polish.send(method, 1) }.should raise_error(ArgumentError)
137
- lambda { Polish.send(method, 1, "dom") }.should raise_error(ArgumentError)
138
- lambda { Polish.send(method, 1, "dom", "domy") }.should raise_error(ArgumentError)
87
+ lambda { Polish.send(method, 1, "dom") }.should
88
+ raise_error(ArgumentError)
89
+ lambda { Polish.send(method, 1, "dom", "domy") }.should
90
+ raise_error(ArgumentError)
139
91
  end
140
92
  end
141
93
  end
142
- end
94
+ end
@@ -0,0 +1,66 @@
1
+ require File.dirname(__FILE__) + '/spec_helper'
2
+
3
+ describe "with localize proxy" do
4
+ before(:all) do
5
+ @time = mock(:time)
6
+ @options = { :format => "%d %B %Y" }
7
+ end
8
+
9
+ %w(l localize).each do |method|
10
+ it "'#{method}' should call I18n backend localize" do
11
+ I18n.should_receive(:localize).with(@time, @options.merge({ :locale => Polish.locale }))
12
+ Polish.send(method, @time, @options)
13
+ end
14
+ end
15
+ end
16
+
17
+ describe "with translate proxy" do
18
+ before(:all) do
19
+ @object = :bar
20
+ @options = { :scope => :foo }
21
+ end
22
+
23
+ %w(t translate).each do |method|
24
+ it "'#{method}' should call I18n backend translate" do
25
+ I18n.should_receive(:translate).with(@object, @options.merge({ :locale => Polish.locale }))
26
+ Polish.send(method, @object, @options)
27
+ end
28
+ end
29
+ end
30
+
31
+ describe "strftime" do
32
+ before(:all) do
33
+ @time = mock(:time)
34
+ end
35
+
36
+ it "should call localize with object and format" do
37
+ format = "%d %B %Y"
38
+ Polish.should_receive(:localize).with(@time, { :format => format })
39
+ Polish.strftime(@time, format)
40
+ end
41
+
42
+ it "should call localize with object and default format when format is not specified" do
43
+ Polish.should_receive(:localize).with(@time, { :format => :default })
44
+ Polish.strftime(@time)
45
+ end
46
+ end
47
+
48
+ describe "pluralize" do
49
+ before(:all) do
50
+ @variants = %w(dom domy domów)
51
+ @variants_hash = {
52
+ :one => @variants[0],
53
+ :few => @variants[1],
54
+ :other => @variants[2]
55
+ }
56
+ @count = 5
57
+ end
58
+
59
+ %w(p pluralize).each do |method|
60
+ it "'#{method}' should call I18n backend pluralize" do
61
+ I18n.backend.should_receive(:pluralize).with(Polish.locale, @variants_hash, @count)
62
+ Polish.pluralize(@count, *@variants)
63
+ end
64
+ end
65
+ end
66
+
@@ -1,4 +1,6 @@
1
1
  $TESTING=true
2
2
  $:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
3
3
 
4
+ require 'rubygems'
5
+ require 'i18n'
4
6
  require 'polish'
metadata CHANGED
@@ -1,124 +1,84 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polish
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 5
10
- version: 0.0.5
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Grzesiek Kolodziejczyk
14
- autorequire: polish
14
+ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-21 00:00:00 +02:00
18
+ date: 2010-07-23 00:00:00 +02:00
19
19
  default_executable:
20
- dependencies: []
21
-
22
- description: Polish language support for Ruby and Rails
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ prerelease: false
23
+ type: :runtime
24
+ name: i18n
25
+ version_requirements: &id001 !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ hash: 21
31
+ segments:
32
+ - 0
33
+ - 3
34
+ - 3
35
+ version: 0.3.3
36
+ requirement: *id001
37
+ description:
23
38
  email: gkolodziejczyk@gmail.com
24
39
  executables: []
25
40
 
26
41
  extensions: []
27
42
 
28
43
  extra_rdoc_files:
29
- - README.md
30
44
  - LICENSE
45
+ - README.md
31
46
  - TODO
32
47
  files:
48
+ - .gitignore
49
+ - Gemfile
33
50
  - LICENSE
34
51
  - README.md
35
52
  - Rakefile
36
53
  - TODO
37
- - init.rb
54
+ - VERSION
55
+ - lib/polish.rb
38
56
  - lib/polish/action_view_ext/helpers/date_helper.rb
39
- - lib/polish/backend/advanced.rb
40
57
  - lib/polish/locale/actionview.yml
41
58
  - lib/polish/locale/activerecord.yml
42
59
  - lib/polish/locale/activesupport.yml
60
+ - lib/polish/locale/datetime.rb
43
61
  - lib/polish/locale/datetime.yml
44
62
  - lib/polish/locale/pluralize.rb
45
- - lib/polish.rb
46
- - lib/vendor/i18n/CHANGELOG.textile
47
- - lib/vendor/i18n/i18n.gemspec
48
- - lib/vendor/i18n/lib/i18n/backend/base.rb
49
- - lib/vendor/i18n/lib/i18n/backend/cache.rb
50
- - lib/vendor/i18n/lib/i18n/backend/chain.rb
51
- - lib/vendor/i18n/lib/i18n/backend/fallbacks.rb
52
- - lib/vendor/i18n/lib/i18n/backend/gettext.rb
53
- - lib/vendor/i18n/lib/i18n/backend/pluralization.rb
54
- - lib/vendor/i18n/lib/i18n/backend/simple.rb
55
- - lib/vendor/i18n/lib/i18n/exceptions.rb
56
- - lib/vendor/i18n/lib/i18n/gettext.rb
57
- - lib/vendor/i18n/lib/i18n/helpers/gettext.rb
58
- - lib/vendor/i18n/lib/i18n/locale/fallbacks.rb
59
- - lib/vendor/i18n/lib/i18n/locale/tag/parents.rb
60
- - lib/vendor/i18n/lib/i18n/locale/tag/rfc4646.rb
61
- - lib/vendor/i18n/lib/i18n/locale/tag/simple.rb
62
- - lib/vendor/i18n/lib/i18n/locale/tag.rb
63
- - lib/vendor/i18n/lib/i18n/string.rb
64
- - lib/vendor/i18n/lib/i18n.rb
65
- - lib/vendor/i18n/MIT-LICENSE
66
- - lib/vendor/i18n/Rakefile
67
- - lib/vendor/i18n/README.textile
68
- - lib/vendor/i18n/test/all.rb
69
- - lib/vendor/i18n/test/api/basics.rb
70
- - lib/vendor/i18n/test/api/interpolation.rb
71
- - lib/vendor/i18n/test/api/lambda.rb
72
- - lib/vendor/i18n/test/api/link.rb
73
- - lib/vendor/i18n/test/api/localization/date.rb
74
- - lib/vendor/i18n/test/api/localization/date_time.rb
75
- - lib/vendor/i18n/test/api/localization/lambda.rb
76
- - lib/vendor/i18n/test/api/localization/time.rb
77
- - lib/vendor/i18n/test/api/pluralization.rb
78
- - lib/vendor/i18n/test/api/translation.rb
79
- - lib/vendor/i18n/test/backend/cache/cache_test.rb
80
- - lib/vendor/i18n/test/backend/chain/api_test.rb
81
- - lib/vendor/i18n/test/backend/chain/chain_test.rb
82
- - lib/vendor/i18n/test/backend/fallbacks/api_test.rb
83
- - lib/vendor/i18n/test/backend/fallbacks/fallbacks_test.rb
84
- - lib/vendor/i18n/test/backend/pluralization/api_test.rb
85
- - lib/vendor/i18n/test/backend/pluralization/pluralization_test.rb
86
- - lib/vendor/i18n/test/backend/simple/all.rb
87
- - lib/vendor/i18n/test/backend/simple/api_test.rb
88
- - lib/vendor/i18n/test/backend/simple/lookup_test.rb
89
- - lib/vendor/i18n/test/backend/simple/setup.rb
90
- - lib/vendor/i18n/test/backend/simple/translations_test.rb
91
- - lib/vendor/i18n/test/fixtures/locales/de.po
92
- - lib/vendor/i18n/test/fixtures/locales/en.rb
93
- - lib/vendor/i18n/test/fixtures/locales/en.yml
94
- - lib/vendor/i18n/test/fixtures/locales/plurals.rb
95
- - lib/vendor/i18n/test/gettext/api_test.rb
96
- - lib/vendor/i18n/test/gettext/backend_test.rb
97
- - lib/vendor/i18n/test/i18n_exceptions_test.rb
98
- - lib/vendor/i18n/test/i18n_load_path_test.rb
99
- - lib/vendor/i18n/test/i18n_test.rb
100
- - lib/vendor/i18n/test/locale/fallbacks_test.rb
101
- - lib/vendor/i18n/test/locale/tag/rfc4646_test.rb
102
- - lib/vendor/i18n/test/locale/tag/simple_test.rb
103
- - lib/vendor/i18n/test/string_test.rb
104
- - lib/vendor/i18n/test/test_helper.rb
105
- - lib/vendor/i18n/test/with_options.rb
106
- - lib/vendor/i18n/vendor/po_parser.rb
107
- - lib/vendor/i18n/VERSION
63
+ - lib/polish/proxies.rb
64
+ - lib/proxies.rb
65
+ - polish.gemspec
66
+ - rails/init.rb
108
67
  - spec/fixtures/en.yml
109
68
  - spec/fixtures/pl.yml
110
69
  - spec/i18n/locale/datetime_spec.rb
111
70
  - spec/i18n/locale/pluralization_spec.rb
112
71
  - spec/locale_spec.rb
113
72
  - spec/polish_spec.rb
73
+ - spec/proxies_spec.rb
114
74
  - spec/spec_helper.rb
115
75
  has_rdoc: true
116
- homepage: http://github.com/grk/polish/
76
+ homepage: http://github.com/grk/polish
117
77
  licenses: []
118
78
 
119
79
  post_install_message:
120
- rdoc_options: []
121
-
80
+ rdoc_options:
81
+ - --charset=UTF-8
122
82
  require_paths:
123
83
  - lib
124
84
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -146,5 +106,10 @@ rubygems_version: 1.3.7
146
106
  signing_key:
147
107
  specification_version: 3
148
108
  summary: Polish language support for Ruby and Rails
149
- test_files: []
150
-
109
+ test_files:
110
+ - spec/i18n/locale/datetime_spec.rb
111
+ - spec/i18n/locale/pluralization_spec.rb
112
+ - spec/locale_spec.rb
113
+ - spec/polish_spec.rb
114
+ - spec/proxies_spec.rb
115
+ - spec/spec_helper.rb