bson 4.1.1 → 4.2.0.rc0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/Rakefile +18 -3
  5. data/ext/bson/{native.c → bson_native.c} +48 -8
  6. data/ext/bson/extconf.rb +1 -1
  7. data/ext/bson/native-endian.h +1 -1
  8. data/lib/bson.rb +3 -1
  9. data/lib/bson/config.rb +1 -1
  10. data/lib/bson/decimal128.rb +318 -0
  11. data/lib/bson/decimal128/builder.rb +448 -0
  12. data/lib/bson/document.rb +2 -2
  13. data/lib/bson/environment.rb +13 -1
  14. data/lib/bson/int32.rb +46 -0
  15. data/lib/bson/int64.rb +46 -0
  16. data/lib/bson/max_key.rb +1 -1
  17. data/lib/bson/min_key.rb +1 -1
  18. data/lib/bson/object_id.rb +2 -1
  19. data/lib/bson/open_struct.rb +57 -0
  20. data/lib/bson/regexp.rb +1 -1
  21. data/lib/bson/registry.rb +1 -1
  22. data/lib/bson/version.rb +2 -2
  23. data/spec/bson/decimal128_spec.rb +1583 -0
  24. data/spec/bson/document_spec.rb +1 -1
  25. data/spec/bson/driver_bson_spec.rb +77 -0
  26. data/spec/bson/int32_spec.rb +58 -0
  27. data/spec/bson/int64_spec.rb +58 -0
  28. data/spec/bson/open_struct_spec.rb +144 -0
  29. data/spec/spec_helper.rb +4 -0
  30. data/spec/support/common_driver.rb +347 -0
  31. data/spec/support/driver-spec-tests/decimal128/decimal128-1.json +363 -0
  32. data/spec/support/driver-spec-tests/decimal128/decimal128-2.json +793 -0
  33. data/spec/support/driver-spec-tests/decimal128/decimal128-3.json +1771 -0
  34. data/spec/support/driver-spec-tests/decimal128/decimal128-4.json +165 -0
  35. data/spec/support/driver-spec-tests/decimal128/decimal128-5.json +402 -0
  36. data/spec/support/driver-spec-tests/decimal128/decimal128-6.json +131 -0
  37. data/spec/support/driver-spec-tests/decimal128/decimal128-7.json +327 -0
  38. metadata +29 -4
  39. metadata.gz.sig +0 -0
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: 4.1.1
4
+ version: 4.2.0.rc0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Brock
@@ -34,7 +34,7 @@ cert_chain:
34
34
  yVPbgNJA2D/PnLe8ZFMhgJf+VIA1V4oybP/o+9aqlghTtNfYHJpRCAluUiaywwXl
35
35
  KzD4mmIBpxtbWrWB3hx7tsVJmWx5zgO9aDAfvWnXfoo=
36
36
  -----END CERTIFICATE-----
37
- date: 2016-04-27 00:00:00.000000000 Z
37
+ date: 2016-09-19 00:00:00.000000000 Z
38
38
  dependencies: []
39
39
  description: A full featured BSON specification implementation, in Ruby
40
40
  email:
@@ -50,9 +50,9 @@ files:
50
50
  - NOTICE
51
51
  - README.md
52
52
  - Rakefile
53
+ - ext/bson/bson_native.c
53
54
  - ext/bson/extconf.rb
54
55
  - ext/bson/native-endian.h
55
- - ext/bson/native.c
56
56
  - lib/bson.rb
57
57
  - lib/bson/array.rb
58
58
  - lib/bson/binary.rb
@@ -62,6 +62,8 @@ files:
62
62
  - lib/bson/config.rb
63
63
  - lib/bson/date.rb
64
64
  - lib/bson/date_time.rb
65
+ - lib/bson/decimal128.rb
66
+ - lib/bson/decimal128/builder.rb
65
67
  - lib/bson/document.rb
66
68
  - lib/bson/environment.rb
67
69
  - lib/bson/false_class.rb
@@ -76,6 +78,7 @@ files:
76
78
  - lib/bson/nil_class.rb
77
79
  - lib/bson/object.rb
78
80
  - lib/bson/object_id.rb
81
+ - lib/bson/open_struct.rb
79
82
  - lib/bson/regexp.rb
80
83
  - lib/bson/registry.rb
81
84
  - lib/bson/specialized.rb
@@ -95,7 +98,9 @@ files:
95
98
  - spec/bson/config_spec.rb
96
99
  - spec/bson/date_spec.rb
97
100
  - spec/bson/date_time_spec.rb
101
+ - spec/bson/decimal128_spec.rb
98
102
  - spec/bson/document_spec.rb
103
+ - spec/bson/driver_bson_spec.rb
99
104
  - spec/bson/false_class_spec.rb
100
105
  - spec/bson/float_spec.rb
101
106
  - spec/bson/hash_spec.rb
@@ -108,6 +113,7 @@ files:
108
113
  - spec/bson/nil_class_spec.rb
109
114
  - spec/bson/object_id_spec.rb
110
115
  - spec/bson/object_spec.rb
116
+ - spec/bson/open_struct_spec.rb
111
117
  - spec/bson/regexp_spec.rb
112
118
  - spec/bson/registry_spec.rb
113
119
  - spec/bson/string_spec.rb
@@ -118,6 +124,14 @@ files:
118
124
  - spec/bson/undefined_spec.rb
119
125
  - spec/bson_spec.rb
120
126
  - spec/spec_helper.rb
127
+ - spec/support/common_driver.rb
128
+ - spec/support/driver-spec-tests/decimal128/decimal128-1.json
129
+ - spec/support/driver-spec-tests/decimal128/decimal128-2.json
130
+ - spec/support/driver-spec-tests/decimal128/decimal128-3.json
131
+ - spec/support/driver-spec-tests/decimal128/decimal128-4.json
132
+ - spec/support/driver-spec-tests/decimal128/decimal128-5.json
133
+ - spec/support/driver-spec-tests/decimal128/decimal128-6.json
134
+ - spec/support/driver-spec-tests/decimal128/decimal128-7.json
121
135
  - spec/support/shared_examples.rb
122
136
  homepage: http://bsonspec.org
123
137
  licenses:
@@ -139,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
153
  version: 1.3.6
140
154
  requirements: []
141
155
  rubyforge_project: bson
142
- rubygems_version: 2.5.1
156
+ rubygems_version: 2.4.5.1
143
157
  signing_key:
144
158
  specification_version: 4
145
159
  summary: Ruby Implementation of the BSON specification
@@ -153,7 +167,9 @@ test_files:
153
167
  - spec/bson/config_spec.rb
154
168
  - spec/bson/date_spec.rb
155
169
  - spec/bson/date_time_spec.rb
170
+ - spec/bson/decimal128_spec.rb
156
171
  - spec/bson/document_spec.rb
172
+ - spec/bson/driver_bson_spec.rb
157
173
  - spec/bson/false_class_spec.rb
158
174
  - spec/bson/float_spec.rb
159
175
  - spec/bson/hash_spec.rb
@@ -166,6 +182,7 @@ test_files:
166
182
  - spec/bson/nil_class_spec.rb
167
183
  - spec/bson/object_id_spec.rb
168
184
  - spec/bson/object_spec.rb
185
+ - spec/bson/open_struct_spec.rb
169
186
  - spec/bson/regexp_spec.rb
170
187
  - spec/bson/registry_spec.rb
171
188
  - spec/bson/string_spec.rb
@@ -176,4 +193,12 @@ test_files:
176
193
  - spec/bson/undefined_spec.rb
177
194
  - spec/bson_spec.rb
178
195
  - spec/spec_helper.rb
196
+ - spec/support/common_driver.rb
197
+ - spec/support/driver-spec-tests/decimal128/decimal128-1.json
198
+ - spec/support/driver-spec-tests/decimal128/decimal128-2.json
199
+ - spec/support/driver-spec-tests/decimal128/decimal128-3.json
200
+ - spec/support/driver-spec-tests/decimal128/decimal128-4.json
201
+ - spec/support/driver-spec-tests/decimal128/decimal128-5.json
202
+ - spec/support/driver-spec-tests/decimal128/decimal128-6.json
203
+ - spec/support/driver-spec-tests/decimal128/decimal128-7.json
179
204
  - spec/support/shared_examples.rb
metadata.gz.sig CHANGED
Binary file