mongoid_translate 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module Mongoid
18
18
  embeds_many :translations, class_name: class_name
19
19
  delegate :translated_fields, to: "self.class"
20
20
  accepts_nested_attributes_for :translations
21
- index 'translations.language'
21
+ index 'translations.language' => 1
22
22
  end
23
23
 
24
24
  # Return list of existing languages
@@ -10,7 +10,7 @@ module Mongoid
10
10
  included do
11
11
  scope :by_slug, lambda {|slug| where('translations.slug' => slug )}
12
12
  validate :slug_uniqueness
13
- index 'translations.slug'
13
+ index 'translations.slug' => 1
14
14
  end
15
15
 
16
16
  # Return slug.
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Mongoid
3
3
  module Translate
4
- VERSION = "0.1.1"
4
+ VERSION = "1.0.0"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_translate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-04-05 00:00:00.000000000 Z
13
+ date: 2012-10-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
17
- requirement: &10000200 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,32 +22,31 @@ dependencies:
22
22
  version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *10000200
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ none: false
27
+ requirements:
28
+ - - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: '3.1'
26
31
  - !ruby/object:Gem::Dependency
27
32
  name: mongoid
28
- requirement: &9999380 !ruby/object:Gem::Requirement
33
+ requirement: !ruby/object:Gem::Requirement
29
34
  none: false
30
35
  requirements:
31
36
  - - ~>
32
37
  - !ruby/object:Gem::Version
33
- version: '2.3'
38
+ version: '3.0'
34
39
  type: :runtime
35
40
  prerelease: false
36
- version_requirements: *9999380
37
- - !ruby/object:Gem::Dependency
38
- name: bson_ext
39
- requirement: &9998880 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
40
42
  none: false
41
43
  requirements:
42
44
  - - ~>
43
45
  - !ruby/object:Gem::Version
44
- version: '1.4'
45
- type: :runtime
46
- prerelease: false
47
- version_requirements: *9998880
46
+ version: '3.0'
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: rspec
50
- requirement: &9998420 !ruby/object:Gem::Requirement
49
+ requirement: !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
53
52
  - - ~>
@@ -55,7 +54,12 @@ dependencies:
55
54
  version: '2.6'
56
55
  type: :development
57
56
  prerelease: false
58
- version_requirements: *9998420
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: '2.6'
59
63
  description: Translate mongoid models.
60
64
  email: jboyer@af83.com
61
65
  executables: []
@@ -90,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
94
  version: '0'
91
95
  requirements: []
92
96
  rubyforge_project:
93
- rubygems_version: 1.8.10
97
+ rubygems_version: 1.8.24
94
98
  signing_key:
95
99
  specification_version: 3
96
100
  summary: Translate mongoid models.