lhj-tools 0.1.32 → 0.1.35

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3491ec8a0eab19de9ee89cff9046a46b821dc8a30aaa263678154b7ac0ff834c
4
- data.tar.gz: c61ddd3a460a7e5b9cd408131efc9f1dcb020637898d3edd393e56a4654043e8
3
+ metadata.gz: acf5100c519b9b7580d251efae32f735575f9c827959517ca25cee51501f96ab
4
+ data.tar.gz: eab05a25fd97bfc21902294ab0204eda81e25f85a29c01edd2b4c99c0563b3dc
5
5
  SHA512:
6
- metadata.gz: 4f63ea6c6fe0325ad3312d297415d1ca5ccde7751456dce5b2826c1de179afbf869839890843b18dbaab22dd0e43e4577b48e4cdbf064867a05648ac95252cc9
7
- data.tar.gz: 42a95187cfd47f490398341ea10f1d2993c1a01e4739c2a637a2f3fcffe3a00312b7bab66a92d1c6fc337afed7e43a066ec5253ad653278603293ddd033fe35f
6
+ metadata.gz: b35f861355ebc4bbc29a22e9c306c573e845d07a0642d9c795030fc86f93ea3c362ce857938f2fb352ca36b297db3df1cbe39d314787fef33461254cd98205e0
7
+ data.tar.gz: '09797b52b0e1b82ce17fa386bd6c0f6f21ad5deb1aafd392a1c19cd0b2a2adcaf4b695453b51e8a9ee1ca64068ea4df1965d208ebc19404e572b1feb60329c9d'
@@ -14,6 +14,9 @@ module Lhj
14
14
  str = note
15
15
  if /#.+#/ =~ note
16
16
  note.scan(/#[^#]+#/) do |m|
17
+ rec_reg = m.match(/rec\w+/)
18
+ next if rec_reg
19
+
17
20
  ma = m.match(/\d+/)
18
21
  next if !ma || !ma[0] || ma[0].length <= 0
19
22
 
@@ -16,7 +16,7 @@ module Lhj
16
16
 
17
17
  QUERY_RECORDS_API_URL = 'https://api.vika.cn/fusion/v1/datasheets/dstid/records?viewId=viwid'.freeze
18
18
 
19
- QUERY_RECORDS_FIELD_KEY_API_URL = 'https://api.vika.cn/fusion/v1/datasheets/dstid/records?viewId=viwid&fieldKey=id'.freeze
19
+ QUERY_RECORDS_FIELD_KEY_API_URL = 'https://api.vika.cn/fusion/v1/datasheets/dstid/records?viewId=viwid&fieldKey=id&pageSize=500'.freeze
20
20
 
21
21
  RECORD_LINK_URL = 'https://vika.cn/workbench/dstid/viwid/recid'.freeze
22
22
 
@@ -49,7 +49,7 @@ module Lhj
49
49
  query_network_with_rec_id(rec_id)
50
50
  end
51
51
  end
52
-
52
+
53
53
  def self.query_network_with_rec_id(rec_id)
54
54
  sync
55
55
  key = data_source.keys.find { |k| k =~ /#{rec_id}/ }
@@ -142,7 +142,7 @@ module Lhj
142
142
  next unless display_fields.any? { |f| f.eql?(k) }
143
143
 
144
144
  ds_key = "#{dst_id}_#{viw_id}_#{rec_id}"
145
- ds_value = "#{v}[#{link_url(dst_id, viw_id, rec_id)}]"
145
+ ds_value = "[#{v}](#{link_url(dst_id, viw_id, rec_id)})"
146
146
  data_source[ds_key] = ds_value
147
147
  end
148
148
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Lhj
4
4
  module Tools
5
- VERSION = "0.1.32"
5
+ VERSION = "0.1.35"
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.32
4
+ version: 0.1.35
5
5
  platform: ruby
6
6
  authors:
7
7
  - lihaijian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-25 00:00:00.000000000 Z
11
+ date: 2022-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: claide