crawlab_ruby_sdk 0.2.0 → 0.2.2
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/crawlab_ruby_sdk/version.rb +1 -1
- data/lib/models/thinktank_expert_report.rb +11 -0
- data/lib/models/thinktank_information.rb +9 -1
- data/lib/verify/verify.rb +1 -0
- 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: 432fe6ff2112c334aa5aa1fa651b4809d5eddd5838d325a435052161379b2545
|
|
4
|
+
data.tar.gz: 3137627be808cc16e7d25f3c8c6854bda2790c609c1bbdbfdf43d40af8c9cdea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ebb8669435f7ce87a10fc6960807420bf88f1902e19fd22dab5f121394894abd3b850ddd2b7037b661f51cf429b0be793adc838ddb87dce8fb3849d844ae3c9b
|
|
7
|
+
data.tar.gz: 2cfa352434b12d1eec7d70ab84a9b9044097eab453e57c647e20991913bfbec769b4f226e291ef8e6b2ad53ef1d535a319ca03b06c1d6afabbbd0e8448d8fc11
|
|
@@ -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
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.
|
|
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
|
+
date: 2023-07-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: grpc
|