mage-hand 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +31 -0
- data/VERSION +1 -1
- data/mage-hand.gemspec +1 -1
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -6,6 +6,37 @@ mage-hand is a ghostly hand that reaches across the internet to access the Obsid
|
|
6
6
|
|
7
7
|
The Obsidian Portal API is new and in a lot of flux. mage-hand is also new and in a lot of flux. Together these make a very unstable combination. Use with caution.
|
8
8
|
|
9
|
+
== Getting Started
|
10
|
+
|
11
|
+
You can install mage-hand with the usual
|
12
|
+
|
13
|
+
sudo install mage-handler
|
14
|
+
|
15
|
+
or you can add mage-hand to your gemfile with the following...
|
16
|
+
|
17
|
+
gem 'mage-hand'
|
18
|
+
|
19
|
+
== Usage
|
20
|
+
|
21
|
+
Right now mage-hand only handles the OAuth authentication to Obsidian Portal. Support for the rest of the API will be coming soon. To use Obsidian Portal to authenticate a Rails Controller include MageHand and set up the before filter.
|
22
|
+
|
23
|
+
class CoolController < ApplicationController
|
24
|
+
include MageHand
|
25
|
+
before_filter :obsidian_portal_login_required
|
26
|
+
|
27
|
+
This will handle all of the authenticate and redirecting etc. You will be returned to the original requested action after authentication.
|
28
|
+
|
29
|
+
To make a call to the API, you have to do it directly with the full URL. obsidian_portal is a method that gets added to your controller by the include.
|
30
|
+
|
31
|
+
obsidian_portal.get('http://api.obsidianportal.com/v1/users/me.json').body
|
32
|
+
|
33
|
+
== Known Issues
|
34
|
+
|
35
|
+
1. You have to use the full url to make calls to the API
|
36
|
+
|
37
|
+
2. A new browser session requires a new authorization to use the Obsidian Portal API
|
38
|
+
|
39
|
+
|
9
40
|
== Contributing to mage-hand
|
10
41
|
|
11
42
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/mage-hand.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mage-hand
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steven Hammond
|