mailarchiva 0.0.12 → 1.0.0

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: 7e0122f195ca0230d978a07ecd83b91291a94dd2
4
- data.tar.gz: 21809e1a22118c12df14193f05d0eb06dd9a7123
3
+ metadata.gz: 2f1713727ef58449b3942faeb09527721fd65e9f
4
+ data.tar.gz: 486bd1d8b6a5cb2af3e4a80d3d0c4120b3bb65cb
5
5
  SHA512:
6
- metadata.gz: 23a0fba320525747177454ab293888799a16cb9721ac458d5ba3e1dab4c7f3eb068ed3c5cfc2ba53f882e48c680198c9c2be33f1c83371ec164c4c9e4be09d39
7
- data.tar.gz: 035504742b5ec98b559bcee9f33d2ec8f5d69437728e89731b245161c1c32c99734358d4623bc5b0f5a1dc397f0604c3845b13523523bb7355fb1598de58c4ac
6
+ metadata.gz: 197333831456c17db58ef0a9ce55cc1a7aa31d1278a70e39bb45e23b5a5a2d3983238f099e51e31d230fe71829f9e082f19ab031f8c8ec46a2d659ec2a8a310e
7
+ data.tar.gz: ba3283bac0d2e957ffe2cc6b1fcae62d07bc7e356b6ad021f3b85c02817f63b069feb0b6132d3ed3c9f306c25accf56c3f9664e689f8e0cbfa0193e2045690d9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.12
1
+ 1.0.0
@@ -39,9 +39,9 @@ module Mailarchiva
39
39
 
40
40
  def to
41
41
  if undisclosed_recipients?
42
- mail_message.header.fields.select{|field| field.name =~ /received/i && field.value =~ /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/i }.collect{|field| field.value.match( /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/).captures.first}.uniq.join
42
+ mail_message.header.fields.select{|field| field.name =~ /received/i && field.value =~ /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/i }.collect{|field| field.value.match( /\sfor\s\W?([\w\._\-]+@[\w\._\-]+)\W/).captures.first}.uniq.compact
43
43
  elsif raw_to
44
- raw_to.match(/<(.*)>/).captures.first
44
+ [raw_to.match(/<(.*)>/).captures.first].compact
45
45
  end
46
46
  end
47
47
 
@@ -2,16 +2,16 @@
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.12 ruby lib
5
+ # stub: mailarchiva 1.0.0 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "mailarchiva"
9
- s.version = "0.0.12"
9
+ s.version = "1.0.0"
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"]
13
13
  s.authors = ["David John"]
14
- s.date = "2015-07-15"
14
+ s.date = "2015-08-24"
15
15
  s.description = "A gem to access the Mailarchiva API"
16
16
  s.email = "dj@dbjohn.com"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mailarchiva
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David John
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2015-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail