ruby-managesieve 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/managesieve.rb +6 -6
  3. metadata +24 -41
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: b9ea11d21deb3715ca2115b634c4b8420997919d
4
+ data.tar.gz: 85504e842646c9f1a88fa8b9845ff627f2575aa9
5
+ SHA512:
6
+ metadata.gz: c48efc4b2a91b64709df5f94cb709c5d10c985bf9a0ee19a282934dfc2790c23c726780b8213c6c5134abf4310011d4adcb7f6a465ce9b3d1d1255f2c58d3f68
7
+ data.tar.gz: 4ebf74d47fda55307cd2d8956fecf139b70413b540c73f1db820483930493fe4a1a4a98de87c757bb5d228469f208a76e0a371bdf4c931f4d11d5e01fec98f6a
@@ -75,7 +75,7 @@ class SieveResponseError < Exception; end
75
75
  # # Create a new ManageSieve instance
76
76
  # m = ManageSieve.new(
77
77
  # :host => 'sievehost.mydomain.com',
78
- # :port => 2000,
78
+ # :port => 4190,
79
79
  # :user => 'johndoe',
80
80
  # :password => 'secret',
81
81
  # :auth => 'PLAIN'
@@ -95,7 +95,7 @@ class SieveResponseError < Exception; end
95
95
  # __EOF__
96
96
  #
97
97
  # # Test if there's enough space for script 'foobar'
98
- # puts m.have_space?('foobar', script.length)
98
+ # puts m.have_space?('foobar', script.bytesize)
99
99
  #
100
100
  # # Upload it
101
101
  # m.put_script('foobar', script)
@@ -107,7 +107,7 @@ class SieveResponseError < Exception; end
107
107
  # m.logout
108
108
  #
109
109
  class ManageSieve
110
- SIEVE_PORT = 2000
110
+ SIEVE_PORT = 4190
111
111
 
112
112
  attr_reader :host, :port, :user, :euser, :capabilities, :login_mechs, :tls
113
113
 
@@ -115,7 +115,7 @@ class ManageSieve
115
115
  # following keys:
116
116
  #
117
117
  # [<i>:host</i>] the sieve server
118
- # [<i>:port</i>] the sieve port (defaults to 2000)
118
+ # [<i>:port</i>] the sieve port (defaults to 4190)
119
119
  # [<i>:user</i>] the name of the user
120
120
  # [<i>:euser</i>] the name of the effective user (defaults to +:user+)
121
121
  # [<i>:password</i>] the password of the user
@@ -124,7 +124,7 @@ class ManageSieve
124
124
  #
125
125
  def initialize(info)
126
126
  @host = info[:host]
127
- @port = info[:port] || 2000
127
+ @port = info[:port] || 4190
128
128
  @user = info[:user]
129
129
  @euser = info[:euser] || @user
130
130
  @password = info[:password]
@@ -339,7 +339,7 @@ class ManageSieve
339
339
 
340
340
  private
341
341
  def sieve_string(string) # :nodoc:
342
- return "{#{string.length}+}\r\n#{string}"
342
+ return "{#{string.bytesize}+}\r\n#{string}"
343
343
  end
344
344
 
345
345
  private
metadata CHANGED
@@ -1,65 +1,48 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby-managesieve
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 2
9
- version: 0.4.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.3
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Andre Nathan
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2010-06-22 00:00:00 -03:00
18
- default_executable:
11
+ date: 2016-05-19 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
- description: " ruby-managesieve is a pure-ruby implementation of the MANAGESIEVE protocol,\n allowing remote management of Sieve scripts from ruby.\n"
13
+ description: |2
14
+ ruby-managesieve is a pure-ruby implementation of the MANAGESIEVE protocol,
15
+ allowing remote management of Sieve scripts from ruby.
22
16
  email: andre@sneakymustard.com
23
- executables:
17
+ executables:
24
18
  - sievectl
25
19
  extensions: []
26
-
27
20
  extra_rdoc_files: []
28
-
29
- files:
30
- - lib/managesieve.rb
21
+ files:
31
22
  - bin/sievectl
32
- has_rdoc: true
23
+ - lib/managesieve.rb
33
24
  homepage: http://managesieve.rubyforge.org
34
25
  licenses: []
35
-
26
+ metadata: {}
36
27
  post_install_message:
37
28
  rdoc_options: []
38
-
39
- require_paths:
29
+ require_paths:
40
30
  - lib
41
- required_ruby_version: !ruby/object:Gem::Requirement
42
- none: false
43
- requirements:
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
44
33
  - - ">="
45
- - !ruby/object:Gem::Version
46
- segments:
47
- - 0
48
- version: "0"
49
- required_rubygems_version: !ruby/object:Gem::Requirement
50
- none: false
51
- requirements:
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
52
38
  - - ">="
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 0
56
- version: "0"
57
- requirements:
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements:
58
42
  - A network connection and a MANAGESIEVE server.
59
43
  rubyforge_project: ruby-managesieve
60
- rubygems_version: 1.3.7
44
+ rubygems_version: 2.5.1
61
45
  signing_key:
62
- specification_version: 3
46
+ specification_version: 4
63
47
  summary: A Ruby library for the MANAGESIEVE protocol
64
48
  test_files: []
65
-