vidibus-user 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source :rubygems
2
- gem "rails", "~> 3.0.0"
3
- gem "mongoid", "~> 2.0.0"
2
+ gem "rails", "~> 3.0"
3
+ gem "mongoid", "~> 2.0"
4
4
  gem "warden"
5
5
  gem "oauth2"
6
6
  gem "json"
@@ -11,7 +11,7 @@ gem "vidibus-secure"
11
11
  group :development do
12
12
  gem "jeweler"
13
13
  gem "rake"
14
- gem "rspec", "~> 2.0.0"
14
+ gem "rspec", "~> 2"
15
15
  gem "rr"
16
16
  gem "relevance-rcov"
17
17
  gem "webmock"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
@@ -30,7 +30,7 @@ Warden::Strategies.add(:connector) do
30
30
 
31
31
  # Returns the current realm
32
32
  def realm
33
- @realm ||= params["realm"] || env[:realm] || raise("No realm available!")
33
+ @realm ||= params["realm"] || env[:realm] || raise(Vidibus::User::NoRealmError, "No realm available!")
34
34
  end
35
35
 
36
36
  # Returns OAuth client
data/lib/vidibus-user.rb CHANGED
@@ -5,8 +5,11 @@ require "user"
5
5
 
6
6
  module Vidibus
7
7
  module User
8
+ class Error < StandardError; end
9
+ class NoRealmError < Error; end
10
+
8
11
  class Engine < ::Rails::Engine
9
-
12
+
10
13
  # Add warden to rack stack and use connector strategy.
11
14
  config.app_middleware.use Warden::Manager do |manager|
12
15
  manager.default_strategies :connector
data/vidibus-user.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vidibus-user}
8
- s.version = "0.0.8"
8
+ s.version = "0.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Andre Pankratz"]
12
- s.date = %q{2011-05-04}
12
+ s.date = %q{2011-05-09}
13
13
  s.description = %q{Provides single sign-on and a local user model.}
14
14
  s.email = %q{andre@vidibus.com}
15
15
  s.extra_rdoc_files = [
@@ -40,16 +40,13 @@ Gem::Specification.new do |s|
40
40
  s.require_paths = ["lib"]
41
41
  s.rubygems_version = %q{1.6.2}
42
42
  s.summary = %q{Single sign-on for Vidibus applications.}
43
- s.test_files = [
44
- "spec/spec_helper.rb"
45
- ]
46
43
 
47
44
  if s.respond_to? :specification_version then
48
45
  s.specification_version = 3
49
46
 
50
47
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_runtime_dependency(%q<rails>, ["~> 3.0.0"])
52
- s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.0"])
48
+ s.add_runtime_dependency(%q<rails>, ["~> 3.0"])
49
+ s.add_runtime_dependency(%q<mongoid>, ["~> 2.0"])
53
50
  s.add_runtime_dependency(%q<warden>, [">= 0"])
54
51
  s.add_runtime_dependency(%q<oauth2>, [">= 0"])
55
52
  s.add_runtime_dependency(%q<json>, [">= 0"])
@@ -57,13 +54,13 @@ Gem::Specification.new do |s|
57
54
  s.add_runtime_dependency(%q<vidibus-secure>, [">= 0"])
58
55
  s.add_development_dependency(%q<jeweler>, [">= 0"])
59
56
  s.add_development_dependency(%q<rake>, [">= 0"])
60
- s.add_development_dependency(%q<rspec>, ["~> 2.0.0"])
57
+ s.add_development_dependency(%q<rspec>, ["~> 2"])
61
58
  s.add_development_dependency(%q<rr>, [">= 0"])
62
59
  s.add_development_dependency(%q<relevance-rcov>, [">= 0"])
63
60
  s.add_development_dependency(%q<webmock>, [">= 0"])
64
61
  else
65
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
66
- s.add_dependency(%q<mongoid>, ["~> 2.0.0"])
62
+ s.add_dependency(%q<rails>, ["~> 3.0"])
63
+ s.add_dependency(%q<mongoid>, ["~> 2.0"])
67
64
  s.add_dependency(%q<warden>, [">= 0"])
68
65
  s.add_dependency(%q<oauth2>, [">= 0"])
69
66
  s.add_dependency(%q<json>, [">= 0"])
@@ -71,14 +68,14 @@ Gem::Specification.new do |s|
71
68
  s.add_dependency(%q<vidibus-secure>, [">= 0"])
72
69
  s.add_dependency(%q<jeweler>, [">= 0"])
73
70
  s.add_dependency(%q<rake>, [">= 0"])
74
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
71
+ s.add_dependency(%q<rspec>, ["~> 2"])
75
72
  s.add_dependency(%q<rr>, [">= 0"])
76
73
  s.add_dependency(%q<relevance-rcov>, [">= 0"])
77
74
  s.add_dependency(%q<webmock>, [">= 0"])
78
75
  end
79
76
  else
80
- s.add_dependency(%q<rails>, ["~> 3.0.0"])
81
- s.add_dependency(%q<mongoid>, ["~> 2.0.0"])
77
+ s.add_dependency(%q<rails>, ["~> 3.0"])
78
+ s.add_dependency(%q<mongoid>, ["~> 2.0"])
82
79
  s.add_dependency(%q<warden>, [">= 0"])
83
80
  s.add_dependency(%q<oauth2>, [">= 0"])
84
81
  s.add_dependency(%q<json>, [">= 0"])
@@ -86,7 +83,7 @@ Gem::Specification.new do |s|
86
83
  s.add_dependency(%q<vidibus-secure>, [">= 0"])
87
84
  s.add_dependency(%q<jeweler>, [">= 0"])
88
85
  s.add_dependency(%q<rake>, [">= 0"])
89
- s.add_dependency(%q<rspec>, ["~> 2.0.0"])
86
+ s.add_dependency(%q<rspec>, ["~> 2"])
90
87
  s.add_dependency(%q<rr>, [">= 0"])
91
88
  s.add_dependency(%q<relevance-rcov>, [">= 0"])
92
89
  s.add_dependency(%q<webmock>, [">= 0"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-user
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andre Pankratz
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-04 00:00:00 +02:00
18
+ date: 2011-05-09 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -30,8 +30,7 @@ dependencies:
30
30
  segments:
31
31
  - 3
32
32
  - 0
33
- - 0
34
- version: 3.0.0
33
+ version: "3.0"
35
34
  name: rails
36
35
  version_requirements: *id001
37
36
  - !ruby/object:Gem::Dependency
@@ -42,12 +41,11 @@ dependencies:
42
41
  requirements:
43
42
  - - ~>
44
43
  - !ruby/object:Gem::Version
45
- hash: 15
44
+ hash: 3
46
45
  segments:
47
46
  - 2
48
47
  - 0
49
- - 0
50
- version: 2.0.0
48
+ version: "2.0"
51
49
  name: mongoid
52
50
  version_requirements: *id002
53
51
  - !ruby/object:Gem::Dependency
@@ -156,12 +154,10 @@ dependencies:
156
154
  requirements:
157
155
  - - ~>
158
156
  - !ruby/object:Gem::Version
159
- hash: 15
157
+ hash: 7
160
158
  segments:
161
159
  - 2
162
- - 0
163
- - 0
164
- version: 2.0.0
160
+ version: "2"
165
161
  name: rspec
166
162
  version_requirements: *id010
167
163
  - !ruby/object:Gem::Dependency
@@ -268,5 +264,5 @@ rubygems_version: 1.6.2
268
264
  signing_key:
269
265
  specification_version: 3
270
266
  summary: Single sign-on for Vidibus applications.
271
- test_files:
272
- - spec/spec_helper.rb
267
+ test_files: []
268
+