omnitoken 0.0.2 → 0.0.3

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: b9cf666940fa387119d7bbc18c32289a13d30926
4
- data.tar.gz: 4ac3f8d6cf5124c3715b8c4e0195719d9ae6277c
3
+ metadata.gz: 695f46c09f54013694cabd850cafe81adb1f9539
4
+ data.tar.gz: 6756f572977dd7fba7b316d807393e549960e2c0
5
5
  SHA512:
6
- metadata.gz: 795fdc8a3511efd65376be9da7e81e114e83705f0fde0cd825b6b6369d45f1c47b082065716aa9919b5fb28a00c9ec8b263ae96668c0ea740f4c2a280dccabbf
7
- data.tar.gz: 52e5ef033d3fca5782bb44a5fb2ad1701d86533ebe5d35b677a3ac4a6205fbb691a6e4e40306b540fd28eac49bf4895f5acb9009c359f9e50380cc7a591de0a7
6
+ metadata.gz: d84b913b19b3f0091af69c83f365842018fc6ca2874df0148261fa972d23aaf3985fda94f871963b851d8007486f373626bd3604657beba8ce5a26e8ecb88d6f
7
+ data.tar.gz: df78ccd67a05f1abc3d2021e6d4652107df21868c6836f8afe167859b27677549b9bcd71672bad1fd59679633080def04d377c204dfec752f3f367920f3b1c16
@@ -1,5 +1,11 @@
1
1
  # OmniToken Changelog
2
2
 
3
+ ## v0.0.3
4
+ * Add Pocket support.
5
+
6
+ ## v0.0.2
7
+ * Just bump the version, because I made a mistake when pushing the gem.
8
+
3
9
  ## v0.0.1
4
10
  * First alphaish release as a gem.
5
11
  * Twitter and Facebook are supported.
data/README.md CHANGED
@@ -24,6 +24,7 @@ Follow next section to add some providers. You need to restart the web server af
24
24
  To get the token from a provider, a tiny configuration file is required. OmniToken has been tested with following providers and a configuration template is shipped for each of them:
25
25
  * Twitter
26
26
  * Facebook
27
+ * Pocket
27
28
 
28
29
  ### Twitter
29
30
  First, install the twitter strategy gem:
@@ -47,6 +48,17 @@ Copy the facebook template by running:
47
48
 
48
49
  A `facebook.yml` file will be created in `providers` folder in your working directory. Open it using your favorite editor and fill the fileds. The values can be found on your facebook application page you registered beforehand.
49
50
 
51
+ ### Pocket
52
+ First, install the facebook strategy gem:
53
+
54
+ `gem install omniauth-pocket`
55
+
56
+ Copy the pocket template by running:
57
+
58
+ `omnitoken -a pocket`
59
+
60
+ A `pocket.yml` file will be created in `providers` folder in your working directory. Open it using your favorite editor and fill the fileds. The values can be found on your pocket application page you registered beforehand.
61
+
50
62
  ### Others
51
63
  Theoretically, OmniToken can be support any provider as long as there is a OmniAuth strategy for it. Please follow these steps to add a provider which doesn't have a shipped template.
52
64
 
@@ -7,7 +7,7 @@ require 'yaml'
7
7
  # This is the Sinatra application for getting tokens.
8
8
  class OmniTokenApp < Sinatra::Base
9
9
  # version number
10
- VERSION = '0.0.2'
10
+ VERSION = '0.0.3'
11
11
 
12
12
  # configuration folder for various OAuth providers
13
13
  PROVIDER_DIR = 'providers'
@@ -0,0 +1,2 @@
1
+ client_id: "CLIENT_ID"
2
+ client_secret: "CLIENT_SECRET"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnitoken
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minjie Zha
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-14 00:00:00.000000000 Z
11
+ date: 2013-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -81,6 +81,7 @@ files:
81
81
  - public/style.css
82
82
  - templates/twitter.yml
83
83
  - templates/facebook.yml
84
+ - templates/pocket.yml
84
85
  - views/error.haml
85
86
  - views/layout.haml
86
87
  - views/results.haml