htty 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,11 @@
1
1
  Version history for the _htty_ project
2
2
  ======================================
3
3
 
4
+ <a name="v1.3.3"></a>v1.3.3, Sat 3/05/2011
5
+ -------------------------------------------
6
+
7
+ * Fixed a bug in the `query-add` and `query-set` commands
8
+
4
9
  <a name="v1.3.2"></a>v1.3.2, Fri 3/04/2011
5
10
  -------------------------------------------
6
11
 
@@ -53,11 +53,11 @@ class HTTY::CLI::Commands::CookiesUse < HTTY::CLI::Command
53
53
  end
54
54
 
55
55
  add_request_if_new do |request|
56
- changed_request = request.cookies_use(session.last_response)
57
- phrase = pluralize('cookie', changed_request.cookies.length)
56
+ request = request.cookies_use(session.last_response)
57
+ phrase = pluralize('cookie', request.cookies.length)
58
58
  phrase = phrase[0..0].upcase + phrase[1..-1]
59
59
  puts notice("#{phrase} now in use")
60
- changed_request
60
+ request
61
61
  end
62
62
  end
63
63
 
@@ -64,7 +64,7 @@ class HTTY::CLI::Commands::QueryAdd < HTTY::CLI::Command
64
64
  self.class.notify_if_cookies_cleared request do
65
65
  escaped_arguments = escape_or_warn_of_escape_sequences(arguments)
66
66
  escaped_arguments.each_slice 2 do |name, value|
67
- request.query_add name, value
67
+ request = request.query_add(name, value)
68
68
  end
69
69
  request
70
70
  end
@@ -64,7 +64,7 @@ class HTTY::CLI::Commands::QuerySet < HTTY::CLI::Command
64
64
  self.class.notify_if_cookies_cleared request do
65
65
  escaped_arguments = escape_or_warn_of_escape_sequences(arguments)
66
66
  escaped_arguments.each_slice 2 do |name, value|
67
- request.query_set name, value
67
+ request = request.query_set(name, value)
68
68
  end
69
69
  request
70
70
  end
@@ -1,6 +1,6 @@
1
1
  module HTTY
2
2
 
3
3
  # The version of this release of _htty_.
4
- VERSION = '1.3.2' unless const_defined?(:VERSION)
4
+ VERSION = '1.3.3' unless const_defined?(:VERSION)
5
5
 
6
6
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htty
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
- - 2
10
- version: 1.3.2
9
+ - 3
10
+ version: 1.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Nils Jonsson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-04 00:00:00 -06:00
18
+ date: 2011-03-05 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency