htty 1.1.6 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/History.markdown +46 -0
  2. data/README.markdown +12 -12
  3. data/VERSION +1 -1
  4. data/lib/htty/cli.rb +10 -0
  5. data/lib/htty/cli/command.rb +50 -41
  6. data/lib/htty/cli/commands/http_put.rb +3 -0
  7. data/lib/htty/cli/commands/query_unset.rb +4 -2
  8. data/lib/htty/cli/http_method_command.rb +5 -3
  9. data/spec/integration/htty/cli/commands/query_add_spec.rb +51 -0
  10. data/spec/integration/htty/cli/commands/query_remove_spec.rb +37 -0
  11. data/spec/integration/htty/cli/commands/query_set_spec.rb +72 -0
  12. data/spec/integration/htty/cli/commands/query_unset_spec.rb +37 -0
  13. data/spec/unit/htty/cli/commands/address_spec.rb +103 -0
  14. data/spec/unit/htty/cli/commands/body_clear_spec.rb +64 -0
  15. data/spec/unit/htty/cli/commands/body_request_spec.rb +72 -0
  16. data/spec/unit/htty/cli/commands/body_response_spec.rb +70 -0
  17. data/spec/unit/htty/cli/commands/body_set_spec.rb +71 -0
  18. data/spec/unit/htty/cli/commands/body_unset_spec.rb +69 -0
  19. data/spec/unit/htty/cli/commands/cd_spec.rb +57 -0
  20. data/spec/unit/htty/cli/commands/cookie_add_spec.rb +64 -0
  21. data/spec/unit/htty/cli/commands/cookie_remove_spec.rb +64 -0
  22. data/spec/unit/htty/cli/commands/cookies_add_spec.rb +78 -0
  23. data/spec/unit/htty/cli/commands/cookies_clear_spec.rb +64 -0
  24. data/spec/unit/htty/cli/commands/cookies_remove_all_spec.rb +73 -0
  25. data/spec/unit/htty/cli/commands/cookies_remove_spec.rb +69 -0
  26. data/spec/unit/htty/cli/commands/cookies_spec.rb +76 -0
  27. data/spec/unit/htty/cli/commands/cookies_use_spec.rb +75 -0
  28. data/spec/unit/htty/cli/commands/delete_spec.rb +64 -0
  29. data/spec/unit/htty/cli/commands/exit_spec.rb +64 -0
  30. data/spec/unit/htty/cli/commands/follow_spec.rb +70 -0
  31. data/spec/unit/htty/cli/commands/form_add_spec.rb +64 -0
  32. data/spec/unit/htty/cli/commands/form_clear_spec.rb +64 -0
  33. data/spec/unit/htty/cli/commands/form_remove_all_spec.rb +66 -0
  34. data/spec/unit/htty/cli/commands/form_remove_spec.rb +57 -0
  35. data/spec/unit/htty/cli/commands/form_spec.rb +57 -0
  36. data/spec/unit/htty/cli/commands/fragment_clear_spec.rb +64 -0
  37. data/spec/unit/htty/cli/commands/fragment_set_spec.rb +73 -0
  38. data/spec/unit/htty/cli/commands/fragment_unset_spec.rb +72 -0
  39. data/spec/unit/htty/cli/commands/get_spec.rb +64 -0
  40. data/spec/unit/htty/cli/commands/header_set_spec.rb +64 -0
  41. data/spec/unit/htty/cli/commands/header_unset_spec.rb +64 -0
  42. data/spec/unit/htty/cli/commands/headers_clear_spec.rb +64 -0
  43. data/spec/unit/htty/cli/commands/headers_request_spec.rb +81 -0
  44. data/spec/unit/htty/cli/commands/headers_response_spec.rb +77 -0
  45. data/spec/unit/htty/cli/commands/headers_set_spec.rb +74 -0
  46. data/spec/unit/htty/cli/commands/headers_unset_all_spec.rb +71 -0
  47. data/spec/unit/htty/cli/commands/headers_unset_spec.rb +63 -0
  48. data/spec/unit/htty/cli/commands/help_spec.rb +67 -0
  49. data/spec/unit/htty/cli/commands/history_spec.rb +65 -0
  50. data/spec/unit/htty/cli/commands/history_verbose_spec.rb +72 -0
  51. data/spec/unit/htty/cli/commands/host_set_spec.rb +71 -0
  52. data/spec/unit/htty/cli/commands/http_delete_spec.rb +73 -0
  53. data/spec/unit/htty/cli/commands/http_get_spec.rb +75 -0
  54. data/spec/unit/htty/cli/commands/http_head_spec.rb +69 -0
  55. data/spec/unit/htty/cli/commands/http_options_spec.rb +69 -0
  56. data/spec/unit/htty/cli/commands/http_post_spec.rb +71 -0
  57. data/spec/unit/htty/cli/commands/http_put_spec.rb +69 -0
  58. data/spec/unit/htty/cli/commands/http_trace_spec.rb +69 -0
  59. data/spec/unit/htty/cli/commands/path_set_spec.rb +72 -0
  60. data/spec/unit/htty/cli/commands/port_set_spec.rb +73 -0
  61. data/spec/unit/htty/cli/commands/post_spec.rb +64 -0
  62. data/spec/unit/htty/cli/commands/put_spec.rb +64 -0
  63. data/spec/unit/htty/cli/commands/query_add_spec.rb +67 -36
  64. data/spec/unit/htty/cli/commands/query_clear_spec.rb +64 -0
  65. data/spec/unit/htty/cli/commands/query_remove_spec.rb +69 -24
  66. data/spec/unit/htty/cli/commands/query_set_spec.rb +59 -49
  67. data/spec/unit/htty/cli/commands/query_unset_all_spec.rb +73 -0
  68. data/spec/unit/htty/cli/commands/query_unset_spec.rb +75 -0
  69. data/spec/unit/htty/cli/commands/quit_spec.rb +64 -0
  70. data/spec/unit/htty/cli/commands/reuse_spec.rb +72 -0
  71. data/spec/unit/htty/cli/commands/scheme_set_spec.rb +74 -0
  72. data/spec/unit/htty/cli/commands/ssl_verification_off_spec.rb +67 -0
  73. data/spec/unit/htty/cli/commands/ssl_verification_on_spec.rb +60 -0
  74. data/spec/unit/htty/cli/commands/ssl_verification_spec.rb +65 -0
  75. data/spec/unit/htty/cli/commands/status_spec.rb +73 -0
  76. data/spec/unit/htty/cli/commands/undo_spec.rb +57 -0
  77. data/spec/unit/htty/cli/commands/userinfo_clear_spec.rb +64 -0
  78. data/spec/unit/htty/cli/commands/userinfo_set_spec.rb +75 -0
  79. data/spec/unit/htty/cli/commands/userinfo_unset_spec.rb +72 -0
  80. data/spec/unit/htty/cli_spec.rb +8 -2
  81. data/spec/unit/htty/ordered_hash_spec.rb +14 -24
  82. data/spec/unit/htty/preferences_spec.rb +1 -1
  83. data/spec/unit/htty/request_spec.rb +454 -463
  84. metadata +80 -20
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 1
9
- - 6
10
- version: 1.1.6
8
+ - 2
9
+ - 0
10
+ version: 1.2.0
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: 2010-11-22 00:00:00 -06:00
18
+ date: 2010-12-01 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,10 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 1
29
+ hash: 3
30
30
  segments:
31
- - 2
32
31
  - 0
33
- - 7
34
- version: 2.0.7
32
+ version: "0"
35
33
  type: :development
36
34
  version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
@@ -42,12 +40,10 @@ dependencies:
42
40
  requirements:
43
41
  - - ">="
44
42
  - !ruby/object:Gem::Version
45
- hash: 49
43
+ hash: 3
46
44
  segments:
47
45
  - 0
48
- - 8
49
- - 7
50
- version: 0.8.7
46
+ version: "0"
51
47
  type: :development
52
48
  version_requirements: *id002
53
49
  - !ruby/object:Gem::Dependency
@@ -58,12 +54,10 @@ dependencies:
58
54
  requirements:
59
55
  - - ">="
60
56
  - !ruby/object:Gem::Version
61
- hash: 27
57
+ hash: 3
62
58
  segments:
63
- - 1
64
- - 3
65
59
  - 0
66
- version: 1.3.0
60
+ version: "0"
67
61
  type: :development
68
62
  version_requirements: *id003
69
63
  - !ruby/object:Gem::Dependency
@@ -74,12 +68,10 @@ dependencies:
74
68
  requirements:
75
69
  - - ">="
76
70
  - !ruby/object:Gem::Version
77
- hash: 5
71
+ hash: 3
78
72
  segments:
79
73
  - 0
80
- - 6
81
- - 1
82
- version: 0.6.1
74
+ version: "0"
83
75
  type: :development
84
76
  version_requirements: *id004
85
77
  description: htty is a console application for interacting with HTTP servers. It is something of a cross between curl and the Lynx browser.
@@ -180,6 +172,10 @@ files:
180
172
  - lib/htty/response.rb
181
173
  - lib/htty/session.rb
182
174
  - lib/htty.rb
175
+ - spec/integration/htty/cli/commands/query_add_spec.rb
176
+ - spec/integration/htty/cli/commands/query_remove_spec.rb
177
+ - spec/integration/htty/cli/commands/query_set_spec.rb
178
+ - spec/integration/htty/cli/commands/query_unset_spec.rb
183
179
  - spec/system/scenarios/exit/actual_stderr
184
180
  - spec/system/scenarios/exit/actual_stdout
185
181
  - spec/system/scenarios/exit/expected_stdout
@@ -189,9 +185,73 @@ files:
189
185
  - spec/system/scenarios/quit/expected_stdout
190
186
  - spec/system/scenarios/quit/stdin
191
187
  - spec/system/scenarios_spec.rb
188
+ - spec/unit/htty/cli/commands/address_spec.rb
189
+ - spec/unit/htty/cli/commands/body_clear_spec.rb
190
+ - spec/unit/htty/cli/commands/body_request_spec.rb
191
+ - spec/unit/htty/cli/commands/body_response_spec.rb
192
+ - spec/unit/htty/cli/commands/body_set_spec.rb
193
+ - spec/unit/htty/cli/commands/body_unset_spec.rb
194
+ - spec/unit/htty/cli/commands/cd_spec.rb
195
+ - spec/unit/htty/cli/commands/cookie_add_spec.rb
196
+ - spec/unit/htty/cli/commands/cookie_remove_spec.rb
197
+ - spec/unit/htty/cli/commands/cookies_add_spec.rb
198
+ - spec/unit/htty/cli/commands/cookies_clear_spec.rb
199
+ - spec/unit/htty/cli/commands/cookies_remove_all_spec.rb
200
+ - spec/unit/htty/cli/commands/cookies_remove_spec.rb
201
+ - spec/unit/htty/cli/commands/cookies_spec.rb
202
+ - spec/unit/htty/cli/commands/cookies_use_spec.rb
203
+ - spec/unit/htty/cli/commands/delete_spec.rb
204
+ - spec/unit/htty/cli/commands/exit_spec.rb
205
+ - spec/unit/htty/cli/commands/follow_spec.rb
206
+ - spec/unit/htty/cli/commands/form_add_spec.rb
207
+ - spec/unit/htty/cli/commands/form_clear_spec.rb
208
+ - spec/unit/htty/cli/commands/form_remove_all_spec.rb
209
+ - spec/unit/htty/cli/commands/form_remove_spec.rb
210
+ - spec/unit/htty/cli/commands/form_spec.rb
211
+ - spec/unit/htty/cli/commands/fragment_clear_spec.rb
212
+ - spec/unit/htty/cli/commands/fragment_set_spec.rb
213
+ - spec/unit/htty/cli/commands/fragment_unset_spec.rb
214
+ - spec/unit/htty/cli/commands/get_spec.rb
215
+ - spec/unit/htty/cli/commands/header_set_spec.rb
216
+ - spec/unit/htty/cli/commands/header_unset_spec.rb
217
+ - spec/unit/htty/cli/commands/headers_clear_spec.rb
218
+ - spec/unit/htty/cli/commands/headers_request_spec.rb
219
+ - spec/unit/htty/cli/commands/headers_response_spec.rb
220
+ - spec/unit/htty/cli/commands/headers_set_spec.rb
221
+ - spec/unit/htty/cli/commands/headers_unset_all_spec.rb
222
+ - spec/unit/htty/cli/commands/headers_unset_spec.rb
223
+ - spec/unit/htty/cli/commands/help_spec.rb
224
+ - spec/unit/htty/cli/commands/history_spec.rb
225
+ - spec/unit/htty/cli/commands/history_verbose_spec.rb
226
+ - spec/unit/htty/cli/commands/host_set_spec.rb
227
+ - spec/unit/htty/cli/commands/http_delete_spec.rb
228
+ - spec/unit/htty/cli/commands/http_get_spec.rb
229
+ - spec/unit/htty/cli/commands/http_head_spec.rb
230
+ - spec/unit/htty/cli/commands/http_options_spec.rb
231
+ - spec/unit/htty/cli/commands/http_post_spec.rb
232
+ - spec/unit/htty/cli/commands/http_put_spec.rb
233
+ - spec/unit/htty/cli/commands/http_trace_spec.rb
234
+ - spec/unit/htty/cli/commands/path_set_spec.rb
235
+ - spec/unit/htty/cli/commands/port_set_spec.rb
236
+ - spec/unit/htty/cli/commands/post_spec.rb
237
+ - spec/unit/htty/cli/commands/put_spec.rb
192
238
  - spec/unit/htty/cli/commands/query_add_spec.rb
239
+ - spec/unit/htty/cli/commands/query_clear_spec.rb
193
240
  - spec/unit/htty/cli/commands/query_remove_spec.rb
194
241
  - spec/unit/htty/cli/commands/query_set_spec.rb
242
+ - spec/unit/htty/cli/commands/query_unset_all_spec.rb
243
+ - spec/unit/htty/cli/commands/query_unset_spec.rb
244
+ - spec/unit/htty/cli/commands/quit_spec.rb
245
+ - spec/unit/htty/cli/commands/reuse_spec.rb
246
+ - spec/unit/htty/cli/commands/scheme_set_spec.rb
247
+ - spec/unit/htty/cli/commands/ssl_verification_off_spec.rb
248
+ - spec/unit/htty/cli/commands/ssl_verification_on_spec.rb
249
+ - spec/unit/htty/cli/commands/ssl_verification_spec.rb
250
+ - spec/unit/htty/cli/commands/status_spec.rb
251
+ - spec/unit/htty/cli/commands/undo_spec.rb
252
+ - spec/unit/htty/cli/commands/userinfo_clear_spec.rb
253
+ - spec/unit/htty/cli/commands/userinfo_set_spec.rb
254
+ - spec/unit/htty/cli/commands/userinfo_unset_spec.rb
195
255
  - spec/unit/htty/cli_spec.rb
196
256
  - spec/unit/htty/ordered_hash_spec.rb
197
257
  - spec/unit/htty/preferences_spec.rb