autoluv 0.2.2 → 0.2.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
  SHA256:
3
- metadata.gz: 9f3c71d7222a7486937b465187d751ee5192d584332ffdaf619ca9baa5bb8482
4
- data.tar.gz: ea4a8e970b7f5eab48049d6de709449766a01774c0f02f937fc8d0b365c29aed
3
+ metadata.gz: a0d1c16db7b9ddc0cd4c5ffc479b9254c1d12f403c56d43d95f0900bf17ccc4f
4
+ data.tar.gz: e794d807cf9dd6d60b1f8f9a682553d611fa72f8856039ad0987610527450a74
5
5
  SHA512:
6
- metadata.gz: b266c04c84543a1a7fce2f9ce9089d208780bef8d12b9c004ca6aab4672f83afd95ee55d0cce35d0aaa4823b01e3e96840ec226498904ab29829e6b8820f9b12
7
- data.tar.gz: 105c85764c6241f2d3249712366c90e0c3d5516a4f4125dad6456befd7869a6758dd211ef6e973ab5a547e1283cacd74c7e5ea93eebf707b34c6d81a28a65774
6
+ metadata.gz: 22db75786e4cc3c4fdb47d1ec79037182fe67a49a04f828d7ac68a0de2d7a0518ad851fe030fc58cc0563f0a986dfe5cf7d606a6b442f11f04bc7fb7316b5585
7
+ data.tar.gz: f212e333000a52feea2863df0963980bba91d5059cb598f44d18458ce69e66ddb4aea407fc1999539d49df3de6d0421d1ff8815c0bea242f3da5b5316f268777
data/README.md CHANGED
@@ -2,29 +2,35 @@
2
2
 
3
3
  Automatically check in to Southwest flights using this easy-to-use gem. It'll also email you the results so you know ASAP whether a check in was successful. Seconds count when you're fighting for that window or aisle seat!
4
4
 
5
+ ## Requirements
6
+
7
+ * A *nix-based server that will be on when you need to check in
8
+ * Ruby 2.3 or higher
9
+ * The `at` command
10
+
11
+ Tested and working on an Ubuntu 20.04 server (hosted by DigitalOcean).
12
+
5
13
  ## Installation
6
14
 
7
15
  gem install autoluv
8
16
 
9
17
  ## Usage
10
18
 
11
- ### Schedule a Check In
19
+ ### Schedule a Check-In
12
20
 
13
21
  autoluv schedule ABCDEF John Doe
14
22
 
15
- Both departing and returning flights (if applicable) will be scheduled. After scheduling, there's no need to keep the terminal window open or active. The check in will happen behind the scenes at the appropriate time.
23
+ Both departing and returning flights (if applicable) will be scheduled for all passengers tied to the confirmation number. After scheduling, there's no need to keep the terminal window open or active. The check in will happen behind the scenes at the appropriate time.
16
24
 
17
25
  **Note:** If a first or last name includes a space, wrap it in double quotes (e.g. "Mary Kate")
18
26
 
19
- ### Schedule a Check In With Email Notification
20
-
21
- Follow the instructions below for configuring email notifications.
27
+ ### Schedule a Check-In With Email Notification
22
28
 
23
- autoluv schedule ABCDEF John Doe john.doe@email.com
29
+ Before using this command, follow the instructions below to configure the required settings.
24
30
 
25
- A second email address can also be passed in to receive notifications (BCCed).
31
+ autoluv schedule ABCDEF John Doe john.doe@email.com optional@bcc.com
26
32
 
27
- autoluv schedule ABCDEF John Doe john.doe@email.com second.email@bcc.com
33
+ The second email address is optional and will be BCCed the results.
28
34
 
29
35
  ### Check In Immediately
30
36
 
@@ -32,9 +38,9 @@ A second email address can also be passed in to receive notifications (BCCed).
32
38
 
33
39
  ## Configure Email Notifications
34
40
 
35
- This is optional, however, highly recommended. Especially if a scheduled check in fails, you'll get notified and can manually check in. Every second counts!
41
+ This is optional, however, highly recommended. Especially if a scheduled check-in fails, you'll get notified and can manually check in. Every second counts!
36
42
 
37
- On a successful check in, the email will share boarding positions for each passenger.
43
+ Boarding positions are shown for each passenger when a check-in succeeds.
38
44
 
39
45
  **Step 1:** Create the file `.autoluv.env` in your user's home directory.
40
46
 
@@ -56,6 +62,14 @@ If your email account has two-factor authentication enabled, be sure to use an a
56
62
 
57
63
  **Step 4:** Hit `Ctrl+O` to save the file and then `Ctrl+X` to exit the text editor.
58
64
 
65
+ ### Test Email Notifications
66
+
67
+ To verify your SMTP settings, schedule a check-in with invalid information and a valid email address.
68
+
69
+ autoluv schedule AAAAAA Fake Name valid@email.com
70
+
71
+ If everything is set up correctly, you'll get an email notifying you of an unsuccessful check-in.
72
+
59
73
  ### Get Text Instead of Email Notifications
60
74
 
61
75
  [Use this Zap](https://zapier.com/apps/email/integrations/sms/9241/get-sms-alerts-for-new-email-messages) to get a custom Zapier email address that forwards emails as text messages. It's handy for people like me who don't have email notifications enabled on their phone or computer and want check-in results ASAP.
@@ -57,11 +57,15 @@ module Autoluv
57
57
  # only send an email if we have all the environmental variables set
58
58
  return if PONY_OPTIONS.values.any? &:empty?
59
59
 
60
- Pony.mail(PONY_OPTIONS.merge({
61
- to: to,
62
- bcc: bcc,
63
- subject: subject,
64
- body: body,
65
- }))
60
+ begin
61
+ Pony.mail(PONY_OPTIONS.merge({
62
+ to: to,
63
+ bcc: bcc,
64
+ subject: subject,
65
+ body: body,
66
+ }))
67
+ rescue => e
68
+ puts e.message
69
+ end
66
70
  end
67
71
  end
@@ -1,3 +1,3 @@
1
1
  module Autoluv
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoluv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Tran
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-25 00:00:00.000000000 Z
11
+ date: 2020-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client