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 +4 -4
- data/README.md +24 -10
- data/lib/autoluv.rb +10 -6
- data/lib/autoluv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0d1c16db7b9ddc0cd4c5ffc479b9254c1d12f403c56d43d95f0900bf17ccc4f
|
4
|
+
data.tar.gz: e794d807cf9dd6d60b1f8f9a682553d611fa72f8856039ad0987610527450a74
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
20
|
-
|
21
|
-
Follow the instructions below for configuring email notifications.
|
27
|
+
### Schedule a Check-In With Email Notification
|
22
28
|
|
23
|
-
|
29
|
+
Before using this command, follow the instructions below to configure the required settings.
|
24
30
|
|
25
|
-
|
31
|
+
autoluv schedule ABCDEF John Doe john.doe@email.com optional@bcc.com
|
26
32
|
|
27
|
-
|
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
|
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
|
-
|
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.
|
data/lib/autoluv.rb
CHANGED
@@ -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
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
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
|
data/lib/autoluv/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2020-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|