simple-auth 0.3.8 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -2,8 +2,11 @@ source :gemcutter
2
2
 
3
3
  gem 'rest-client', :require => 'rest_client'
4
4
  gem 'yajl-ruby', :require => 'yajl'
5
+ gem 'rake'
6
+ gem 'jeweler'
7
+ gem 'yard'
5
8
 
6
9
  group :test do
7
- gem 'rspec', '2.0.0.beta.19'
10
+ gem 'rspec'
8
11
  gem 'fakeweb'
9
12
  end
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ begin
10
10
  gem.email = "uchouhan@optimiscorp.com"
11
11
  gem.homepage = "http://github.com/uchouhan/simple-auth"
12
12
  gem.authors = ["Umang Chouhan"]
13
- gem.add_development_dependency "rspec", ">= 2.0.0.beta.16"
13
+ gem.add_development_dependency "rspec"
14
14
  gem.add_development_dependency "yard", ">= 0"
15
15
  gem.add_dependency 'yajl-ruby', '>= 0'
16
16
  gem.add_dependency 'rest-client', '>= 0'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.4.0
@@ -31,7 +31,7 @@ module SimpleAuth
31
31
  private
32
32
 
33
33
  def set_user_session(user_session)
34
- session[:current_session] = Yajl::Parser.new.parse(user_session)['session']
34
+ session[:current_session] = Yajl::Parser.new.parse(user_session)
35
35
  end
36
36
  end
37
37
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{simple-auth}
8
- s.version = "0.3.8"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Umang Chouhan"]
12
- s.date = %q{2010-08-01}
12
+ s.date = %q{2010-08-31}
13
13
  s.description = %q{Provides a simple API to authenticate with a rails application}
14
14
  s.email = %q{uchouhan@optimiscorp.com}
15
15
  s.extra_rdoc_files = [
@@ -55,18 +55,18 @@ Gem::Specification.new do |s|
55
55
  s.specification_version = 3
56
56
 
57
57
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
58
- s.add_development_dependency(%q<rspec>, [">= 2.0.0.beta.16"])
58
+ s.add_development_dependency(%q<rspec>, [">= 0"])
59
59
  s.add_development_dependency(%q<yard>, [">= 0"])
60
60
  s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
61
61
  s.add_runtime_dependency(%q<rest-client>, [">= 0"])
62
62
  else
63
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.16"])
63
+ s.add_dependency(%q<rspec>, [">= 0"])
64
64
  s.add_dependency(%q<yard>, [">= 0"])
65
65
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
66
66
  s.add_dependency(%q<rest-client>, [">= 0"])
67
67
  end
68
68
  else
69
- s.add_dependency(%q<rspec>, [">= 2.0.0.beta.16"])
69
+ s.add_dependency(%q<rspec>, [">= 0"])
70
70
  s.add_dependency(%q<yard>, [">= 0"])
71
71
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
72
72
  s.add_dependency(%q<rest-client>, [">= 0"])
@@ -25,7 +25,7 @@ describe SimpleAuth do
25
25
  subject.stub!(:session => {})
26
26
  subject.login
27
27
 
28
- subject.session[:current_session].should == "test"
28
+ subject.session[:current_session].should == {"session"=>"test", "user"=>"test"}
29
29
  end
30
30
  end
31
31
 
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'bundler'
3
+
3
4
  Bundler.setup
4
5
  Bundler.require(:default, :test)
5
6
 
@@ -12,7 +13,7 @@ require 'spec/support/mock_requests'
12
13
 
13
14
  FakeWeb.allow_net_connect = false
14
15
 
15
- RSpec.configure do |config|
16
+ Spec::Runner.configure do |config|
16
17
  config.before(:each) do
17
18
  FakeWeb.clean_registry
18
19
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-auth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 8
10
- version: 0.3.8
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Umang Chouhan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-01 00:00:00 -07:00
18
+ date: 2010-08-31 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,14 +26,10 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- hash: 62196419
29
+ hash: 3
30
30
  segments:
31
- - 2
32
31
  - 0
33
- - 0
34
- - beta
35
- - 16
36
- version: 2.0.0.beta.16
32
+ version: "0"
37
33
  type: :development
38
34
  version_requirements: *id001
39
35
  - !ruby/object:Gem::Dependency