DIY-pcap 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/diy/builder.rb CHANGED
@@ -8,7 +8,7 @@ module DIY
8
8
  end
9
9
 
10
10
  def use(what)
11
- @strategies.unshift(what)
11
+ @strategies << what
12
12
  end
13
13
 
14
14
  def before_send(arg= nil, &block)
@@ -52,7 +52,8 @@ module DIY
52
52
  next
53
53
  elsif ret == Strategy::NONE_HOPE_POP
54
54
  queue.shift
55
- hope_pkt = queue.first
55
+ # skip this round if nil found
56
+ return unless hope_pkt = queue.first
56
57
  next
57
58
  end # end of if
58
59
  end # end of begin
data/lib/diy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module DIY
2
2
  class PCAP
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: DIY-pcap
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - yafei Lee