little_wheels 0.0.6 → 0.0.7

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/little_wheels.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 616606ae8e7023b6c4ac0c6f0eae31f82efde79174e898d4d5734123395626cb
4
- data.tar.gz: 7bf2324aa9e21130169d81c300045320ceb0c822179c637a8ba0063afa960ef6
3
+ metadata.gz: 7366ace87bb341e2c4bfb019995eb3a167d3226827e13c0f281627e4766df1c8
4
+ data.tar.gz: c036705390e96b03ad3da97a058a074f8e8cd4203c76c61577f6a2e46cad3a06
5
5
  SHA512:
6
- metadata.gz: 54507f465e5acdb3455952167a6258ba649584b69a08f40b27d1d63acc1fb81436e65e434a2687647c0daaeb4b0e6d2287ed11255d52cefa626e3d9ed275de04
7
- data.tar.gz: 6cbc031dd4984a21b50a24664725fa4d1bbe6ca72fec9f15c21d1f7c9fab4ea2012dd2935c5ce3b27eccd56ebc4a7a0306d9984eb96c82b06ef04c0e3109fa14
6
+ metadata.gz: f354ab4ede76e3c7c22a47a7fd32fc7b13c2912227a7fd0c1a2fe204b683642c8264d63f2406db4b99c7f124a3e6a8bb967ce8ab6bdc4cbf64ab21f28084de99
7
+ data.tar.gz: 3b7f8431bf6aa8ab06a76b7e62696a2ad0e551c35934a9cfae889fdd8bb8eba1aabcecdd50ffd97ee4173861cba079f9fa503e164231c4f76ed5bac00c9377de
data/lib/little_wheels.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module LittleWheels
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
 
4
4
  class Component
5
5
  def t(template, **locals)
@@ -41,5 +41,9 @@ module LittleWheels
41
41
  def default_template_name
42
42
  self.class.name.underscore
43
43
  end
44
+
45
+ def capture(&block)
46
+ block.call.to_s.html_safe
47
+ end
44
48
  end
45
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: little_wheels
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown