sharepoint-ruby 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sharepoint-files.rb +2 -2
- metadata +7 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b09509945fb753da4c1f2597c737b5c353ced9a87e72605214b2228e308439a
|
4
|
+
data.tar.gz: 10833837608fee969d5e93b4f2ab1927d6d10fe95d8254c43259fead1f192c86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 482595a17d39db9d1f2b37db8d77b2853a34c5d318144269e893a779a6a81437526d68aef7446b34fd34824c04702d56a79a9de9fc38fa23c654d5b01626ea8c
|
7
|
+
data.tar.gz: 4ca1f8442f82f0a95fa6329876e5c68db70934f0ea1b90d72660d8a7a23f58b0c0df4ba94f959ed1a8141966af916af9e3ca5d1a40150477e7b6a27378796c5e
|
data/lib/sharepoint-files.rb
CHANGED
@@ -13,11 +13,11 @@ module Sharepoint
|
|
13
13
|
method :recycle
|
14
14
|
|
15
15
|
def file_from_name name
|
16
|
-
@site.query :get, "#{__metadata['uri']}/files/getbyurl('#{
|
16
|
+
@site.query :get, "#{__metadata['uri']}/files/getbyurl('#{URI::Parser.new.escape(name.to_s)}')"
|
17
17
|
end
|
18
18
|
|
19
19
|
def add_file name, content
|
20
|
-
uri = "#{__metadata['uri']}/files/add(overwrite=true,url='#{
|
20
|
+
uri = "#{__metadata['uri']}/files/add(overwrite=true,url='#{URI::Parser.new.escape(name.to_s)}')"
|
21
21
|
@site.query :post, uri, content
|
22
22
|
end
|
23
23
|
|
metadata
CHANGED
@@ -1,35 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sharepoint-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.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:
|
11
|
+
date: 2024-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0
|
20
|
-
- - "<="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 0.9.11
|
19
|
+
version: '0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
|
-
- - "
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0.8'
|
30
|
-
- - "<="
|
24
|
+
- - ">="
|
31
25
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0
|
26
|
+
version: '0'
|
33
27
|
description: Client for Sharepoint's REST API
|
34
28
|
email: michael@unetresgrossebite.com
|
35
29
|
executables: []
|
@@ -71,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
65
|
- !ruby/object:Gem::Version
|
72
66
|
version: '0'
|
73
67
|
requirements: []
|
74
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.3.7
|
75
69
|
signing_key:
|
76
70
|
specification_version: 4
|
77
71
|
summary: sharepoint client
|