please 0.0.1 → 0.0.2
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/bin/please +26 -20
- metadata +3 -3
data/bin/please
CHANGED
@@ -1,30 +1,36 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
#Configure this!
|
4
|
-
@email_address = 'email@gmail.com'
|
5
|
-
@phone_number = '2128675309'
|
6
|
-
@carrier_gateway = 'txt.att.net'
|
7
|
-
@dydns = "moniker.is-a-geek.com"
|
8
|
-
|
9
|
-
# Main configuration ends! Don't edit anything below this if you use gmail.
|
10
3
|
require 'rubygems'
|
11
4
|
require 'pony'
|
12
5
|
|
13
|
-
|
14
|
-
|
15
|
-
@
|
6
|
+
require ENV['HOME'] + '/.please.rb'
|
7
|
+
@email_address = EMAIL_ADDRESS
|
8
|
+
@phone_number = PHONE_NUMBER
|
9
|
+
@carrier_gateway = CARRIER_GATEWAY
|
10
|
+
@dydns = DYDNS
|
11
|
+
|
12
|
+
@password =
|
13
|
+
if defined?(PASSWORD)
|
14
|
+
PASSWORD
|
15
|
+
else
|
16
|
+
`security 2>&1 >/dev/null find-internet-password -g -s 'www.google.com' -a '#{@email_address}' | cut -d '"' -f 2`.strip
|
17
|
+
end
|
16
18
|
|
17
19
|
# Change this is you don't use Gmail
|
18
|
-
@smtp_options =
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
20
|
+
@smtp_options =
|
21
|
+
if defined?(SMTP_OPTIONS)
|
22
|
+
SMTP_OPTIONS
|
23
|
+
else
|
24
|
+
{
|
25
|
+
:address => 'smtp.gmail.com',
|
26
|
+
:port => '587',
|
27
|
+
:enable_starttls_auto => true,
|
28
|
+
:user_name => @email_address,
|
29
|
+
:password => @password,
|
30
|
+
:authentication => :plain,
|
31
|
+
:domain => @dydns
|
32
|
+
}
|
33
|
+
end
|
28
34
|
|
29
35
|
@action = ARGV[0]
|
30
36
|
@object = ARGV[1]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: please
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John Joseph Bachir
|