gitlab-mail-receiver 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: 685533be718d29db08f1ba52b4b3118a166bc7d8
4
- data.tar.gz: 85d33b4ce3c0ddbaaf1118ba95a7a82e211e6210
3
+ metadata.gz: ae22f9be458e95138d60bd137d3eefc7513f8cdd
4
+ data.tar.gz: 774527e1529bb8ca672a0ab4a3562591f96f43f6
5
5
  SHA512:
6
- metadata.gz: 29173d1720d26e9a9ca378e67c5b6fff0825b51e223093533b56eb56f5298602246ef9f3ecf6d336d9706c787ec17fab90275736ce05d678283e969ce4050390
7
- data.tar.gz: a4583f133dd241987ec5cd66b108c567a306c433321d3e027843a4ac497a5e71f4e2bb2e312662ca7b4afe7fb6fde549a7b6ac7beca9774c38610c96a092135e
6
+ metadata.gz: dd04fd68af022fde1f07d9c3134590e809834bfbf21e0f0eb99a397c1be2f7578641519340533b200ff95ec1da9db350973004e42d69116ebdf5bd288b8acb14
7
+ data.tar.gz: 9917fdd2dd356076996565e246143e70520ab59fdba7d87d39ae4844377f3b838076af0a71abfdb7aea3a227e6cc2748e71a65a875e414b4e33318601f7ae7fc
data/README.md CHANGED
@@ -24,7 +24,7 @@ The WorkFlow:
24
24
  ## Requirements
25
25
 
26
26
  - GitLab 7.13 (I just tested on this version.)
27
- - A Email can receive mail via POP3/IMAP.
27
+ - An Email can receive mail via POP3/IMAP.
28
28
 
29
29
 
30
30
  ## Configuration
@@ -24,7 +24,7 @@ module MailReceiver
24
24
  end
25
25
 
26
26
  def merge_request?
27
- @merge_request ||= hash_data[:t].downcase == 'm'
27
+ @merge_request ||= (hash_data[:t] || 'i').downcase == 'm'
28
28
  end
29
29
 
30
30
  def body
@@ -47,12 +47,12 @@ module MailReceiver
47
47
  end
48
48
 
49
49
  if model.class.name == 'Issue'
50
- res.merge({ t: 'i' })
50
+ res.merge!({ t: 'i' })
51
51
  return res
52
52
  end
53
53
 
54
54
  if model.class.name == 'MergeRequest'
55
- res.merge({ t: 't' })
55
+ res.merge!({ t: 'm' })
56
56
  return res
57
57
  end
58
58
 
@@ -1,7 +1,7 @@
1
1
  module MailReceiver
2
2
  class << self
3
3
  def version
4
- '0.0.2'
4
+ '0.0.3'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-mail-receiver
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
  - Jason Lee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-01 00:00:00.000000000 Z
11
+ date: 2015-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mailman