patreon 0.0.5 → 0.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/patreon/api.rb +5 -1
  3. data/patreon.gemspec +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2f45dd77c47267c3f00d9b0695ba9c61a47f5bb
4
- data.tar.gz: 9c28ef0cf11e2e12e5f98d0ee1f8d01f28979ca7
3
+ metadata.gz: 80354b3a765d27d4a988e50f74e55ae9cfc56f09
4
+ data.tar.gz: 92f0dc26d9e66f4bd30df489301b38507bc75171
5
5
  SHA512:
6
- metadata.gz: 52a0b424aa0fcbe6d20f5ea6fc37c50ba1452c4667d71945b977f28df860aeb7112ee303d2197660ad00723bf0323f56ee4bab5918f40465443d3ae17ba17302
7
- data.tar.gz: bd3a3111c5deb9afb4e45a36c0971988c38e4209a37bffc3fb126f5f0ec63ead648146718539e25746aa9008d7838aee6978b6146661e08f1417d8dfd0d33069
6
+ metadata.gz: 6dab3bff382d6517f22f175ae5cc029cbf5250229bfcf900aee717124cc126e5eb33184086727a1c0213ed6e4aba223570036c3727e34f16f99dcf7a109b439c
7
+ data.tar.gz: b961bbb611db5428891b886426e3b19a886e37913795389e1dab9e14026fabe2ea077f2becf79ac3581ec7eaa5f11e28bb36fd0e1bc048e05ec896cc5fcc6743
data/lib/patreon/api.rb CHANGED
@@ -11,10 +11,14 @@ module Patreon
11
11
  get_json('current_user')
12
12
  end
13
13
 
14
- def fetch_campaign_and_patrons(access_token)
14
+ def fetch_campaign_and_patrons()
15
15
  get_json('current_user/campaigns?include=rewards,creator,goals,pledges')
16
16
  end
17
17
 
18
+ def fetch_campaign()
19
+ get_json('current_user/campaigns?include=rewards,creator,goals')
20
+ end
21
+
18
22
  private
19
23
 
20
24
  def get_json(suffix)
data/patreon.gemspec CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "patreon"
7
- gem.version = "0.0.5"
7
+ gem.version = "0.0.6"
8
8
  gem.authors = ["David Kettler"]
9
9
  gem.email = ["david@patreon.com"]
10
10
  gem.description = "Interact with the Patreon API via OAuth"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: patreon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Kettler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-14 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Interact with the Patreon API via OAuth
14
14
  email: