swd 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +20 -0
- data/README.rdoc +41 -0
- data/VERSION +1 -1
- metadata +3 -1
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2011 nov matake
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
= OpenIDConnect
|
2
|
+
|
3
|
+
SWD (Simple Web Discovery) Client Library
|
4
|
+
|
5
|
+
== Installation
|
6
|
+
|
7
|
+
gem install swd
|
8
|
+
|
9
|
+
== Resources
|
10
|
+
|
11
|
+
* View Source on GitHub (https://github.com/nov/swd)
|
12
|
+
* Report Issues on GitHub (https://github.com/nov/swd/issues)
|
13
|
+
|
14
|
+
== Examples
|
15
|
+
|
16
|
+
begin
|
17
|
+
res = SWD.discover!(
|
18
|
+
:principal => 'nov@matake.jp',
|
19
|
+
:service => 'http://openid.net/specs/connect/1.0/issuer',
|
20
|
+
:host => 'openid-connect.herokuapp.com'
|
21
|
+
) # => SWD::Response
|
22
|
+
puts res.location, res.locations, res.raw
|
23
|
+
rescue SWD::HttpError => e
|
24
|
+
puts "#{e.status} #{e.message}"
|
25
|
+
rescue SWD::Exception => e
|
26
|
+
puts e.message
|
27
|
+
end
|
28
|
+
|
29
|
+
== Note on Patches/Pull Requests
|
30
|
+
|
31
|
+
* Fork the project.
|
32
|
+
* Make your feature addition or bug fix.
|
33
|
+
* Add tests for it. This is important so I don't break it in a
|
34
|
+
future version unintentionally.
|
35
|
+
* Commit, do not mess with rakefile, version, or history.
|
36
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
37
|
+
* Send me a pull request. Bonus points for topic branches.
|
38
|
+
|
39
|
+
== Copyright
|
40
|
+
|
41
|
+
Copyright (c) 2011 nov matake. See LICENSE for details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: swd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- nov matake
|
@@ -125,6 +125,8 @@ files:
|
|
125
125
|
- .rspec
|
126
126
|
- Gemfile
|
127
127
|
- Gemfile.lock
|
128
|
+
- LICENSE
|
129
|
+
- README.rdoc
|
128
130
|
- Rakefile
|
129
131
|
- VERSION
|
130
132
|
- lib/swd.rb
|