active_cmis 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -0
- data/active_cmis.gemspec +7 -3
- data/lib/active_cmis.rb +1 -0
- data/lib/active_cmis/internal/connection.rb +7 -1
- data/lib/active_cmis/version.rb +1 -1
- metadata +22 -6
data/Rakefile
CHANGED
data/active_cmis.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{active_cmis}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Joeri Samson"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-07-18}
|
13
13
|
s.description = %q{A CMIS library implementing both reading and updating capabilities through the AtomPub/REST binding to CMIS.}
|
14
14
|
s.email = %q{joeri@xaop.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -52,19 +52,23 @@ Gem::Specification.new do |s|
|
|
52
52
|
s.homepage = %q{http://xaop.com/labs/activecmis/}
|
53
53
|
s.require_paths = ["lib"]
|
54
54
|
s.required_ruby_version = Gem::Requirement.new(">= 1.8.6")
|
55
|
-
s.rubygems_version = %q{1.
|
55
|
+
s.rubygems_version = %q{1.3.7}
|
56
56
|
s.summary = %q{A library to interact with CMIS repositories through the AtomPub/REST binding}
|
57
57
|
|
58
58
|
if s.respond_to? :specification_version then
|
59
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
59
60
|
s.specification_version = 3
|
60
61
|
|
61
62
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
62
63
|
s.add_runtime_dependency(%q<nokogiri>, [">= 1.4.1"])
|
64
|
+
s.add_runtime_dependency(%q<ntlm-http>, ["~> 0.1.1"])
|
63
65
|
else
|
64
66
|
s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
|
67
|
+
s.add_dependency(%q<ntlm-http>, ["~> 0.1.1"])
|
65
68
|
end
|
66
69
|
else
|
67
70
|
s.add_dependency(%q<nokogiri>, [">= 1.4.1"])
|
71
|
+
s.add_dependency(%q<ntlm-http>, ["~> 0.1.1"])
|
68
72
|
end
|
69
73
|
end
|
70
74
|
|
data/lib/active_cmis.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
|
1
2
|
module ActiveCMIS
|
2
3
|
module Internal
|
3
4
|
class Connection
|
@@ -18,11 +19,16 @@ module ActiveCMIS
|
|
18
19
|
# @return [void]
|
19
20
|
# @example Basic authentication
|
20
21
|
# repo.authenticate(:basic, "username", "password")
|
22
|
+
# @example NTLM authentication
|
23
|
+
# repo.authenticate(:ntlm, "username", "password")
|
21
24
|
def authenticate(method, *params)
|
22
25
|
case method
|
23
|
-
when :basic
|
26
|
+
when :basic, "basic"
|
24
27
|
@authentication = {:method => :basic_auth, :params => params}
|
25
28
|
@user = params.first
|
29
|
+
when :ntlm, "ntlm"
|
30
|
+
@authentication = {:method => :ntlm_auth, :params => params}
|
31
|
+
@user = params.first
|
26
32
|
else raise "Authentication method not supported"
|
27
33
|
end
|
28
34
|
end
|
data/lib/active_cmis/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_cmis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 17
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joeri Samson
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-07-18 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -34,6 +34,22 @@ dependencies:
|
|
34
34
|
version: 1.4.1
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: ntlm-http
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
hash: 25
|
46
|
+
segments:
|
47
|
+
- 0
|
48
|
+
- 1
|
49
|
+
- 1
|
50
|
+
version: 0.1.1
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: *id002
|
37
53
|
description: A CMIS library implementing both reading and updating capabilities through the AtomPub/REST binding to CMIS.
|
38
54
|
email: joeri@xaop.com
|
39
55
|
executables: []
|
@@ -107,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
123
|
requirements: []
|
108
124
|
|
109
125
|
rubyforge_project:
|
110
|
-
rubygems_version: 1.
|
126
|
+
rubygems_version: 1.3.7
|
111
127
|
signing_key:
|
112
128
|
specification_version: 3
|
113
129
|
summary: A library to interact with CMIS repositories through the AtomPub/REST binding
|