mongoid_occurrences 1.0.2 → 1.0.3

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: f419f750707b021c4d1438ff4b0c8de9b27bc8c1ee56d60893fc187cdfe5ae56
4
- data.tar.gz: bfeed583316b02275fbfa05c664d8be48f871886861ca010c4e1681fb2a0839d
3
+ metadata.gz: ba38fe71e21cd688949afe05de9633db031364a47b39215ae52ae7bacc8f1acc
4
+ data.tar.gz: 85f00396b7bde2d4324f67cc562f90bdf0f4d4e9335d773c528e4768a31ae5fa
5
5
  SHA512:
6
- metadata.gz: 167e0701c47a66589978348d347e8de45b98492ddafd382f966b0be9764d538a65a236131fe46ba42b8ec2fbaa83adf3d2a46995f5dca4ff31995c5c91aa9326
7
- data.tar.gz: 26b547b07d03b6bc3351b76418c73a46dd345c3b7eb40031fc91127953a07353da59455b38d383b3d81d1961a2889578f7288de9232a0b98ab1fdd05a36f5298
6
+ metadata.gz: ad08cd98a969c9c37fc6691c69b890f0746bbf2b508ddd05bba92d1b29169dd5f5c42ee1e96414789d8d482881e68490aa0771096ffc51360c266b6ed3e93101
7
+ data.tar.gz: 50b53d8551d1ef71c442dce7c5414fcd02363d8acbf5d09a5b1f7ee5f3f8f41a49f256f1cd3219cc7c0b21b2c5c40d1568033b8b8ada7286759b735e914641bb
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.0.3
4
+
5
+ * allow to specify `:parent_name` on `.embedded_in_event` macro
6
+
3
7
  ## 1.0.2
4
8
 
5
9
  * `DailyOccurrence` has now `oid (occurrence_id)` referring to the original occurrence
@@ -24,7 +24,7 @@ module MongoidOccurrences
24
24
  field :dtend, type: DateTime
25
25
  field :all_day, type: Boolean
26
26
 
27
- embedded_in :event, class_name: options.fetch(:class_name, nil), inverse_of: :occurrences
27
+ embedded_in options.fetch(:parent_name, :event), class_name: options.fetch(:class_name, nil), inverse_of: :occurrences
28
28
 
29
29
  after_validation :adjust_dates_for_all_day!, if: :changed?
30
30
 
@@ -1,3 +1,3 @@
1
1
  module MongoidOccurrences
2
- VERSION = '1.0.2'.freeze
2
+ VERSION = '1.0.3'.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.2
4
+ version: 1.0.3
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-18 00:00:00.000000000 Z
12
+ date: 2019-01-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ice_cube