little_wheels 0.0.13 → 0.0.14

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 +9 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9a37400151db9a82781155e64c58f32113da3cc43f70750f69df3d00b853738e
4
- data.tar.gz: 59680a9acbd26cfae8d8ca2060dc060725c5ed888f74fe275f56d1df769df486
3
+ metadata.gz: 1c0ec5d5d5eb32b8ba9bdd696430909237d694878ea33a17ed287589b2f109fb
4
+ data.tar.gz: 6ac0b57e365ee4072c5457899e6391ceb94afe3222da69db8172ba43b19ea071
5
5
  SHA512:
6
- metadata.gz: b967d618a45d03ee973b91f76c8a1a0551fdd48faaa37a1c27fa1140d803748e474097bf2b8c11e1e9b34f5c93b262fe0e2f1e1a866c16fbf056f9d76d3da9e8
7
- data.tar.gz: 68a10ccd9a63268a615724778232403b2528b9035187d06205ff4eb25e7dfc331defa54835066d1c6587058322f88bed521e2842679ad4937ddbd0b6c915ffbf
6
+ metadata.gz: 28f9a1fe64568d1f718a011451d9c926590ca97c6a2f7dce63d47267c6ed52583bb84c7e3c770565c4f8bb384d2a6b04aee65b1e48ea5bfaa62f37c8f0938a91
7
+ data.tar.gz: fbcc810c8fe34c7c56bf58b074515d486e6a6d410fd3eb53182aa6f2605c0e5971e92780cde9cbfc6452c1c67e23318d2e2c2edecacd9c74837499a763a455a1
data/lib/little_wheels.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module LittleWheels
2
- VERSION = "0.0.13"
2
+ VERSION = "0.0.14"
3
3
 
4
4
  def self.renderer
5
5
  ApplicationController
@@ -24,6 +24,14 @@ module LittleWheels
24
24
  end
25
25
 
26
26
  module Component
27
+ module ClassMethods
28
+ def [](*a, **o, &b) = new(*a, **o, &b)
29
+ end
30
+
31
+ def self.included(base)
32
+ base.extend(ClassMethods)
33
+ end
34
+
27
35
  def t(template, **locals)
28
36
  renderer.render(inline: template, locals:)
29
37
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: little_wheels
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.13
4
+ version: 0.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Brown
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-13 00:00:00.000000000 Z
11
+ date: 2024-12-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Potential future implementation of the smallest Rails component library
14
14
  that can possibly work.
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.1.2
41
+ rubygems_version: 3.5.9
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: Little Wheels!