tuwien_logon 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -4,9 +4,19 @@ This gem is an authentication solution for ruby applications being used at the V
4
4
 
5
5
  == Note
6
6
 
7
- You will only be able to use this gem for authentication if you have already registered your application at the ZID. Find more information at http://www.zid.tuwien.ac.at/sts/dateninfrastruktur/authentifizierungsservice/.
7
+ You will only be able to use this gem for authentication if you have already registered your application at the ZID. Find more information at http://www.zid.tuwien.ac.at/sts/dateninfrastruktur/authentifizierungsservice.
8
8
  Unfortunately this page is only provided in german though.
9
9
 
10
+ == Installation
11
+
12
+ Installing tuwien_logon is rather simple:
13
+
14
+ gem install tuwien_logon
15
+
16
+ In your application you just have to require the gem in order to use it:
17
+
18
+ require 'tuwien_logon'
19
+
10
20
  == Usage
11
21
 
12
22
  For now only retrieving user information by their oid is implemented.
@@ -28,8 +38,8 @@ You can change the name of these attributes in the configuration.
28
38
 
29
39
  You can alter the following configuration options, here their default values are shown:
30
40
 
31
- Tuwien.config.user_info_url = 'https://iu.zid.tuwien.ac.at/AuthServ.userInfo'
32
- Tuwien.config.user_info_params = [:oid, :firstname, :lastname, :title, :matriculation_number, :institute_symbol]
41
+ TuwienLogon.config.user_info_url = 'https://iu.zid.tuwien.ac.at/AuthServ.userInfo'
42
+ TuwienLogon.config.user_info_params = [:oid, :firstname, :lastname, :title, :matriculation_number, :institute_symbol]
33
43
 
34
44
  == Note on Patches/Pull Requests
35
45
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -22,7 +22,7 @@ module TuwienLogon
22
22
  infos = split_response(infos.to_s) unless infos.is_a? Array
23
23
 
24
24
  userdata = TuwienLogon::UserInfo.new(params)
25
- TuwienLogon.config.user_info_params.each_with_index do |param, index|
25
+ params.each_with_index do |param, index|
26
26
  userdata.send("#{param}=".to_sym, infos[index]) unless infos[index].nil? || infos[index].empty?
27
27
  end
28
28
  userdata
data/tuwien_logon.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{tuwien_logon}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Clemens Helm"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Clemens Helm