redd 0.4.2 → 0.4.3

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: cac2352c74273319e7d9d2459a05469a03e19725
4
- data.tar.gz: 610eede3dc4cd4c0adc0edcb7a0a647f8531a4d6
3
+ metadata.gz: 4553516b4e115c4b603eb9f378570473fed71770
4
+ data.tar.gz: 37c75fce0d09befdf315579170c94915b2d8e11a
5
5
  SHA512:
6
- metadata.gz: 147e0bc9cba206f042cce9f7c580e8ffe88fbef02a841c8ec25e8e0cc2507d6e5e59a3a30e8e5947fc6cdc58b332fe28dab37748d3e9684f90bdd983918c7caa
7
- data.tar.gz: 0cabe42cbca0d9eb9b2c321ee836e2bedd5f5c47d808c1108875efa3229b5df19ab0fa2dda296f0dbb011abf134e00444877b54d0cd1b253d90dfb94ecd84325
6
+ metadata.gz: ef8a7779756ce298e48cc1fedef4c8e8c903d8dd047c4e56ff523b8e2cee599c65afb1c5a241623918a02f0a87e5540e66978aa97c00c9ff79c05024f3bfdaa8
7
+ data.tar.gz: f8e76f3d3377234c633f2240b3ae575f02d4b529cd7632426d98df69c6a91ca61b62b9ad4f81b0bedac5a7383e8d87ba07a7449c1e9776294cb77a4dececb0fd
@@ -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
@@ -1,5 +1,5 @@
1
1
  # The main Redd module.
2
2
  module Redd
3
3
  # The semantic version number for Redd.
4
- VERSION = "0.4.2"
4
+ VERSION = "0.4.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avinash Dwarapu