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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b9f5da62956cd6f5be84a8db48b90307c8edde017d5bd84729e6e2d93e2b7c4
4
- data.tar.gz: bfd72c52e5c8c10412ed1f99e9d14dce9496d00ff78d20ff89aedbf1b847a782
3
+ metadata.gz: b840e72d6367a3e47816df1a74069a09c8e9585ab184faff15d76af260dd2dea
4
+ data.tar.gz: 22c2dd46268522f60c4afeabcb9290e838616a9247b50b629c9b311468d4c878
5
5
  SHA512:
6
- metadata.gz: bc6a0baac57148b1c5feb71940f460873f3d9bae57683ce2f4a3b74fef03f0542b27047fc353ec44874c2904056499b041091a1599332541625ea6d6534489ec
7
- data.tar.gz: 5a1723ddeacce9428df22bf2ed4bf583e3f1eaa05fc4a13accb180db381d1a7ab07735e7b6074892f9df2f8f2c84e19b20be7db68ebb565275ab8f6f468d71ca
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lhj
4
4
  module Tools
5
- VERSION = "0.1.81"
5
+ VERSION = "0.1.82"
6
6
  end
7
7
  end
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.81
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-19 00:00:00.000000000 Z
11
+ date: 2022-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj