gwtools 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gwtools/generate/swift.rb +9 -4
- data/lib/gwtools/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: c94d916d3d985d9e9ce91484cba81fe311ccc721d03e17647c3bee2c5bb8271e
|
4
|
+
data.tar.gz: 90952079e27099453f247025d841d02917b5ff6f92deb23c0a6445ba6547946e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1215a629a45659e0f6d7637ca067ef91a9d82daa1c7f95d03a1f8a637df4f92a67cd41e628ddf666253e46d226744a6fd942d59dd2f2379658a6609684ea9c9c
|
7
|
+
data.tar.gz: f054c13f799f7e90fb12837fa0f2e390a717f437b5d12216813bbfe4c1ff1d58416b16e795c78b83703b5801f766ae9dccc8cbb2fcf138aabf8f532efc210967
|
@@ -95,8 +95,13 @@ public extension <%="#{@api_name}"%> {
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def self.getPrefixPath(dir_path)
|
98
|
-
prefixPaths = %w[app-api/api/v1.0
|
99
|
-
|
98
|
+
prefixPaths = %w[app-api/api/v1.0
|
99
|
+
app-api/api/v2.0
|
100
|
+
community-app-api/app-api/api/v1.0
|
101
|
+
app-api/api/haval/v2.0
|
102
|
+
bt-cpsp-api/cpsp-api/v1
|
103
|
+
bt-cpsp-api/cpsp-api/v2
|
104
|
+
bt-cpsp-api/v2]
|
100
105
|
|
101
106
|
prefixPaths.each do |prefix_path|
|
102
107
|
return prefix_path.gsub(/^\/|\/$/, "") if dir_path.start_with?(prefix_path)
|
@@ -209,8 +214,8 @@ extension <##SomeViewModel##> {
|
|
209
214
|
func reqData() -> Observable<#{json_data_is_arr ? "[" : ""}#{app_name}.#{httpMethod.capitalize.chomp}Model#{json_data_is_arr ? "]" : ""}> {
|
210
215
|
#{app_name}.#{httpMethod.capitalize.chomp}()
|
211
216
|
.compactMap { $0 } // 解析出需要的类型
|
212
|
-
.
|
213
|
-
.
|
217
|
+
.observe(on: MainScheduler.instance)
|
218
|
+
.catchAndReturn(.init())
|
214
219
|
}
|
215
220
|
}
|
216
221
|
"""
|
data/lib/gwtools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gwtools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.25
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- chenglq
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Write a longer description or delete this line.
|
14
14
|
email:
|