patreon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66814c53f7b8f73796f894899354ca35139cd6ff
4
- data.tar.gz: cb2c1ccd75769b0f2e7fdce7facad8141910346f
3
+ metadata.gz: 6d880d9e94b03bfffd537054be2ac9abe4b9c198
4
+ data.tar.gz: 05515f392792921c3e97aaf6660770471b5c11d9
5
5
  SHA512:
6
- metadata.gz: b7e9fc6e8d9c63e1d8f98abac0bd31a8c43b2c6459e4c1fac24c659759793bda064bbb6fe02b87b2b8d8949de9bd91460075aed3404ff0a8fdd28c97820ab7b4
7
- data.tar.gz: 31a5e025feb858f5a4aa507e16dc12745c4596ba35be067cd186b47043beb90194b724185735cb487ab27555201223bceb3521feeea8612cee16a52b43cbd173
6
+ metadata.gz: b85e6617c6350f44516df5c4bc16935fd8812858dd3bdd6b42e3fad71988245f26413f51151f44e95e705d01da3c2aeb229a086ec47cac3c4965225277164648
7
+ data.tar.gz: 5f141f638dcebe9b1dea7f264f14b6a491916a1076859aae025d4731898e92b38707a7f8642fec92fdd4ce64e91eb4f6ca09243753c73244d085df1293739a21
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # patreon-ruby
2
- Interact with the Patreon API via OAuth
2
+ Interact with the Patreon API via OAuth.
3
+
4
+ Get the gem from [RubyGems](https://rubygems.org/gems/patreon)
3
5
 
4
6
  Step 1. Get your client_id and client_secret
5
7
  ---
@@ -19,7 +21,7 @@ class OAuthController < ApplicationController
19
21
  oauth_client = Patreon::OAuth.new(client_id, client_secret)
20
22
  tokens = oauth_client.get_tokens(params[:code], redirect_uri)
21
23
  access_token = tokens['access_token']
22
-
24
+
23
25
  api_client = Patreon::API.new(access_token)
24
26
  user_response = api_client.fetch_user()
25
27
  @user = user_response['data']
data/lib/patreon/api.rb CHANGED
@@ -12,7 +12,7 @@ module Patreon
12
12
  end
13
13
 
14
14
  def fetch_campaign_and_patrons(access_token)
15
- get_json('current_user/campaign')
15
+ get_json('current_user/campaign?include=rewards,creator,goals,pledges')
16
16
  end
17
17
 
18
18
  private
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.3"
7
+ gem.version = "0.0.4"
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.3
4
+ version: 0.0.4
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-08 00:00:00.000000000 Z
11
+ date: 2015-10-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Interact with the Patreon API via OAuth
14
14
  email: