omniauth-troopid 0.1.0 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/README.md +1 -1
- data/lib/omniauth/strategies/troopid.rb +6 -1
- data/lib/omniauth-troopid/version.rb +1 -1
- metadata +5 -4
- data/.rvmrc +0 -1
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
omniauth-troopid
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-1.9.3-p429
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# OmniAuth Troop ID
|
2
2
|
|
3
|
-
This gem contains the Troop ID strategy for OmniAuth 2.0.
|
3
|
+
This gem contains the Troop ID strategy for [OmniAuth 2.0](https://github.com/intridea/omniauth).
|
4
4
|
|
5
5
|
Troop ID offers online brands a secure, real-time method for verifying the military affiliation of their customers online. By verifying military affiliation companies can tailor the user experience on their platform to offer discounts or other benefits.
|
6
6
|
|
@@ -29,8 +29,13 @@ module OmniAuth
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def data
|
32
|
-
@data ||= access_token.get("/v1/me.json").parsed
|
32
|
+
@data ||= access_token.get("/v1/me.json", :headers => headers).parsed
|
33
33
|
end
|
34
|
+
|
35
|
+
def headers
|
36
|
+
{ "X-API-ORIGIN" => "OMNIAUTH-TID" }
|
37
|
+
end
|
38
|
+
|
34
39
|
end
|
35
40
|
end
|
36
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omniauth-troopid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2013-05-20 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: omniauth-oauth2
|
@@ -101,7 +101,8 @@ extra_rdoc_files: []
|
|
101
101
|
files:
|
102
102
|
- .gitignore
|
103
103
|
- .rspec
|
104
|
-
- .
|
104
|
+
- .ruby-gemset
|
105
|
+
- .ruby-version
|
105
106
|
- Gemfile
|
106
107
|
- README.md
|
107
108
|
- Rakefile
|
@@ -133,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
133
134
|
version: '0'
|
134
135
|
requirements: []
|
135
136
|
rubyforge_project:
|
136
|
-
rubygems_version: 1.8.
|
137
|
+
rubygems_version: 1.8.25
|
137
138
|
signing_key:
|
138
139
|
specification_version: 3
|
139
140
|
summary: Troop ID strategy for OmniAuth
|
data/.rvmrc
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
rvm --create 1.9.3@omniauth-troopid
|