polish 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  pl:
2
- activerecord:
2
+ activerecord: &active_model
3
3
  errors:
4
4
  template:
5
5
  header:
@@ -33,3 +33,6 @@ pl:
33
33
  less_than_or_equal_to: "musi być mniejsze lub równe %{count}"
34
34
  odd: "musi być nieparzyste"
35
35
  even: "musi być parzyste"
36
+
37
+ activemodel:
38
+ <<: *active_model
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{polish}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.authors = ["Grzesiek Kolodziejczyk"]
11
11
  s.date = %q{2010-07-23}
@@ -1,22 +1,22 @@
1
1
  require File.dirname(__FILE__) + '/spec_helper'
2
-
2
+
3
3
  describe Polish, "loading locales" do
4
4
  before(:all) do
5
5
  Polish.init_i18n
6
6
  end
7
-
7
+
8
8
  %w(
9
9
  date.formats.default
10
10
  date.formats.short
11
11
  date.formats.long
12
12
  date.order
13
-
13
+
14
14
  time.formats.default
15
15
  time.formats.short
16
16
  time.formats.long
17
17
  time.am
18
18
  time.pm
19
- ).each do |key|
19
+ ).each do |key|
20
20
  it "should define '#{key}' in datetime translations" do
21
21
  lookup(key).should_not be_nil
22
22
  end
@@ -41,12 +41,12 @@ describe Polish, "loading locales" do
41
41
  lookup(:"date.abbr_day_names").is_a?(Proc).should be_true
42
42
  end
43
43
  end
44
-
44
+
45
45
  it "should load pluralization rules" do
46
46
  lookup(:"i18n.plural.rule").should_not be_nil
47
47
  lookup(:"i18n.plural.rule").is_a?(Proc).should be_true
48
48
  end
49
-
49
+
50
50
  %w(
51
51
  number.format.separator
52
52
  number.format.delimiter
@@ -61,7 +61,7 @@ describe Polish, "loading locales" do
61
61
  number.human.format.delimiter
62
62
  number.human.format.precision
63
63
  number.human.storage_units
64
-
64
+
65
65
  datetime.distance_in_words.half_a_minute
66
66
  datetime.distance_in_words.less_than_x_seconds
67
67
  datetime.distance_in_words.x_seconds
@@ -73,67 +73,71 @@ describe Polish, "loading locales" do
73
73
  datetime.distance_in_words.x_months
74
74
  datetime.distance_in_words.about_x_years
75
75
  datetime.distance_in_words.over_x_years
76
-
76
+
77
77
  datetime.prompts.year
78
78
  datetime.prompts.month
79
79
  datetime.prompts.day
80
80
  datetime.prompts.hour
81
81
  datetime.prompts.minute
82
82
  datetime.prompts.second
83
-
83
+
84
84
  activerecord.errors.template.header
85
85
  activerecord.errors.template.body
86
-
86
+
87
87
  helpers.select.prompt
88
88
  helpers.submit.create
89
89
  helpers.submit.update
90
90
  helpers.submit.submit
91
- ).each do |key|
91
+ ).each do |key|
92
92
  it "should define '#{key}' in actionview translations" do
93
93
  lookup(key).should_not be_nil
94
94
  end
95
95
  end
96
-
96
+
97
97
  %w(
98
- activerecord.errors.messages.inclusion
99
- activerecord.errors.messages.exclusion
100
- activerecord.errors.messages.invalid
101
- activerecord.errors.messages.confirmation
102
- activerecord.errors.messages.accepted
103
- activerecord.errors.messages.empty
104
- activerecord.errors.messages.blank
105
- activerecord.errors.messages.too_long
106
- activerecord.errors.messages.too_short
107
- activerecord.errors.messages.wrong_length
108
- activerecord.errors.messages.taken
109
- activerecord.errors.messages.not_a_number
110
- activerecord.errors.messages.greater_than
111
- activerecord.errors.messages.greater_than_or_equal_to
112
- activerecord.errors.messages.equal_to
113
- activerecord.errors.messages.less_than
114
- activerecord.errors.messages.less_than_or_equal_to
115
- activerecord.errors.messages.odd
116
- activerecord.errors.messages.even
117
- activerecord.errors.messages.record_invalid
118
- ).each do |key|
119
- it "should define '#{key}' in activerecord translations" do
120
- lookup(key).should_not be_nil
98
+ errors.messages.inclusion
99
+ errors.messages.exclusion
100
+ errors.messages.invalid
101
+ errors.messages.confirmation
102
+ errors.messages.accepted
103
+ errors.messages.empty
104
+ errors.messages.blank
105
+ errors.messages.too_long
106
+ errors.messages.too_short
107
+ errors.messages.wrong_length
108
+ errors.messages.taken
109
+ errors.messages.not_a_number
110
+ errors.messages.greater_than
111
+ errors.messages.greater_than_or_equal_to
112
+ errors.messages.equal_to
113
+ errors.messages.less_than
114
+ errors.messages.less_than_or_equal_to
115
+ errors.messages.odd
116
+ errors.messages.even
117
+ errors.messages.record_invalid
118
+ ).each do |key|
119
+ it "should define 'activerecord.#{key}' in activerecord translations" do
120
+ lookup('activerecord.' + key).should_not be_nil
121
+ end
122
+
123
+ it "should define 'activemodel.#{key}' in activemodel translations" do
124
+ lookup('activemodel.' + key).should_not be_nil
121
125
  end
122
126
  end
123
-
127
+
124
128
  %w(
125
129
  support.array.sentence_connector
126
130
  support.array.skip_last_comma
127
-
131
+
128
132
  support.array.words_connector
129
133
  support.array.two_words_connector
130
134
  support.array.last_word_connector
131
- ).each do |key|
135
+ ).each do |key|
132
136
  it "should define '#{key}' in activesupport translations" do
133
137
  lookup(key).should_not be_nil
134
138
  end
135
139
  end
136
-
140
+
137
141
  def lookup(*args)
138
142
  I18n.backend.send(:lookup, Polish.locale, *args)
139
143
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2010-07-23 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &70299917621100 !ruby/object:Gem::Requirement
16
+ requirement: &70132799648180 !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: *70299917621100
24
+ version_requirements: *70132799648180
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70299917620600 !ruby/object:Gem::Requirement
27
+ requirement: &70132799647320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70299917620600
35
+ version_requirements: *70132799647320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70299917619960 !ruby/object:Gem::Requirement
38
+ requirement: &70132799646600 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70299917619960
46
+ version_requirements: *70132799646600
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70299917619240 !ruby/object:Gem::Requirement
49
+ requirement: &70132799645400 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 2.6.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70299917619240
57
+ version_requirements: *70132799645400
58
58
  description:
59
59
  email: gkolodziejczyk@gmail.com
60
60
  executables: []
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: -3867562707409906689
106
+ hash: -234806171936403307
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: -3867562707409906689
115
+ hash: -234806171936403307
116
116
  requirements: []
117
117
  rubyforge_project:
118
118
  rubygems_version: 1.8.6