redd 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redd/client/oauth2.rb +6 -0
- data/lib/redd/version.rb +1 -1
- 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: 4553516b4e115c4b603eb9f378570473fed71770
|
4
|
+
data.tar.gz: 37c75fce0d09befdf315579170c94915b2d8e11a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef8a7779756ce298e48cc1fedef4c8e8c903d8dd047c4e56ff523b8e2cee599c65afb1c5a241623918a02f0a87e5540e66978aa97c00c9ff79c05024f3bfdaa8
|
7
|
+
data.tar.gz: f8e76f3d3377234c633f2240b3ae575f02d4b529cd7632426d98df69c6a91ca61b62b9ad4f81b0bedac5a7383e8d87ba07a7449c1e9776294cb77a4dececb0fd
|
data/lib/redd/client/oauth2.rb
CHANGED
@@ -36,6 +36,12 @@ module Redd
|
|
36
36
|
@auth_endpoint = options[:auth_endpoint] || "https://ssl.reddit.com/"
|
37
37
|
end
|
38
38
|
|
39
|
+
def with_access(access)
|
40
|
+
new_instance = dup
|
41
|
+
new_instance.access = access
|
42
|
+
yield new_instance
|
43
|
+
end
|
44
|
+
|
39
45
|
private
|
40
46
|
|
41
47
|
def connection(access_token = @access.access_token)
|
data/lib/redd/version.rb
CHANGED