restful-sharepoint 0.2.2 → 0.2.3

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: 676e57e07950be0b111e91a9675056ab7f9b3d90c39319dc1e9ac619476e7cec
4
- data.tar.gz: 717a90610e1a58b0895eed3fe018f3d99faae5f7947ce1b81797c0e8cf9fe6c1
3
+ metadata.gz: 358b31acc3c5a73248dd0ba287c2582d48bea1aba76bc078a52bcf3840486c92
4
+ data.tar.gz: 4d6d2efa049c00b24ce8f95ff3fd3813d5094ea35e253ee8765cbb229e3e2b28
5
5
  SHA512:
6
- metadata.gz: e448c10bb59bee93d58725f109f2c5ce8f55ed0b2bae7f27944ae865ec9352f1f133947a948f5fadce119b67c614a844f7f6c1435ac31cab6fafff9c7134a472
7
- data.tar.gz: dd7afb07ce1d26484e3f48a070c8dfe28c67de1a52c02481b5a13d70f90d15e0e35ae91a4e4d545c98669402a02b20513dc6c43d7a35c59e1a6dd4cf637ea332
6
+ metadata.gz: '098b4085fabe7abe11f3347cadda7f82a0b8507f93cc3408cc980dbff2e8eabf23386cf889345b8fc2b6efd00484ce296c4896bf19d6ba3f277d5867d5efd6a0'
7
+ data.tar.gz: 81089cdbddc8f6869d34fc7613ef948b676020a6dd3a9b56fa40b2542519aaeb4fdce03b1688b78c2b4f1529a102fbc33be03b9eca1726d5a320c9e95c35eed7
data/Gemfile CHANGED
File without changes
data/README.md CHANGED
File without changes
@@ -1,10 +1,11 @@
1
1
  require 'json'
2
2
  require 'httpi'
3
- require 'curb'
3
+ require 'httpclient'
4
+ require 'rubyntlm'
4
5
  require 'cgi'
5
6
  require 'logger'
6
7
 
7
- HTTPI.adapter = :curb
8
+ HTTPI.adapter = :httpclient
8
9
 
9
10
  module RestfulSharePoint
10
11
  OBJECT_MAP = {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -38,7 +38,7 @@ module RestfulSharePoint
38
38
  end
39
39
  yield(req) if block_given?
40
40
  LOG.info "Making HTTP request to: #{req.url.to_s}"
41
- response = HTTPI.request(method, req)
41
+ response = HTTPI.request(method, req) { |x| x.ssl_config.set_default_paths }
42
42
  if response.body.empty?
43
43
  if response.code >= 300
44
44
  raise RestError, "Server returned HTTP status #{response.code} with no message body."
@@ -77,7 +77,6 @@ module RestfulSharePoint
77
77
 
78
78
  def parse(str)
79
79
  data = JSON.load(str)
80
- ::File.write('parsed.json', JSON.dump(data))
81
80
  raise RestError, "(#{data['error']['code']}): #{data['error']['message']['value']}" if data['error']
82
81
  parse_tree(data['d'])
83
82
  end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module RestfulSharePoint
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -9,10 +9,10 @@ Gem::Specification.new 'restful-sharepoint', RestfulSharePoint::VERSION do |s|
9
9
  s.homepage = 'https://github.com/Wardrop/restful-sharepoint'
10
10
  s.license = 'MIT'
11
11
  s.files = Dir.glob(`git ls-files`.split("\n") - %w[.gitignore])
12
- s.has_rdoc = 'yard'
13
12
 
14
13
  s.required_ruby_version = '>= 2.0.0'
15
14
 
16
15
  s.add_dependency 'httpi', '~> 2.4'
17
- s.add_dependency 'curb', '~> 0.9'
16
+ s.add_dependency 'httpclient', '~> 2.8'
17
+ s.add_dependency 'rubyntlm', '~> 0.6'
18
18
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful-sharepoint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Wardrop
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-01 00:00:00.000000000 Z
11
+ date: 2019-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpi
@@ -25,19 +25,33 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.4'
27
27
  - !ruby/object:Gem::Dependency
28
- name: curb
28
+ name: httpclient
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '2.8'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '2.8'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubyntlm
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.6'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.6'
41
55
  description: Provides a convenient object model to the OData REST API of SharePoint
42
56
  2013 and newer.
43
57
  email: tomw@msc.qld.gov.au
@@ -85,8 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
99
  - !ruby/object:Gem::Version
86
100
  version: '0'
87
101
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.7.3
102
+ rubygems_version: 3.0.1
90
103
  signing_key:
91
104
  specification_version: 4
92
105
  summary: Provides a convenient object model to the OData REST API of SharePoint 2013