mongoid_occurrences 1.0.3 → 1.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
  SHA256:
3
- metadata.gz: ba38fe71e21cd688949afe05de9633db031364a47b39215ae52ae7bacc8f1acc
4
- data.tar.gz: 85f00396b7bde2d4324f67cc562f90bdf0f4d4e9335d773c528e4768a31ae5fa
3
+ metadata.gz: 5ad2621a85048b9b98be55f4bc411d9b0ad3a7e040f5d7a9cf16e3d71c1f0cf0
4
+ data.tar.gz: 4ad4fc88c2de4332c9ff5bfca1113ce0f5448f0466a50cbb814d61f5d39e770e
5
5
  SHA512:
6
- metadata.gz: ad08cd98a969c9c37fc6691c69b890f0746bbf2b508ddd05bba92d1b29169dd5f5c42ee1e96414789d8d482881e68490aa0771096ffc51360c266b6ed3e93101
7
- data.tar.gz: 50b53d8551d1ef71c442dce7c5414fcd02363d8acbf5d09a5b1f7ee5f3f8f41a49f256f1cd3219cc7c0b21b2c5c40d1568033b8b8ada7286759b735e914641bb
6
+ metadata.gz: a19a6fbae99ff733e2f8814f2e94ddd774ff4faed015c22296f11a2e832812ff823ac9e9360112f39586b7d0c3113cb52a880dbb765faa2b77802b4a1377d630
7
+ data.tar.gz: 3b243cd776fda744b3e36f1299ee23c728a9e69b844f090ed387909440305b9ba121a4cd2b9eda66709710e3f3431a06af5fc075fc20f32e0f0e3f04820ce125
data/CHANGELOG.md CHANGED
@@ -1,20 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.4
4
+
5
+ * FIX: We rely on occurrences having their `updated_at` field touched when saving an event, which currently doesn't happen. Adding `cascade_callbacks` fixes that.
6
+
3
7
  ## 1.0.3
4
8
 
5
- * allow to specify `:parent_name` on `.embedded_in_event` macro
9
+ * ADD: allow to specify `:parent_name` on `.embedded_in_event` macro
6
10
 
7
11
  ## 1.0.2
8
12
 
9
- * `DailyOccurrence` has now `oid (occurrence_id)` referring to the original occurrence
13
+ * ADD: `DailyOccurrence` has now `oid (occurrence_id)` referring to the original occurrence
10
14
 
11
15
  ## 1.0.1
12
16
 
13
- * fix spelling of `*occurrences_cache_key*` related methods
17
+ * FIX: spelling of `*occurrences_cache_key*` related methods
14
18
 
15
19
  ## 1.0.0
16
20
 
17
- * [PR#4](https://github.com/tomasc/mongoid_occurrences/pull/4) Refactor to replace views with aggregations
21
+ * REFACTOR: [PR#4](https://github.com/tomasc/mongoid_occurrences/pull/4) Refactor to replace views with aggregations
18
22
 
19
23
  ## 0.2.0
20
24
 
@@ -8,7 +8,7 @@ module MongoidOccurrences
8
8
  def embeds_many_occurrences(options = {})
9
9
  field :_previous_occurrences_cache_key, type: String
10
10
 
11
- embeds_many :occurrences, class_name: options.fetch(:class_name)
11
+ embeds_many :occurrences, class_name: options.fetch(:class_name), cascade_callbacks: true
12
12
  accepts_nested_attributes_for :occurrences, allow_destroy: true, reject_if: :all_blank
13
13
 
14
14
  embeds_many :daily_occurrences, class_name: 'MongoidOccurrences::DailyOccurrence', order: :dtstart.asc
@@ -1,3 +1,3 @@
1
1
  module MongoidOccurrences
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  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.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna