mongoid_i18n 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,2 +1,11 @@
1
1
  source :gemcutter
2
- gemspec
2
+
3
+ gem "mongoid", '>= 2.0.0'
4
+ gem "bson_ext"
5
+
6
+ group :development, :test do
7
+ gem "rspec"
8
+ gem "mocha"
9
+ gem "jeweler"
10
+ gem "bundler"
11
+ end
data/Gemfile.lock CHANGED
@@ -1,55 +1,46 @@
1
- PATH
2
- remote: .
3
- specs:
4
- mongoid_i18n (0.2.1)
5
- bson_ext (~> 1.2)
6
- mongoid (>= 2.0.0)
7
- mongoid_i18n
8
-
9
1
  GEM
10
2
  remote: http://rubygems.org/
11
3
  specs:
12
- activemodel (3.0.7)
13
- activesupport (= 3.0.7)
4
+ activemodel (3.0.9)
5
+ activesupport (= 3.0.9)
14
6
  builder (~> 2.1.2)
15
7
  i18n (~> 0.5.0)
16
- activesupport (3.0.7)
17
- bson (1.3.0)
18
- bson_ext (1.3.0)
8
+ activesupport (3.0.9)
9
+ bson (1.3.1)
10
+ bson_ext (1.3.1)
19
11
  builder (2.1.2)
20
12
  diff-lcs (1.1.2)
21
13
  git (1.2.5)
22
14
  i18n (0.5.0)
23
- jeweler (1.6.0)
24
- bundler (~> 1.0.0)
15
+ jeweler (1.6.4)
16
+ bundler (~> 1.0)
25
17
  git (>= 1.2.5)
26
18
  rake
27
19
  mocha (0.9.12)
28
- mongo (1.3.0)
29
- bson (>= 1.3.0)
30
- mongoid (2.0.1)
20
+ mongo (1.3.1)
21
+ bson (>= 1.3.1)
22
+ mongoid (2.0.2)
31
23
  activemodel (~> 3.0)
32
24
  mongo (~> 1.3)
33
25
  tzinfo (~> 0.3.22)
34
- will_paginate (~> 3.0.pre)
35
- rake (0.8.7)
36
- rspec (2.5.0)
37
- rspec-core (~> 2.5.0)
38
- rspec-expectations (~> 2.5.0)
39
- rspec-mocks (~> 2.5.0)
40
- rspec-core (2.5.2)
41
- rspec-expectations (2.5.0)
26
+ rake (0.9.2)
27
+ rspec (2.6.0)
28
+ rspec-core (~> 2.6.0)
29
+ rspec-expectations (~> 2.6.0)
30
+ rspec-mocks (~> 2.6.0)
31
+ rspec-core (2.6.4)
32
+ rspec-expectations (2.6.0)
42
33
  diff-lcs (~> 1.1.2)
43
- rspec-mocks (2.5.0)
44
- tzinfo (0.3.27)
45
- will_paginate (3.0.pre2)
34
+ rspec-mocks (2.6.0)
35
+ tzinfo (0.3.29)
46
36
 
47
37
  PLATFORMS
48
38
  ruby
49
39
 
50
40
  DEPENDENCIES
41
+ bson_ext
51
42
  bundler
52
43
  jeweler
53
44
  mocha
54
- mongoid_i18n!
45
+ mongoid (>= 2.0.0)
55
46
  rspec
data/Rakefile CHANGED
@@ -16,12 +16,6 @@ begin
16
16
  gem.email = "papipo@gmail.com"
17
17
  gem.homepage = "http://github.com/Papipo/mongoid_i18n"
18
18
  gem.authors = ["Rodrigo Álvarez"]
19
- gem.add_dependency "mongoid", '>= 2.0.0'
20
- gem.add_dependency "bson_ext", "~> 1.2"
21
- gem.add_development_dependency "rspec"
22
- gem.add_development_dependency "mocha"
23
- gem.add_development_dependency "jeweler"
24
- gem.add_development_dependency "bundler"
25
19
 
26
20
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
27
21
  end
@@ -32,7 +26,7 @@ end
32
26
 
33
27
 
34
28
  desc "Run all examples"
35
- Rspec::Core::RakeTask.new(:spec)
29
+ RSpec::Core::RakeTask.new(:spec)
36
30
 
37
31
  task :default => :spec
38
32
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
data/mongoid_i18n.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mongoid_i18n}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rodrigo \303\201lvarez"]
12
- s.date = %q{2011-05-08}
12
+ s.date = %q{2011-07-08}
13
13
  s.description = %q{This gem aims to be a transparent way to deal with localizable fields.
14
14
  Basically use localized_field() instead of field() and that's it.
15
15
  It will take care of locales for you when using find or criteria.
@@ -47,41 +47,23 @@ Gem::Specification.new do |s|
47
47
  s.specification_version = 3
48
48
 
49
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
- s.add_runtime_dependency(%q<mongoid_i18n>, [">= 0"])
51
- s.add_development_dependency(%q<rspec>, [">= 0"])
52
- s.add_development_dependency(%q<rspec>, [">= 0"])
53
- s.add_development_dependency(%q<mocha>, [">= 0"])
54
- s.add_development_dependency(%q<jeweler>, [">= 0"])
55
- s.add_development_dependency(%q<bundler>, [">= 0"])
56
50
  s.add_runtime_dependency(%q<mongoid>, [">= 2.0.0"])
57
- s.add_runtime_dependency(%q<bson_ext>, ["~> 1.2"])
51
+ s.add_runtime_dependency(%q<bson_ext>, [">= 0"])
58
52
  s.add_development_dependency(%q<rspec>, [">= 0"])
59
53
  s.add_development_dependency(%q<mocha>, [">= 0"])
60
54
  s.add_development_dependency(%q<jeweler>, [">= 0"])
61
55
  s.add_development_dependency(%q<bundler>, [">= 0"])
62
56
  else
63
- s.add_dependency(%q<mongoid_i18n>, [">= 0"])
64
- s.add_dependency(%q<rspec>, [">= 0"])
65
- s.add_dependency(%q<rspec>, [">= 0"])
66
- s.add_dependency(%q<mocha>, [">= 0"])
67
- s.add_dependency(%q<jeweler>, [">= 0"])
68
- s.add_dependency(%q<bundler>, [">= 0"])
69
57
  s.add_dependency(%q<mongoid>, [">= 2.0.0"])
70
- s.add_dependency(%q<bson_ext>, ["~> 1.2"])
58
+ s.add_dependency(%q<bson_ext>, [">= 0"])
71
59
  s.add_dependency(%q<rspec>, [">= 0"])
72
60
  s.add_dependency(%q<mocha>, [">= 0"])
73
61
  s.add_dependency(%q<jeweler>, [">= 0"])
74
62
  s.add_dependency(%q<bundler>, [">= 0"])
75
63
  end
76
64
  else
77
- s.add_dependency(%q<mongoid_i18n>, [">= 0"])
78
- s.add_dependency(%q<rspec>, [">= 0"])
79
- s.add_dependency(%q<rspec>, [">= 0"])
80
- s.add_dependency(%q<mocha>, [">= 0"])
81
- s.add_dependency(%q<jeweler>, [">= 0"])
82
- s.add_dependency(%q<bundler>, [">= 0"])
83
65
  s.add_dependency(%q<mongoid>, [">= 2.0.0"])
84
- s.add_dependency(%q<bson_ext>, ["~> 1.2"])
66
+ s.add_dependency(%q<bson_ext>, [">= 0"])
85
67
  s.add_dependency(%q<rspec>, [">= 0"])
86
68
  s.add_dependency(%q<mocha>, [">= 0"])
87
69
  s.add_dependency(%q<jeweler>, [">= 0"])
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@ require 'mongoid/i18n'
6
6
  require 'rspec'
7
7
  require 'rspec/autorun'
8
8
 
9
- Rspec.configure do |config|
9
+ RSpec.configure do |config|
10
10
  config.mock_with :mocha
11
11
  config.after :each do
12
12
  Mongoid.master.collections.reject { |c| c.name =~ /^system\./ }.each(&:drop)
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Rodrigo \xC3\x81lvarez"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-08 00:00:00 +02:00
18
+ date: 2011-07-08 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,15 +26,17 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
29
+ hash: 15
30
30
  segments:
31
+ - 2
31
32
  - 0
32
- version: "0"
33
- name: mongoid_i18n
33
+ - 0
34
+ version: 2.0.0
35
+ name: mongoid
34
36
  version_requirements: *id001
35
37
  - !ruby/object:Gem::Dependency
36
38
  prerelease: false
37
- type: :development
39
+ type: :runtime
38
40
  requirement: &id002 !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
@@ -44,7 +46,7 @@ dependencies:
44
46
  segments:
45
47
  - 0
46
48
  version: "0"
47
- name: rspec
49
+ name: bson_ext
48
50
  version_requirements: *id002
49
51
  - !ruby/object:Gem::Dependency
50
52
  prerelease: false
@@ -102,93 +104,6 @@ dependencies:
102
104
  version: "0"
103
105
  name: bundler
104
106
  version_requirements: *id006
105
- - !ruby/object:Gem::Dependency
106
- prerelease: false
107
- type: :runtime
108
- requirement: &id007 !ruby/object:Gem::Requirement
109
- none: false
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- hash: 15
114
- segments:
115
- - 2
116
- - 0
117
- - 0
118
- version: 2.0.0
119
- name: mongoid
120
- version_requirements: *id007
121
- - !ruby/object:Gem::Dependency
122
- prerelease: false
123
- type: :runtime
124
- requirement: &id008 !ruby/object:Gem::Requirement
125
- none: false
126
- requirements:
127
- - - ~>
128
- - !ruby/object:Gem::Version
129
- hash: 11
130
- segments:
131
- - 1
132
- - 2
133
- version: "1.2"
134
- name: bson_ext
135
- version_requirements: *id008
136
- - !ruby/object:Gem::Dependency
137
- prerelease: false
138
- type: :development
139
- requirement: &id009 !ruby/object:Gem::Requirement
140
- none: false
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- hash: 3
145
- segments:
146
- - 0
147
- version: "0"
148
- name: rspec
149
- version_requirements: *id009
150
- - !ruby/object:Gem::Dependency
151
- prerelease: false
152
- type: :development
153
- requirement: &id010 !ruby/object:Gem::Requirement
154
- none: false
155
- requirements:
156
- - - ">="
157
- - !ruby/object:Gem::Version
158
- hash: 3
159
- segments:
160
- - 0
161
- version: "0"
162
- name: mocha
163
- version_requirements: *id010
164
- - !ruby/object:Gem::Dependency
165
- prerelease: false
166
- type: :development
167
- requirement: &id011 !ruby/object:Gem::Requirement
168
- none: false
169
- requirements:
170
- - - ">="
171
- - !ruby/object:Gem::Version
172
- hash: 3
173
- segments:
174
- - 0
175
- version: "0"
176
- name: jeweler
177
- version_requirements: *id011
178
- - !ruby/object:Gem::Dependency
179
- prerelease: false
180
- type: :development
181
- requirement: &id012 !ruby/object:Gem::Requirement
182
- none: false
183
- requirements:
184
- - - ">="
185
- - !ruby/object:Gem::Version
186
- hash: 3
187
- segments:
188
- - 0
189
- version: "0"
190
- name: bundler
191
- version_requirements: *id012
192
107
  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 "
193
108
  email: papipo@gmail.com
194
109
  executables: []