ruby-managesieve 0.4.0 → 0.4.1

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.
Files changed (3) hide show
  1. data/bin/sievectl +1 -1
  2. data/lib/managesieve.rb +1 -1
  3. metadata +17 -8
data/bin/sievectl CHANGED
@@ -211,7 +211,7 @@ class SieveCtl
211
211
  def add(script, file=nil, active=false)
212
212
  action = "add#{active ? 'active' : ''}"
213
213
  raise ArgumentError, "`#{action}' requires a script name" unless script
214
- data = file ? File.open(file).readlines.to_s : STDIN.readlines.to_s
214
+ data = file ? File.open(file).readlines.join : STDIN.readlines.join
215
215
  unless @manage_sieve.have_space?(script, data.length)
216
216
  raise SieveCommandError, "not enough space for script `#{script}' " +
217
217
  "(#{data.length} bytes)"
data/lib/managesieve.rb CHANGED
@@ -175,7 +175,7 @@ class ManageSieve
175
175
  rescue SieveCommandError => e
176
176
  raise e, "Cannot get script: #{e}"
177
177
  end
178
- return data.to_s.chomp
178
+ return data.join.chomp
179
179
  end
180
180
 
181
181
  # Uploads +script+ to the server, using +data+ as its contents.
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-managesieve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 4
8
+ - 1
9
+ version: 0.4.1
5
10
  platform: ruby
6
11
  authors:
7
12
  - Andre Nathan
@@ -9,12 +14,12 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-01-13 00:00:00 -02:00
17
+ date: 2010-04-21 00:00:00 -03:00
13
18
  default_executable:
14
19
  dependencies: []
15
20
 
16
- description: ruby-managesieve is a pure-ruby implementation of the MANAGESIEVE protocol, allowing remote management of Sieve scripts from ruby.
17
- email: andre@digirati.com.br
21
+ description: " ruby-managesieve is a pure-ruby implementation of the MANAGESIEVE protocol,\n allowing remote management of Sieve scripts from ruby.\n"
22
+ email: andre@sneakymustard.com
18
23
  executables:
19
24
  - sievectl
20
25
  extensions: []
@@ -25,6 +30,8 @@ files:
25
30
  - lib/managesieve.rb
26
31
  has_rdoc: true
27
32
  homepage: http://managesieve.rubyforge.org
33
+ licenses: []
34
+
28
35
  post_install_message:
29
36
  rdoc_options: []
30
37
 
@@ -34,20 +41,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
34
41
  requirements:
35
42
  - - ">="
36
43
  - !ruby/object:Gem::Version
44
+ segments:
45
+ - 0
37
46
  version: "0"
38
- version:
39
47
  required_rubygems_version: !ruby/object:Gem::Requirement
40
48
  requirements:
41
49
  - - ">="
42
50
  - !ruby/object:Gem::Version
51
+ segments:
52
+ - 0
43
53
  version: "0"
44
- version:
45
54
  requirements:
46
55
  - A network connection and a MANAGESIEVE server.
47
56
  rubyforge_project: ruby-managesieve
48
- rubygems_version: 1.3.0
57
+ rubygems_version: 1.3.6
49
58
  signing_key:
50
- specification_version: 2
59
+ specification_version: 3
51
60
  summary: A Ruby library for the MANAGESIEVE protocol
52
61
  test_files: []
53
62