moped 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of moped might be problematic. Click here for more details.
- data/CHANGELOG.md +14 -2
- data/lib/moped/bson/binary.rb +3 -0
- data/lib/moped/bson/object_id.rb +8 -0
- data/lib/moped/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,11 +1,23 @@
|
|
1
1
|
# Overview
|
2
2
|
|
3
|
-
## 1.1.
|
3
|
+
## 1.1.1
|
4
4
|
|
5
|
-
###
|
5
|
+
### Resolved Issues
|
6
|
+
|
7
|
+
* mongoid/mongoid\#2175 Fixed sorting by object ids.
|
8
|
+
|
9
|
+
## 1.1.0
|
10
|
+
|
11
|
+
### Resolved Issues
|
12
|
+
|
13
|
+
* \#29 Fixed endian directives order. Moped will now work properly on
|
14
|
+
all architectures. This removes support for MRI 1.9.2. (Miguel Herranz)
|
6
15
|
|
7
16
|
### Resolved Issues
|
8
17
|
|
9
18
|
## 1.0.1
|
10
19
|
|
20
|
+
* \#28 `BSON::Binary` and `BSON::ObjectId` now have readable `to_s` and
|
21
|
+
`inspect` methods. (Ara Howard)
|
22
|
+
|
11
23
|
### Resolved Issues
|
data/lib/moped/bson/binary.rb
CHANGED
data/lib/moped/bson/object_id.rb
CHANGED
@@ -44,6 +44,10 @@ module Moped
|
|
44
44
|
end
|
45
45
|
alias eql? ==
|
46
46
|
|
47
|
+
def <=>(other)
|
48
|
+
data <=> other.data
|
49
|
+
end
|
50
|
+
|
47
51
|
def hash
|
48
52
|
data.hash
|
49
53
|
end
|
@@ -52,6 +56,10 @@ module Moped
|
|
52
56
|
@@string_format % data.unpack("C12")
|
53
57
|
end
|
54
58
|
|
59
|
+
def inspect
|
60
|
+
to_s.inspect
|
61
|
+
end
|
62
|
+
|
55
63
|
def to_json(*args)
|
56
64
|
"{\"$oid\": \"#{to_s}\"}"
|
57
65
|
end
|
data/lib/moped/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
segments:
|
119
119
|
- 0
|
120
|
-
hash:
|
120
|
+
hash: 3108912104464983584
|
121
121
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
122
|
none: false
|
123
123
|
requirements:
|
@@ -126,7 +126,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
126
|
version: '0'
|
127
127
|
segments:
|
128
128
|
- 0
|
129
|
-
hash:
|
129
|
+
hash: 3108912104464983584
|
130
130
|
requirements: []
|
131
131
|
rubyforge_project:
|
132
132
|
rubygems_version: 1.8.24
|