zimbra_intercepting_proxy 0.0.4.3 → 0.0.4.4

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: 83d9620bd1aa1ec6ac96f2aa64db725be374daae
4
- data.tar.gz: 7071c9856422b7ab43172b76c156a4c69ba38f9e
3
+ metadata.gz: 4c252b4d3f6a2006058703ec346b5079e8643a85
4
+ data.tar.gz: a3844422f82a76f3f58ea75870840de0a507da59
5
5
  SHA512:
6
- metadata.gz: b2fce49c23f5a8a3886e390093e56ff6d3dc7e9ad169c75d2d6204975b2d3af39c83d489d8cc7db60826bb5ae6a991f546bc23cf340fa03d5b44e40d69b3c36b
7
- data.tar.gz: 63722a2fecf679f020c42afd7c63ee02988993627a38c8c223921c10f7c874c6a96e2cdc46ef36d0fd3440fd5149ef9612b707abf19ad3f8c55782d5336688c2
6
+ metadata.gz: 102e74a21d901310d8e40053a5bc1a5c72fda1489ad971c05d6eb701311dd9ae986f3c066edd5e4a88d0417c6366bcb51c64def3cf9e31cdaad5c733ea8dd8e6
7
+ data.tar.gz: 9f6be220d1d03645118d5dd608c2062edb7585b807f64aa5c8cb211a4d6e2f344219399c99c42ca1eb5dcf46c43a822063b05fe20e7b57d603af319b812a44af
@@ -49,6 +49,7 @@ module ZimbraInterceptingProxy
49
49
  end
50
50
 
51
51
  def set_email user_identifier
52
+ return nil if user_identifier.nil?
52
53
  return user_identifier if user_identifier.match(/@/)
53
54
  return "#{user_identifier}@#{ZimbraInterceptingProxy::Config.domain}" unless UUID.validate user_identifier
54
55
  nil
@@ -1,3 +1,3 @@
1
1
  module ZimbraInterceptingProxy
2
- VERSION = "0.0.4.3"
2
+ VERSION = "0.0.4.4"
3
3
  end
data/test/test_user.rb CHANGED
@@ -52,4 +52,9 @@ class User < Minitest::Test
52
52
  assert(!u.migrated?, "Failure message.")
53
53
  end
54
54
 
55
+ def test_migrated_false_if_email_nil
56
+ u = ZimbraInterceptingProxy::User.new(nil)
57
+ assert(!u.migrated?, "Failure message.")
58
+ end
59
+
55
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zimbra_intercepting_proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.3
4
+ version: 0.0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patricio Bruna