omniauth-teamsnap 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 80bac829b682cbeb14212a9919933a9869a217cd
4
- data.tar.gz: 280b05a5c3dd4659eda115e3de1cd6cd08f1aa90
2
+ SHA256:
3
+ metadata.gz: 44c395c90f0f37526dadf1dec317bcea0ff8fd24d6486fce89eeab9ea3f61bac
4
+ data.tar.gz: d3c034817e3f709a4618725a14ae137360468bd3876378183019de114f0b458c
5
5
  SHA512:
6
- metadata.gz: 2d29dff31559c7d4463231d29bfb476a187076e5fadab953b79abc74e6e22722fcbb7c86d1f5bac4ae5cf90a123004efc8bdaaebe0d3a95fcebf41b36d065342
7
- data.tar.gz: bfb133db7739153a02254b5199c878a64360686fb53b56b078bf12c7657c9c3a203dabf06176712f13323a387272d0176fad5995b245e5511546ac26ad96a1e1
6
+ metadata.gz: 4677dba6dbd96ecc41a122f312eb4ba2a169703bdb756b718ed0a31ccbd806cde7494195f9b5edcceba553b45d41f2e4049cd29e38a32c9c7fdd2df0c47915fe
7
+ data.tar.gz: a39f92e20f4138dc886fe52995554dfecba216c2d6b1ae9a0527f172e49d75588da175bdfd21bbb748c92b5018e0a3132a4a35fcc911e475a220c06a2fd3b8a6
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Teamsnap
3
- VERSION = "1.2.0"
3
+ VERSION = "1.3.0"
4
4
  end
5
5
  end
@@ -23,8 +23,12 @@ module OmniAuth
23
23
  end
24
24
 
25
25
  def raw_info
26
- return @raw_info if @raw_info
26
+ @raw_info ||= get_raw_info
27
+ end
28
+
29
+ private
27
30
 
31
+ def get_raw_info
28
32
  # TeamSnap /me endpoint is not compatible with standard oauth2
29
33
  # access_token.get(url).parsed calls because oauth2 doesn't parse
30
34
  # responses with Content-Type: application/vnd.collection+json
@@ -34,11 +38,9 @@ module OmniAuth
34
38
  end
35
39
  collection_json = JSON.parse(response.body)
36
40
 
37
- @raw_info = collection_json["collection"]["items"].first.fetch("data")
41
+ collection_json["collection"]["items"].first.fetch("data")
38
42
  end
39
43
 
40
- private
41
-
42
44
  def parse_datum(property)
43
45
  raw_info.find { |d| d["name"] == property }.fetch("value")
44
46
  end
@@ -17,10 +17,9 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "omniauth", "~> 1.2"
21
- spec.add_dependency "omniauth-oauth2", "1.3.1"
22
- spec.add_dependency "faraday", "~> 0.9", ">= 0.9.2"
23
- spec.add_development_dependency "rspec", "~> 2.7"
20
+ spec.add_dependency "omniauth", "~> 1.8"
21
+ spec.add_dependency "omniauth-oauth2", "~> 1.5"
22
+ spec.add_development_dependency "rspec", "~> 3.8"
24
23
  spec.add_development_dependency "rack-test"
25
24
  spec.add_development_dependency "simplecov"
26
25
  spec.add_development_dependency "webmock"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-teamsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-05 00:00:00.000000000 Z
11
+ date: 2018-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -16,62 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.2'
19
+ version: '1.8'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.2'
26
+ version: '1.8'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: omniauth-oauth2
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - '='
32
- - !ruby/object:Gem::Version
33
- version: 1.3.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - '='
39
- - !ruby/object:Gem::Version
40
- version: 1.3.1
41
- - !ruby/object:Gem::Dependency
42
- name: faraday
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
31
  - - "~>"
46
32
  - !ruby/object:Gem::Version
47
- version: '0.9'
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 0.9.2
33
+ version: '1.5'
51
34
  type: :runtime
52
35
  prerelease: false
53
36
  version_requirements: !ruby/object:Gem::Requirement
54
37
  requirements:
55
38
  - - "~>"
56
39
  - !ruby/object:Gem::Version
57
- version: '0.9'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 0.9.2
40
+ version: '1.5'
61
41
  - !ruby/object:Gem::Dependency
62
42
  name: rspec
63
43
  requirement: !ruby/object:Gem::Requirement
64
44
  requirements:
65
45
  - - "~>"
66
46
  - !ruby/object:Gem::Version
67
- version: '2.7'
47
+ version: '3.8'
68
48
  type: :development
69
49
  prerelease: false
70
50
  version_requirements: !ruby/object:Gem::Requirement
71
51
  requirements:
72
52
  - - "~>"
73
53
  - !ruby/object:Gem::Version
74
- version: '2.7'
54
+ version: '3.8'
75
55
  - !ruby/object:Gem::Dependency
76
56
  name: rack-test
77
57
  requirement: !ruby/object:Gem::Requirement
@@ -153,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
133
  version: '0'
154
134
  requirements: []
155
135
  rubyforge_project:
156
- rubygems_version: 2.6.11
136
+ rubygems_version: 2.7.6
157
137
  signing_key:
158
138
  specification_version: 4
159
139
  summary: Official OmniAuth strategy for TeamSnap