kronk 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,9 @@
1
+ === 1.9.1 / 2012-05-22
2
+
3
+ * Enhancements:
4
+
5
+ * Allow using the player without the -n option.
6
+
1
7
  === 1.9.0 / 2012-05-22
2
8
 
3
9
  * Enhancements:
@@ -357,7 +357,7 @@ and generate the RDoc.
357
357
 
358
358
  (The MIT License)
359
359
 
360
- Copyright (c) 2010, 2011 Jeremie Castagna
360
+ Copyright (c) 2010-2012 Jeremie Castagna
361
361
 
362
362
  Permission is hereby granted, free of charge, to any person obtaining
363
363
  a copy of this software and associated documentation files (the
@@ -14,7 +14,7 @@ require 'yaml'
14
14
  class Kronk
15
15
 
16
16
  # This gem's version.
17
- VERSION = '1.9.0'
17
+ VERSION = '1.9.1'
18
18
 
19
19
  require 'kronk/constants'
20
20
  require 'kronk/queue_runner'
@@ -333,8 +333,9 @@ Parse and run diffs against data from live and cached http responses.
333
333
 
334
334
  opt.on('-p', '--replay [FILE]',
335
335
  'Replay the given file or STDIN against URIs') do |file|
336
- options[:player][:io] = File.open(file, "r") if file
337
- options[:player][:io] ||= $stdin if !$stdin.tty?
336
+ options[:player][:io] = File.open(file, "r") if file
337
+ options[:player][:io] ||= $stdin if !$stdin.tty?
338
+ options[:player][:type] ||= :suite
338
339
  end
339
340
 
340
341
 
@@ -59,13 +59,13 @@ class Kronk
59
59
  def read_all
60
60
  return "" if eof?
61
61
 
62
- out = @parts[@curr_part..-1].inject("") do |out, curr|
62
+ output = @parts[@curr_part..-1].inject("") do |out, curr|
63
63
  @curr_part += 1
64
64
  out << curr.read
65
65
  end
66
66
 
67
67
  @curr_part = nil
68
- out
68
+ output
69
69
  end
70
70
 
71
71
 
@@ -51,7 +51,7 @@ class Kronk
51
51
  @mutex = Mutex.new
52
52
 
53
53
  @on_input = Proc.new do
54
- stop_input! if !@number && @input.eof?
54
+ stop_input! if !@number && @input.eof? && !@input.io.nil?
55
55
  @last_req = @input.get_next || @queue.last || @last_req || {}
56
56
  end
57
57
 
@@ -212,7 +212,7 @@ class Kronk
212
212
  self.multipart_boundary = 'AaB03x'
213
213
 
214
214
 
215
- attr_accessor :headers, :proxy, :response, :timeout
215
+ attr_accessor :headers, :response, :timeout
216
216
 
217
217
  attr_reader :body, :http_method, :proxy, :uri, :use_cookies
218
218
 
@@ -43,7 +43,7 @@ class TestMultipart < Test::Unit::TestCase
43
43
 
44
44
 
45
45
  def test_add_io
46
- prd, pwr = IO.pipe
46
+ prd, = IO.pipe
47
47
  @multi.add "foo", prd
48
48
 
49
49
  expected = [{
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kronk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-22 00:00:00.000000000 Z
12
+ date: 2012-05-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70132287844660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '1.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ~>
28
- - !ruby/object:Gem::Version
29
- version: '1.5'
24
+ version_requirements: *70132287844660
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: cookiejar
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70132287844220 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ~>
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: 0.3.0
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 0.3.0
35
+ version_requirements: *70132287844220
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: ruby-path
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &70132287843780 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ~>
@@ -53,15 +43,10 @@ dependencies:
53
43
  version: 1.0.0
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 1.0.0
46
+ version_requirements: *70132287843780
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: mime-types
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &70132287843340 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ~>
@@ -69,15 +54,10 @@ dependencies:
69
54
  version: 1.18.0
70
55
  type: :runtime
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 1.18.0
57
+ version_requirements: *70132287843340
78
58
  - !ruby/object:Gem::Dependency
79
59
  name: rdoc
80
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &70132287842900 !ruby/object:Gem::Requirement
81
61
  none: false
82
62
  requirements:
83
63
  - - ~>
@@ -85,15 +65,10 @@ dependencies:
85
65
  version: '3.10'
86
66
  type: :development
87
67
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: '3.10'
68
+ version_requirements: *70132287842900
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: plist
96
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &70132287842460 !ruby/object:Gem::Requirement
97
72
  none: false
98
73
  requirements:
99
74
  - - ~>
@@ -101,15 +76,10 @@ dependencies:
101
76
  version: 3.1.0
102
77
  type: :development
103
78
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 3.1.0
79
+ version_requirements: *70132287842460
110
80
  - !ruby/object:Gem::Dependency
111
81
  name: nokogiri
112
- requirement: !ruby/object:Gem::Requirement
82
+ requirement: &70132287842020 !ruby/object:Gem::Requirement
113
83
  none: false
114
84
  requirements:
115
85
  - - ~>
@@ -117,15 +87,10 @@ dependencies:
117
87
  version: '1.4'
118
88
  type: :development
119
89
  prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: '1.4'
90
+ version_requirements: *70132287842020
126
91
  - !ruby/object:Gem::Dependency
127
92
  name: mocha
128
- requirement: !ruby/object:Gem::Requirement
93
+ requirement: &70132287841540 !ruby/object:Gem::Requirement
129
94
  none: false
130
95
  requirements:
131
96
  - - ~>
@@ -133,15 +98,10 @@ dependencies:
133
98
  version: 0.9.12
134
99
  type: :development
135
100
  prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ~>
140
- - !ruby/object:Gem::Version
141
- version: 0.9.12
101
+ version_requirements: *70132287841540
142
102
  - !ruby/object:Gem::Dependency
143
103
  name: hoe
144
- requirement: !ruby/object:Gem::Requirement
104
+ requirement: &70132287841020 !ruby/object:Gem::Requirement
145
105
  none: false
146
106
  requirements:
147
107
  - - ~>
@@ -149,12 +109,7 @@ dependencies:
149
109
  version: '3.0'
150
110
  type: :development
151
111
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ~>
156
- - !ruby/object:Gem::Version
157
- version: '3.0'
112
+ version_requirements: *70132287841020
158
113
  description: ! 'Kronk is a command line swiss-army-knife for HTTP services.
159
114
 
160
115
 
@@ -262,7 +217,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
262
217
  version: '0'
263
218
  requirements: []
264
219
  rubyforge_project: kronk
265
- rubygems_version: 1.8.18
220
+ rubygems_version: 1.8.11
266
221
  signing_key:
267
222
  specification_version: 3
268
223
  summary: Kronk is a command line swiss-army-knife for HTTP services