little_wheels 0.0.8 → 0.0.10
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 +18 -10
- 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: d65709ab37a9df57e698017f8afb46b71f620608f71789f2c6b21b5782e295d6
|
4
|
+
data.tar.gz: 1813fdfcdab2a687fedf25d5193a5e1a19b30852ac4fe26eecc612818b40ecf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cb35a8297a0a648472e48bafcb48227beada231cc7c4d77c033e03b0813dc1658941c1a0889565a60c520f1143dd968267c76bbf494f2773eff1fc2ef63226c
|
7
|
+
data.tar.gz: 3b7f119a27c16fcbb14d6f00d57080f9a5b658764c2279b03f00016f3d77f84c8e5104fb87c9a193373986545dcd64408f74bb94cb977296f57b0d3f29315d70
|
data/lib/little_wheels.rb
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
module LittleWheels
|
2
|
-
VERSION = "0.0.
|
2
|
+
VERSION = "0.0.10"
|
3
|
+
|
4
|
+
def self.renderer
|
5
|
+
ApplicationController
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.helpers
|
9
|
+
renderer.helpers
|
10
|
+
end
|
3
11
|
|
4
12
|
class Buffer
|
5
13
|
def initialize(string)
|
@@ -35,21 +43,17 @@ module LittleWheels
|
|
35
43
|
def +(other)
|
36
44
|
Buffer.new(to_s + other.to_s)
|
37
45
|
end
|
38
|
-
|
46
|
+
|
39
47
|
def to_s
|
40
48
|
helpers.capture do
|
41
|
-
if self.class.const_defined?(:TEMPLATE)
|
42
|
-
t(self.class.const_get(:TEMPLATE), c: self, x: self.x )
|
49
|
+
if self.class.const_defined?(:TEMPLATE)
|
50
|
+
t(self.class.const_get(:TEMPLATE), c: self, x: self.x )
|
43
51
|
else
|
44
52
|
t!(default_template_name, c: self, x: self.x )
|
45
53
|
end
|
46
54
|
end
|
47
55
|
end
|
48
56
|
|
49
|
-
def helpers
|
50
|
-
renderer.helpers
|
51
|
-
end
|
52
|
-
|
53
57
|
def accepts_slot(block)
|
54
58
|
@_slot = block
|
55
59
|
end
|
@@ -61,7 +65,11 @@ module LittleWheels
|
|
61
65
|
end
|
62
66
|
|
63
67
|
def renderer
|
64
|
-
|
68
|
+
LittleWheels.renderer
|
69
|
+
end
|
70
|
+
|
71
|
+
def helpers
|
72
|
+
LittleWheels.helpers
|
65
73
|
end
|
66
74
|
|
67
75
|
def default_template_name
|
@@ -72,4 +80,4 @@ module LittleWheels
|
|
72
80
|
block.call.to_s.html_safe
|
73
81
|
end
|
74
82
|
end
|
75
|
-
end
|
83
|
+
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.10
|
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-
|
11
|
+
date: 2024-12-12 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.1.2
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Little Wheels!
|