mongoid_occurrences 1.1.2 → 1.1.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: 32fee41ee4a82b13e6b0747a8366d6a4f1f5a6735732ad3ed0f218ea8310f8e7
4
- data.tar.gz: 790b5af32d55087c772f8b4b58630029c2bf678d97e49872d9125af71ec19666
3
+ metadata.gz: 7c4621a7b3901f05cb2f3d9b79139b8d5ceca2d6cfec3876aa3d7188a205e0a5
4
+ data.tar.gz: f7d059e47640eb9dc90f34b58d245b05b46f6006c479ad3ea6d5d3009fdb79c3
5
5
  SHA512:
6
- metadata.gz: d06f56fda3a85af12643370ef85d2079cd55ebf311daee2c559ceb788a18c004928529ad95c1d26afca3a69dae41a391744cb1fab156e2226c7e482cfb387de4
7
- data.tar.gz: 546a1190fa72591b60053fd5b60eac6b56aea1bbb0ccde3e69e07e2cffd8c834ac133cd7e552e244c26b13d58d245681957b09cd27651eb4b6e526c7d193f509
6
+ metadata.gz: '0651849f06eb33672c2f7f38c5606479cbb2c6eb3705e3db880dae23977b5efcb2f55b03a95ca28dd090433efcb8b7eefbfcbdf67390772f05788179df2d72be'
7
+ data.tar.gz: c9dc146e727755a6bc40f30d782e1be2c0c514b0831a12d7b584b03b1330189a9b6e10212c70d2089b8a700320945ba88092039644743307894b073ab8540037
data/.travis.yml CHANGED
@@ -2,7 +2,7 @@ language: ruby
2
2
  cache: bundler
3
3
  script: 'bundle exec rake'
4
4
  rvm:
5
- - 2.6.0
5
+ - 2.6.2
6
6
  services:
7
7
  - mongodb
8
8
 
@@ -15,5 +15,5 @@ notifications:
15
15
 
16
16
  matrix:
17
17
  include:
18
- - rvm: 2.6.0
18
+ - rvm: 2.6.2
19
19
  env: MONGOID_VERSION=7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.1.4
4
+
5
+ * ADD: default sort order on the `#occurrences` association
6
+
3
7
  ## 1.1.2
4
8
 
5
9
  * FIX: missing minutes when creating daily occurrences from a schedule
@@ -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), cascade_callbacks: true
11
+ embeds_many :occurrences, class_name: options.fetch(:class_name), cascade_callbacks: true, order: :ds.asc
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.1.2'.freeze
2
+ VERSION = '1.1.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.1.2
4
+ version: 1.1.4
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-02-08 00:00:00.000000000 Z
12
+ date: 2019-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ice_cube
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubygems_version: 3.0.1
273
+ rubygems_version: 3.0.3
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: Facilitates aggregations for events with multiple occurrences or a recurring