mongoid 2.6.0 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ed974b2b6e8dd96f4a3040b7149fb8317d0ef9f2
4
+ data.tar.gz: a72b2cecd24d408ed5ae40b2d00cc46ec4b2dc3b
5
+ SHA512:
6
+ metadata.gz: a6a1a636f87b234bdd70caaab03ac98abca37d40382d7105c15d068ecc3ef5c159b8a79ad0861bd9209a0a24e023467436a360dd937f23b4c7c58f39fe855a29
7
+ data.tar.gz: 243f7683b07ab9bf6464e6a2b4827bf3ed23c286c3305227fd6fdd098714b9f0c3dad11e577cbb768601434dd0dc287f6f22d96817e4f31e855130e5fc11a954
@@ -3,6 +3,13 @@
3
3
  For instructions on upgrading to newer versions, visit
4
4
  [mongoid.org](http://mongoid.org/docs/upgrading.html).
5
5
 
6
+ ## 2.7.0
7
+
8
+ ### New Features
9
+
10
+ * \#2932 The minumum mongo and bson dependencies have been bumped to
11
+ 1.8 and higher.
12
+
6
13
  ## 2.6.0
7
14
 
8
15
  ### New Features
@@ -19,7 +19,7 @@ module Mongoid #:nodoc:
19
19
  # mongo likes symbols
20
20
  options = reject{ |key, value| Config.blacklisted_options.include?(key.to_s) }
21
21
  options["logger"] = Mongoid::Logger.new
22
- connection = Mongo::ReplSetConnection.new(*(hosts.clone << options.symbolize_keys))
22
+ connection = Mongo::ReplSetConnection.new(hosts.clone, options.symbolize_keys)
23
23
 
24
24
  if authenticating?
25
25
  connection.add_auth(database, username, password)
@@ -21,7 +21,7 @@ module Mongoid #:nodoc:
21
21
  def deserialize(object)
22
22
  return object unless object
23
23
  begin
24
- Float(object)
24
+ Float(object) unless object == 'NaN'
25
25
  ::BigDecimal.new(object)
26
26
  rescue ArgumentError, TypeError
27
27
  object
@@ -54,7 +54,7 @@ module Mongoid #:nodoc:
54
54
  #
55
55
  # @since 2.3.0
56
56
  def serialize(object)
57
- { ::I18n.locale.to_s => object.try(:to_s) }
57
+ { ::I18n.locale.to_s => object }
58
58
  end
59
59
  end
60
60
  end
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Mongoid #:nodoc
3
- VERSION = "2.6.0"
3
+ VERSION = "2.7.0"
4
4
  end
metadata CHANGED
@@ -1,154 +1,135 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mongoid
3
- version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease:
6
- segments:
7
- - 2
8
- - 6
9
- - 0
10
- version: 2.6.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.7.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Durran Jordan
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-01-21 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- version_requirements: &id001 !ruby/object:Gem::Requirement
22
- none: false
23
- requirements:
24
- - - ~>
25
- - !ruby/object:Gem::Version
26
- hash: 5
27
- segments:
28
- - 3
29
- - 1
30
- version: "3.1"
31
- prerelease: false
32
- type: :runtime
11
+ date: 2013-03-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
33
14
  name: activemodel
34
- requirement: *id001
35
- - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
39
17
  - - ~>
40
- - !ruby/object:Gem::Version
41
- hash: 63
42
- segments:
43
- - 0
44
- - 3
45
- - 22
46
- version: 0.3.22
47
- prerelease: false
18
+ - !ruby/object:Gem::Version
19
+ version: '3.1'
48
20
  type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.1'
27
+ - !ruby/object:Gem::Dependency
49
28
  name: tzinfo
50
- requirement: *id002
51
- - !ruby/object:Gem::Dependency
52
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
55
31
  - - ~>
56
- - !ruby/object:Gem::Version
57
- hash: 1
58
- segments:
59
- - 1
60
- - 7
61
- version: "1.7"
62
- prerelease: false
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.22
63
34
  type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 0.3.22
41
+ - !ruby/object:Gem::Dependency
64
42
  name: mongo
65
- requirement: *id003
66
- - !ruby/object:Gem::Dependency
67
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
70
45
  - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 1
73
- segments:
74
- - 1
75
- - 7
76
- version: "1.7"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.8'
48
+ type: :runtime
77
49
  prerelease: false
78
- type: :development
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.8'
55
+ - !ruby/object:Gem::Dependency
79
56
  name: bson_ext
80
- requirement: *id004
81
- - !ruby/object:Gem::Dependency
82
- version_requirements: &id005 !ruby/object:Gem::Requirement
83
- none: false
84
- requirements:
85
- - - "="
86
- - !ruby/object:Gem::Version
87
- hash: 29
88
- segments:
89
- - 0
90
- - 11
91
- version: "0.11"
92
- prerelease: false
93
- type: :development
94
- name: mocha
95
- requirement: *id005
96
- - !ruby/object:Gem::Dependency
97
- version_requirements: &id006 !ruby/object:Gem::Requirement
98
- none: false
99
- requirements:
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
100
59
  - - ~>
101
- - !ruby/object:Gem::Version
102
- hash: 23
103
- segments:
104
- - 2
105
- - 10
106
- version: "2.10"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.8'
62
+ type: :development
107
63
  prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: '1.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: mocha
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '='
74
+ - !ruby/object:Gem::Version
75
+ version: '0.11'
108
76
  type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '='
81
+ - !ruby/object:Gem::Version
82
+ version: '0.11'
83
+ - !ruby/object:Gem::Dependency
109
84
  name: rspec
110
- requirement: *id006
111
- - !ruby/object:Gem::Dependency
112
- version_requirements: &id007 !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
115
87
  - - ~>
116
- - !ruby/object:Gem::Version
117
- hash: 5
118
- segments:
119
- - 0
120
- - 7
121
- version: "0.7"
122
- prerelease: false
88
+ - !ruby/object:Gem::Version
89
+ version: '2.10'
123
90
  type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '2.10'
97
+ - !ruby/object:Gem::Dependency
124
98
  name: guard-rspec
125
- requirement: *id007
126
- - !ruby/object:Gem::Dependency
127
- version_requirements: &id008 !ruby/object:Gem::Requirement
128
- none: false
129
- requirements:
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
130
101
  - - ~>
131
- - !ruby/object:Gem::Version
132
- hash: 57
133
- segments:
134
- - 0
135
- - 9
136
- - 1
137
- version: 0.9.1
138
- prerelease: false
102
+ - !ruby/object:Gem::Version
103
+ version: '0.7'
139
104
  type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '0.7'
111
+ - !ruby/object:Gem::Dependency
140
112
  name: rb-fsevent
141
- requirement: *id008
142
- description: Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written in Ruby.
143
- email:
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 0.9.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: 0.9.1
125
+ description: Mongoid is an ODM (Object Document Mapper) Framework for MongoDB, written
126
+ in Ruby.
127
+ email:
144
128
  - durran@gmail.com
145
129
  executables: []
146
-
147
130
  extensions: []
148
-
149
131
  extra_rdoc_files: []
150
-
151
- files:
132
+ files:
152
133
  - lib/config/locales/bg.yml
153
134
  - lib/config/locales/de.yml
154
135
  - lib/config/locales/en-GB.yml
@@ -435,39 +416,27 @@ files:
435
416
  - README.md
436
417
  - Rakefile
437
418
  homepage: http://mongoid.org
438
- licenses: []
439
-
419
+ licenses:
420
+ - MIT
421
+ metadata: {}
440
422
  post_install_message:
441
423
  rdoc_options: []
442
-
443
- require_paths:
424
+ require_paths:
444
425
  - lib
445
- required_ruby_version: !ruby/object:Gem::Requirement
446
- none: false
447
- requirements:
448
- - - ">="
449
- - !ruby/object:Gem::Version
450
- hash: 3
451
- segments:
452
- - 0
453
- version: "0"
454
- required_rubygems_version: !ruby/object:Gem::Requirement
455
- none: false
456
- requirements:
457
- - - ">="
458
- - !ruby/object:Gem::Version
459
- hash: 23
460
- segments:
461
- - 1
462
- - 3
463
- - 6
426
+ required_ruby_version: !ruby/object:Gem::Requirement
427
+ requirements:
428
+ - - '>='
429
+ - !ruby/object:Gem::Version
430
+ version: '0'
431
+ required_rubygems_version: !ruby/object:Gem::Requirement
432
+ requirements:
433
+ - - '>='
434
+ - !ruby/object:Gem::Version
464
435
  version: 1.3.6
465
436
  requirements: []
466
-
467
437
  rubyforge_project: mongoid
468
- rubygems_version: 1.8.24
438
+ rubygems_version: 2.0.3
469
439
  signing_key:
470
- specification_version: 3
440
+ specification_version: 4
471
441
  summary: Elegant Persistance in Ruby for MongoDB.
472
442
  test_files: []
473
-