please 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/please +26 -20
  2. 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
- # you may have to fiddle with this and delete unused/redundant/old things from your
14
- # keychain to make this work. test it in irb.
15
- @password = `security 2>&1 >/dev/null find-internet-password -g -s 'www.google.com' -a '#{@email_address}' | cut -d '"' -f 2`.strip
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
- :address => 'smtp.gmail.com',
20
- :port => '587',
21
- :enable_starttls_auto => true,
22
- :user_name => @email_address,
23
- :password => @password,
24
- :authentication => :plain,
25
- :domain => @dydns
26
- }
27
- ## configuration ends! Don't edit anything below this!
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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Joseph Bachir