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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6b2fcf02c32e07141b1461e3eb63efe5295f40a387d6c2edeb99f3ba780379f
4
- data.tar.gz: b2c207588c72b8bd09b6ba06605f84e2d061370a27f33beb3252dc5a86f0b43d
3
+ metadata.gz: b395db257ebda33c64b88dbd20a458d93029e062346e9761dbeb1c5783e60ae8
4
+ data.tar.gz: be1fde7c525cc0b28905bd40d98914528142d3ef4a14e345e73cc376aff0d224
5
5
  SHA512:
6
- metadata.gz: 7df63bea112e3319e6fa6a51954ac0c65883fbafe2654ffdf4c277b3b2985bcc646ff8b4ef0ea3b2e47a2c2b49ee5e4fbde704b30a50719ba6b3352f5a0c3e2e
7
- data.tar.gz: 92f19a6f216f6b76c064f44d4d09c56feffb57609b53ffd5824c1a57c1f3daea3e3093b0d5207d581bf32251dc808a4fa16585599a45da6c547a5c243349d6f0
6
+ metadata.gz: cb0514576fad6f8727632ff7adc2170f635f43420bd54122cb88040309730096b1325d359c9e49736cd254096c996b450e937f7ff650ff49f29fdbcda8fa033f
7
+ data.tar.gz: ffb84d515c7163fffb3fd70869175197d484f381d59dac264486e98b35cadc21821e420bdcb526b48bceff6efe71f9ddbb8e3253508b00812d363553aadfb623
@@ -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('#{URI::encode(name.to_s)}')"
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='#{URI::encode(name.to_s)}')"
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
 
@@ -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
- url += "$#{key}=#{URI::encode value.to_s}"
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.0
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: 2021-12-04 00:00:00.000000000 Z
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
- rubyforge_project:
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