sharepoint-ruby 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/sharepoint-ruby.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a11cf9062db591f9f0695b4629aedc1b89b5aff255b24e177878b33e7ddd4a2
|
4
|
+
data.tar.gz: f9576d49206ba34660272b3dd1434a1220f049a3a6e7e1ad6c40ef3ee86a4855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d9a594f40b8876d68ab3c727c227f487b362ba2e188506bf5c33eab895f00cb056ad27fb8c94a8806bf6b016428ae10c2fefde21ccfc1304f847df5f9e1c781
|
7
|
+
data.tar.gz: 1d2a20925810e2c64602e3764192ef763f96097839601db630b0e426da7e3c30f171bd2bdbed62edb661d166dee3d3b93deb6c0cedb75ffb05d43f0786594cc3
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ require 'sharepoint-ruby'
|
|
12
12
|
site = Sharepoint::Site.new 'mysite.sharepoint.com', 'server-relative-site-url'
|
13
13
|
site.session.authenticate 'mylogin', 'mypassword'
|
14
14
|
|
15
|
-
blog = Sharepoint::Site.new 'mytenant.sharepoint.com', '
|
15
|
+
blog = Sharepoint::Site.new 'mytenant.sharepoint.com', 'blog', prefix: "sites"
|
16
16
|
blog.session.authenticate 'user', 'pwd'
|
17
17
|
lists = blog.lists
|
18
18
|
for l in lists
|
data/lib/sharepoint-ruby.rb
CHANGED
@@ -13,10 +13,11 @@ module Sharepoint
|
|
13
13
|
attr_accessor :name
|
14
14
|
attr_accessor :verbose
|
15
15
|
|
16
|
-
def initialize server_url, site_name
|
16
|
+
def initialize server_url, site_name, prefix: "sites"
|
17
17
|
@server_url = server_url
|
18
18
|
@name = site_name
|
19
|
-
|
19
|
+
uri_prefix = unless prefix.empty? then prefix + '/' else '' end
|
20
|
+
@url = "#{@server_url}/#{uri_prefix}#{@name}"
|
20
21
|
@session = Session.new self
|
21
22
|
@web_context = nil
|
22
23
|
@protocol = 'https'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sharepoint-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Martin Moro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|