greentext 0.2.0 → 0.3.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/greentext.gemspec +1 -1
- data/lib/greentext/board.rb +4 -0
- data/lib/greentext/client/post.rb +1 -2
- data/lib/greentext/post.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7ba122616e32e4f72fcf28eece5496993aca498
|
|
4
|
+
data.tar.gz: 301ad86a4d16613ded9a9a9e43a4cdd0b2018289
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8af2f6b6277a4acc059445cf6735347e7946bfbed47d5c7dc1e39b9c622306fbf3bd5cf5055f56f7665f59ac7c6f11b61634963afff55401fe6f4229426d8568
|
|
7
|
+
data.tar.gz: f7fe8d1809779ba7b6b437e7a453479802402486a01d630c1e9b7b0bed96976c67718a10ef4e0f75cd4fd90d43f685702b50785054f42dc736b3437c96cde8c9
|
data/greentext.gemspec
CHANGED
data/lib/greentext/board.rb
CHANGED
|
@@ -4,7 +4,7 @@ module Greentext
|
|
|
4
4
|
class Client
|
|
5
5
|
# Internal: Methods for interacting with posts
|
|
6
6
|
module Post
|
|
7
|
-
# Public: Get the
|
|
7
|
+
# Public: Get the expanded threads given a Greentext::Post object.
|
|
8
8
|
# This will only work if the post is OP.
|
|
9
9
|
#
|
|
10
10
|
# post - a Greentext::Post object.
|
|
@@ -13,7 +13,6 @@ module Greentext
|
|
|
13
13
|
def expand(post)
|
|
14
14
|
if post.op?
|
|
15
15
|
posts = get("/#{post.board.name}/res/#{post.no}.json")["posts"]
|
|
16
|
-
posts.shift # Remove OP's post
|
|
17
16
|
posts.map do |params|
|
|
18
17
|
params.merge!("board" => post.board)
|
|
19
18
|
Greentext::Post.new(params)
|
data/lib/greentext/post.rb
CHANGED