rexchange 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +3 -0
- data/RAKEFILE +2 -2
- data/lib/rexchange.rb +4 -1
- data/lib/rexchange/credentials.rb +7 -3
- data/lib/rexchange/exchange_request.rb +1 -1
- data/lib/rexchange/session.rb +1 -1
- metadata +40 -35
data/CHANGELOG
CHANGED
data/RAKEFILE
CHANGED
data/lib/rexchange.rb
CHANGED
@@ -6,6 +6,9 @@ module RExchange
|
|
6
6
|
|
7
7
|
# A shortcut to RExchange::Session#new's block syntax
|
8
8
|
def self.open(uri, options = {})
|
9
|
-
|
9
|
+
session = RExchange::Session.new(uri, options)
|
10
|
+
|
11
|
+
yield session if block_given?
|
12
|
+
return session
|
10
13
|
end
|
11
14
|
end
|
@@ -5,14 +5,14 @@ module RExchange
|
|
5
5
|
# Credentials are passed around between Folders to emulate a stateful
|
6
6
|
# connection with the RExchange::Session
|
7
7
|
class Credentials
|
8
|
-
attr_reader :user, :password, :uri
|
8
|
+
attr_reader :user, :password, :uri
|
9
9
|
|
10
10
|
# You must pass a uri, and an options hash containing :user and :password
|
11
11
|
def initialize(uri, options = {})
|
12
12
|
@uri = URI.parse(uri)
|
13
13
|
@use_ssl = (@uri.scheme.downcase == 'https')
|
14
|
-
@user = @uri.userinfo ? @user.userinfo.split(':')[0] : options.
|
15
|
-
@password = @uri.userinfo ? @user.userinfo.split(':')[1] : options.
|
14
|
+
@user = @uri.userinfo ? @user.userinfo.split(':')[0] : options.values_at(:user)
|
15
|
+
@password = @uri.userinfo ? @user.userinfo.split(':')[1] : options.values_at(:password)
|
16
16
|
@port = @uri.port || @uri.default_port
|
17
17
|
|
18
18
|
if block_given?
|
@@ -22,6 +22,10 @@ module RExchange
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
+
def use_ssl?
|
26
|
+
@use_ssl
|
27
|
+
end
|
28
|
+
|
25
29
|
end
|
26
30
|
|
27
31
|
end
|
data/lib/rexchange/session.rb
CHANGED
metadata
CHANGED
@@ -1,58 +1,63 @@
|
|
1
|
-
|
2
|
-
rubygems_version: 0.8.
|
1
|
+
!ruby/object:Gem::Specification
|
2
|
+
rubygems_version: 0.8.11
|
3
3
|
specification_version: 1
|
4
4
|
name: rexchange
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2006-01-
|
8
|
-
summary:
|
6
|
+
version: 0.1.3
|
7
|
+
date: 2006-02-01 00:00:00 -06:00
|
8
|
+
summary: A simple wrapper around Microsoft Exchange Server's WebDAV API
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: ssmoot@gmail.com; bauer.mail@gmail.com
|
12
12
|
homepage: http://substantiality.net
|
13
13
|
rubyforge_project: rexchange
|
14
|
-
description:
|
14
|
+
description: Connect, browse, and iterate through folders and messages on an Exchange Server
|
15
15
|
autorequire: rexchange
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
18
18
|
has_rdoc: true
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
26
|
+
signing_key:
|
27
|
+
cert_chain:
|
27
28
|
authors:
|
28
|
-
|
29
|
-
|
29
|
+
- Sam Smoot
|
30
|
+
- Scott Bauer
|
30
31
|
files:
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
32
|
+
- README
|
33
|
+
- CHANGELOG
|
34
|
+
- RAKEFILE
|
35
|
+
- lib/rexchange.rb
|
36
|
+
- lib/rexchange/credentials.rb
|
37
|
+
- lib/rexchange/dav_move_request.rb
|
38
|
+
- lib/rexchange/dav_search_request.rb
|
39
|
+
- lib/rexchange/exchange_request.rb
|
40
|
+
- lib/rexchange/extensions.rb
|
41
|
+
- lib/rexchange/folder.rb
|
42
|
+
- lib/rexchange/message.rb
|
43
|
+
- lib/rexchange/session.rb
|
44
|
+
- test/functional.rb
|
44
45
|
test_files: []
|
46
|
+
|
45
47
|
rdoc_options:
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
48
|
+
- --line-numbers
|
49
|
+
- --inline-source
|
50
|
+
- --main
|
51
|
+
- README
|
50
52
|
extra_rdoc_files:
|
51
|
-
|
52
|
-
|
53
|
-
|
53
|
+
- README
|
54
|
+
- CHANGELOG
|
55
|
+
- RAKEFILE
|
54
56
|
executables: []
|
57
|
+
|
55
58
|
extensions: []
|
59
|
+
|
56
60
|
requirements:
|
57
|
-
|
58
|
-
dependencies: []
|
61
|
+
- none
|
62
|
+
dependencies: []
|
63
|
+
|