dap 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7a9880b87fe8e6e3eaee36512e13fcaf8640a855
4
- data.tar.gz: 35ad6bf8576fd40ffd0f76c6abece7be2dc0c777
3
+ metadata.gz: 509c4659bddb3d19bd03810c38d9b7210a40f137
4
+ data.tar.gz: 856444fb5a3a6352bdedd975fe47898c98eae2d0
5
5
  SHA512:
6
- metadata.gz: 247f8fecff1dce17689365819ca0ed9b22bb6f7070add950a0a6489598088abebb97cd183a5acae6b95189346e13080cefa9dceb2432dc853813f90d3bd1f46d
7
- data.tar.gz: 9e5fd1527d677c448c770bc88966880c2ab1e88ec670ac8e7dd9979ba7c2dfca2940d757e91480eae303f0826ba5194a663895495a2ce231266350419ac5cc1d
6
+ metadata.gz: e6b147d71d185f1fc4f55582cdcde9d026d3421f2dd0fda0b3e48106d380c1049efd8fc3fb9ea2d5c189c59ed66f8db2929a944fe883e5f347a79ddf5440998e
7
+ data.tar.gz: 2ca8a31ca56632bc319a1201787729ba7b3845ed55cc2e1126fc519a8effef604460e85af3a32741453d68659e27126bb7c09063648741761ef64795b0aeefac
@@ -252,6 +252,8 @@ class FilterTransform
252
252
  doc[k] = [ doc[k].to_s ].pack("H*")
253
253
  when 'hexencode'
254
254
  doc[k] = doc[k].to_s.unpack("H*").first
255
+ else
256
+ fail "Invalid transform '#{v}'"
255
257
  end
256
258
  end
257
259
  end
data/lib/dap/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dap
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
@@ -127,6 +127,13 @@ end
127
127
  describe Dap::Filter::FilterTransform do
128
128
  describe '.process' do
129
129
 
130
+ context 'invalid transform' do
131
+ let(:filter) { described_class.new(['foo=blahblah']) }
132
+ it 'fails' do
133
+ expect { filter.process({'foo' => 'abc123'}) }.to raise_error(RuntimeError, /Invalid transform/)
134
+ end
135
+ end
136
+
130
137
  context 'reverse' do
131
138
  let(:filter) { described_class.new(['foo=reverse']) }
132
139
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rapid7 Research