repltalk 4.3.0 → 4.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/repltalk/graphql.rb +0 -22
- data/lib/repltalk/structures.rb +1 -20
- data/lib/repltalk.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: 95d4d159cc45dc30677912ab1b44b9e9439fb12248119430334987a8a11275df
|
4
|
+
data.tar.gz: 5faf5eeb5e8de1b0d87e17903fac87e178ca12aa5531bfae41a52a170fa7754b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4a6228db66bf89454a6587e4e4cdd470f3b3f38bc354b4ea37209acc8d9a5b7c01043800cddcd01dca6bafa28b9b3a042c80a6a748bf7c3b5aac50f6c5a1a45
|
7
|
+
data.tar.gz: 00f21639a3fcf8f8294ac8b596817b548f216da6e75560629ebbac7a1f3098edbd5c94510eccf25176b26ab67587ac4a5ec3cf1178c62ff4177fc0229a5de254
|
data/lib/repltalk/graphql.rb
CHANGED
@@ -46,13 +46,6 @@ module ReplTalk
|
|
46
46
|
replCount
|
47
47
|
replsTaggedTodayCount
|
48
48
|
creatorCount
|
49
|
-
isTrending
|
50
|
-
"
|
51
|
-
|
52
|
-
REACTIONS = "
|
53
|
-
id
|
54
|
-
type
|
55
|
-
count
|
56
49
|
"
|
57
50
|
|
58
51
|
REPL = "
|
@@ -70,9 +63,6 @@ module ReplTalk
|
|
70
63
|
tags {
|
71
64
|
#{TAG}
|
72
65
|
}
|
73
|
-
reactions {
|
74
|
-
#{REACTIONS}
|
75
|
-
}
|
76
66
|
lang {
|
77
67
|
#{LANGUAGE}
|
78
68
|
}
|
@@ -501,18 +491,6 @@ module ReplTalk
|
|
501
491
|
}
|
502
492
|
"
|
503
493
|
|
504
|
-
TOGGLE_REACTION = "
|
505
|
-
mutation ReplViewReactionsToggleReactions($input: SetReplReactionInput!) {
|
506
|
-
setReplReaction(input: $input) {
|
507
|
-
... on Repl {
|
508
|
-
reactions {
|
509
|
-
#{Fields::REACTIONS}
|
510
|
-
}
|
511
|
-
}
|
512
|
-
}
|
513
|
-
}
|
514
|
-
"
|
515
|
-
|
516
494
|
REPORT_POST = "
|
517
495
|
mutation createBoardReport($id: Int!, $reason: String!) {
|
518
496
|
createBoardReport(postId: $id, reason: $reason) {
|
data/lib/repltalk/structures.rb
CHANGED
@@ -85,24 +85,6 @@ module ReplTalk
|
|
85
85
|
|
86
86
|
|
87
87
|
|
88
|
-
|
89
|
-
class Reaction
|
90
|
-
attr_reader :id, :type, :count
|
91
|
-
|
92
|
-
def initialize(reaction)
|
93
|
-
@id = reaction["id"]
|
94
|
-
@type = reaction["type"]
|
95
|
-
@count = reaction["count"]
|
96
|
-
end
|
97
|
-
|
98
|
-
def to_s
|
99
|
-
@type
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
88
|
class ReplComment
|
107
89
|
attr_reader :id, :content, :author, :repl, :replies
|
108
90
|
|
@@ -157,7 +139,7 @@ module ReplTalk
|
|
157
139
|
|
158
140
|
|
159
141
|
class Repl
|
160
|
-
attr_reader :id, :url, :title, :author, :description, :timestamp, :size, :run_count, :fork_count, :language, :img_url, :origin_url, :is_private, :is_always_on, :tags
|
142
|
+
attr_reader :id, :url, :title, :author, :description, :timestamp, :size, :run_count, :fork_count, :language, :img_url, :origin_url, :is_private, :is_always_on, :tags
|
161
143
|
|
162
144
|
def initialize(client, repl)
|
163
145
|
@client = client
|
@@ -179,7 +161,6 @@ module ReplTalk
|
|
179
161
|
@is_always_on = repl["isAlwaysOn"]
|
180
162
|
|
181
163
|
@tags = repl["tags"].map { |tag| Tag.new(@client, tag) }
|
182
|
-
@reactions = repl["reactions"].map { |reaction| Reaction.new(reaction) }
|
183
164
|
end
|
184
165
|
|
185
166
|
def get_forks(count: 100, after: nil)
|
data/lib/repltalk.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repltalk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CodingCactus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|