crawlab_ruby_sdk 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- 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 +8 -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: 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
|
@@ -122,7 +126,9 @@ class ThinktankInformation < BaseModel
|
|
122
126
|
authors: @authors,
|
123
127
|
sub_title: @sub_title,
|
124
128
|
timezone: @timezone,
|
125
|
-
timezone_location: @timezone_location
|
129
|
+
timezone_location: @timezone_location,
|
130
|
+
related_authors: @related_authors,
|
131
|
+
related_author_names: @related_author_names,
|
126
132
|
|
127
133
|
}
|
128
134
|
end
|
@@ -159,6 +165,7 @@ class ThinktankInformation < BaseModel
|
|
159
165
|
"authors"=> ["json", "fields:author_id,author_name,author_url", "string"],
|
160
166
|
"timezone"=> ["empty", 'regex:[\+|-]\d{4}', "string"],
|
161
167
|
"timezone_location"=> ["empty", "string"],
|
168
|
+
"related_authors" => ["json","string"],
|
162
169
|
}
|
163
170
|
end
|
164
171
|
end
|
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
|