sharepoint-ruby 0.2.0 → 0.2.1
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
- data/lib/sharepoint-lists.rb +5 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b395db257ebda33c64b88dbd20a458d93029e062346e9761dbeb1c5783e60ae8
|
4
|
+
data.tar.gz: be1fde7c525cc0b28905bd40d98914528142d3ef4a14e345e73cc376aff0d224
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb0514576fad6f8727632ff7adc2170f635f43420bd54122cb88040309730096b1325d359c9e49736cd254096c996b450e937f7ff650ff49f29fdbcda8fa033f
|
7
|
+
data.tar.gz: ffb84d515c7163fffb3fd70869175197d484f381d59dac264486e98b35cadc21821e420bdcb526b48bceff6efe71f9ddbb8e3253508b00812d363553aadfb623
|
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('#{CGI.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='#{CGI.escape(name.to_s)}')"
|
21
21
|
@site.query :post, uri, content
|
22
22
|
end
|
23
23
|
|
data/lib/sharepoint-lists.rb
CHANGED
@@ -157,7 +157,11 @@ module Sharepoint
|
|
157
157
|
has_options = false
|
158
158
|
options.each do |key,value|
|
159
159
|
url += if has_options then '&' else '?' end
|
160
|
-
|
160
|
+
<<<<<<< Updated upstream
|
161
|
+
url += "$#{key}=#{CGI.escape value.to_s}"
|
162
|
+
=======
|
163
|
+
url += "$#{key}=#{CGI::escape value.to_s}"
|
164
|
+
>>>>>>> Stashed changes
|
161
165
|
has_options = true
|
162
166
|
end
|
163
167
|
url
|
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.2.
|
4
|
+
version: 0.2.1
|
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: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: curb
|
@@ -71,8 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
|
75
|
-
rubygems_version: 2.7.9
|
74
|
+
rubygems_version: 3.0.9
|
76
75
|
signing_key:
|
77
76
|
specification_version: 4
|
78
77
|
summary: sharepoint client
|