sharepoint-ruby 0.1.2 → 0.1.3
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 +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41911e049cc10a7fba6509fe18a9f216670efbaa4647dc33c75a4aeb49d917cb
|
4
|
+
data.tar.gz: c515dd4db9ed9ac012c862ac28b9bd8330b16c31006c391601dfea2be558a9a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e4dd9262e56579536ef179892be70cbc848fcd1f1a7e13a98e3d54aa0ba4c2eaf826be8346bdc77e97951c79aad6f2e4de88f71f3ad6204e34b870d0160e62
|
7
|
+
data.tar.gz: adcb6eca5194acbd8ba870e368146a95a043e6654d7b6f170787469646c806a5420bede10f5c961a9cf5567a316d7adeacd84632d4ed07aa2017eadb8ea78b60
|
data/README.md
CHANGED
@@ -98,7 +98,7 @@ The `copy` method can duplicate an existing object. If you send it a Sharepoint:
|
|
98
98
|
Some of the properties of the OData object are 'deferred', which means that the property only provides a link to a ressource that you would have to get for yourself.
|
99
99
|
Not with the sharepoint-ruby gem however: the first time you try to access a deferred property, the object will on it's own go look for the corresponding remote ressource: the result will be stored for later uses, and then be returned to you.
|
100
100
|
|
101
|
-
### Modifying Sharepoint's
|
101
|
+
### Modifying Sharepoint's resources
|
102
102
|
The Sharepoint REST API provides us with methods to create, update or delete resources. In the Sharepoint::Object, these behaviours are implemented through the save and delete methods.
|
103
103
|
|
104
104
|
##### Updating objects
|
data/lib/sharepoint-ruby.rb
CHANGED
@@ -16,7 +16,7 @@ module Sharepoint
|
|
16
16
|
def initialize server_url, site_name
|
17
17
|
@server_url = server_url
|
18
18
|
@name = site_name
|
19
|
-
@url = "#{@server_url}/#{@name}"
|
19
|
+
@url = "#{@server_url}/sites/#{@name}"
|
20
20
|
@session = Session.new self
|
21
21
|
@web_context = nil
|
22
22
|
@protocol = 'https'
|
@@ -61,7 +61,7 @@ module Sharepoint
|
|
61
61
|
if method != :get
|
62
62
|
curl.headers["Content-Type"] = curl.headers["Accept"]
|
63
63
|
curl.headers["X-RequestDigest"] = form_digest unless @getting_form_digest == true
|
64
|
-
curl.headers["Authorization"] = "Bearer " + form_digest unless @getting_form_digest == true
|
64
|
+
curl.headers["Authorization"] = "Bearer " + form_digest unless @getting_form_digest == true
|
65
65
|
end
|
66
66
|
curl.verbose = @verbose
|
67
67
|
@session.send :curl, curl unless not @session.methods.include? :curl
|