autoreply 0.1.3 → 0.1.4
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47956b1d37432fb647cdbbacbb6dd281fbe1f48b
|
4
|
+
data.tar.gz: d2a3923cea5db75c953dc6524fa6214782f64dbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e022aad2ff2980ae5934b1d0b7f02337f6d1ab3f9182b4aad2db1b01f14c6b8c7c740f679355d1742050dc48b62c2618b642e2bfb7b3500cba3f006cec007c4
|
7
|
+
data.tar.gz: 57e658ae6679a8e3b35da154d61a730bdaec15169cf4c743c8a8346cf333dea781175fb90a563d9a74f539968fc5713283038351d26014558e65236e0f49d4cd
|
data/.travis.yml
CHANGED
@@ -19,22 +19,18 @@ module Autoreply
|
|
19
19
|
]
|
20
20
|
|
21
21
|
def autoreply?
|
22
|
-
!detected_subjects.
|
22
|
+
!detected_subjects.empty?
|
23
23
|
end
|
24
24
|
|
25
25
|
private
|
26
26
|
|
27
27
|
def detected_subjects
|
28
|
-
return unless mail.subject
|
28
|
+
return [] unless mail.subject
|
29
29
|
|
30
30
|
KNOWN_SUBJECTS.inject([]) do |result, subject|
|
31
|
-
result << subject
|
31
|
+
result << subject unless mail.subject.match(subject).nil?
|
32
32
|
result
|
33
33
|
end
|
34
34
|
end
|
35
|
-
|
36
|
-
def starts_with?(string, prefix)
|
37
|
-
string[0, prefix.length] == prefix
|
38
|
-
end
|
39
35
|
end
|
40
36
|
end
|
data/lib/autoreply/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autoreply
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergey Kishenin
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2017-02-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
118
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.6.8
|
120
120
|
signing_key:
|
121
121
|
specification_version: 4
|
122
122
|
summary: Detect if email is autoresponder or "out-of-office" email
|