bson 3.0.0-java → 3.0.1-java

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 42015e5083036417f5fadff7a52a0e093175c610
4
- data.tar.gz: b4e9b72953e1e15bafaf81a8851532388d75d799
3
+ metadata.gz: 94f168576510a364adb9eaf334c85a9a568ceb6d
4
+ data.tar.gz: 1d5e8c4a8fa6c7cd209d7de5d89debb2b490e4ca
5
5
  SHA512:
6
- metadata.gz: 54fab55d9de7dc905e793fd8598831ece681abd6a3c17eea2573a908d7f1e01f65425b5a00afa2e6e2a22dc8bc8060458fb81534b3e38ad7640f9b8895b90a15
7
- data.tar.gz: 5e87eab43925eeab75b9e4f237f2cd4a6f116f2478103cf034a6acb3046bc95cb9b69273667f93360773a5acd52d04e9a494bd8b1b01a058dd24d2deac8afe8b
6
+ metadata.gz: ccdb34c828dc47587aebfda35329e28fa55a70487f19bda844516071f75ea3fdabecba08dfe373deecab43bb1386eea30ebeea4f9761a48fc4f03b6559652033
7
+ data.tar.gz: 3b24a7a00b196b913b7fc1be4c44295f9ce054b29bfa5f99148e885b1b2dcfd95ef2018e13931fdb7dd55ac7af434b952e3024fbce9ac4e5189a4ed2f84c20a4
Binary file
@@ -0,0 +1 @@
1
+ *�ω�5�|�u�T����N�$��w~�n��5�L��qE0J��6����L���撞�L_����?��oi<�`�cA�feYC�D�J��_�����s�r"���߸"7ĸvHG�7���ok�U�w��������_\N
@@ -1,6 +1,12 @@
1
1
  BSON Changelog
2
2
  ==============
3
3
 
4
+ ## 3.0.1
5
+
6
+ ### Bug Fixes
7
+
8
+ * Fixed installation on latest Rubygems which requires `'date'` to be required.
9
+
4
10
  ## 3.0.0
5
11
 
6
12
  ### Backwards Incompatible Changes
data/README.md CHANGED
@@ -8,159 +8,10 @@ Compatibility
8
8
 
9
9
  BSON is tested against MRI (1.9.2+), JRuby (1.7.0+) and Rubinius (2.0.0+).
10
10
 
11
- Installation
12
- ------------
13
-
14
- With bundler, add the `bson` gem to your `Gemfile`. As of 2.0.0 native extensions
15
- are bundled with the `bson` gem and `bson_ext` is no longer needed.
16
-
17
- ```ruby
18
- gem "bson", "~> 2.3"
19
- ```
20
-
21
- Require the `bson` gem in your application.
22
-
23
- ```ruby
24
- require "bson"
25
- ```
26
-
27
- Usage
28
- -----
29
-
30
- ### BSON Serialization
31
-
32
- Getting a Ruby object's raw BSON representation is done by calling `to_bson`
33
- on the Ruby object. For example:
34
-
35
- ```ruby
36
- "Shall I compare thee to a summer's day".to_bson
37
- 1024.to_bson
38
- ```
39
-
40
- Generating an object from BSON is done via calling `from_bson` on the class
41
- you wish to instantiate and passing it the `StringIO` bytes.
42
-
43
- ```ruby
44
- String.from_bson(string_io)
45
- Int32.from_bson(string_io)
46
- ```
47
-
48
- Core Ruby object's that have representations in the BSON specification and
49
- will have a `to_bson` method defined for them are:
50
-
51
- - `Array`
52
- - `FalseClass`
53
- - `Float`
54
- - `Hash`
55
- - `Integer`
56
- - `NilClass`
57
- - `Regexp`
58
- - `String`
59
- - `Symbol` (deprecated)
60
- - `Time`
61
- - `TrueClass`
62
-
63
- In addition to the core Ruby objects, BSON also provides some special types
64
- specific to the specification:
65
-
66
- #### `BSON::Binary`
67
-
68
- This is a representation of binary data, and must provide the raw data and
69
- a subtype when constructing.
70
-
71
- ```ruby
72
- BSON::Binary.new(binary_data, :md5)
73
- ```
74
-
75
- Valid subtypes are: `:generic`, `:function`, `:old`, `:uuid_old`, `:uuid`,
76
- `:md5`, `:user`.
77
-
78
- #### `BSON::Code`
79
-
80
- Represents a string of Javascript code.
81
-
82
- ```ruby
83
- BSON::Code.new("this.value = 5;")
84
- ```
85
-
86
- #### `BSON::CodeWithScope`
87
-
88
- Represents a string of Javascript code with a hash of values.
89
-
90
- ```ruby
91
- BSON::CodeWithScope.new("this.value = age;", age: 5)
92
- ```
93
-
94
- #### `BSON::Document`
95
-
96
- This is a special ordered hash for use with Ruby below 1.9, and is simply
97
- a subclass of a Ruby hash in 1.9 and higher.
98
-
99
- ```ruby
100
- BSON::Document[:key, "value"]
101
- BSON::Document.new
102
- ```
103
-
104
- #### `BSON::MaxKey`
105
-
106
- Represents a value in BSON that will always compare higher to another value.
107
-
108
- ```ruby
109
- BSON::MaxKey.new
110
- ```
111
-
112
- #### `BSON::MinKey`
113
-
114
- Represents a value in BSON that will always compare lower to another value.
115
-
116
- ```ruby
117
- BSON::MinKey.new
118
- ```
119
-
120
- #### `BSON::ObjectId`
121
-
122
- Represents a 12 byte unique identifier for an object on a given machine.
123
-
124
- ```ruby
125
- BSON::ObjectId.new
126
- ```
127
-
128
- #### `BSON::Timestamp`
129
-
130
- Represents a special time with a start and increment value.
131
-
132
- ```ruby
133
- BSON::Timestamp.new(5, 30)
134
- ```
135
-
136
- #### `BSON::Undefined`
137
-
138
- Represents a placeholder for a value that was not provided.
139
-
140
- ```ruby
141
- BSON::Undefined.new
142
- ```
143
-
144
- ### JSON Serialization
145
-
146
- Some BSON types have special representations in JSON. These are as follows
147
- and will be automatically serialized in the form when calling `to_json` on
148
- them.
149
-
150
- - `BSON::Binary`: `{ "$binary" : "\x01", "$type" : "md5" }`
151
- - `BSON::Code`: `{ "$code" : "this.v = 5 }`
152
- - `BSON::CodeWithScope`: `{ "$code" : "this.v = value", "$scope" : { v => 5 }}`
153
- - `BSON::MaxKey`: `{ "$maxKey" : 1 }`
154
- - `BSON::MinKey`: `{ "$minKey" : 1 }`
155
- - `BSON::ObjectId`: `{ "$oid" : "4e4d66343b39b68407000001" }`
156
- - `BSON::Timestamp`: `{ "t" : 5, "i" : 30 }`
157
- - `Regexp`: `{ "$regex" : "[abc]", "$options" : "i" }`
158
-
159
- ### Notes on Special Ruby Date Classes
11
+ Documentation
12
+ -------------
160
13
 
161
- As of 2.1.0, Ruby's `Date` and `DateTime` are able to be serialized, but when
162
- they are deserialized they will always be returned as a `Time` since the BSON
163
- specification only has a `Time` type and knows nothing about Ruby.
14
+ Current documentation can be found [here](http://docs.mongodb.org/ecosystem/tutorial/ruby-bson-tutorial/#ruby-bson-tutorial)
164
15
 
165
16
  API Documentation
166
17
  -----------------
Binary file
@@ -12,6 +12,8 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
+ require 'date'
16
+
15
17
  module BSON
16
18
 
17
19
  # Injects behaviour for encoding date values to raw bytes as specified by
@@ -13,5 +13,5 @@
13
13
  # limitations under the License.
14
14
 
15
15
  module BSON
16
- VERSION = "3.0.0"
16
+ VERSION = "3.0.1"
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.0
4
+ version: 3.0.1
5
5
  platform: java
6
6
  authors:
7
7
  - Tyler Brock
@@ -11,8 +11,30 @@ authors:
11
11
  - Gary Murakami
12
12
  autorequire:
13
13
  bindir: bin
14
- cert_chain: []
15
- date: 2015-02-18 00:00:00.000000000 Z
14
+ cert_chain:
15
+ - |
16
+ -----BEGIN CERTIFICATE-----
17
+ MIIDfDCCAmSgAwIBAgIBATANBgkqhkiG9w0BAQUFADBCMRQwEgYDVQQDDAtkcml2
18
+ ZXItcnVieTEVMBMGCgmSJomT8ixkARkWBTEwZ2VuMRMwEQYKCZImiZPyLGQBGRYD
19
+ Y29tMB4XDTE0MTEyMDE1NTYxOVoXDTE1MTEyMDE1NTYxOVowQjEUMBIGA1UEAwwL
20
+ ZHJpdmVyLXJ1YnkxFTATBgoJkiaJk/IsZAEZFgUxMGdlbjETMBEGCgmSJomT8ixk
21
+ ARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANFdSAa8fRm1
22
+ bAM9za6Z0fAH4g02bqM1NGnw8zJQrE/PFrFfY6IFCT2AsLfOwr1maVm7iU1+kdVI
23
+ IQ+iI/9+E+ArJ+rbGV3dDPQ+SLl3mLT+vXjfjcxMqI2IW6UuVtt2U3Rxd4QU0kdT
24
+ JxmcPYs5fDN6BgYc6XXgUjy3m+Kwha2pGctdciUOwEfOZ4RmNRlEZKCMLRHdFP8j
25
+ 4WTnJSGfXDiuoXICJb5yOPOZPuaapPSNXp93QkUdsqdKC32I+KMpKKYGBQ6yisfA
26
+ 5MyVPPCzLR1lP5qXVGJPnOqUAkvEUfCahg7EP9tI20qxiXrR6TSEraYhIFXL0EGY
27
+ u8KAcPHm5KkCAwEAAaN9MHswCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0O
28
+ BBYEFFt3WbF+9JpUjAoj62cQBgNb8HzXMCAGA1UdEQQZMBeBFWRyaXZlci1ydWJ5
29
+ QDEwZ2VuLmNvbTAgBgNVHRIEGTAXgRVkcml2ZXItcnVieUAxMGdlbi5jb20wDQYJ
30
+ KoZIhvcNAQEFBQADggEBAKjvumG2Fy9zAoSc1OEcmAqqOfzx1U+isGyEsz1rs5eT
31
+ HAIHsxaEdZTjSwDuqyelLDWJHWspeWU5pV5lepfI4cop29wwoPJIJ9Az2RMMbtdv
32
+ gFApVb6QX61OMenFeOdJ/QZ3n9xcrxJZFdvrXQ5GjEU2anq3dJhFeESwIMlfVJC7
33
+ 7XrlMxizzH712DPfy65dMj0Y39qHdoWYKeCkEoj5UWNcHRK9xgaHJR6prlXrIhgb
34
+ o2UXDbWtz5PqoFd8EgNJAn3+BG1pwC9S9pVFG3WPucfAx/bE8iq/vvchHei5Y/Vo
35
+ aAz5f/hY4zFeYWvGDBHYEXE1rTN2hhMSyJscPcFbmz0=
36
+ -----END CERTIFICATE-----
37
+ date: 2015-03-30 00:00:00.000000000 Z
16
38
  dependencies: []
17
39
  description: A full featured BSON specification implementation, in Ruby
18
40
  email:
@@ -0,0 +1,4 @@
1
+ �U��4�S��u���d�c�nB����I0�&���
2
+ � 0!��O ��ei���i�]���sn�mF龦Z�����ؘJ�����`@M��?+�� h)ؤ-kS�b:}^d֐q! �C�>�X��.k��
3
+ ۇH���AȬߪ ��e����K ��.U�f��b1���SyG��6�(llNOB�6f��W
4
+ �(o�-� �i{a�� A�c,J�鋄�ӿlm�]_���/��tɌ��=�l�we