proof-sharepoint-ruby 1.0.0
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.
- checksums.yaml +7 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +19 -0
- data/LICENSE +27 -0
- data/README.md +167 -0
- data/lib/sharepoint-error.rb +3 -0
- data/lib/sharepoint-fields.rb +126 -0
- data/lib/sharepoint-files.rb +80 -0
- data/lib/sharepoint-http-auth.rb +30 -0
- data/lib/sharepoint-kerberos-auth.rb +30 -0
- data/lib/sharepoint-lists.rb +235 -0
- data/lib/sharepoint-object.rb +179 -0
- data/lib/sharepoint-properties.rb +96 -0
- data/lib/sharepoint-ruby.rb +152 -0
- data/lib/sharepoint-session.rb +92 -0
- data/lib/sharepoint-stringutils.rb +37 -0
- data/lib/sharepoint-types.rb +84 -0
- data/lib/sharepoint-users.rb +36 -0
- data/lib/sharepoint-version.rb +3 -0
- data/lib/soap/authenticate.xml.erb +28 -0
- data/proof-sharepoint-ruby.gemspec +24 -0
- metadata +86 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
module Sharepoint
|
2
|
+
class Group < Sharepoint::Object
|
3
|
+
include Sharepoint::Type
|
4
|
+
sharepoint_resource getter: :sitegroups
|
5
|
+
end
|
6
|
+
|
7
|
+
class User < Sharepoint::Object
|
8
|
+
include Sharepoint::Type
|
9
|
+
sharepoint_resource getter: :siteusers
|
10
|
+
belongs_to :group
|
11
|
+
end
|
12
|
+
|
13
|
+
class UserCustomAction < Sharepoint::Object
|
14
|
+
include Sharepoint::Type
|
15
|
+
sharepoint_resource
|
16
|
+
end
|
17
|
+
|
18
|
+
class RoleAssignment < Sharepoint::Object
|
19
|
+
include Sharepoint::Type
|
20
|
+
sharepoint_resource
|
21
|
+
end
|
22
|
+
|
23
|
+
class RoleDefinition < Sharepoint::Object
|
24
|
+
include Sharepoint::Type
|
25
|
+
end
|
26
|
+
|
27
|
+
class GenericSharepointObject < Sharepoint::Object
|
28
|
+
include Sharepoint::Type
|
29
|
+
sharepoint_resource
|
30
|
+
|
31
|
+
def initialize type_name, site, data
|
32
|
+
super site, data
|
33
|
+
@generic_type_name = type_name
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
2
|
+
<s:Header>
|
3
|
+
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</a:Action>
|
4
|
+
<a:ReplyTo>
|
5
|
+
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
|
6
|
+
</a:ReplyTo>
|
7
|
+
<a:To s:mustUnderstand="1">https://login.microsoftonline.com/extSTS.srf</a:To>
|
8
|
+
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
|
9
|
+
<o:UsernameToken>
|
10
|
+
<o:Username><%= @username %></o:Username>
|
11
|
+
<o:Password><%= @password %></o:Password>
|
12
|
+
</o:UsernameToken>
|
13
|
+
</o:Security>
|
14
|
+
</s:Header>
|
15
|
+
<s:Body>
|
16
|
+
<t:RequestSecurityToken xmlns:t="http://schemas.xmlsoap.org/ws/2005/02/trust">
|
17
|
+
<wsp:AppliesTo xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
|
18
|
+
<a:EndpointReference>'
|
19
|
+
<a:Address><%= @login_url %></a:Address>'
|
20
|
+
</a:EndpointReference>'
|
21
|
+
</wsp:AppliesTo>'
|
22
|
+
<t:KeyType>http://schemas.xmlsoap.org/ws/2005/05/identity/NoProofKey</t:KeyType>
|
23
|
+
<t:RequestType>http://schemas.xmlsoap.org/ws/2005/02/trust/Issue</t:RequestType>
|
24
|
+
<t:TokenType>urn:oasis:names:tc:SAML:1.0:assertion</t:TokenType>'
|
25
|
+
</t:RequestSecurityToken>'
|
26
|
+
</s:Body>'
|
27
|
+
</s:Envelope>
|
28
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require_relative 'lib/sharepoint-version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |s|
|
4
|
+
s.name = 'proof-sharepoint-ruby'
|
5
|
+
s.version = Sharepoint::VERSION
|
6
|
+
s.date = '2020-12-07'
|
7
|
+
s.summary = 'SharePoint client.'
|
8
|
+
s.description = "Client for Sharepoint's REST API forked from https://github.com/Plaristote/sharepoint-ruby"
|
9
|
+
s.authors = ['Marlen Brunner']
|
10
|
+
s.email = 'mbrunner@proofgov.com'
|
11
|
+
s.homepage = 'https://github.com/proofgov/sharepoint-ruby'
|
12
|
+
s.license = 'BSD'
|
13
|
+
|
14
|
+
s.required_ruby_version = Gem::Requirement.new('>= 2.6.0')
|
15
|
+
s.metadata['homepage_uri'] = s.homepage
|
16
|
+
s.metadata['source_code_uri'] = 'https://github.com/proofgov/sharepoint-ruby'
|
17
|
+
s.metadata['changelog_uri'] = 'https://github.com/proofgov/sharepoint-ruby/blob/master/CHANGELOG.md'
|
18
|
+
|
19
|
+
s.require_path = 'lib'
|
20
|
+
s.files = Dir.chdir(File.expand_path(__dir__)) do
|
21
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
22
|
+
end
|
23
|
+
s.add_runtime_dependency 'curb', '~> 0.8', '<= 0.9.10'
|
24
|
+
end
|
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: proof-sharepoint-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marlen Brunner
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-12-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: curb
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.8'
|
20
|
+
- - "<="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.9.10
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.8'
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 0.9.10
|
33
|
+
description: Client for Sharepoint's REST API forked from https://github.com/Plaristote/sharepoint-ruby
|
34
|
+
email: mbrunner@proofgov.com
|
35
|
+
executables: []
|
36
|
+
extensions: []
|
37
|
+
extra_rdoc_files: []
|
38
|
+
files:
|
39
|
+
- CHANGELOG.md
|
40
|
+
- Gemfile
|
41
|
+
- Gemfile.lock
|
42
|
+
- LICENSE
|
43
|
+
- README.md
|
44
|
+
- lib/sharepoint-error.rb
|
45
|
+
- lib/sharepoint-fields.rb
|
46
|
+
- lib/sharepoint-files.rb
|
47
|
+
- lib/sharepoint-http-auth.rb
|
48
|
+
- lib/sharepoint-kerberos-auth.rb
|
49
|
+
- lib/sharepoint-lists.rb
|
50
|
+
- lib/sharepoint-object.rb
|
51
|
+
- lib/sharepoint-properties.rb
|
52
|
+
- lib/sharepoint-ruby.rb
|
53
|
+
- lib/sharepoint-session.rb
|
54
|
+
- lib/sharepoint-stringutils.rb
|
55
|
+
- lib/sharepoint-types.rb
|
56
|
+
- lib/sharepoint-users.rb
|
57
|
+
- lib/sharepoint-version.rb
|
58
|
+
- lib/soap/authenticate.xml.erb
|
59
|
+
- proof-sharepoint-ruby.gemspec
|
60
|
+
homepage: https://github.com/proofgov/sharepoint-ruby
|
61
|
+
licenses:
|
62
|
+
- BSD
|
63
|
+
metadata:
|
64
|
+
homepage_uri: https://github.com/proofgov/sharepoint-ruby
|
65
|
+
source_code_uri: https://github.com/proofgov/sharepoint-ruby
|
66
|
+
changelog_uri: https://github.com/proofgov/sharepoint-ruby/blob/master/CHANGELOG.md
|
67
|
+
post_install_message:
|
68
|
+
rdoc_options: []
|
69
|
+
require_paths:
|
70
|
+
- lib
|
71
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.6.0
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
requirements:
|
78
|
+
- - ">="
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
requirements: []
|
82
|
+
rubygems_version: 3.0.3
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: SharePoint client.
|
86
|
+
test_files: []
|