openflow-protocol 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/structs/match.rb +1 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8e7714d41af75fba41ce2f02671fc712eaddb910
4
- data.tar.gz: 1158656d489227146fa789732a35b309f15e4df2
3
+ metadata.gz: dfaeb638f30e66f5da7d3c179d69c7d2b2e77f96
4
+ data.tar.gz: e2745024bc98fa8ba43e77ad3f4ec0093e8eca8f
5
5
  SHA512:
6
- metadata.gz: c884f54f0a7de1a348737bbbc657f6794f3ef636dc865b47f2caf5a061559746b37eca767f7078051bf583b34860c828bf94f6376935423ae47934f9b4ac58cf
7
- data.tar.gz: ca5f9566a19916c652113b01e10007a2c97317b8a787acef8ff70f7330638e7bcefc19af339811523ffe934420a9abb1f43541545d41ff1376cb2a47b5fb9b75
6
+ metadata.gz: b914cf7b66881809052fc0dee9cdf6abec3633deb6414c177e3be3715b30a03b5c03e2771101170169fa762d273fa4e952be2d51ec92d2df3de66c2cfab7b81d
7
+ data.tar.gz: ae7660ddf82f9942413f85a2cb21d8efaa45c0fce61cc9e6a3472ca816fbb5b39e2f2ea27e476597c244de69480f1e2cf4328840a738977a79b99b7ea779bcd1
data/lib/structs/match.rb CHANGED
@@ -48,6 +48,7 @@ class OFMatch < BinData::Record
48
48
  end
49
49
 
50
50
  def set(value)
51
+ value = Hash[value.map { |v| [v, true] }] if value.is_a?(Array)
51
52
  self.flags = value.inject(0) do |memo, (key, val)|
52
53
  memo |
53
54
  case key
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openflow-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jérémy Pagé
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-20 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An OpenFlow Parser/Serializer.
14
14
  email: