NeonRAW 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/examples/userhistoryscraper.rb +1 -1
- data/lib/NeonRAW/objects/comment.rb +14 -0
- data/lib/NeonRAW/objects/submission.rb +14 -0
- data/lib/NeonRAW/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 970a9bd9f4ba95e3afe11b528a54eb5f0d295694
|
4
|
+
data.tar.gz: d9e3a3db3364aeddf7c5ec1ffe3b33c20a7066ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b55607b79d30c14d976989585a4bd4b356a1487a16060623e3313df7c79c9b9bda13eea60b9b264a7c77c01e7bc9950f13c6b15ea1f45cc17992887ee8dd597b
|
7
|
+
data.tar.gz: 705d32e891bf11ba949af1bce88c5f4c89a3804fc8357dd9a5240cc92c06832e1022a2fd30e9eb5febb21ec0ba1ed5ac5dfaa6ec9deb7e7c9db5eeb1436bc7f9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 0.1.6
|
2
|
+
|
3
|
+
### Added
|
4
|
+
|
5
|
+
* Comment and Submission objects now have methods to help determine which is which when iterating through a listing. The two are often intermixed when fetching a user's overview.
|
6
|
+
|
1
7
|
## 0.1.5
|
2
8
|
|
3
9
|
* Changed conditional statement in the ratelimiting so that the client will sleep if requests_remaining is <= 0.
|
@@ -66,7 +66,7 @@ end
|
|
66
66
|
|
67
67
|
# Submits the results to Reddit.
|
68
68
|
# @!method submit_results(client, subreddit, title, text)
|
69
|
-
# @param client [NeonRAW::
|
69
|
+
# @param client [NeonRAW::Clients::Script] The client.
|
70
70
|
# @param subreddit [String] The name of the subreddit to submit to.
|
71
71
|
# @param title [String] The title of the thread.
|
72
72
|
# @param text [String] The table to be submitted.
|
@@ -102,6 +102,20 @@ module NeonRAW
|
|
102
102
|
false
|
103
103
|
end
|
104
104
|
|
105
|
+
# Checks whether or not this is a submission.
|
106
|
+
# @!method submission?
|
107
|
+
# @return [Boolean] Returns false.
|
108
|
+
def submission?
|
109
|
+
false
|
110
|
+
end
|
111
|
+
|
112
|
+
# Checks whether or not this is a comment.
|
113
|
+
# @!method comment?
|
114
|
+
# @return [Boolean] Returns true.
|
115
|
+
def comment?
|
116
|
+
true
|
117
|
+
end
|
118
|
+
|
105
119
|
# Checks whether or not the comment has replies to it.
|
106
120
|
# @!method replies?
|
107
121
|
# @return [Boolean] Returns whether or not the comment has replies to it.
|
@@ -115,6 +115,20 @@ module NeonRAW
|
|
115
115
|
!@link_flair_text.nil? || !@link_flair_css_class.nil?
|
116
116
|
end
|
117
117
|
|
118
|
+
# Checks whether or not this is a submission.
|
119
|
+
# @!method submission?
|
120
|
+
# @return [Boolean] Returns true.
|
121
|
+
def submission?
|
122
|
+
true
|
123
|
+
end
|
124
|
+
|
125
|
+
# Checks whether or not this is a comment.
|
126
|
+
# @!method comment?
|
127
|
+
# @return [Boolean] Returns false.
|
128
|
+
def comment?
|
129
|
+
false
|
130
|
+
end
|
131
|
+
|
118
132
|
# Fetches the comments for a submission.
|
119
133
|
# @!method comments
|
120
134
|
# @return [Array] Returns an array full of Comments and MoreComments
|
data/lib/NeonRAW/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: NeonRAW
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SirNeon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|