mongoid_i18n 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,28 +1,32 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activemodel (3.0.10)
5
- activesupport (= 3.0.10)
6
- builder (~> 2.1.2)
7
- i18n (~> 0.5.0)
8
- activesupport (3.0.10)
9
- bson (1.3.1)
10
- bson_ext (1.3.1)
11
- builder (2.1.2)
12
- diff-lcs (1.1.2)
4
+ activemodel (3.1.1)
5
+ activesupport (= 3.1.1)
6
+ builder (~> 3.0.0)
7
+ i18n (~> 0.6)
8
+ activesupport (3.1.1)
9
+ multi_json (~> 1.0)
10
+ bson (1.4.0)
11
+ bson_ext (1.4.0)
12
+ builder (3.0.0)
13
+ diff-lcs (1.1.3)
13
14
  git (1.2.5)
14
- i18n (0.5.0)
15
+ i18n (0.6.0)
15
16
  jeweler (1.6.4)
16
17
  bundler (~> 1.0)
17
18
  git (>= 1.2.5)
18
19
  rake
19
- mocha (0.9.12)
20
- mongo (1.3.1)
21
- bson (>= 1.3.1)
22
- mongoid (2.1.8)
23
- activemodel (~> 3.0)
24
- mongo (~> 1.3)
20
+ metaclass (0.0.1)
21
+ mocha (0.10.0)
22
+ metaclass (~> 0.0.1)
23
+ mongo (1.4.0)
24
+ bson (= 1.4.0)
25
+ mongoid (2.3.0)
26
+ activemodel (~> 3.1)
27
+ mongo (~> 1.4)
25
28
  tzinfo (~> 0.3.22)
29
+ multi_json (1.0.3)
26
30
  rake (0.9.2)
27
31
  rspec (2.6.0)
28
32
  rspec-core (~> 2.6.0)
@@ -32,7 +36,7 @@ GEM
32
36
  rspec-expectations (2.6.0)
33
37
  diff-lcs (~> 1.1.2)
34
38
  rspec-mocks (2.6.0)
35
- tzinfo (0.3.29)
39
+ tzinfo (0.3.30)
36
40
 
37
41
  PLATFORMS
38
42
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.5.0
@@ -31,7 +31,7 @@ module Mongoid
31
31
 
32
32
  # Assing new translation to translation table.
33
33
  def assign(object, value)
34
- object.merge(locale => value)
34
+ (object || {}).merge(locale => value)
35
35
  end
36
36
 
37
37
  # Replace translation hash with new one. If :clear_empty_values is set to
data/mongoid_i18n.gemspec CHANGED
@@ -4,14 +4,17 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "mongoid_i18n"
8
- s.version = "0.4.0"
7
+ s.name = %q{mongoid_i18n}
8
+ s.version = "0.5.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Rodrigo \303\201lvarez"]
12
- s.date = "2011-10-06"
13
- s.description = "This gem aims to be a transparent way to deal with localizable fields.\n Basically use localized_field() instead of field() and that's it.\n It will take care of locales for you when using find or criteria.\n "
14
- s.email = "papipo@gmail.com"
11
+ s.authors = [%q{Rodrigo Álvarez}]
12
+ s.date = %q{2011-10-08}
13
+ s.description = %q{This gem aims to be a transparent way to deal with localizable fields.
14
+ Basically use localized_field() instead of field() and that's it.
15
+ It will take care of locales for you when using find or criteria.
16
+ }
17
+ s.email = %q{papipo@gmail.com}
15
18
  s.extra_rdoc_files = [
16
19
  "LICENSE",
17
20
  "README.rdoc"
@@ -35,10 +38,10 @@ Gem::Specification.new do |s|
35
38
  "spec/integration/mongoid/i18n_spec.rb",
36
39
  "spec/spec_helper.rb"
37
40
  ]
38
- s.homepage = "http://github.com/Papipo/mongoid_i18n"
39
- s.require_paths = ["lib"]
40
- s.rubygems_version = "1.8.10"
41
- s.summary = "Mongoid plugin to deal with localizable fields"
41
+ s.homepage = %q{http://github.com/Papipo/mongoid_i18n}
42
+ s.require_paths = [%q{lib}]
43
+ s.rubygems_version = %q{1.8.6}
44
+ s.summary = %q{Mongoid plugin to deal with localizable fields}
42
45
 
43
46
  if s.respond_to? :specification_version then
44
47
  s.specification_version = 3
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_i18n
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
8
+ - 5
9
9
  - 0
10
- version: 0.4.0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Rodrigo \xC3\x81lvarez"
@@ -15,9 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-06 00:00:00 Z
18
+ date: 2011-10-08 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
+ type: :runtime
21
22
  requirement: &id001 !ruby/object:Gem::Requirement
22
23
  none: false
23
24
  requirements:
@@ -32,8 +33,8 @@ dependencies:
32
33
  version_requirements: *id001
33
34
  name: mongoid
34
35
  prerelease: false
35
- type: :runtime
36
36
  - !ruby/object:Gem::Dependency
37
+ type: :runtime
37
38
  requirement: &id002 !ruby/object:Gem::Requirement
38
39
  none: false
39
40
  requirements:
@@ -46,8 +47,8 @@ dependencies:
46
47
  version_requirements: *id002
47
48
  name: bson_ext
48
49
  prerelease: false
49
- type: :runtime
50
50
  - !ruby/object:Gem::Dependency
51
+ type: :development
51
52
  requirement: &id003 !ruby/object:Gem::Requirement
52
53
  none: false
53
54
  requirements:
@@ -60,8 +61,8 @@ dependencies:
60
61
  version_requirements: *id003
61
62
  name: rspec
62
63
  prerelease: false
63
- type: :development
64
64
  - !ruby/object:Gem::Dependency
65
+ type: :development
65
66
  requirement: &id004 !ruby/object:Gem::Requirement
66
67
  none: false
67
68
  requirements:
@@ -74,8 +75,8 @@ dependencies:
74
75
  version_requirements: *id004
75
76
  name: mocha
76
77
  prerelease: false
77
- type: :development
78
78
  - !ruby/object:Gem::Dependency
79
+ type: :development
79
80
  requirement: &id005 !ruby/object:Gem::Requirement
80
81
  none: false
81
82
  requirements:
@@ -88,8 +89,8 @@ dependencies:
88
89
  version_requirements: *id005
89
90
  name: jeweler
90
91
  prerelease: false
91
- type: :development
92
92
  - !ruby/object:Gem::Dependency
93
+ type: :development
93
94
  requirement: &id006 !ruby/object:Gem::Requirement
94
95
  none: false
95
96
  requirements:
@@ -102,7 +103,6 @@ dependencies:
102
103
  version_requirements: *id006
103
104
  name: bundler
104
105
  prerelease: false
105
- type: :development
106
106
  description: "This gem aims to be a transparent way to deal with localizable fields.\n Basically use localized_field() instead of field() and that's it.\n It will take care of locales for you when using find or criteria.\n "
107
107
  email: papipo@gmail.com
108
108
  executables: []
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  requirements: []
160
160
 
161
161
  rubyforge_project:
162
- rubygems_version: 1.8.10
162
+ rubygems_version: 1.8.6
163
163
  signing_key:
164
164
  specification_version: 3
165
165
  summary: Mongoid plugin to deal with localizable fields