kronk 1.8.2 → 1.8.3

Sign up to get free protection for your applications and to get access to all the features.
data/History.rdoc CHANGED
@@ -1,3 +1,11 @@
1
+ === 1.8.2 / 2012-02-15
2
+
3
+ * Bugfixes:
4
+
5
+ * Fix for SIGINFO not supported on linux.
6
+
7
+ * Don't write to Cmd.verbose if Cmd isn't defined.
8
+
1
9
  === 1.8.2 / 2012-02-11
2
10
 
3
11
  * Enhacements:
data/lib/kronk.rb CHANGED
@@ -12,7 +12,7 @@ require 'yaml'
12
12
  class Kronk
13
13
 
14
14
  # This gem's version.
15
- VERSION = '1.8.2'
15
+ VERSION = '1.8.3'
16
16
 
17
17
  require 'kronk/constants'
18
18
  require 'kronk/queue_runner'
@@ -11,7 +11,7 @@ class Kronk
11
11
  $stdout.puts "Started"
12
12
 
13
13
  @old_info_trap =
14
- trap "INFO" do
14
+ trap 29 do
15
15
  @stop_time = Time.now
16
16
  @mutex.synchronize do
17
17
  render
@@ -78,7 +78,7 @@ class Kronk
78
78
 
79
79
 
80
80
  def complete
81
- trap "INFO", @old_info_trap
81
+ trap 29, @old_info_trap
82
82
  $stdout.puts "\nFinished in #{Time.now - @start_time} seconds.\n"
83
83
  render
84
84
  end
data/lib/kronk/request.rb CHANGED
@@ -520,7 +520,7 @@ class Kronk
520
520
  user = opts[:username]
521
521
  pass = opts[:password]
522
522
 
523
- Kronk::Cmd.verbose "Using proxy #{addr}\n" if host
523
+ Kronk::Cmd.verbose "Using proxy #{addr}\n" if host && defined?(Cmd)
524
524
 
525
525
  Kronk::HTTP::Proxy host, port, user, pass
526
526
  end
@@ -604,7 +604,11 @@ class Kronk
604
604
  end
605
605
 
606
606
  rescue MissingParser
607
- Cmd.verbose "Warning: No parser for #{@headers['content-type']} [#{uri}]"
607
+ if defined?(Cmd)
608
+ ctype = @headers['content-type']
609
+ Cmd.verbose "Warning: No parser for #{ctype} [#{uri}]"
610
+ end
611
+
608
612
  self.to_s :body => !opts[:no_body],
609
613
  :headers => (opts[:show_headers] || false),
610
614
  :raw => opts[:raw]
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.8.2
4
+ version: 1.8.3
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-02-11 00:00:00.000000000Z
12
+ date: 2012-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
16
- requirement: &2157923320 !ruby/object:Gem::Requirement
16
+ requirement: &70142332427460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '1.5'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2157923320
24
+ version_requirements: *70142332427460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: cookiejar
27
- requirement: &2157922740 !ruby/object:Gem::Requirement
27
+ requirement: &70142335036320 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.3.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2157922740
35
+ version_requirements: *70142335036320
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: plist
38
- requirement: &2157918500 !ruby/object:Gem::Requirement
38
+ requirement: &70142335035900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 3.1.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2157918500
46
+ version_requirements: *70142335035900
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: nokogiri
49
- requirement: &2157917940 !ruby/object:Gem::Requirement
49
+ requirement: &70142335035480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '1.4'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2157917940
57
+ version_requirements: *70142335035480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: mocha
60
- requirement: &2157917460 !ruby/object:Gem::Requirement
60
+ requirement: &70142335035060 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,18 +65,18 @@ dependencies:
65
65
  version: 0.9.12
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2157917460
68
+ version_requirements: *70142335035060
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hoe
71
- requirement: &2157917020 !ruby/object:Gem::Requirement
71
+ requirement: &70142335034640 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
75
75
  - !ruby/object:Gem::Version
76
- version: '2.11'
76
+ version: '2.12'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *2157917020
79
+ version_requirements: *70142335034640
80
80
  description: ! 'Kronk runs diffs against data from live and cached http responses.
81
81
 
82
82
  Kronk was made possible by the sponsoring of AT&T Interactive.'
@@ -173,9 +173,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  - - ! '>='
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
- segments:
177
- - 0
178
- hash: -1073559729433784228
179
176
  required_rubygems_version: !ruby/object:Gem::Requirement
180
177
  none: false
181
178
  requirements:
@@ -184,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
181
  version: '0'
185
182
  requirements: []
186
183
  rubyforge_project: kronk
187
- rubygems_version: 1.8.10
184
+ rubygems_version: 1.8.11
188
185
  signing_key:
189
186
  specification_version: 3
190
187
  summary: Kronk runs diffs against data from live and cached http responses