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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/sharepoint-ruby.rb +3 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41911e049cc10a7fba6509fe18a9f216670efbaa4647dc33c75a4aeb49d917cb
4
- data.tar.gz: c515dd4db9ed9ac012c862ac28b9bd8330b16c31006c391601dfea2be558a9a7
3
+ metadata.gz: 2a11cf9062db591f9f0695b4629aedc1b89b5aff255b24e177878b33e7ddd4a2
4
+ data.tar.gz: f9576d49206ba34660272b3dd1434a1220f049a3a6e7e1ad6c40ef3ee86a4855
5
5
  SHA512:
6
- metadata.gz: 65e4dd9262e56579536ef179892be70cbc848fcd1f1a7e13a98e3d54aa0ba4c2eaf826be8346bdc77e97951c79aad6f2e4de88f71f3ad6204e34b870d0160e62
7
- data.tar.gz: adcb6eca5194acbd8ba870e368146a95a043e6654d7b6f170787469646c806a5420bede10f5c961a9cf5567a316d7adeacd84632d4ed07aa2017eadb8ea78b60
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', 'sites/blog'
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
@@ -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
- @url = "#{@server_url}/sites/#{@name}"
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.3
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-01-03 00:00:00.000000000 Z
11
+ date: 2021-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb