penetration 0.0.3 → 0.0.4

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: f3e40af3e34491dc2d7890e468f05c1eb14b3081
4
- data.tar.gz: a671ff2af62cdca648d5e33f2472a20e70459d10
3
+ metadata.gz: 61dedf496e82a4507ccc8c341361f2178f29e7f9
4
+ data.tar.gz: 75ecb9af8df6fabcf0f1593e3f57a4c1d8a7ab51
5
5
  SHA512:
6
- metadata.gz: eea25a0c7401a3001da97f8d9f829294a6d7c24866dc73daf2c89bafb68a5e015abf2eb92ada8e453b6d62627b36b0d45ced7e27fe442051342064c1c4d39ca5
7
- data.tar.gz: 608d0dc8db4428bfa4a420ec208c1fbfcbf43b733981684ef3bb02b3233f8b3c4b213cc4f369373b1184186cc393503d3881ca1c77b62591d78b2fed1cd78783
6
+ metadata.gz: 3161a53280863d05e9aceb0bd3f402d78b178c5ef86cc81c5489ddb58b7a48508aaba97f3964106753c8761a58f8b9f7f9af1e998ca6ae93301d43b004e0f523
7
+ data.tar.gz: 4f3ac5e3043b64bd719d0cac7d97178b62a76d1d7ef1d4ec8214d6d03c570f5a5b368adf9521cf8d2ed9c6ab1410f5d5a7642513aee8c78c53ad0f0ebfe94768
@@ -1,3 +1,3 @@
1
1
  module Penetration
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/penetration.rb CHANGED
@@ -70,7 +70,7 @@ module Penetration
70
70
  when :raw
71
71
  element.last
72
72
  when :preset
73
- preset = Preset.find(element.last.first)
73
+ preset = Preset.find(element.last.first) rescue next
74
74
  if preset.is_a?(Proc)
75
75
  element.last[1] ? preset.(element.last[1]) : preset.()
76
76
  else
@@ -31,6 +31,7 @@ class PenetrationsController < ApplicationController
31
31
  render :index
32
32
  end
33
33
 
34
+
34
35
  def preset_too_long
35
36
  penetrate {
36
37
  too_long
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: penetration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmmpa