timely 0.3.1 → 0.3.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: e269e83cabcd6ebf62cc0e79c35dd7b4c91dc7da
4
- data.tar.gz: d4a795800ff6fdf86b2a5d7e3e479f64148172e4
3
+ metadata.gz: 9ec094cd26ba0c89308c5d459f4332a5990c4ab3
4
+ data.tar.gz: b4c914a0142b21ae707cf2979b75ff0701e27eba
5
5
  SHA512:
6
- metadata.gz: c4d7a6dc25c00a7ae5db203a787eb1ebfdaa9768cb7283118182dec200621d4bb8660701d6f8a64d9186493237f785e4573f4b1caff234e226aef3653a1da86b
7
- data.tar.gz: 9831dec21982816e62f8b301c8ff2c49696c9df083c87c827ebc6b54f9a150e6e5217dd8c9c89616b8c5eca22fb7cde5da50407b2d9bb52bd54a45b527ec8380
6
+ metadata.gz: 8f7f35ab4678cb9cf34c65c7d3e525b9451d6bcbbebe52ae5abf971d0f8f3e615eb09548fba8b8a7a887c63b251f4bec7492262e9ad58954006112d9e5eaa6ed
7
+ data.tar.gz: bd4dd93376e9d1b1cddd6378b2a29fe0920afa4a69abe1aa92bc92ba354dbbcf65cb1265e5e972b339b8388ebca57a0f7929981fe68b578d125d7955cccc1905
data/.gitignore CHANGED
@@ -2,3 +2,5 @@ pkg
2
2
  coverage
3
3
  Gemfile.lock
4
4
  tmp
5
+ .bundle
6
+ vendor
data/CHANGELOG.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # Changelog
2
2
 
3
- ## Unreleased
3
+ ## 0.3.2
4
+
5
+ * [TT-4716] Better exception message when a range is invalid
4
6
 
5
7
  ## 0.3.1
6
8
 
@@ -78,7 +78,9 @@ module Timely
78
78
  private
79
79
 
80
80
  def validate_date_range!
81
- raise ArgumentError, "Incorrect date range" if start_date && end_date && (start_date > end_date)
81
+ if start_date && end_date && (start_date > end_date)
82
+ raise ArgumentError, "Incorrect date range #{start_date} is before #{end_date}"
83
+ end
82
84
  end
83
85
  end
84
86
  end
@@ -1,3 +1,3 @@
1
1
  module Timely
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timely
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Noack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-18 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler