penetration 0.0.1 → 0.0.2

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: a94e448bdcade545f7c2817968beffbf0c05cfc5
4
- data.tar.gz: 2bf22698fbfbb49cafa2a58eb1c6ff1669617757
3
+ metadata.gz: 6ac13b50b64421eadc08fa06ed7b7665e4244128
4
+ data.tar.gz: 55dcd26a869dc7a6d136da8d5fc9706e9f3b53f2
5
5
  SHA512:
6
- metadata.gz: e09361b486407cf7e7baf3780558a52c44889c6b7cdf9864eacb330da5dbe255ab6e837bc721e90a3b48585467a9527107945d9f0f6f29fa9fd4688993668db5
7
- data.tar.gz: a28c689bdbb7c3c55361662eee2caeb18546c876ada84e0f466288e76419b8df916d7d6fa6463ba62a01980bba4546fb4acff79045092aa9a026585edf6bb2ce
6
+ metadata.gz: 549402c53b676440b6d8eddea6676befd62ce95af464c9aa22003c6cc40665052f46ba067e54675d892f8705f301438988da3386faf0cf9e9b3f047defc4719c
7
+ data.tar.gz: 133e6ad41618feb36c38d8d457cab73a5ee04a1c4ed9ee0e6f7d80cdbffd57307f10ca6b1d0c023372e3a71b8da3d3946b2ee4ae6cdb1531d2d482b4c96a7328
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- penetration (0.0.1)
4
+ penetration (0.0.2)
5
5
  rails (~> 4.0)
6
6
 
7
7
  GEM
@@ -1,3 +1,3 @@
1
1
  module Penetration
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/lib/penetration.rb CHANGED
@@ -50,7 +50,7 @@ module Penetration
50
50
  def render
51
51
  return '' if (elements = @session.delete(:rough_penetration)).nil?
52
52
 
53
- elements.flatten.map(&:html_safe).join
53
+ elements.flatten.join.html_safe
54
54
  end
55
55
  end
56
56
 
@@ -13,6 +13,11 @@ class PenetrationsController < ApplicationController
13
13
  penetrate 'peenetrated penetration!'
14
14
  end
15
15
 
16
+ def tag
17
+ penetrate '<strong>peenetrated penetration!</strong>'
18
+ render :dynamic
19
+ end
20
+
16
21
  def preset
17
22
  penetrate {
18
23
  notify
@@ -1,6 +1,7 @@
1
1
  Dummy::Application.routes.draw do
2
2
  get 'penetrations/index'
3
3
  get 'penetrations/dynamic'
4
+ get 'penetrations/tag'
4
5
  get 'penetrations/preset'
5
6
  get 'penetrations/with_param'
6
7
  get 'penetrations/double'
@@ -15,6 +15,11 @@ describe 'Penetrations', type: :request do
15
15
  expect(response.body).to include('peenetrated penetration!')
16
16
  end
17
17
 
18
+ it do
19
+ get '/penetrations/tag'
20
+ expect(response.body).to include('<strong>peenetrated penetration!</strong>')
21
+ end
22
+
18
23
  it do
19
24
  get '/penetrations/preset'
20
25
  expect(response.body).to include('peenetrated notification!')
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.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmmpa