faraday_middleware-oauth2_refresh 0.0.2 → 0.0.3

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
2
  SHA1:
3
- metadata.gz: 160136f4480f6302ee16eacff55076094e467732
4
- data.tar.gz: 7a26010b3b5f23b7366fc7b217e93f3554a8296f
3
+ metadata.gz: 166131c41ebb86eebeed0a8591c2812413c05495
4
+ data.tar.gz: 9fd9c422e5f2bac9947554e241f77f0684d3669c
5
5
  SHA512:
6
- metadata.gz: 56fdf7b0cbf07320f74bca33c6a7a988f204db180ad868248b1fcef156989936eff3c0bc4391b07024a3c36927920e8731f050a042f40d5daae494a696365178
7
- data.tar.gz: 15fd07725a0b1b7718c25da179fca243c54fcc008c0a57a20d9535d43c417caf20a2d060c5a9f8442ef28f3fbc9962a1f6db112b0e372df0f3af3847555e602d
6
+ metadata.gz: 9acb20fa52d5387f1247755e1b93ed3d9fccded97de37a6ca6a9fdca216d870c29d4c91e857aad1eba10869474c5088319a300eecf7da4f46a53cd2f37a85931
7
+ data.tar.gz: 965572b1994399922d558ca6294f4aa830737e0f9db9a138fbe2855e7cd4b0dcdfb282710255e7e869ec338f7a86120dc524c34a17af8f1bc03a975276de5228
@@ -1,4 +1,8 @@
1
1
  CHANGELOG
2
2
  ---------
3
+ - **2016-08-23**: 0.0.3
4
+ - Update dependencies
5
+ - **2015-05-31**: 0.0.2
6
+ - Update dependencies
3
7
  - **2015-05-31**: 0.0.1
4
8
  - Initial release
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015 John Wang
1
+ Copyright (c) 2015-2016 John Wang
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # FaradayMiddleware::OAuth2Refresh
2
2
 
3
+ [![Gem Version][gem-version-svg]][gem-version-link]
4
+ [![Build Status][build-status-svg]][build-status-link]
5
+ [![Coverage Status][coverage-status-svg]][coverage-status-link]
6
+ [![Dependency Status][dependency-status-svg]][dependency-status-link]
7
+ [![Code Climate][codeclimate-status-svg]][codeclimate-status-link]
8
+ [![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
9
+ [![Downloads][downloads-svg]][downloads-link]
10
+ [![Docs][docs-rubydoc-svg]][docs-rubydoc-link]
11
+ [![License][license-svg]][license-link]
12
+
3
13
  Faraday middleware to manage OAuth token authorization with token refresh.
4
14
 
5
15
  ## Description
@@ -32,11 +42,11 @@ $ gem install faraday_middleware-oauth2_refresh
32
42
  require 'oauth2'
33
43
  require 'faraday_middleware/oauth2_refresh'
34
44
 
35
- client = OAuth2::Client.new('my_client_id', 'my_client_secret', :site => 'https://example.com' )
36
- token = client.password.get_token('username', 'password', { :headers => { 'Authorization' => 'Basic my_api_key' } })
45
+ client = OAuth2::Client.new('my_client_id', 'my_client_secret', site: 'https://example.com' )
46
+ token = client.password.get_token('username', 'password', { headers: { 'Authorization' => 'Basic my_api_key' } })
37
47
 
38
- conn = Faraday.new(:url => "http://example.com") do |builder|
39
- builder.request :oauth2_refresh, token
48
+ conn = Faraday.new(url: "http://example.com") do |builder|
49
+ builder.request :oauth2_refresh, token
40
50
  builder.adapter Faraday.default_adapter
41
51
  end
42
52
 
@@ -45,9 +55,41 @@ conn.get "/foo" # sends token
45
55
 
46
56
  ## Change Log
47
57
 
48
- - **2015-05-30**: 0.0.1
49
- - Initial public release
58
+ See [CHANGELOG.md](CHANGELOG.md)
59
+
60
+ ## Links
61
+
62
+ Project Repo
63
+
64
+ * https://github.com/grokify/faraday_middleware-oauth2_refresh
65
+
66
+ ## Problems, Comments, Suggestions, Contributions?
67
+
68
+ Any reports of problems, comments or suggestions are most welcome.
69
+
70
+ Please report these on [Github](https://github.com/grokify/faraday_middleware-oauth2_refresh)
71
+
72
+ ## License
73
+
74
+ FaradayMiddleware::OAuth2Refresh is available under an MIT-style license. See {file:LICENSE.txt} for details.
50
75
 
51
- ## Problems, Comments, Suggestions?
76
+ FaradayMiddleware::OAuth2Refresh © 2015-2016 by John Wang
52
77
 
53
- All of the above are most welcome on Github.
78
+ [gem-version-svg]: https://badge.fury.io/rb/faraday_middleware-oauth2_refresh.svg
79
+ [gem-version-link]: http://badge.fury.io/rb/faraday_middleware-oauth2_refresh
80
+ [downloads-svg]: http://ruby-gem-downloads-badge.herokuapp.com/faraday_middleware-oauth2_refresh
81
+ [downloads-link]: https://rubygems.org/gems/faraday_middleware-oauth2_refresh
82
+ [build-status-svg]: https://api.travis-ci.org/grokify/faraday_middleware-oauth2_refresh.svg?branch=master
83
+ [build-status-link]: https://travis-ci.org/grokify/faraday_middleware-oauth2_refresh
84
+ [coverage-status-svg]: https://coveralls.io/repos/grokify/faraday_middleware-oauth2_refresh/badge.svg?branch=master
85
+ [coverage-status-link]: https://coveralls.io/r/grokify/faraday_middleware-oauth2_refresh?branch=master
86
+ [dependency-status-svg]: https://gemnasium.com/grokify/faraday_middleware-oauth2_refresh.svg
87
+ [dependency-status-link]: https://gemnasium.com/grokify/faraday_middleware-oauth2_refresh
88
+ [codeclimate-status-svg]: https://codeclimate.com/github/grokify/faraday_middleware-oauth2_refresh/badges/gpa.svg
89
+ [codeclimate-status-link]: https://codeclimate.com/github/grokify/faraday_middleware-oauth2_refresh
90
+ [scrutinizer-status-svg]: https://scrutinizer-ci.com/g/grokify/faraday_middleware-oauth2_refresh/badges/quality-score.png?b=master
91
+ [scrutinizer-status-link]: https://scrutinizer-ci.com/g/grokify/faraday_middleware-oauth2_refresh/?branch=master
92
+ [docs-rubydoc-svg]: https://img.shields.io/badge/docs-rubydoc-blue.svg
93
+ [docs-rubydoc-link]: http://www.rubydoc.info/gems/faraday_middleware-oauth2_refresh/
94
+ [license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
95
+ [license-link]: https://github.com/grokify/faraday_middleware-oauth2_refresh/blob/master/LICENSE.txt
@@ -1,3 +1,6 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
3
+
1
4
  require 'test/unit'
2
5
  require 'faraday'
3
6
  require 'faraday_middleware'
metadata CHANGED
@@ -1,53 +1,109 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faraday_middleware-oauth2_refresh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Wang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-31 00:00:00.000000000 Z
11
+ date: 2016-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.9'
20
- - - '>='
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0.9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ~>
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0.9'
30
- - - '>='
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
32
  version: '0.9'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: faraday_middleware
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ~>
37
+ - - "~>"
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
- - - '>='
40
+ - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ~>
47
+ - - "~>"
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
- - - '>='
50
+ - - ">="
51
+ - !ruby/object:Gem::Version
52
+ version: '0'
53
+ - !ruby/object:Gem::Dependency
54
+ name: coveralls
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ type: :development
61
+ prerelease: false
62
+ version_requirements: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
67
+ - !ruby/object:Gem::Dependency
68
+ name: rake
69
+ requirement: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - ">="
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ type: :development
75
+ prerelease: false
76
+ version_requirements: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ">="
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ - !ruby/object:Gem::Dependency
82
+ name: simplecov
83
+ requirement: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ">="
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
88
+ type: :development
89
+ prerelease: false
90
+ version_requirements: !ruby/object:Gem::Requirement
91
+ requirements:
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: '0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: test-unit
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
51
107
  - !ruby/object:Gem::Version
52
108
  version: '0'
53
109
  description: This Faraday middleware gem adds OAuth2 token handling with token refresh
@@ -65,7 +121,8 @@ files:
65
121
  - lib/faraday_middleware/oauth2_refresh.rb
66
122
  - test/test_setup.rb
67
123
  homepage: https://github.com/grokify/
68
- licenses: []
124
+ licenses:
125
+ - MIT
69
126
  metadata: {}
70
127
  post_install_message:
71
128
  rdoc_options: []
@@ -73,17 +130,17 @@ require_paths:
73
130
  - lib
74
131
  required_ruby_version: !ruby/object:Gem::Requirement
75
132
  requirements:
76
- - - '>='
133
+ - - ">="
77
134
  - !ruby/object:Gem::Version
78
135
  version: '0'
79
136
  required_rubygems_version: !ruby/object:Gem::Requirement
80
137
  requirements:
81
- - - '>='
138
+ - - ">="
82
139
  - !ruby/object:Gem::Version
83
140
  version: '0'
84
141
  requirements: []
85
142
  rubyforge_project:
86
- rubygems_version: 2.1.5
143
+ rubygems_version: 2.5.1
87
144
  signing_key:
88
145
  specification_version: 4
89
146
  summary: Faraday OAuth2 request middleware with token refresh