NeonRAW 0.1.5 → 0.1.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2324bfcec373560663e0ec7cf943731d9f587b13
4
- data.tar.gz: 94018ae2b46d4463542b3b6207a7659024ec4ee4
3
+ metadata.gz: 970a9bd9f4ba95e3afe11b528a54eb5f0d295694
4
+ data.tar.gz: d9e3a3db3364aeddf7c5ec1ffe3b33c20a7066ac
5
5
  SHA512:
6
- metadata.gz: 2da5759365cca36ca2ab91b4816c5afd91e16ecacee526bc14de2cf3e83918f5d68b2022ab26b9a71a0cf5506f92745109b1d91ecf718c90b14dfdd343a8b20c
7
- data.tar.gz: 386686c61e371303edebc6d788375394dadae5d96281db67a433afb39267afc31172ae5c6d537aabf6354649034df572e0b50a2759e3c71d67a78ba7bf9659d7
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::Objects::Script] The client.
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
@@ -1,3 +1,3 @@
1
1
  module NeonRAW
2
- VERSION = '0.1.5'.freeze
2
+ VERSION = '0.1.6'.freeze
3
3
  end
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.5
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-04-30 00:00:00.000000000 Z
11
+ date: 2016-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler