prooflink_connect 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +14 -1
- data/lib/prooflink_connect.rb +1 -0
- data/lib/prooflink_connect/invite.rb +26 -0
- data/lib/prooflink_connect/version.rb +1 -1
- data/prooflink_connect.gemspec +1 -0
- metadata +23 -8
data/Gemfile.lock
CHANGED
@@ -1,12 +1,25 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
prooflink_connect (0.0.
|
4
|
+
prooflink_connect (0.0.7)
|
5
|
+
activeresource
|
6
|
+
json
|
5
7
|
|
6
8
|
GEM
|
7
9
|
remote: http://rubygems.org/
|
8
10
|
specs:
|
11
|
+
activemodel (3.0.7)
|
12
|
+
activesupport (= 3.0.7)
|
13
|
+
builder (~> 2.1.2)
|
14
|
+
i18n (~> 0.5.0)
|
15
|
+
activeresource (3.0.7)
|
16
|
+
activemodel (= 3.0.7)
|
17
|
+
activesupport (= 3.0.7)
|
18
|
+
activesupport (3.0.7)
|
19
|
+
builder (2.1.2)
|
9
20
|
diff-lcs (1.1.2)
|
21
|
+
i18n (0.5.0)
|
22
|
+
json (1.5.1)
|
10
23
|
rspec (2.4.0)
|
11
24
|
rspec-core (~> 2.4.0)
|
12
25
|
rspec-expectations (~> 2.4.0)
|
data/lib/prooflink_connect.rb
CHANGED
@@ -3,6 +3,7 @@ module ProoflinkConnect
|
|
3
3
|
autoload :Assertion, "prooflink_connect/assertion"
|
4
4
|
autoload :PortableContacts, "prooflink_connect/portable_contacts"
|
5
5
|
autoload :ShareButton, "prooflink_connect/share_button"
|
6
|
+
autoload :Invite, "prooflink_connect/invite"
|
6
7
|
|
7
8
|
def self.config
|
8
9
|
Configuration.instance
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class ProoflinkConnect::Invite < ActiveResource::Base
|
2
|
+
class << self
|
3
|
+
attr_accessor :api_key
|
4
|
+
|
5
|
+
def site
|
6
|
+
URI.parse("#{ProoflinkConnect.config.protocol}://#{ProoflinkConnect.config.provider_endpoint}/")
|
7
|
+
end
|
8
|
+
|
9
|
+
def api_key
|
10
|
+
ProoflinkConnect.config.api_key
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
self.site = self.site
|
15
|
+
self.element_name = 'invite'
|
16
|
+
self.format = :json
|
17
|
+
|
18
|
+
def person
|
19
|
+
ProoflinkConnect::PortableContacts::Person.new(self.entry.attributes)
|
20
|
+
end
|
21
|
+
|
22
|
+
def save
|
23
|
+
prefix_options[:api_key] = self.class.api_key
|
24
|
+
super
|
25
|
+
end
|
26
|
+
end
|
data/prooflink_connect.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prooflink_connect
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 8
|
10
|
+
version: 0.0.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chiel Wester
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-09 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -33,9 +33,23 @@ dependencies:
|
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: activeresource
|
37
37
|
prerelease: false
|
38
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
hash: 3
|
44
|
+
segments:
|
45
|
+
- 0
|
46
|
+
version: "0"
|
47
|
+
type: :runtime
|
48
|
+
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: bundler
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
53
|
none: false
|
40
54
|
requirements:
|
41
55
|
- - ">="
|
@@ -47,11 +61,11 @@ dependencies:
|
|
47
61
|
- 0
|
48
62
|
version: 1.0.0
|
49
63
|
type: :development
|
50
|
-
version_requirements: *
|
64
|
+
version_requirements: *id003
|
51
65
|
- !ruby/object:Gem::Dependency
|
52
66
|
name: rspec
|
53
67
|
prerelease: false
|
54
|
-
requirement: &
|
68
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
55
69
|
none: false
|
56
70
|
requirements:
|
57
71
|
- - ">="
|
@@ -61,7 +75,7 @@ dependencies:
|
|
61
75
|
- 0
|
62
76
|
version: "0"
|
63
77
|
type: :development
|
64
|
-
version_requirements: *
|
78
|
+
version_requirements: *id004
|
65
79
|
description: Make a connection to the prooflink connect api for single sign on authentication
|
66
80
|
email: chiel.wester@holder.nl
|
67
81
|
executables: []
|
@@ -79,6 +93,7 @@ files:
|
|
79
93
|
- lib/prooflink_connect.rb
|
80
94
|
- lib/prooflink_connect/assertion.rb
|
81
95
|
- lib/prooflink_connect/configuration.rb
|
96
|
+
- lib/prooflink_connect/invite.rb
|
82
97
|
- lib/prooflink_connect/portable_contacts.rb
|
83
98
|
- lib/prooflink_connect/portable_contacts/collection.rb
|
84
99
|
- lib/prooflink_connect/portable_contacts/person.rb
|