mailarchiva 0.0.2 → 0.0.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
  SHA1:
3
- metadata.gz: e5f2ae7b5f274f090e4f7d1c549485e73aac985f
4
- data.tar.gz: 70fdae978a67c853c33a5c473c23298f6e5c5fb1
3
+ metadata.gz: 0c39f5da7f5bc73ce78fcd3fc31598d074ef32f3
4
+ data.tar.gz: 128c43d7abc8b2d4061c22caf80f5c3568c71e9e
5
5
  SHA512:
6
- metadata.gz: 50506130212871eeffd43f98dba09d04fd0027f337c418f92a2ab94667702c031ceaaa8697c1792e01314cce79f2f10818464ff108ff25e368b30bb7b0ed7ce3
7
- data.tar.gz: 48ac2d9e819923b041e2c17a373fe3ecc1ae5b169d8a13a50a01cc4fc08d2ae51d12efcac2ee3a503764c70453daf571562ca63d4d696843a9ab31b0e8ee9ff4
6
+ metadata.gz: 69cf0fe57d7a7de2268bc489026d7a5c88d23168dac32414cdaefda1d0fdc8b04e88054fd7094484060e9ac44e9158ab7a8d887948b9f59e1acb8d5b3dad3a73
7
+ data.tar.gz: 953e64d3718efadb10176bd3599edd8044ce0ef094348fa474b95736f7578ba22ef506cacd900af97d76fa8fdb0835d7b36aad2b085624234d19c8b8d46bd7e4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -26,9 +26,9 @@ module Mailarchiva
26
26
 
27
27
  def search_results_from_response(response)
28
28
  return [] if search_result_size == 0
29
- search_results_response = soap_client.call(:get_search_results, message: { blob_category: 'email', start: 1, end: search_result_size })
30
- search_results = search_results_response.body[:get_search_results_response][:return]
31
- search_results.nil? ? [] : search_results.map{|field_values| Message.new(field_values)}
29
+ search_results_response = soap_client.call(:get_search_results, message: { blob_category: 'email', start: 0, end: search_result_size })
30
+ search_results = [ search_results_response.body[:get_search_results_response][:return] ].flatten.compact
31
+ search_results.map{|field_values| Message.new(field_values)}
32
32
  end
33
33
 
34
34
  def search_result_size
@@ -2,11 +2,11 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: mailarchiva 0.0.2 ruby lib
5
+ # stub: mailarchiva 0.0.3 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "mailarchiva"
9
- s.version = "0.0.2"
9
+ s.version = "0.0.3"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailarchiva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David John