vouch 0.0.3.pre1 → 0.0.3.pre2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +37 -0
- data/README.md +15 -3
- data/Rakefile +2 -0
- data/VERSION +1 -1
- data/app/controllers/vouch/auth_controller.rb +1 -0
- data/vouch.gemspec +9 -2
- metadata +38 -6
data/Gemfile.lock
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
vouch (0.0.3.pre1)
|
5
|
+
oauth2 (~> 0.0.13)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: http://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.2.0)
|
11
|
+
faraday (0.4.6)
|
12
|
+
addressable (>= 2.1.1)
|
13
|
+
rack (>= 1.0.1)
|
14
|
+
gemcutter (0.6.1)
|
15
|
+
git (1.2.5)
|
16
|
+
jeweler (1.4.0)
|
17
|
+
gemcutter (>= 0.1.0)
|
18
|
+
git (>= 1.2.5)
|
19
|
+
rubyforge (>= 2.0.0)
|
20
|
+
json_pure (1.4.6)
|
21
|
+
multi_json (0.0.4)
|
22
|
+
oauth2 (0.0.13)
|
23
|
+
faraday (~> 0.4.1)
|
24
|
+
multi_json (>= 0.0.4)
|
25
|
+
rack (1.2.1)
|
26
|
+
rake (0.8.7)
|
27
|
+
rubyforge (2.0.4)
|
28
|
+
json_pure (>= 1.1.7)
|
29
|
+
|
30
|
+
PLATFORMS
|
31
|
+
ruby
|
32
|
+
|
33
|
+
DEPENDENCIES
|
34
|
+
jeweler
|
35
|
+
oauth2
|
36
|
+
rake
|
37
|
+
vouch!
|
data/README.md
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
Vouch
|
2
2
|
=====
|
3
3
|
|
4
|
-
|
4
|
+
_Please Note_
|
5
5
|
|
6
|
-
This is very alpha code at the moment, I just extracted it from a project I am working on.
|
6
|
+
This is very alpha code at the moment, I just extracted it from a project I am working on.
|
7
7
|
|
8
8
|
About
|
9
9
|
-----
|
@@ -15,9 +15,13 @@ Client
|
|
15
15
|
|
16
16
|
To use, include in your `Gemfile`
|
17
17
|
|
18
|
+
gem "vouch"
|
19
|
+
|
20
|
+
or, to get the latest changes:
|
21
|
+
|
18
22
|
gem "vouch", :git => "git://github.com/dpmcnevin/vouch.git"
|
19
23
|
|
20
|
-
|
24
|
+
Then, run the generator
|
21
25
|
|
22
26
|
rails generate vouch:client
|
23
27
|
|
@@ -27,6 +31,14 @@ Provider
|
|
27
31
|
|
28
32
|
Coming in future releases.
|
29
33
|
|
34
|
+
Acknowledgements
|
35
|
+
----------------
|
36
|
+
|
37
|
+
* [Intridea's OAuth2 gem](http://github.com/intridea/oauth2)
|
38
|
+
* [The Modest Rubyist](http://www.themodestrubyist.com/2010/03/05/rails-3-plugins---part-2---writing-an-engine/)
|
39
|
+
* [OAuth2 Draft Spec](http://tools.ietf.org/html/draft-ietf-oauth-v2)
|
40
|
+
|
30
41
|
Maintainer
|
31
42
|
----------
|
43
|
+
|
32
44
|
Dan McNevin - dpmcnevin@gmail.com
|
data/Rakefile
CHANGED
@@ -10,6 +10,8 @@ begin
|
|
10
10
|
gemspec.email = "dpmcnevin@gmail.com"
|
11
11
|
gemspec.homepage = "http://github.com/dpmcnevin/vouch"
|
12
12
|
gemspec.authors = ["Daniel McNevin"]
|
13
|
+
gemspec.add_dependency(%q<oauth2>, ["~> 0.0.13"])
|
14
|
+
gemspec.add_dependency(%q<json>, ["~> 1.4.6"])
|
13
15
|
end
|
14
16
|
rescue LoadError
|
15
17
|
puts "Jeweler not available. Install it with: gem install jeweler"
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.3.
|
1
|
+
0.0.3.pre2
|
@@ -24,6 +24,7 @@ module Vouch
|
|
24
24
|
@user = User.find_or_create_by_email(user)
|
25
25
|
session[:user_id] = @user.id
|
26
26
|
session[:expires_at] = access_token.expires_at
|
27
|
+
@user.update_attributes(user)
|
27
28
|
redirect_to session[:return_to] || root_path
|
28
29
|
else
|
29
30
|
render :text => "Unauthorized", :status => 401
|
data/vouch.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vouch}
|
8
|
-
s.version = "0.0.3.
|
8
|
+
s.version = "0.0.3.pre2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Daniel McNevin"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-27}
|
13
13
|
s.description = %q{OAuth2 Server and Client Engines}
|
14
14
|
s.email = %q{dpmcnevin@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.files = [
|
20
20
|
"Gemfile",
|
21
|
+
"Gemfile.lock",
|
21
22
|
"LICENSE",
|
22
23
|
"README.md",
|
23
24
|
"Rakefile",
|
@@ -43,9 +44,15 @@ Gem::Specification.new do |s|
|
|
43
44
|
s.specification_version = 3
|
44
45
|
|
45
46
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
|
+
s.add_runtime_dependency(%q<oauth2>, ["~> 0.0.13"])
|
48
|
+
s.add_runtime_dependency(%q<json>, ["~> 1.4.6"])
|
46
49
|
else
|
50
|
+
s.add_dependency(%q<oauth2>, ["~> 0.0.13"])
|
51
|
+
s.add_dependency(%q<json>, ["~> 1.4.6"])
|
47
52
|
end
|
48
53
|
else
|
54
|
+
s.add_dependency(%q<oauth2>, ["~> 0.0.13"])
|
55
|
+
s.add_dependency(%q<json>, ["~> 1.4.6"])
|
49
56
|
end
|
50
57
|
end
|
51
58
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vouch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1876988179
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
9
|
- 3
|
10
|
-
-
|
11
|
-
version: 0.0.3.
|
10
|
+
- pre2
|
11
|
+
version: 0.0.3.pre2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Daniel McNevin
|
@@ -16,10 +16,41 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-
|
19
|
+
date: 2010-09-27 00:00:00 -04:00
|
20
20
|
default_executable:
|
21
|
-
dependencies:
|
22
|
-
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
prerelease: false
|
24
|
+
type: :runtime
|
25
|
+
name: oauth2
|
26
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ~>
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 5
|
32
|
+
segments:
|
33
|
+
- 0
|
34
|
+
- 0
|
35
|
+
- 13
|
36
|
+
version: 0.0.13
|
37
|
+
requirement: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
prerelease: false
|
40
|
+
type: :runtime
|
41
|
+
name: json
|
42
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 11
|
48
|
+
segments:
|
49
|
+
- 1
|
50
|
+
- 4
|
51
|
+
- 6
|
52
|
+
version: 1.4.6
|
53
|
+
requirement: *id002
|
23
54
|
description: OAuth2 Server and Client Engines
|
24
55
|
email: dpmcnevin@gmail.com
|
25
56
|
executables: []
|
@@ -31,6 +62,7 @@ extra_rdoc_files:
|
|
31
62
|
- README.md
|
32
63
|
files:
|
33
64
|
- Gemfile
|
65
|
+
- Gemfile.lock
|
34
66
|
- LICENSE
|
35
67
|
- README.md
|
36
68
|
- Rakefile
|