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.
- checksums.yaml +4 -4
- data/lib/little_wheels.rb +9 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c0ec5d5d5eb32b8ba9bdd696430909237d694878ea33a17ed287589b2f109fb
|
4
|
+
data.tar.gz: 6ac0b57e365ee4072c5457899e6391ceb94afe3222da69db8172ba43b19ea071
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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-
|
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.
|
41
|
+
rubygems_version: 3.5.9
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Little Wheels!
|