oa-recruitmilitary 0.0.7 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Recruitmilitary
3
- VERSION = "0.0.7"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -16,8 +16,8 @@ module OmniAuth
16
16
  class Configuration
17
17
 
18
18
  DEFAULT_SITE = 'http://connect.recruitmilitary.com'
19
- DEFAULT_AUTHORIZE_PATH = '/auth/authorize'
20
- DEFAULT_ACCESS_TOKEN_PATH = '/auth/access_token'
19
+ DEFAULT_AUTHORIZE_PATH = '/oauth/authorize'
20
+ DEFAULT_ACCESS_TOKEN_PATH = '/oauth/access_token'
21
21
  DEFAULT_USER_DATA_PATH = '/auth/user.json'
22
22
 
23
23
  attr_accessor :site, :authorize_url, :access_token_url, :user_data_url
@@ -37,7 +37,10 @@ module OmniAuth
37
37
  'email' => user_hash['email'],
38
38
  'roles' => user_hash['roles'],
39
39
  'first_name' => user_hash['first_name'],
40
- 'last_name' => user_hash['last_name']
40
+ 'last_name' => user_hash['last_name'],
41
+ 'military_branch_id' => user_hash['military_branch_id'],
42
+ 'military_status_id' => user_hash['military_status_id'],
43
+ 'gender_id' => user_hash['gender_id'],
41
44
  }
42
45
  })
43
46
  end
@@ -17,7 +17,7 @@ describe OmniAuth::RecruitMilitary do
17
17
 
18
18
  context 'without modification' do
19
19
  it 'has sane values' do
20
- config.authorize_url.should == 'http://connect.recruitmilitary.com/auth/authorize'
20
+ config.authorize_url.should == 'http://connect.recruitmilitary.com/oauth/authorize'
21
21
  end
22
22
  end
23
23
 
@@ -25,8 +25,8 @@ describe OmniAuth::RecruitMilitary do
25
25
  it 'updates all related urls' do
26
26
  config.site = 'http://localhost:3000'
27
27
 
28
- config.authorize_url.should == 'http://localhost:3000/auth/authorize'
29
- config.access_token_url.should == 'http://localhost:3000/auth/access_token'
28
+ config.authorize_url.should == 'http://localhost:3000/oauth/authorize'
29
+ config.access_token_url.should == 'http://localhost:3000/oauth/access_token'
30
30
  config.user_data_url.should == 'http://localhost:3000/auth/user.json'
31
31
  end
32
32
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oa-recruitmilitary
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 7
10
- version: 0.0.7
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Guterl
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-22 00:00:00 -04:00
19
- default_executable:
18
+ date: 2012-01-26 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: omniauth
@@ -70,7 +69,6 @@ files:
70
69
  - lib/omniauth/strategies/recruitmilitary.rb
71
70
  - oa-recruitmilitary.gemspec
72
71
  - spec/recruitmilitary_spec.rb
73
- has_rdoc: true
74
72
  homepage: http://connect.recruitmilitary.com
75
73
  licenses: []
76
74
 
@@ -100,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
98
  requirements: []
101
99
 
102
100
  rubyforge_project: oa-recruitmilitary
103
- rubygems_version: 1.6.2
101
+ rubygems_version: 1.8.10
104
102
  signing_key:
105
103
  specification_version: 3
106
104
  summary: OmniAuth extension for RecruitMilitary.com authentication