mongoid_recurring 0.1.3 → 0.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
  SHA1:
3
- metadata.gz: bdb70c676c42a5424af0bdf634c7560adde98edc
4
- data.tar.gz: bb6b1ef7c7289d47af554149365efe65ca03c217
3
+ metadata.gz: c30ff173ec86c79c1140b40daa6e2d6749c67329
4
+ data.tar.gz: bd9662c8156ded2b14faa53eeb477cdafc5c04db
5
5
  SHA512:
6
- metadata.gz: 9ecde7e7953dccb1c7715c8a277e51ffc38839d3f09508df8115ed00030dd59a4647e54ec0b51e4d1e6d8f8df8c1446568161b318df72b5c03243afdb3ac704d
7
- data.tar.gz: 6cb606eee0f746deb327420bf797bf8c3c99a11611f9ac572769631829199e5a8fffaa4c2a6a310e3ac1c17ad6204217d5f9537b03d5b02c0be55c3963096add
6
+ metadata.gz: 7d6010b8cbcebfe7215556f7f40d939eca3c3a60e7f9891c56704f69490576e9b7fe1ea37458d4eeaee0f84c83c92af871b61cf983ae4e795f0d0452b662b660
7
+ data.tar.gz: 7e23b23868470e43b7a327f7a8f6c601b43272b7087293edc1263aad74f91ce18499fbe7fb41ccccd6d69aa4af0fd2f3b19ee9112b3e16c37e21e8e9855d0148
@@ -37,6 +37,14 @@ module MongoidRecurring
37
37
 
38
38
  # =====================================================================
39
39
 
40
+ def <=> other
41
+ sort_key <=> other.sort_key
42
+ end
43
+
44
+ def sort_key
45
+ dtstart
46
+ end
47
+
40
48
  def all_day?
41
49
  self.all_day == true
42
50
  end
@@ -1,3 +1,3 @@
1
1
  module MongoidRecurring
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_recurring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomáš Celizna