since_when 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -20,7 +20,6 @@ Or install it yourself as:
20
20
 
21
21
  $ gem install since_when
22
22
 
23
- **Make sure the date gem is required in app as well
24
23
 
25
24
  ## Usage
26
25
 
@@ -15,6 +15,10 @@ module SinceWhen
15
15
  hour_dif = DateTime.now.hour - date.hour
16
16
  minute_dif = DateTime.now.minute - date.minute
17
17
  second_dif = DateTime.now.second - date.second
18
+
19
+ if (DateTime.now - date) < 0
20
+ throw "Future dates are not allowed."
21
+ end
18
22
  end
19
23
 
20
24
  day_dif = Date.today.day - date.day
@@ -1,3 +1,3 @@
1
1
  module SinceWhen
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: since_when
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: