absentee_camper 0.0.3 → 0.0.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.
- data/lib/absentee_camper/config.rb +26 -28
- data/lib/absentee_camper/version.rb +1 -1
- metadata +11 -11
|
@@ -3,37 +3,35 @@ module AbsenteeCamper
|
|
|
3
3
|
source ENV['ABSENTEE_CAMPER_CONFIG']
|
|
4
4
|
load!
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
6
|
+
Pony.options = {
|
|
7
|
+
# Uncomment for use with Gmail
|
|
8
|
+
#
|
|
9
|
+
#:via => :smtp, :via_options => {
|
|
10
|
+
#:address => 'smtp.gmail.com',
|
|
11
|
+
#:port => '587',
|
|
12
|
+
#:enable_starttls_auto => true,
|
|
13
|
+
#:user_name => 'your username',
|
|
14
|
+
#:password => 'your password',
|
|
15
|
+
#:authentication => :plain, # :plain, :login, :cram_md5, no auth by default
|
|
16
|
+
#:domain => "localhost.localdomain" # the HELO domain provided by the client to the server
|
|
17
|
+
#},
|
|
18
|
+
:from => "Me <campfire-#{room_id}@#{replyto_email_domain}>",
|
|
19
|
+
:subject => '[Campfire] People are talking about you!'
|
|
20
|
+
}
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
if ['smtp']
|
|
23
|
+
Pony.options.merge!({
|
|
24
|
+
:via => :smtp,
|
|
25
|
+
:via_options => {
|
|
25
26
|
:address => smtp['address'] || 'localhost',
|
|
26
27
|
:port => smtp['port'] || '25',
|
|
27
|
-
:domain => smtp['domain']
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
end
|
|
36
|
-
end
|
|
28
|
+
:domain => smtp['domain'],
|
|
29
|
+
:enable_starttls_auto => smtp['enable_starttls_auto'] || false,
|
|
30
|
+
:authentication => smtp['authentication'] || :plain,
|
|
31
|
+
:user_name => smtp.username,
|
|
32
|
+
:password => smtp.password
|
|
33
|
+
}
|
|
34
|
+
})
|
|
37
35
|
end
|
|
38
36
|
|
|
39
37
|
def room_uri
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: absentee_camper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -14,7 +14,7 @@ date: 2011-09-20 00:00:00.000000000Z
|
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: settingslogic
|
|
17
|
-
requirement: &
|
|
17
|
+
requirement: &70134901143760 !ruby/object:Gem::Requirement
|
|
18
18
|
none: false
|
|
19
19
|
requirements:
|
|
20
20
|
- - ~>
|
|
@@ -22,10 +22,10 @@ dependencies:
|
|
|
22
22
|
version: '2.0'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
|
-
version_requirements: *
|
|
25
|
+
version_requirements: *70134901143760
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: yajl-ruby
|
|
28
|
-
requirement: &
|
|
28
|
+
requirement: &70134901143260 !ruby/object:Gem::Requirement
|
|
29
29
|
none: false
|
|
30
30
|
requirements:
|
|
31
31
|
- - ~>
|
|
@@ -33,10 +33,10 @@ dependencies:
|
|
|
33
33
|
version: '0.8'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
|
-
version_requirements: *
|
|
36
|
+
version_requirements: *70134901143260
|
|
37
37
|
- !ruby/object:Gem::Dependency
|
|
38
38
|
name: httparty
|
|
39
|
-
requirement: &
|
|
39
|
+
requirement: &70134901142800 !ruby/object:Gem::Requirement
|
|
40
40
|
none: false
|
|
41
41
|
requirements:
|
|
42
42
|
- - ~>
|
|
@@ -44,10 +44,10 @@ dependencies:
|
|
|
44
44
|
version: '0.7'
|
|
45
45
|
type: :runtime
|
|
46
46
|
prerelease: false
|
|
47
|
-
version_requirements: *
|
|
47
|
+
version_requirements: *70134901142800
|
|
48
48
|
- !ruby/object:Gem::Dependency
|
|
49
49
|
name: pony
|
|
50
|
-
requirement: &
|
|
50
|
+
requirement: &70134901142340 !ruby/object:Gem::Requirement
|
|
51
51
|
none: false
|
|
52
52
|
requirements:
|
|
53
53
|
- - ~>
|
|
@@ -55,10 +55,10 @@ dependencies:
|
|
|
55
55
|
version: '1.3'
|
|
56
56
|
type: :runtime
|
|
57
57
|
prerelease: false
|
|
58
|
-
version_requirements: *
|
|
58
|
+
version_requirements: *70134901142340
|
|
59
59
|
- !ruby/object:Gem::Dependency
|
|
60
60
|
name: rspec
|
|
61
|
-
requirement: &
|
|
61
|
+
requirement: &70134901141880 !ruby/object:Gem::Requirement
|
|
62
62
|
none: false
|
|
63
63
|
requirements:
|
|
64
64
|
- - ~>
|
|
@@ -66,7 +66,7 @@ dependencies:
|
|
|
66
66
|
version: 2.6.0
|
|
67
67
|
type: :development
|
|
68
68
|
prerelease: false
|
|
69
|
-
version_requirements: *
|
|
69
|
+
version_requirements: *70134901141880
|
|
70
70
|
description: Monitors a Campfire room for @mentions, and emails the @mentioned user
|
|
71
71
|
with the message if they aren't in the room.
|
|
72
72
|
email:
|