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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/sharepoint-ruby.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06a548cde4c7aede93cbc0f46fd90e5343faff5f64e4d18bb877cf4ce4bdbf7e
4
- data.tar.gz: 5b34f39ca74c0583f3dc5d509639f1dbe73972477aa2a259e6a741b7a0cbd649
3
+ metadata.gz: 41911e049cc10a7fba6509fe18a9f216670efbaa4647dc33c75a4aeb49d917cb
4
+ data.tar.gz: c515dd4db9ed9ac012c862ac28b9bd8330b16c31006c391601dfea2be558a9a7
5
5
  SHA512:
6
- metadata.gz: '0708c3ab5cf9238fd35617ebf07d634ef7ad0c766efec37f47ed4050938fc4aaecddc793b1a9ff4ce5e2ccc32cc0c829e650ad87ecf73abe3b5b1b6e4c857446'
7
- data.tar.gz: ef28ea0e00baee2d803a30a36fedbb8b48e03e637972033e002db56fd401f8af33214bc30fb525275f41cb0503e8e3f5833e06bb6bef3cf46df21c94b7dcfdfb
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 ressources
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
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sharepoint-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Martin Moro