moped 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of moped might be problematic. Click here for more details.

@@ -1,11 +1,23 @@
1
1
  # Overview
2
2
 
3
- ## 1.1.0 (branch: master)
3
+ ## 1.1.1
4
4
 
5
- ### New Features
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
@@ -63,6 +63,9 @@ module Moped
63
63
  "#<#{self.class.name} type=#{type.inspect} length=#{data.bytesize}>"
64
64
  end
65
65
 
66
+ def to_s
67
+ data.to_s
68
+ end
66
69
  end
67
70
  end
68
71
  end
@@ -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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Moped
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
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.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-06-26 00:00:00.000000000 Z
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: -336894987180706446
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: -336894987180706446
129
+ hash: 3108912104464983584
130
130
  requirements: []
131
131
  rubyforge_project:
132
132
  rubygems_version: 1.8.24