mongoid_occurrences 1.0.1 → 1.0.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f419f750707b021c4d1438ff4b0c8de9b27bc8c1ee56d60893fc187cdfe5ae56
|
4
|
+
data.tar.gz: bfeed583316b02275fbfa05c664d8be48f871886861ca010c4e1681fb2a0839d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 167e0701c47a66589978348d347e8de45b98492ddafd382f966b0be9764d538a65a236131fe46ba42b8ec2fbaa83adf3d2a46995f5dca4ff31995c5c91aa9326
|
7
|
+
data.tar.gz: 26b547b07d03b6bc3351b76418c73a46dd345c3b7eb40031fc91127953a07353da59455b38d383b3d81d1961a2889578f7288de9232a0b98ab1fdd05a36f5298
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -122,6 +122,10 @@ class EventParent
|
|
122
122
|
scope :occurs_from, ->(date_time) { elem_match(events: Event.occurs_from(date_time).selector) }
|
123
123
|
scope :occurs_on, ->(date_time) { elem_match(events: Event.occurs_on(date_time).selector) }
|
124
124
|
scope :occurs_until, ->(date_time) { elem_match(events: Event.occurs_until(date_time).selector) }
|
125
|
+
|
126
|
+
include MongoidOccurrences::HasFieldsFromAggregation
|
127
|
+
|
128
|
+
delegate :daily_occurrences, to: :event
|
125
129
|
end
|
126
130
|
```
|
127
131
|
|
@@ -18,6 +18,7 @@ module MongoidOccurrences
|
|
18
18
|
MongoidOccurrences::DailyOccurrence.new(
|
19
19
|
dtstart: occurrence.start_time.change(hour: dtstart.hour, min: dtstart.minute),
|
20
20
|
dtend: occurrence.end_time.change(hour: dtend.hour, min: dtend.minute),
|
21
|
+
occurrence_id: id,
|
21
22
|
operator: operator
|
22
23
|
)
|
23
24
|
end
|
@@ -37,6 +38,7 @@ module MongoidOccurrences
|
|
37
38
|
MongoidOccurrences::DailyOccurrence.new(
|
38
39
|
dtstart: occurence_dtstart,
|
39
40
|
dtend: occurence_dtend,
|
41
|
+
occurrence_id: id,
|
40
42
|
operator: operator
|
41
43
|
)
|
42
44
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_occurrences
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomas Celizna
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-01-
|
12
|
+
date: 2019-01-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ice_cube
|