repltalk 4.3.0 → 4.6.0

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: 9281c577f7967d08b5046b1f61a4c6cc506c18ce393604e0a8446d448471982c
4
- data.tar.gz: da4370aaac2488e2b2e64b7f02e617d27198797c8f615b675dc014fb36a9198f
3
+ metadata.gz: dae14ff700d17dd00b18cc214f14518d18a1bc57ae27f6a6fa3876eb6dfb38f9
4
+ data.tar.gz: a63352dcbee88c244350656339a17fa3fe7755eb3631048ee726192b0a84a901
5
5
  SHA512:
6
- metadata.gz: d4bea1b18a212ffcf6a1ef74b66cdcb8dfc72739d17b053d0c5882ec5e103298307c845fd33b1d78a3c739cb954234d6cd6e05279b3ca08b653e40e28934f26c
7
- data.tar.gz: 603ec6085baad54772ae1fd456ea80e8789ad6d49e0e9ca39b1cf5bb79ce2077fe4721c33e0dd5149acc8624a3d229da3c212d83d628842397a429fbe4d5ac99
6
+ metadata.gz: bccc593f4c562c6b343ce0dc9bfac9408e5b743be9c3c1d5ec90ed52d2ef6b67488dda6f0b51522ff8d53eb33becf2fffe0053352bf5fe1cae612b4a36321fd6
7
+ data.tar.gz: 8613c3d98f681c5840ba6157e51de579e7141b1ef95781225e1702a3061353ad1f0802c1510e438337ee59a2f425dab39811257c7d0d6d5b945adb58c887faec
@@ -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) {
@@ -55,16 +55,12 @@ module ReplTalk
55
55
 
56
56
 
57
57
  class Tag
58
- attr_reader :id, :repl_count, :creator_count, :is_trending, :repls_tagged_today_count
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, :reactions
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
@@ -4,5 +4,5 @@ require_relative "repltalk/structures"
4
4
 
5
5
  module ReplTalk
6
6
  $BASE_URL = "https://replit.com"
7
- VERSION = "4.3.0"
7
+ VERSION = "4.6.0"
8
8
  end
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.3.0
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-02-01 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http