sharepoint-ruby 0.1.5 → 0.2.0

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: e5d94a5c3c8c8ce9cb55ae645f1d26f7848395ca914c11ca6ebb6acbf53571d7
4
- data.tar.gz: d70c590b544756623d71165a5cf8f93a27824f01bd474fee53d5872925b69d8e
3
+ metadata.gz: b6b2fcf02c32e07141b1461e3eb63efe5295f40a387d6c2edeb99f3ba780379f
4
+ data.tar.gz: b2c207588c72b8bd09b6ba06605f84e2d061370a27f33beb3252dc5a86f0b43d
5
5
  SHA512:
6
- metadata.gz: '090ca3f66dd0fc794b4d0c51882a19b9d855cf66fe19c3a1cab6bad61c234b3ad69f5cb81806aa09253059f4b74595dfb514e67c966cee4491221d47fd4a8f50'
7
- data.tar.gz: 2e4c3c3c25872f70e807ad532dfc878142d80ca8d1eed6e8cdf781fd05dbeda635f1dfb5301963dabf0d5084003d9a7c41c4c368aba902e77d04fe1e5b3b1355
6
+ metadata.gz: 7df63bea112e3319e6fa6a51954ac0c65883fbafe2654ffdf4c277b3b2985bcc646ff8b4ef0ea3b2e47a2c2b49ee5e4fbde704b30a50719ba6b3352f5a0c3e2e
7
+ data.tar.gz: 92f19a6f216f6b76c064f44d4d09c56feffb57609b53ffd5824c1a57c1f3daea3e3093b0d5207d581bf32251dc808a4fa16585599a45da6c547a5c243349d6f0
@@ -214,7 +214,7 @@ module Sharepoint
214
214
  belongs_to :view
215
215
 
216
216
  def add_view_field name
217
- @site.query :post, "#{__metadata['uri']}/addviewfield('#{URI.encode name}')"
217
+ @site.query :post, "#{__metadata['uri']}/addviewfield('#{URI::Parser.new.escape name}')"
218
218
  end
219
219
 
220
220
  def move_view_field_to name, index
@@ -229,7 +229,7 @@ module Sharepoint
229
229
  end
230
230
 
231
231
  def remove_view_field name
232
- @site.query :post, "#{__metadata['uri']}/removeviewfield('#{URI.encode name}')"
232
+ @site.query :post, "#{__metadata['uri']}/removeviewfield('#{URI::Parser.new.escape name}')"
233
233
  end
234
234
  end
235
235
  end
@@ -44,7 +44,7 @@ module Sharepoint
44
44
  action += ',' unless params.keys.first == key
45
45
  action += key + '='
46
46
  action += (if (value.class < String) or (value.class < Symbol)
47
- "'#{(URI.encode value.gsub("'", %q(\\\')))}'"
47
+ "'#{(URI::Parser.new.escape value.gsub("'", %q(\\\')))}'"
48
48
  else
49
49
  value
50
50
  end)
@@ -70,7 +70,7 @@ module Sharepoint
70
70
  if id =~ /^[a-z0-9]{8}-([a-z0-9]{4}-){3}[a-z0-9]{12}$/
71
71
  self.query :get, "#{options[:getter]}(guid'#{id}')"
72
72
  else
73
- self.query :get, "#{options[:get_from_name]}('#{URI.encode id}')"
73
+ self.query :get, "#{options[:get_from_name]}('#{URI::Parser.new.escape id}')"
74
74
  end
75
75
  end
76
76
  end
@@ -83,7 +83,7 @@ module Sharepoint
83
83
  resource.site.query :get, "#{resource.__metadata['uri']}/#{method_name}"
84
84
  end
85
85
  define_singleton_method "get_from_#{resource_name}" do |resource, name|
86
- resource.site.query :get, "#{resource.__metadata['uri']}/#{method_name}('#{URI.encode name}')"
86
+ resource.site.query :get, "#{resource.__metadata['uri']}/#{method_name}('#{URI::Parser.new.escape name}')"
87
87
  end
88
88
  define_method "create_uri" do
89
89
  unless self.parent.nil?
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.1.5
4
+ version: 0.2.0
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-09-15 00:00:00.000000000 Z
11
+ date: 2021-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
@@ -54,7 +54,7 @@ files:
54
54
  - lib/soap/authenticate.xml.erb
55
55
  homepage: https://github.com/Plaristote/sharepoint-ruby
56
56
  licenses:
57
- - BSD
57
+ - 0BSD
58
58
  metadata: {}
59
59
  post_install_message:
60
60
  rdoc_options: []