htty 1.5.3 → 1.5.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: a6b0501cdec3ac2c63cd4ce9ac168c62a10b97d3
4
- data.tar.gz: 1c82ac93bea40439693db1e3f05ab9a76aba5d68
3
+ metadata.gz: 72482928586c8a1e943e97fdea7c9fed28069268
4
+ data.tar.gz: e3a3ada8025df116dfc0ee95be9f98881369e6d4
5
5
  SHA512:
6
- metadata.gz: 24b13680c6350e6aaf7b5d48056c16f7da966baf6e6d55621a97b0770b8979e29af6374fccc52eaf600e27813df6214cb38e1f6de5e857c21726e13b686a3c5d
7
- data.tar.gz: 0747305f4c6c3829b834a7b2201843e059ccdb9eac8fd5cd7b148e473e0837de3cb7a4c67f3a428700e4b3f63e99b793c7e1cc602f8a3c6febf60ff12f12bb50
6
+ metadata.gz: 2b512a16609f816c097b96f5802f07c33099f291c951f10c219859aa0e21e01bc06db155f4b43968594e821fe8d6665f03208656a0191bfff6c9c5040900b716
7
+ data.tar.gz: e20fad8c963b253c8a2961b9993424106870344410e055a9141e8316c11c4103e1a689e63950d69e24da76925f9f38714d7bd001fe0152fd95800385a60ce1b1
@@ -1,6 +1,11 @@
1
1
  Version history for the _htty_ project
2
2
  ======================================
3
3
 
4
+ <a name="v1.5.4"></a>v1.5.4, Mon 10/05/2015
5
+ -------------------------------------------
6
+
7
+ * Improved the error message displayed when the `reuse` command receives no arguments
8
+
4
9
  <a name="v1.5.3"></a>v1.5.3, Thu 9/17/2015
5
10
  -------------------------------------------
6
11
 
@@ -205,6 +205,7 @@ The author, [Nils Jonsson](mailto:htty@nilsjonsson.com), owes a debt of inspirat
205
205
 
206
206
  Thanks to [contributors](http://github.com/htty/htty/contributors "htty contributors at GitHub") (in alphabetical order):
207
207
 
208
+ * Dillon Benson ([dibenso](http://github.com/dibenso "dibenso at GitHub"))
208
209
  * Pascal Borreli ([pborreli](http://github.com/pborreli "pborreli at GitHub"))
209
210
  * Rob Dawson (ephox-rob/[rojotek](http://github.com/rojotek "rojotek at GitHub"))
210
211
  * Bo Frederiksen ([bofrede](http://github.com/bofrede "bofrede at GitHub"))
@@ -60,8 +60,13 @@ class HTTY::CLI::Commands::Reuse < HTTY::CLI::Command
60
60
 
61
61
  index = arguments.first.to_i
62
62
  unless (1..requests_with_responses.length).include?(index)
63
- raise ArgumentError,
64
- "index must be between 1 and #{requests_with_responses.length}"
63
+ if requests_with_responses.length == 1
64
+ raise ArgumentError,
65
+ "index must be 1"
66
+ else
67
+ raise ArgumentError,
68
+ "index must be between 1 and #{requests_with_responses.length}"
69
+ end
65
70
  end
66
71
 
67
72
  add_request_if_new do
@@ -1,6 +1,6 @@
1
1
  module HTTY
2
2
 
3
3
  # The version of this release of _htty_.
4
- VERSION = '1.5.3' unless const_defined?(:VERSION)
4
+ VERSION = '1.5.4' unless const_defined?(:VERSION)
5
5
 
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htty
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nils Jonsson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-18 00:00:00.000000000 Z
11
+ date: 2015-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mime-types