lhj-tools 0.1.81 → 0.1.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lhj/helper/pgyer_helper.rb +9 -0
- data/lib/lhj/tools/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b840e72d6367a3e47816df1a74069a09c8e9585ab184faff15d76af260dd2dea
|
4
|
+
data.tar.gz: 22c2dd46268522f60c4afeabcb9290e838616a9247b50b629c9b311468d4c878
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae1a1863e44a12009f85a03e3b5ef3277a0457cbd6ea8777f794ff2e506b19eb2a869827502435548a17fc16f96fe920f1beff62cd04c63dd75b41a05b9f33f5
|
7
|
+
data.tar.gz: 13da139775c5ebc3fa478f6789969c6bc857b07bbff38ac78384bae8cecb799c309e0c8135f8e4d64eab17eb2c5dd85a2407731feb37df727321fba722099a51
|
@@ -109,5 +109,14 @@ module Lhj
|
|
109
109
|
@result
|
110
110
|
end
|
111
111
|
end
|
112
|
+
|
113
|
+
def render_with_template(template_name = 'pgyer')
|
114
|
+
if @result.is_a? Hash
|
115
|
+
temp = Lhj::ErbTemplateHelper.load(template_name)
|
116
|
+
Lhj::ErbTemplateHelper.render(temp, @result, nil)
|
117
|
+
else
|
118
|
+
@result
|
119
|
+
end
|
120
|
+
end
|
112
121
|
end
|
113
122
|
end
|
data/lib/lhj/tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lhj-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lihaijian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xcodeproj
|