autoluv 0.2.1 → 0.2.2

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: 1fa9c3673d12aa12e12b72694adf279ad740f61766722994a4b2841089db4dee
4
- data.tar.gz: 95c3e70497b34a07facbbda0ae72f2107cf8e43849158022fddc1a4252b09438
3
+ metadata.gz: 9f3c71d7222a7486937b465187d751ee5192d584332ffdaf619ca9baa5bb8482
4
+ data.tar.gz: ea4a8e970b7f5eab48049d6de709449766a01774c0f02f937fc8d0b365c29aed
5
5
  SHA512:
6
- metadata.gz: 3eb77985fedabc42a7180c42e703e6685c15de245fbdf01d761f2d5ba72e4115c447b2eba6955c5c0a4305c9703e77056facf58daf94d0728c09cb1bb4af8e76
7
- data.tar.gz: df23cb0ac4b2eaeb5a1747f53eed6118556572e667e143be0b2334c8832741a7c22a36fa34ca74b679958503176d1c3c1d3248d8b45192153519858d0989aa69
6
+ metadata.gz: b266c04c84543a1a7fce2f9ce9089d208780bef8d12b9c004ca6aab4672f83afd95ee55d0cce35d0aaa4823b01e3e96840ec226498904ab29829e6b8820f9b12
7
+ data.tar.gz: 105c85764c6241f2d3249712366c90e0c3d5516a4f4125dad6456befd7869a6758dd211ef6e973ab5a547e1283cacd74c7e5ea93eebf707b34c6d81a28a65774
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  /*.gem
3
3
  /logs/
4
4
  /pkg/
5
+ /Gemfile.lock
data/README.md CHANGED
@@ -14,7 +14,7 @@ Automatically check in to Southwest flights using this easy-to-use gem. It'll al
14
14
 
15
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.
16
16
 
17
- **Note:** If a name includes a space, wrap it in double quotes (e.g. "John Doe")
17
+ **Note:** If a first or last name includes a space, wrap it in double quotes (e.g. "Mary Kate")
18
18
 
19
19
  ### Schedule a Check In With Email Notification
20
20
 
@@ -22,13 +22,13 @@ Follow the instructions below for configuring email notifications.
22
22
 
23
23
  autoluv schedule ABCDEF John Doe john.doe@email.com
24
24
 
25
- A second email address can be passed in as well and get the results BCCed to it.
25
+ A second email address can also be passed in to receive notifications (BCCed).
26
26
 
27
27
  autoluv schedule ABCDEF John Doe john.doe@email.com second.email@bcc.com
28
28
 
29
29
  ### Check In Immediately
30
30
 
31
- autoluv checkin ABCDEF Jane Doe
31
+ autoluv checkin ABCDEF John Doe
32
32
 
33
33
  ## Configure Email Notifications
34
34
 
@@ -52,7 +52,7 @@ LUV_PORT = 587
52
52
 
53
53
  **Step 3:** Replace the values with the appropriate SMTP settings for your email provider. `LUV_FROM_EMAIL` should be the email address associated with `LUV_USER_NAME`.
54
54
 
55
- If your email account has two-factor authentication enabled, be sure to use an app-specific password above (and *not* your account password).
55
+ If your email account has two-factor authentication enabled, be sure to use an app-specific password and *not* your account password.
56
56
 
57
57
  **Step 4:** Hit `Ctrl+O` to save the file and then `Ctrl+X` to exit the text editor.
58
58
 
@@ -62,7 +62,7 @@ If your email account has two-factor authentication enabled, be sure to use an a
62
62
 
63
63
  ## Manage Check-Ins
64
64
 
65
- `autoluv` uses the `at` command behind the scenes to check in at a specific time. Use the related `atq` and `atrm` commands to manage them.
65
+ `autoluv` uses the `at` command behind the scenes to check in at a specific time. Use the related `atq` and `atrm` commands to manage check-ins.
66
66
 
67
67
  ### View Scheduled Check-Ins
68
68
  Make note of the first column's number.
@@ -92,6 +92,3 @@ Bug reports and pull requests are welcome.
92
92
  ## License
93
93
 
94
94
  The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
95
-
96
- # TODO: try getting it working on macos.
97
- # TODO: does scheduling pass two-word names to checkin properly?
@@ -12,9 +12,12 @@ Gem::Specification.new do |spec|
12
12
  spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13
13
 
14
14
  spec.add_runtime_dependency "rest-client", "~> 2.1.0"
15
- spec.add_runtime_dependency "pony", "~> 1.13.0"
16
- spec.add_runtime_dependency "dotenv", "~> 2.7.0"
17
- spec.add_runtime_dependency "tzinfo", "~> 0.3.0"
15
+ spec.add_runtime_dependency "pony", "~> 1.13.1"
16
+ spec.add_runtime_dependency "dotenv", "~> 2.7.6"
17
+ spec.add_runtime_dependency "tzinfo", "~> 2.0.2"
18
+ spec.add_runtime_dependency "json", "~> 2.3.1"
19
+ spec.add_runtime_dependency "fileutils", "~> 1.4.1"
20
+ spec.add_runtime_dependency "logger", "~> 1.4.2"
18
21
 
19
22
  # Specify which files should be added to the gem when it is released.
20
23
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -1,8 +1,10 @@
1
1
  require "autoluv/version"
2
2
  require "autoluv/southwestclient"
3
3
  require "pony"
4
-
4
+ require "logger"
5
+ require "fileutils"
5
6
  require "dotenv"
7
+
6
8
  Dotenv.load("#{Dir.home}/.autoluv.env")
7
9
 
8
10
  module Autoluv
@@ -6,8 +6,6 @@ require "shellwords"
6
6
 
7
7
  module Autoluv
8
8
  class SouthwestClient
9
- @confirmation_number = @first_name = @last_name = @options = nil
10
-
11
9
  # minimum required headers for all API calls
12
10
  DEFAULT_HEADERS = {
13
11
  "Content-Type": "application/json",
@@ -1,3 +1,3 @@
1
1
  module Autoluv
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autoluv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Tran
@@ -30,42 +30,84 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.13.0
33
+ version: 1.13.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.13.0
40
+ version: 1.13.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dotenv
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.7.0
47
+ version: 2.7.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.7.0
54
+ version: 2.7.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: tzinfo
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.3.0
61
+ version: 2.0.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.3.0
68
+ version: 2.0.2
69
+ - !ruby/object:Gem::Dependency
70
+ name: json
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 2.3.1
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 2.3.1
83
+ - !ruby/object:Gem::Dependency
84
+ name: fileutils
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.4.1
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.4.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: logger
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 1.4.2
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 1.4.2
69
111
  description:
70
112
  email:
71
113
  - hello@alextran.org
@@ -74,10 +116,8 @@ executables:
74
116
  extensions: []
75
117
  extra_rdoc_files: []
76
118
  files:
77
- - ".env"
78
119
  - ".gitignore"
79
120
  - Gemfile
80
- - Gemfile.lock
81
121
  - LICENSE.txt
82
122
  - README.md
83
123
  - Rakefile
data/.env DELETED
@@ -1,6 +0,0 @@
1
- TO_EMAIL = hello@alextran.org
2
- FROM_EMAIL = autoluv@outlook.com
3
- SMTP_SERVER = smtp.office365.com
4
- PORT = 587
5
- USER_NAME = autoluv@outlook.com
6
- PASSWORD = cislmkwowwntafuw
@@ -1,45 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- autoluv (0.1.0)
5
- dotenv (~> 2.7.0)
6
- pony (~> 1.13.0)
7
- rest-client (~> 2.1.0)
8
- tzinfo (~> 0.3.0)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- domain_name (0.5.20190701)
14
- unf (>= 0.0.5, < 1.0.0)
15
- dotenv (2.7.6)
16
- http-accept (1.7.0)
17
- http-cookie (1.0.3)
18
- domain_name (~> 0.5)
19
- mail (2.7.1)
20
- mini_mime (>= 0.1.1)
21
- mime-types (3.3.1)
22
- mime-types-data (~> 3.2015)
23
- mime-types-data (3.2020.0512)
24
- mini_mime (1.0.2)
25
- netrc (0.11.0)
26
- pony (1.13.1)
27
- mail (>= 2.0)
28
- rest-client (2.1.0)
29
- http-accept (>= 1.7.0, < 2.0)
30
- http-cookie (>= 1.0.2, < 2.0)
31
- mime-types (>= 1.16, < 4.0)
32
- netrc (~> 0.8)
33
- tzinfo (0.3.57)
34
- unf (0.1.4)
35
- unf_ext
36
- unf_ext (0.0.7.7)
37
-
38
- PLATFORMS
39
- ruby
40
-
41
- DEPENDENCIES
42
- autoluv!
43
-
44
- BUNDLED WITH
45
- 2.1.4