state_of_the_nation 1.1.1 → 1.1.2

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: c3a33b2524ff4366459b1b2acfa2d99bd64e4577
4
- data.tar.gz: 3e2391951eeeffd3c09c6c2a5d22801df27454d3
3
+ metadata.gz: 3cc3e890bee0ef29ba0095890cadf503ad9975b5
4
+ data.tar.gz: 3ccae7dc38f6c533598f6fe3c89e755e4b5373a1
5
5
  SHA512:
6
- metadata.gz: 7fa8945c79a97b3b6a97191d3f8adeb19ced82cfe653d6088030e5ba2301fa84d8a887cfa49590e758ae02f7d4d920163f638196aa09858285578a6881c672d1
7
- data.tar.gz: d36835a5772b71bbc12fdb713cd91944d0f786174c2b04b13ec76787a6219731c754331bd79c9e9f98b8b9cf502d9e8fba6e442e44aa08c679fe2d2e1c3bf48c
6
+ metadata.gz: 58bb0d7aacddcbcbf39d4eca1d0640b8639772846a76317c8608bf908c00b7cb5e51551b3004991f90e2316b321e83ad5067242e310f75207348c0c0965cfd3d
7
+ data.tar.gz: acbf4ad6533efab8b16b74eb69bb036785f46e7b54269bc1278cc11a2affe17e8a3396863f6c02ec2b5ad9efbf9f729fa8b602c078eaeb15d28c3966c3bb4719
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # StateOfTheNation
2
2
 
3
- [![Build Status](https://travis-ci.com/intercom/state_of_the_nation.svg?token=Z1aavhs79p7e6XpUgjv5&branch=master)](https://travis-ci.com/intercom/state_of_the_nation)
3
+ [![Build Status](https://travis-ci.org/intercom/state_of_the_nation.svg?branch=master)](https://travis-ci.org/intercom/state_of_the_nation)
4
4
 
5
5
  StateOfTheNation makes modeling state that changes over time easy with ActiveRecord, allowing you to query the active value at any point in time, as well as ensure that your records don't overlap at any point.
6
6
 
@@ -77,8 +77,8 @@ module StateOfTheNation
77
77
  end
78
78
 
79
79
  def round_if_should(time)
80
- return time.round if should_round_timestamps?
81
- time
80
+ return time if !should_round_timestamps?
81
+ time.respond_to?(:round) ? time.round : time
82
82
  end
83
83
 
84
84
  def should_round_timestamps?
@@ -1,3 +1,3 @@
1
1
  module StateOfTheNation
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: state_of_the_nation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick O'Doherty