little_wheels 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/little_wheels.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb9d56c36a553f3c3c454289bbfa95bd7557b49f95de3e855b5ad2e2a78c327a
4
- data.tar.gz: 134d7707df3ecc1e151a667edd62bbe32103a1ac75901f816469fbd3cd9d7280
3
+ metadata.gz: 1239b1153781bf67297befc609b59aaf899cb14cf1626d1c69501a98dde62997
4
+ data.tar.gz: 56876fa5ab4ab7a25386fd7ea876346f2f5dcf0119357b695219259a3dc01f9e
5
5
  SHA512:
6
- metadata.gz: 440b32f12ee158c2e2ad5a782039f72596adc827b715a0e6fad6f860568288c4a2ad717fad33740986640fb165c17aa59d6dd3367c16c5df0ff54319cb966d7e
7
- data.tar.gz: 753b4ae3b70ec82f93ae3c3e51c1192015e487f88887695d16306db6eac3a701ef48c2062ee0d769a5fb604c8b902d53501f8530bb3eab23974f6e3d1c18bc31
6
+ metadata.gz: 7ff56bd1ad67c62cf809fb7fd41989830df7a5e015cae8dcf82a6541ba8289e2316b4fc9a16195f42cf641d1e5380bf6a7a4d53212ad1478defbe47911038bec
7
+ data.tar.gz: ec0e843354fe1d928d9cebbea6be21655afe9bcf6559c0047bc4e4109e0160374f0b1a924458ad2133dc4f64b863f6be91811533a9e8c20341f6df73312b9a27
data/lib/little_wheels.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module LittleWheels
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.5"
3
3
 
4
4
  class Component
5
5
  def t(template, **locals)
@@ -11,7 +11,7 @@ module LittleWheels
11
11
  end
12
12
 
13
13
  def to_s
14
- t!("shared/#{default_template_name}", c: self)
14
+ self.class.const_defined?("TEMPLATE") ? t(self.class.const_get("TEMPLATE"), c: self) : t!("shared/#{default_template_name}", c: self)
15
15
  end
16
16
 
17
17
  def renderer
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown