repltalk 4.3.0 → 4.6.0
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/repltalk/graphql.rb +0 -26
- data/lib/repltalk/structures.rb +2 -26
- 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: dae14ff700d17dd00b18cc214f14518d18a1bc57ae27f6a6fa3876eb6dfb38f9
|
|
4
|
+
data.tar.gz: a63352dcbee88c244350656339a17fa3fe7755eb3631048ee726192b0a84a901
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bccc593f4c562c6b343ce0dc9bfac9408e5b743be9c3c1d5ec90ed52d2ef6b67488dda6f0b51522ff8d53eb33becf2fffe0053352bf5fe1cae612b4a36321fd6
|
|
7
|
+
data.tar.gz: 8613c3d98f681c5840ba6157e51de579e7141b1ef95781225e1702a3061353ad1f0802c1510e438337ee59a2f425dab39811257c7d0d6d5b945adb58c887faec
|
data/lib/repltalk/graphql.rb
CHANGED
|
@@ -30,7 +30,6 @@ module ReplTalk
|
|
|
30
30
|
username
|
|
31
31
|
image
|
|
32
32
|
bio
|
|
33
|
-
karma
|
|
34
33
|
isHacker
|
|
35
34
|
timeCreated
|
|
36
35
|
roles {
|
|
@@ -43,16 +42,6 @@ module ReplTalk
|
|
|
43
42
|
|
|
44
43
|
TAG = "
|
|
45
44
|
id
|
|
46
|
-
replCount
|
|
47
|
-
replsTaggedTodayCount
|
|
48
|
-
creatorCount
|
|
49
|
-
isTrending
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
REACTIONS = "
|
|
53
|
-
id
|
|
54
|
-
type
|
|
55
|
-
count
|
|
56
45
|
"
|
|
57
46
|
|
|
58
47
|
REPL = "
|
|
@@ -70,9 +59,6 @@ module ReplTalk
|
|
|
70
59
|
tags {
|
|
71
60
|
#{TAG}
|
|
72
61
|
}
|
|
73
|
-
reactions {
|
|
74
|
-
#{REACTIONS}
|
|
75
|
-
}
|
|
76
62
|
lang {
|
|
77
63
|
#{LANGUAGE}
|
|
78
64
|
}
|
|
@@ -501,18 +487,6 @@ module ReplTalk
|
|
|
501
487
|
}
|
|
502
488
|
"
|
|
503
489
|
|
|
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
490
|
REPORT_POST = "
|
|
517
491
|
mutation createBoardReport($id: Int!, $reason: String!) {
|
|
518
492
|
createBoardReport(postId: $id, reason: $reason) {
|
data/lib/repltalk/structures.rb
CHANGED
|
@@ -55,16 +55,12 @@ module ReplTalk
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
class Tag
|
|
58
|
-
attr_reader :id
|
|
58
|
+
attr_reader :id
|
|
59
59
|
|
|
60
60
|
def initialize(client, tag)
|
|
61
61
|
@client = client
|
|
62
62
|
|
|
63
63
|
@id = tag["id"]
|
|
64
|
-
@repl_count = tag["replCount"]
|
|
65
|
-
@is_trending = tag["isTrending"]
|
|
66
|
-
@creator_count = tag["creatorCount"]
|
|
67
|
-
@repls_tagged_today_count = tag["replsTaggedTodayCount"]
|
|
68
64
|
end
|
|
69
65
|
|
|
70
66
|
def get_repls(count: nil, after: nil)
|
|
@@ -85,24 +81,6 @@ module ReplTalk
|
|
|
85
81
|
|
|
86
82
|
|
|
87
83
|
|
|
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
84
|
class ReplComment
|
|
107
85
|
attr_reader :id, :content, :author, :repl, :replies
|
|
108
86
|
|
|
@@ -157,7 +135,7 @@ module ReplTalk
|
|
|
157
135
|
|
|
158
136
|
|
|
159
137
|
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
|
|
138
|
+
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
139
|
|
|
162
140
|
def initialize(client, repl)
|
|
163
141
|
@client = client
|
|
@@ -179,7 +157,6 @@ module ReplTalk
|
|
|
179
157
|
@is_always_on = repl["isAlwaysOn"]
|
|
180
158
|
|
|
181
159
|
@tags = repl["tags"].map { |tag| Tag.new(@client, tag) }
|
|
182
|
-
@reactions = repl["reactions"].map { |reaction| Reaction.new(reaction) }
|
|
183
160
|
end
|
|
184
161
|
|
|
185
162
|
def get_forks(count: 100, after: nil)
|
|
@@ -510,7 +487,6 @@ module ReplTalk
|
|
|
510
487
|
@name = user["fullName"]
|
|
511
488
|
@pfp = user["image"]
|
|
512
489
|
@bio = user["bio"]
|
|
513
|
-
@cycles = user["karma"]
|
|
514
490
|
@is_hacker = user["isHacker"]
|
|
515
491
|
@timestamp = user["timeCreated"]
|
|
516
492
|
@roles = user["roles"].map { |role| Role.new(role) }
|
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.6.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-08-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|