lhj-tools 0.2.30 → 0.2.31

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: ae6bcde0c99a1c742822422b22d335bb35e625ca22c130e723b629d8f6c12f69
4
- data.tar.gz: 220c7ccb8444a7abe26d2b21932ac693a8bda79878a1f93372329affc3deb388
3
+ metadata.gz: 076d5ec66856ced7568622e7e19e173d6d7f08dd6d51de147719aca07a78948a
4
+ data.tar.gz: d9a323338b67946d2c507964aa7de067b23ae25a9ed95b4b66335cc8dafa8a4b
5
5
  SHA512:
6
- metadata.gz: dd3bddad4d8039ad9b23ed3f93e231b475b73e7b989782a92235f069861d889214b458fb232a5915feef3984b0ed219217b0f7857be0d3cee89d16a19e1e6bad
7
- data.tar.gz: 9ff1a4b6b2d89c31b14d5a1a7ff99d1c7f1c97085f7374eb169da3953a791053cb7af962efa90594d2ed138f6c03b6b0237bcc94bf8583a6e19ce5a28134889a
6
+ metadata.gz: f78f99f701be41cef12335157d335a4173362b76c232cdd2f5200799e71ddb4e3ceae6ad6d3a8e022e6852b6a9ee72fe7c519a02cf2d12bcb774da8384b9557a
7
+ data.tar.gz: af1b07e7bf8f7f059f9044e78514155d5ba8916ac801a3f0d9dd3baaacbc70187b202a00ed053ea9a41790d6da6eaee2ea4378da6eddc9c1bb3dd3e569d39da7
@@ -49,6 +49,16 @@ module Lhj
49
49
  print_http_method(res_body['data'], project_info)
50
50
  # print request mock data
51
51
  print_mock_request_data(req_models) if !req_models.nil? && !req_models.empty?
52
+ model_result
53
+ end
54
+
55
+ def model_result
56
+ {
57
+ interface: @h_file_array.join("\n"),
58
+ implement: @m_file_array.join("\n"),
59
+ service: @service_content,
60
+ mock: @req_mock_array.join("\n")
61
+ }
52
62
  end
53
63
 
54
64
  def save_to_file
data/lib/lhj/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lhj
4
- VERSION = '0.2.30'
4
+ VERSION = '0.2.31'
5
5
  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.2.30
4
+ version: 0.2.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-19 00:00:00.000000000 Z
11
+ date: 2023-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcodeproj