bson 3.0.3 → 3.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6ad453f095cb79d3aaf2fdd4b9d4cd12d169678
4
- data.tar.gz: d29d2f0b0fd25f0d3ca9f83913e9a7099b43e780
3
+ metadata.gz: b294933da8a03af3a5d3b9f165a239cd7a53cecd
4
+ data.tar.gz: 5b9a47f87f41111d2c054cf109eab58e463b4c16
5
5
  SHA512:
6
- metadata.gz: bd903a7e666a27c16591d9207b90eecf16a9854371148e7c8cdc53d6bdf8a1e510ccd68ea5e455a54b4d6e66f39ef3e9292d1cbc6fb213bbc8cefba6f000adf2
7
- data.tar.gz: 8d8a8546d7beabdcbd0d11b95b37cc4aafe1b76649d9a2beeb1040a9cda741ddc7435c9c811a096d76348a51b4f1570b144c7d170edee73e896ecdb5d4181e33
6
+ metadata.gz: 7507d40efb1f6b7ba64081d37c8069cd4731ce19f95c5bddd2440612e7b4d717cc48c07ebf87378bf979319ddfbd3eed7f72541443045caf34916a8b5c1b5070
7
+ data.tar.gz: ef61737d497cecc1efd62dc365f75ea98e89bff7bdb8dc70a7af07cd15e48e9a20db717a9df2dba796ceee5c06db156113db4f1fc46aabf77e0cab1e3483da22
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  BSON Changelog
2
2
  ==============
3
3
 
4
+ ## 3.0.4
5
+
6
+ ### Bug Fixes
7
+
8
+ * Fixed `BSON::ObjectId.legal?` regular expression to properly check beginning and end of strings.
9
+
4
10
  ## 3.0.3
5
11
 
6
12
  ### Bug Fixes
@@ -282,7 +282,7 @@ module BSON
282
282
  #
283
283
  # @since 2.0.0
284
284
  def legal?(string)
285
- string.to_s =~ /^[0-9a-f]{24}$/i ? true : false
285
+ string.to_s =~ /\A[0-9a-f]{24}\z/i ? true : false
286
286
  end
287
287
 
288
288
  # Executes the provided block only if the size of the provided object is
data/lib/bson/version.rb CHANGED
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module BSON
16
- VERSION = "3.0.3"
16
+ VERSION = "3.0.4"
17
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bson
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 3.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Brock
@@ -34,7 +34,7 @@ cert_chain:
34
34
  XZOS48LlWh15EG4yZo/gRzqNAW2LUIkYA5eMS2Kp6r+KV8IBUO/LaHdrXbdilpa8
35
35
  BRsuCo7UZDbFVRns04HLyjVvkj+K/ywIcdKdS0csz5M=
36
36
  -----END CERTIFICATE-----
37
- date: 2015-05-19 00:00:00.000000000 Z
37
+ date: 2015-06-04 00:00:00.000000000 Z
38
38
  dependencies: []
39
39
  description: A full featured BSON specification implementation, in Ruby
40
40
  email:
metadata.gz.sig CHANGED
Binary file