crawlab_ruby_sdk 0.2.0 → 0.2.2

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: c492e557b59d2c0a7da8836a3b2cfa580d09cb56369f97202828556065a1441b
4
- data.tar.gz: 9c25a5d047d94e3037be980a6673340cfd320ed20830a797a275d4a71736e026
3
+ metadata.gz: 432fe6ff2112c334aa5aa1fa651b4809d5eddd5838d325a435052161379b2545
4
+ data.tar.gz: 3137627be808cc16e7d25f3c8c6854bda2790c609c1bbdbfdf43d40af8c9cdea
5
5
  SHA512:
6
- metadata.gz: 593dc00587bb678bd2b7b1b486a1f479d4f4478f2a47cc78307bd0ec8b1a717111b6728dc2422110d9485e12b0d50b720d2647585312e6bd1571e63ce8f4b4b4
7
- data.tar.gz: c0ef2fdd41df0436eab3c143e5fb2f599323a7b65eb1ea9e77d8ede103e0fc74b638cdbaa4f7417b62e20af210736d65247d082f38238ac8645d47565b33da51
6
+ metadata.gz: ebb8669435f7ce87a10fc6960807420bf88f1902e19fd22dab5f121394894abd3b850ddd2b7037b661f51cf429b0be793adc838ddb87dce8fb3849d844ae3c9b
7
+ data.tar.gz: 2cfa352434b12d1eec7d70ab84a9b9044097eab453e57c647e20991913bfbec769b4f226e291ef8e6b2ad53ef1d535a319ca03b06c1d6afabbbd0e8448d8fc11
@@ -1,3 +1,3 @@
1
1
  module CrawlabRubySdk
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -35,6 +35,9 @@ class ThinktankExpertReport < BaseModel
35
35
  attr_accessor :sub_title
36
36
  attr_accessor :timezone
37
37
  attr_accessor :timezone_location
38
+ attr_accessor :related_authors
39
+ attr_accessor :related_author_names
40
+ attr_accessor :from_author_url
38
41
 
39
42
  def self.table_name
40
43
  return "thinktank_expert_reports"
@@ -79,6 +82,9 @@ class ThinktankExpertReport < BaseModel
79
82
  @sub_title = options["sub_title"]
80
83
  @timezone = options["timezone"]
81
84
  @timezone_location = options["timezone_location"]
85
+ @related_authors = options["related_authors"]
86
+ @related_author_names = options["related_author_names"]
87
+ @from_author_url = options["from_author_url"]
82
88
  end
83
89
 
84
90
  def as_json
@@ -119,6 +125,9 @@ class ThinktankExpertReport < BaseModel
119
125
  sub_title: @sub_title,
120
126
  timezone: @timezone,
121
127
  timezone_location: @timezone_location,
128
+ related_authors: @related_authors,
129
+ related_author_names: @related_author_names,
130
+ from_author_url: @from_author_url,
122
131
  }
123
132
  end
124
133
 
@@ -154,6 +163,8 @@ class ThinktankExpertReport < BaseModel
154
163
  "authors"=> ["json", "fields:author_id,author_name,author_url", "string"],
155
164
  "timezone"=> ["empty", 'regex:[\+|-]\d{4}', "string"],
156
165
  "timezone_location"=> ["empty", "string"],
166
+ "from_author_url" => ["empty","string"],
167
+ "related_authors" => ["json","string"],
157
168
  }
158
169
  end
159
170
 
@@ -36,6 +36,8 @@ class ThinktankInformation < BaseModel
36
36
  attr_accessor :sub_title
37
37
  attr_accessor :timezone
38
38
  attr_accessor :timezone_location
39
+ attr_accessor :related_authors
40
+ attr_accessor :related_author_names
39
41
 
40
42
  def self.table_name
41
43
  return "thinktank_informations"
@@ -82,6 +84,8 @@ class ThinktankInformation < BaseModel
82
84
  @sub_title = options["sub_title"]
83
85
  @timezone = options["timezone"]
84
86
  @timezone_location = options["timezone_location"]
87
+ @related_authors = options["related_authors"]
88
+ @related_author_names = options["related_author_names"]
85
89
  end
86
90
 
87
91
  def as_json
@@ -98,6 +102,7 @@ class ThinktankInformation < BaseModel
98
102
  files: @files,
99
103
  images: @images,
100
104
  videos: @videos,
105
+ audios: @audios,
101
106
  links: @links,
102
107
  domain: @domain,
103
108
  keywords: @keywords,
@@ -121,7 +126,9 @@ class ThinktankInformation < BaseModel
121
126
  authors: @authors,
122
127
  sub_title: @sub_title,
123
128
  timezone: @timezone,
124
- timezone_location: @timezone_location
129
+ timezone_location: @timezone_location,
130
+ related_authors: @related_authors,
131
+ related_author_names: @related_author_names,
125
132
 
126
133
  }
127
134
  end
@@ -158,6 +165,7 @@ class ThinktankInformation < BaseModel
158
165
  "authors"=> ["json", "fields:author_id,author_name,author_url", "string"],
159
166
  "timezone"=> ["empty", 'regex:[\+|-]\d{4}', "string"],
160
167
  "timezone_location"=> ["empty", "string"],
168
+ "related_authors" => ["json","string"],
161
169
  }
162
170
  end
163
171
  end
data/lib/verify/verify.rb CHANGED
@@ -3,6 +3,7 @@ class Verify
3
3
 
4
4
  if table_name == "" && items.size > 0
5
5
  table_name = switch_table(items[0])
6
+ puts "验证:#{table_name}"
6
7
  elsif table_name != "" && items.size > 0
7
8
  puts "验证:#{table_name}"
8
9
  if !match_fields?(items[0],table_name)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crawlab_ruby_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - min
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2023-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc