Rubbit 0.0.8 → 0.0.9
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 +8 -8
- data/lib/Rubbit/Rubbit_Construction_Layer.rb +1 -1
- data/lib/Rubbit/Rubbit_Objects.rb +7 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDE4NjRhMDAxNGRjMjJlNjNhMmM0ZmVmMzE5YWE3YTM1NzE1ZDdkOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWYxZjg4NGU2ZGIxNWJlMjJkZTgwNmMyNDVmY2RhYTUyZWNkZGYwMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWE3YjNjYjA3MTQwZThmOGQ0ZTI4OTIwMjQ4ZWEyZjQ2MzY2ZjllMTYwOWY0
|
10
|
+
NGNjM2MwNGZiMGNmOWVmMmM0YTZiMmUzN2Q3OTMwOGVjZDJmMDNjOWIyNGI2
|
11
|
+
NjRmZDIzNTg0NWNjYzY2NWJjNTVmNGY1MGY3OWRjOTI2NDNhMGM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTkxNWY1MWZiNGJlMjgxYTgxNDRmYzViNTIyNzEzODJjYTA0Yjc5YzhhZjBh
|
14
|
+
MmRjMmQ0ZDQ1OTE4MzU2MGUzZGIyOWFkNjdkN2QyMWMzMDIwYWNlYjIxMDNh
|
15
|
+
ODI2ODUzODFmMmVkMDFjNjZhMWQ4MjhkOGJiOGQ4MzRhZjYwYzA=
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'Rubbit/Reddit_Net_Wrapper'
|
2
|
+
require 'Rubbit/Rubbit_Exceptions'
|
2
3
|
|
3
4
|
class Subreddit
|
4
5
|
def initialize(json)
|
@@ -73,16 +74,16 @@ class Redditor
|
|
73
74
|
end
|
74
75
|
end
|
75
76
|
|
76
|
-
def get_overview(limit=100)
|
77
|
-
return ContentGenerator.new('http://www.reddit.com/user/'+@name.to_s+'/.json',limit)
|
77
|
+
def get_overview(limit=100,sort='new')
|
78
|
+
return ContentGenerator.new('http://www.reddit.com/user/'+@name.to_s+'/.json?sort='+sort,limit)
|
78
79
|
end
|
79
80
|
|
80
|
-
def get_comments(limit=100)
|
81
|
-
return ContentGenerator.new('http://www.reddit.com/user/'+@name.to_s+'/comments.json',limit)
|
81
|
+
def get_comments(limit=100,sort='new')
|
82
|
+
return ContentGenerator.new('http://www.reddit.com/user/'+@name.to_s+'/comments.json?sort='+sort,limit)
|
82
83
|
end
|
83
84
|
|
84
|
-
def get_submitted(limit=100)
|
85
|
-
return ContentGenerator.new('http://www.reddit.com/user/'+@name.to_s+'/submitted.json',limit)
|
85
|
+
def get_submitted(limit=100,sort='new')
|
86
|
+
return ContentGenerator.new('http://www.reddit.com/user/'+@name.to_s+'/submitted.json?sort='+sort,limit)
|
86
87
|
end
|
87
88
|
|
88
89
|
def rebuild
|