Rubbit 0.0.1 → 0.0.2
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 +6 -4
- data/lib/Rubbit/Rubbit_Objects.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
MGFiNTJkOWZmODhjYTNlNjllNmViNzc0YmIxN2Y3MTRiMmJlMzcyYQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
MDkzZGNiNmFlYjFiYjAwZGM0MWUzZDg0MjZlNDBjZmE0MmJmM2Q3ZA==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
MGQxNWFhZGFhYjU0MTMyYmE3NzAyNGI4ZGE2N2IxYmU3YjE2NzEwMmFkODkw
|
|
10
|
+
ZDk1MzU2YjFkZWQ2NTYyYmRjNmE1MGQ3NjcyNWY1Y2E2Nzg3MGMyZGE1N2M5
|
|
11
|
+
Y2NmYTYwYjRlOGEzOTY2YjcwYmZjMzQ3ZjVmOGMxODUyNWQ2NDk=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MjkwMmMyYzcyYjJkMzk4MmM3Y2Q2NTM4MmZhZDNkMGQ0ZDdkOGZhMjM4YmYx
|
|
14
|
+
MTVkNDRlYzE3YjVmZjE0ZWU3ZTQyNzA4ZGY5Y2QyMjhlMmZhNzVlYzQ0ZTlk
|
|
15
|
+
NjgyN2UwYTg3YjAxMzU0Njg4ZmRmZmMwYWFjZjA0Y2Q5MTA4OTA=
|
|
@@ -145,17 +145,19 @@ class Rubbit_Poster
|
|
|
145
145
|
return false
|
|
146
146
|
end
|
|
147
147
|
|
|
148
|
-
def submit(sr,title,url=nil,text=nil,kind='self',resubmit=
|
|
148
|
+
def submit(sr,title,url=nil,text=nil,kind='self',resubmit=nil,save=false,sendreplies=true)
|
|
149
149
|
params = {}
|
|
150
150
|
params['api_type']='json'
|
|
151
|
-
params['captcha']=nil
|
|
152
151
|
params['extension']=nil
|
|
153
|
-
params['iden']=nil
|
|
154
152
|
params['kind']=kind
|
|
155
153
|
params['resubmit']=resubmit
|
|
156
|
-
|
|
154
|
+
if(save)
|
|
155
|
+
params['save']=true
|
|
156
|
+
end
|
|
157
157
|
params['sendreplies']=sendreplies
|
|
158
|
+
params['id']='#newlink'
|
|
158
159
|
params['sr']=sr
|
|
160
|
+
params['r']=sr
|
|
159
161
|
params['text']=text
|
|
160
162
|
params['title']=title
|
|
161
163
|
params['uh']=get_modhash
|
|
@@ -35,7 +35,7 @@ class Subreddit
|
|
|
35
35
|
return ContentGenerator.new('http://www.reddit.com/r/'+@display_name.to_s+'/controversial.json',limit)
|
|
36
36
|
end
|
|
37
37
|
|
|
38
|
-
def submit(title,url=nil,text=nil,kind='
|
|
38
|
+
def submit(title,url=nil,text=nil,kind='self',resubmit=false,save=false,sendreplies=true)
|
|
39
39
|
return Rubbit_Poster.instance.submit(@display_name,title,url,text,kind,resubmit,save,sendreplies)
|
|
40
40
|
end
|
|
41
41
|
end
|