polish 0.1.5 → 0.1.6

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.
@@ -2,5 +2,5 @@ rvm:
2
2
  - 1.8.7
3
3
  - 1.9.2
4
4
  - rbx
5
- - rbx-2.0
5
+ - rbx-19mode
6
6
  - jruby
@@ -6,6 +6,8 @@ end
6
6
 
7
7
  require 'i18n'
8
8
 
9
+ require 'polish/version'
10
+
9
11
  # Rails hacks
10
12
  if defined?(ActionView::Helpers)
11
13
  require 'polish/action_view_ext/helpers/date_helper'
@@ -16,11 +18,6 @@ require 'polish/proxies'
16
18
  module Polish
17
19
  extend self
18
20
 
19
- module VERSION
20
- STRING = File.open(File.dirname(__FILE__) + "/../VERSION").gets.chomp
21
- MAJOR, MINOR, TINY = STRING.split('.')
22
- end
23
-
24
21
  # Polish locale
25
22
  LOCALE = :'pl'
26
23
 
@@ -24,17 +24,20 @@ pl:
24
24
  one: "jest za krótkie (minimalnie %{count} znak)"
25
25
  few: "jest za krótkie (minimalnie %{count} znaki)"
26
26
  other: "jest za krótkie (minimalnie %{count} znaków)"
27
- wrong_length: "jest nieprawidłowej długości (powinna wynosić %{count} znaków)"
27
+ wrong_length:
28
+ one: "jest nieprawidłowej długości (powinna wynosić %{count} znak)"
29
+ few: "jest nieprawidłowej długości (powinna wynosić %{count} znaki)"
30
+ other: "jest nieprawidłowej długości (powinna wynosić %{count} znaków)"
28
31
  taken: "zostało już zajęte"
29
32
  not_a_number: "nie jest liczbą"
30
33
  greater_than: "musi być większe niż %{count}"
31
34
  greater_than_or_equal_to: "musi być większe lub równe %{count}"
32
35
  equal_to: "musi być równe %{count}"
33
- less_than: "musie być mniejsze niż %{count}"
36
+ less_than: "musi być mniejsze niż %{count}"
34
37
  less_than_or_equal_to: "musi być mniejsze lub równe %{count}"
35
38
  odd: "musi być nieparzyste"
36
39
  even: "musi być parzyste"
37
-
40
+
38
41
  activemodel:
39
42
  <<: *active_model
40
43
 
@@ -0,0 +1,3 @@
1
+ module Polish
2
+ VERSION = "0.1.6"
3
+ end
@@ -3,9 +3,12 @@
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
+ $:.push File.expand_path("../lib", __FILE__)
7
+ require "polish/version"
8
+
6
9
  Gem::Specification.new do |s|
7
10
  s.name = %q{polish}
8
- s.version = "0.1.5"
11
+ s.version = Polish::VERSION
9
12
 
10
13
  s.authors = ["Grzesiek Kolodziejczyk"]
11
14
  s.email = %q{gkolodziejczyk@gmail.com}
@@ -22,6 +25,6 @@ Gem::Specification.new do |s|
22
25
  s.add_dependency "rake"
23
26
  s.add_dependency "bundler"
24
27
 
25
- s.add_development_dependency "rspec", ">= 2.6.0"
28
+ s.add_development_dependency "rspec", ">= 2.8.0"
26
29
  end
27
30
 
@@ -4,9 +4,7 @@ require File.dirname(__FILE__) + '/spec_helper'
4
4
 
5
5
  describe Polish, "VERSION" do
6
6
  it "should be defined" do
7
- %w(MAJOR MINOR TINY STRING).each do |v|
8
- Polish::VERSION.const_defined?(v).should == true
9
- end
7
+ Polish::VERSION.should be_a(String)
10
8
  end
11
9
  end
12
10
 
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.5
4
+ version: 0.1.6
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-10-08 00:00:00.000000000 Z
12
+ date: 2012-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: i18n
16
- requirement: &70327159435240 !ruby/object:Gem::Requirement
16
+ requirement: &70349709601620 !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: *70327159435240
24
+ version_requirements: *70349709601620
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &70327159431620 !ruby/object:Gem::Requirement
27
+ requirement: &70349709600980 !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: *70327159431620
35
+ version_requirements: *70349709600980
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bundler
38
- requirement: &70327159427960 !ruby/object:Gem::Requirement
38
+ requirement: &70349709600560 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,18 +43,18 @@ dependencies:
43
43
  version: '0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70327159427960
46
+ version_requirements: *70349709600560
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &70327159459220 !ruby/object:Gem::Requirement
49
+ requirement: &70349709600000 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 2.6.0
54
+ version: 2.8.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70327159459220
57
+ version_requirements: *70349709600000
58
58
  description:
59
59
  email: gkolodziejczyk@gmail.com
60
60
  executables: []
@@ -69,7 +69,6 @@ files:
69
69
  - README.md
70
70
  - Rakefile
71
71
  - TODO
72
- - VERSION
73
72
  - lib/polish.rb
74
73
  - lib/polish/action_view_ext/helpers/date_helper.rb
75
74
  - lib/polish/locale/actionview.yml
@@ -79,6 +78,7 @@ files:
79
78
  - lib/polish/locale/datetime.yml
80
79
  - lib/polish/locale/pluralize.rb
81
80
  - lib/polish/proxies.rb
81
+ - lib/polish/version.rb
82
82
  - polish.gemspec
83
83
  - rails/init.rb
84
84
  - spec/fixtures/en.yml
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: -3167117515714967861
106
+ hash: -578751589334229329
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  none: false
109
109
  requirements:
@@ -112,10 +112,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: -3167117515714967861
115
+ hash: -578751589334229329
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 1.8.10
118
+ rubygems_version: 1.8.15
119
119
  signing_key:
120
120
  specification_version: 3
121
121
  summary: Polish language support for Ruby and Rails
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.1.4