i18n_alchemy 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f0cdd8714968ef991225eebdcec192d500899088
4
+ data.tar.gz: e06cc5ccd8b1f592944afead78b89cfc729c5916
5
+ SHA512:
6
+ metadata.gz: ce91056f4f49686040773feb06d6114357519d38e15470cd8d3a7302501648f4eefc0c378cad331ff86da5d86e1c830835aebc9a1d523e890f5a9fac509dcbbc
7
+ data.tar.gz: 269f78adb7f6eb001ca83b9f830a95bb9f081bb18d49d0a6727253056bdc18d9400aabbe52c3deddde249155c4e81f79211a3809a7f9b315f952bd0f0783beca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.2.1 - 2014-05-05
2
+
3
+ * Rails 4.1 support ([@sobrinho][https://github.com/sobrinho])
4
+
1
5
  ## v0.2.0 - 2013-11-28
2
6
 
3
7
  * Rails 4 integration
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Alchemy
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
@@ -1,4 +1,5 @@
1
1
  require "test_helper"
2
+ require "action_pack"
2
3
 
3
4
  class ActionViewTest < I18n::Alchemy::TestCase
4
5
  def setup
data/test/test_helper.rb CHANGED
@@ -2,8 +2,18 @@ require "rubygems"
2
2
  require "bundler/setup"
3
3
  Bundler.require :test
4
4
 
5
- require "minitest/unit"
6
- MiniTest::Unit.autorun
5
+ begin
6
+ # Rails 4.1
7
+ require 'minitest'
8
+ require 'minitest/unit'
9
+ Minitest.autorun
10
+ MiniTestCase = Minitest::Test
11
+ rescue LoadError
12
+ # Rails 4.0/3.2
13
+ require 'minitest/unit'
14
+ MiniTest::Unit.autorun
15
+ MiniTestCase = MiniTest::Unit::TestCase
16
+ end
7
17
 
8
18
  require "i18n_alchemy"
9
19
  require "action_view"
@@ -11,6 +21,7 @@ require "active_record"
11
21
 
12
22
  # Setup I18n after other requires to make sure our locales will override any
13
23
  # ActiveSupport / ActionView defaults.
24
+ I18n.enforce_available_locales = false
14
25
  I18n.default_locale = :en
15
26
  I18n.locale = :en
16
27
  I18n.load_path << Dir[File.expand_path("../locale/*.yml", __FILE__)]
@@ -20,7 +31,7 @@ Dir["test/custom_parsers/*.rb"].each { |file| require File.expand_path(file) }
20
31
  Dir["test/models/*.rb"].each { |file| require File.expand_path(file) }
21
32
 
22
33
  module I18n::Alchemy
23
- class TestCase < MiniTest::Unit::TestCase
34
+ class TestCase < MiniTestCase
24
35
  end
25
36
 
26
37
  class ProxyTestCase < TestCase
metadata CHANGED
@@ -1,128 +1,115 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_alchemy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.2.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Carlos Antonio da Silva
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-11-28 00:00:00.000000000 Z
11
+ date: 2014-05-06 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.2.0
22
- - - <
20
+ - - "<"
23
21
  - !ruby/object:Gem::Version
24
- version: '4.1'
22
+ version: '4.2'
25
23
  type: :runtime
26
24
  prerelease: false
27
25
  version_requirements: !ruby/object:Gem::Requirement
28
- none: false
29
26
  requirements:
30
- - - ! '>='
27
+ - - ">="
31
28
  - !ruby/object:Gem::Version
32
29
  version: 3.2.0
33
- - - <
30
+ - - "<"
34
31
  - !ruby/object:Gem::Version
35
- version: '4.1'
32
+ version: '4.2'
36
33
  - !ruby/object:Gem::Dependency
37
34
  name: i18n
38
35
  requirement: !ruby/object:Gem::Requirement
39
- none: false
40
36
  requirements:
41
- - - ~>
37
+ - - "~>"
42
38
  - !ruby/object:Gem::Version
43
39
  version: '0.6'
44
40
  type: :runtime
45
41
  prerelease: false
46
42
  version_requirements: !ruby/object:Gem::Requirement
47
- none: false
48
43
  requirements:
49
- - - ~>
44
+ - - "~>"
50
45
  - !ruby/object:Gem::Version
51
46
  version: '0.6'
52
47
  - !ruby/object:Gem::Dependency
53
48
  name: actionpack
54
49
  requirement: !ruby/object:Gem::Requirement
55
- none: false
56
50
  requirements:
57
- - - ! '>='
51
+ - - ">="
58
52
  - !ruby/object:Gem::Version
59
53
  version: 3.2.0
60
- - - <
54
+ - - "<"
61
55
  - !ruby/object:Gem::Version
62
- version: '4.1'
56
+ version: '4.2'
63
57
  type: :development
64
58
  prerelease: false
65
59
  version_requirements: !ruby/object:Gem::Requirement
66
- none: false
67
60
  requirements:
68
- - - ! '>='
61
+ - - ">="
69
62
  - !ruby/object:Gem::Version
70
63
  version: 3.2.0
71
- - - <
64
+ - - "<"
72
65
  - !ruby/object:Gem::Version
73
- version: '4.1'
66
+ version: '4.2'
74
67
  - !ruby/object:Gem::Dependency
75
68
  name: activerecord
76
69
  requirement: !ruby/object:Gem::Requirement
77
- none: false
78
70
  requirements:
79
- - - ! '>='
71
+ - - ">="
80
72
  - !ruby/object:Gem::Version
81
73
  version: 3.2.0
82
- - - <
74
+ - - "<"
83
75
  - !ruby/object:Gem::Version
84
- version: '4.1'
76
+ version: '4.2'
85
77
  type: :development
86
78
  prerelease: false
87
79
  version_requirements: !ruby/object:Gem::Requirement
88
- none: false
89
80
  requirements:
90
- - - ! '>='
81
+ - - ">="
91
82
  - !ruby/object:Gem::Version
92
83
  version: 3.2.0
93
- - - <
84
+ - - "<"
94
85
  - !ruby/object:Gem::Version
95
- version: '4.1'
86
+ version: '4.2'
96
87
  - !ruby/object:Gem::Dependency
97
88
  name: minitest
98
89
  requirement: !ruby/object:Gem::Requirement
99
- none: false
100
90
  requirements:
101
- - - ~>
91
+ - - ">="
102
92
  - !ruby/object:Gem::Version
103
93
  version: 4.3.2
104
94
  type: :development
105
95
  prerelease: false
106
96
  version_requirements: !ruby/object:Gem::Requirement
107
- none: false
108
97
  requirements:
109
- - - ~>
98
+ - - ">="
110
99
  - !ruby/object:Gem::Version
111
100
  version: 4.3.2
112
101
  - !ruby/object:Gem::Dependency
113
102
  name: rake
114
103
  requirement: !ruby/object:Gem::Requirement
115
- none: false
116
104
  requirements:
117
- - - ~>
105
+ - - "~>"
118
106
  - !ruby/object:Gem::Version
119
107
  version: '10.1'
120
108
  type: :development
121
109
  prerelease: false
122
110
  version_requirements: !ruby/object:Gem::Requirement
123
- none: false
124
111
  requirements:
125
- - - ~>
112
+ - - "~>"
126
113
  - !ruby/object:Gem::Version
127
114
  version: '10.1'
128
115
  description: I18n date/number parsing/localization
@@ -135,6 +122,7 @@ files:
135
122
  - CHANGELOG.md
136
123
  - MIT-LICENSE
137
124
  - README.md
125
+ - lib/i18n_alchemy.rb
138
126
  - lib/i18n_alchemy/association_parser.rb
139
127
  - lib/i18n_alchemy/attribute.rb
140
128
  - lib/i18n_alchemy/attributes_parsing.rb
@@ -143,7 +131,6 @@ files:
143
131
  - lib/i18n_alchemy/proxy.rb
144
132
  - lib/i18n_alchemy/time_parser.rb
145
133
  - lib/i18n_alchemy/version.rb
146
- - lib/i18n_alchemy.rb
147
134
  - test/action_view_test.rb
148
135
  - test/custom_parsers/my_custom_date_parser.rb
149
136
  - test/db/test_schema.rb
@@ -164,27 +151,26 @@ files:
164
151
  - test/test_helper.rb
165
152
  homepage: ''
166
153
  licenses: []
154
+ metadata: {}
167
155
  post_install_message:
168
156
  rdoc_options: []
169
157
  require_paths:
170
158
  - lib
171
159
  required_ruby_version: !ruby/object:Gem::Requirement
172
- none: false
173
160
  requirements:
174
- - - ! '>='
161
+ - - ">="
175
162
  - !ruby/object:Gem::Version
176
163
  version: '0'
177
164
  required_rubygems_version: !ruby/object:Gem::Requirement
178
- none: false
179
165
  requirements:
180
- - - ! '>='
166
+ - - ">="
181
167
  - !ruby/object:Gem::Version
182
168
  version: '0'
183
169
  requirements: []
184
170
  rubyforge_project: i18n_alchemy
185
- rubygems_version: 1.8.23
171
+ rubygems_version: 2.2.2
186
172
  signing_key:
187
- specification_version: 3
173
+ specification_version: 4
188
174
  summary: I18n date/number parsing/localization
189
175
  test_files:
190
176
  - test/action_view_test.rb