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 +4 -4
- data/README.md +4 -2
- data/lib/patreon/api.rb +1 -1
- data/patreon.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d880d9e94b03bfffd537054be2ac9abe4b9c198
|
4
|
+
data.tar.gz: 05515f392792921c3e97aaf6660770471b5c11d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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.
|
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.
|
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-
|
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:
|