File: CHANGELOG.md

package info (click to toggle)
ruby-origin 2.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 248 kB
  • sloc: ruby: 1,196; makefile: 3
file content (146 lines) | stat: -rw-r--r-- 3,531 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Overview

## 2.1.0

### New Features

* Aliased `order` to `order_by` for compatibility with AR query methods.

* Added `reorder` to queryables to have a way to completely overwrite existing
  ordering instead of always having to merge. This takes the same syntax
  as `order`.

## 2.0.0

### Major Changes (Backwards Incompatible)

* Origin 2 now only supports MongoDB 2.4.0 and higher.

* \#60 Array evolution no longer modifies in place.

* Legacy geo selection has been removed, use geo_spacial now.

* \#48 `not` negation no longer ignores parameters without expressions
  which follow them, but not negates them with `$ne` instead.

      Previously:

        selection = query.not.where(field: 1)
        selection.selector # { "field" =>  1 }

      Now:

        selection = query.not.where(field: 1)
        selection.selector # { "field" => { "$ne" =>  1 }}

### New Features

* \#82 Added support for $geoIntersects and $geoWithin queries via the
  geo_spacial method. Examples:

      query.geo_spacial(:location.intersects_line => [[ 1, 10 ], [ 2, 10 ]])
      query.geo_spacial(:location.intersects_point => [[ 1, 10 ]])
      query.geo_spacial(:location.intersects_polygon => [[ 1, 10 ], [ 2, 10 ], [ 1, 10 ]])
      query.geo_spacial(:location.within_polygon => [[ 1, 10 ], [ 2, 10 ], [ 1, 10 ]])

### Resolved Issues

* \#83 Internal smart hashes (Smashes) now can get directly by key or alias.
  (Gosha Arinich)

* \#66 Array evolution now properly coerces non arrays into arrays.
  (Jared Wyatt)

* \#61 `only` and `without` can now be used together. It is up to the user
  to determine when this is valid or not. (Rodrigo Saito)

## 1.1.0

### Resolved Issues

* \#77 Arrays can now be expanded when complex keys are preset.
  (Timersha Ziganshin)

* \#76 Hashes with nested values multiple levels are now expanded properly.
  (Timersha Ziganshin)

* \#75 Merging strategies now expand nested criteria properly.
  (Timersha Ziganshin)

* \#73 Negation now properly works for $gt/$lt etc queries.
  (Arthur Neves)

* \#62 Fixed time with zone require. (Julien Boyer)

## 1.0.11

### Resolved Issues

* \#58 Retain milliseconds precision when evolving times. (Steve Valaitis)

* \#56 Selector values are no longer modified in place.

* \#55 Allow #only and #without to take array arguments. (Egor Lynko)

## 1.0.10

### Resolved Issues

* \#51 hash equality works corectly with `Origin::Key`s (Gerad Suyderhoud)

      { :foo.all => [1, 2] } == { :foo.all => [1, 2] } #=> true

## 1.0.9

### Resolved Issues

* \#45 Fixed $not query negation with regular expressions. (Andrew Bennett)

## 1.0.8

### Resolved Issues

* \#44 Fixed serialization on deeply nested $and and $or queries. (Egor Lynko)

## 1.0.7

### Resolved Issues

* \#40 Allow $elemMatch queries to be expanded in where clauses, not just
  elem_match method calls.

## 1.0.5

### Resolved Issues

* \#40 Allow $elemMatch queries to be expanded.

## 1.0.4

### Resolved Issues

* \#39 Fixed errors when using forwarding when active support is not present.

## 1.0.3

### Resolved Issues

* mongoid/mongoid\#2170 Multi selection ($and/$or) now properly concats
  when merging two criteria.

## 1.0.2

### Resolved Issues

* mongoid/mongoid\#2165 Multi selection ($and/$or) now takes into account
  field aliases.

## 1.0.1

### Resolved Issues

* \#38 Fixed issues around UTC time conversion of dates and date times:

    `DateTimes` already in UTC are not converted to UTC again.

    `Dates` properly convert directly to UTC from numeric values.