omniauth-vimeo 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +25 -4
- data/lib/omniauth-vimeo/version.rb +1 -1
- data/lib/omniauth/strategies/vimeo.rb +1 -1
- data/omniauth-vimeo.gemspec +1 -0
- metadata +33 -22
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: eb83a7b1de064eab852a85cc92c679f73b35a859
|
4
|
+
data.tar.gz: 2e8c732d473b46db12f637ef6b3069a45d430898
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 451bd333ab11121754737c629ff56b1e9c9c5bfffc9190bac119ccfeeab6f01604d83f5ffac3c77620685a00dfc1205cb96b2a4b814dc95e6b8ee2ac55446aab
|
7
|
+
data.tar.gz: 8907f758508961341b425640950328ed11bceefb9decdf95b1cf0464c13fee720fad6e4f3440d9888580f959ccb8ea20142ece58cb9eb8d4483548f213d9949e
|
data/README.md
CHANGED
@@ -5,20 +5,41 @@ use it, you'll need to sign up for an OAuth Application ID and Secret
|
|
5
5
|
on the [Vimeo Applications Page](https://developer.vimeo.com/apps).
|
6
6
|
You can read more about Vimdeo's oauth over at their [developer page](https://developer.vimeo.com/apis/advanced#oauth)
|
7
7
|
|
8
|
-
## Basic Usage
|
9
8
|
|
10
|
-
|
9
|
+
## Installation
|
10
|
+
|
11
|
+
Add this line to your application's Gemfile:
|
11
12
|
|
12
13
|
gem 'omniauth-vimeo'
|
13
14
|
|
14
|
-
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install omniauth-vimeo
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
If omniauth-vimeo is ready to go, you need to add the following lines to your `config/initializers/omniauth.rb`:
|
15
26
|
|
16
27
|
use OmniAuth::Builder do
|
17
|
-
|
28
|
+
provider :vimeo, ENV['VIMEO_KEY'], ENV['VIMEO_SECRET']
|
29
|
+
end
|
30
|
+
|
31
|
+
If you need write permission use the following lines:
|
32
|
+
|
33
|
+
use OmniAuth::Builder do
|
34
|
+
provider :vimeo, ENV['VIMEO_KEY'], ENV['VIMEO_SECRET'], authorize_params: {permission: "write"}
|
18
35
|
end
|
19
36
|
|
20
37
|
You need to replace the VIMEO_KEY and VIMEO_SECRET with your own credentials, you can get them at the Vimeo's developer page as mention above.
|
21
38
|
|
39
|
+
Open the following URL and connect your Vimeo account with your application:
|
40
|
+
|
41
|
+
/auth/vimeo
|
42
|
+
|
22
43
|
## Supported Rubies
|
23
44
|
|
24
45
|
OmniAuth Vimeo is tested under 1.8.7, 1.9.2, 1.9.3 and Ruby Enterprise Edition.
|
data/omniauth-vimeo.gemspec
CHANGED
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.homepage = "https://github.com/beanieboi/omniauth-vimeo"
|
11
11
|
gem.description = %q{OmniAuth strategy for Vimeo}
|
12
12
|
gem.summary = gem.description
|
13
|
+
gem.licenses = [ 'MIT' ]
|
13
14
|
|
14
15
|
gem.files = `git ls-files`.split($\)
|
15
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,60 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-vimeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Benjamin Fritsch
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-10-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: multi_json
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.3'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: omniauth-oauth
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ~>
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '1.0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rspec
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '2.9'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.9'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: rake
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
59
|
- - ~>
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '0.9'
|
55
62
|
type: :development
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.9'
|
58
69
|
description: OmniAuth strategy for Vimeo
|
59
70
|
email:
|
60
71
|
- beanie@benle.de
|
@@ -73,28 +84,28 @@ files:
|
|
73
84
|
- spec/omniauth/strategies/vimeo_spec.rb
|
74
85
|
- spec/spec_helper.rb
|
75
86
|
homepage: https://github.com/beanieboi/omniauth-vimeo
|
76
|
-
licenses:
|
87
|
+
licenses:
|
88
|
+
- MIT
|
89
|
+
metadata: {}
|
77
90
|
post_install_message:
|
78
91
|
rdoc_options: []
|
79
92
|
require_paths:
|
80
93
|
- lib
|
81
94
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
95
|
requirements:
|
84
|
-
- -
|
96
|
+
- - '>='
|
85
97
|
- !ruby/object:Gem::Version
|
86
98
|
version: '0'
|
87
99
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
|
-
none: false
|
89
100
|
requirements:
|
90
|
-
- -
|
101
|
+
- - '>='
|
91
102
|
- !ruby/object:Gem::Version
|
92
103
|
version: 1.3.6
|
93
104
|
requirements: []
|
94
105
|
rubyforge_project:
|
95
|
-
rubygems_version:
|
106
|
+
rubygems_version: 2.0.2
|
96
107
|
signing_key:
|
97
|
-
specification_version:
|
108
|
+
specification_version: 4
|
98
109
|
summary: OmniAuth strategy for Vimeo
|
99
110
|
test_files:
|
100
111
|
- spec/omniauth/strategies/vimeo_spec.rb
|