phut 0.7.3 → 0.7.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c88e6244fc3caf8af745b840e907f7bcf9acda5
4
- data.tar.gz: 3a01327ae12812f3fa0a07b72d26a6aa8c1c6353
3
+ metadata.gz: 703fe2a4bb37ea1ca4cadf9ddc07886897dd085a
4
+ data.tar.gz: 808e1dfab4de0c60cfaf70f251278388ea13a7bd
5
5
  SHA512:
6
- metadata.gz: 1048ce64c984953d9319ed30acf9781e565b5d3e5969e040468ddbc21c476ee63d800100f283d5be82b579cdefcec5462b8ab2e83c7878c2bec54b315fea94c4
7
- data.tar.gz: a0abd5332d183e763423bb559ce1f27f87d5e4487eefcfcb1745c09792d6472ee2ca48359ea35a3115965e7960cd5887fa8af3f85c66daac69c8ad421d4851d8
6
+ metadata.gz: ec653af4dfc965654373cb287cf34d707565df9e5658ef82ef93da10bc72123b16b81b48fff7855c0bb1512831967b27e7193cfe9efc2687c34788f00c63fd3f
7
+ data.tar.gz: ff6403182467d4db9be23e1aa94bd3afdabd61bbfb5e96ce4bedd7fc90ad674e1d7434d758937524aa23d2a8c7c7d571d41efc172c80e8dadc1de594aad5dde3
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.7.4 (11/30/2015)
7
+ ### Bugs fixed
8
+ * Fix NoMethodError.
9
+
10
+
6
11
  ## 0.7.3 (11/17/2015)
7
12
  ### Changes
8
13
  * Pio 0.30.0.
@@ -1,4 +1,4 @@
1
1
  # Base module.
2
2
  module Phut
3
- VERSION = '0.7.3'
3
+ VERSION = '0.7.4'
4
4
  end
@@ -76,8 +76,8 @@ module Phut
76
76
  def create_udp_packet(dest)
77
77
  Pio::Udp.new(source_mac: @options.fetch(:mac_address),
78
78
  destination_mac: dest.mac_address,
79
- ip_source_address: @options.fetch(:ip_address),
80
- ip_destination_address: dest.ip_address)
79
+ source_ip_address: @options.fetch(:ip_address),
80
+ destination_ip_address: dest.ip_address)
81
81
  end
82
82
 
83
83
  def log_file
@@ -91,7 +91,7 @@ module Phut
91
91
  raw_data, = raw_socket.recvfrom(8192)
92
92
  udp = Pio::Udp.read(raw_data)
93
93
  unless @options[:promisc]
94
- next if udp.ip_destination_address != @options.fetch(:ip_address)
94
+ next if udp.destination_ip_address != @options.fetch(:ip_address)
95
95
  end
96
96
  @logger.info "Received: #{udp}"
97
97
  @packets_received << udp.snapshot
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhito Takamiya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2015-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli