i18n_alchemy 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68f198998d37ed939ead93b7a86d836fa73b8e7c
4
- data.tar.gz: 880e2dbb5699e4a714922e5fc40958929b3b7d48
3
+ metadata.gz: b6e55292ed6091e314c01c6765364dd79dfa4645
4
+ data.tar.gz: cda55e90e60416dc55c214dd303a7287be84ed5f
5
5
  SHA512:
6
- metadata.gz: ca5de87fe772476d5f48507a1d0b8ae2cd9dc40521a878a1a61c0d24ccfb1f338a096fde002fbd38540eed82fd574b6055657d7717b338c2aaa71a5e96c64b51
7
- data.tar.gz: 9c5ceb2c9203ac97686f7f0f6b45bf3e27aa184985b22eb7451c5cc063b60b215763a2307a691375fd39f930433fd2fe420b035192b365167b36ff859fded590
6
+ metadata.gz: 7813e0aa776d7b89b2a78aaed3a7d39f90291ce6ae72cc0890500e708606c1b6bfaf16293d4544dcbbec585df9e78014836298dc854566ee8dfb50e7edd3af6c
7
+ data.tar.gz: 75e6f5699ef1bc957e4a3a9526fca242c2474df2bae36acac0e8e72fef2dff679bcb1f9613c5c3b9b63a8c3772e8e56f965eec21809d6b9a2e7a4c60e48f8b43
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.3 - 2016-12-19
2
+
3
+ * Rails 5.0 support ([@rodrigoulisses](https://github.com/rodrigoulisses))
4
+
1
5
  ## v0.2.2 - 2015-08-26
2
6
 
3
7
  * Rails 4.2 and Ruby 2.2 support (Rails 4.2.1+ support by [@Danielpk](https://github.com/Danielpk))
@@ -128,12 +128,12 @@ module I18n
128
128
  end
129
129
 
130
130
  def detect_parser_from_column(column)
131
- detect_parser(column.number? ? :number : column.type)
131
+ detect_parser(column.type)
132
132
  end
133
133
 
134
134
  def detect_parser(type_or_parser)
135
135
  case type_or_parser
136
- when :number
136
+ when :float, :decimal, :number
137
137
  NumericParser
138
138
  when :date
139
139
  DateParser
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Alchemy
3
- VERSION = "0.2.2"
3
+ VERSION = "0.2.3"
4
4
  end
5
5
  end
@@ -32,6 +32,7 @@ class ProxyTest < I18n::Alchemy::ProxyTestCase
32
32
  end
33
33
 
34
34
  def test_to_param
35
+ @product.id = 1
35
36
  assert_equal @product.to_param, @localized.to_param
36
37
  end
37
38
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_alchemy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Antonio da Silva
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-26 00:00:00.000000000 Z
11
+ date: 2016-12-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.2.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 5.0.0
22
+ version: 5.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 3.2.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: 5.0.0
32
+ version: 5.1.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: i18n
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: 3.2.0
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: 5.0.0
56
+ version: 5.1.0
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ dependencies:
63
63
  version: 3.2.0
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: 5.0.0
66
+ version: 5.1.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: activerecord
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,7 @@ dependencies:
73
73
  version: 3.2.0
74
74
  - - "<"
75
75
  - !ruby/object:Gem::Version
76
- version: 5.0.0
76
+ version: 5.1.0
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
@@ -83,7 +83,7 @@ dependencies:
83
83
  version: 3.2.0
84
84
  - - "<"
85
85
  - !ruby/object:Gem::Version
86
- version: 5.0.0
86
+ version: 5.1.0
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: minitest
89
89
  requirement: !ruby/object:Gem::Requirement
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
168
  version: '0'
169
169
  requirements: []
170
170
  rubyforge_project: i18n_alchemy
171
- rubygems_version: 2.4.5.1
171
+ rubygems_version: 2.5.2
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: I18n date/number parsing/localization