us_passport_tracker 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -8
- data/exe/{us_passport_tracker → uspasstracker} +14 -6
- data/lib/us_passport_tracker.rb +5 -0
- data/lib/us_passport_tracker/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 575a5045d54da2fd87af7aacfb31ba710cd46619a4c11b0bb77eaacbec3e5401
|
4
|
+
data.tar.gz: 0504cc5bab75a21730b9fb25f385f8555a2097f7e875858e130e5f9bd9976651
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 940743ba196480a4239f866e5e76c5141abe33f3ec2755ebc1facde9e8e8fc7015086ba3dd816540b229c749c81fe1108bcab52c2d8c2ca737b020b07c2da390
|
7
|
+
data.tar.gz: '0781d92d304448d50425809199648cf60a267ebd8abe1c2b7d8c97fd88a36677d0127dc0242ccd1e2369ad3818e34a17fb49d8021056196290bc66a504973403'
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# USA VISA & Passport Tracker
|
2
2
|
|
3
|
-
This is a simple CommandLine tool to check the status of your VISA & Passport collection after its been approved by the US Embassy/Consulate.
|
3
|
+
This is a simple CommandLine tool to check the status of your VISA & Passport collection after its been approved by the US Embassy/Consulate. This tool should work for all countries that have a USA Embassy/Consulate, remember to use the **ISO Alpha-2** Country Codes
|
4
4
|
|
5
5
|
![alt text](us_passport_tracker_commandline.gif)
|
6
6
|
|
@@ -22,29 +22,28 @@ Or install it yourself as:
|
|
22
22
|
|
23
23
|
## Commandline Usage
|
24
24
|
|
25
|
-
Installing this gem gives you a nice commandline tool `
|
26
|
-
This tool should work for all countries with a US Embassy/Consulate. Remember to use the full Country Name
|
25
|
+
Installing this gem gives you a nice commandline tool `uspasstracker` which you can use to quickly get your VISA status and continue with whatever you were doing.
|
27
26
|
|
28
27
|
```
|
29
|
-
|
28
|
+
uspasstracker PassportNumber ISOCountryCode
|
30
29
|
```
|
31
30
|
|
32
31
|
**Example (Status check via Ghana Embassy)**
|
33
32
|
```
|
34
|
-
|
33
|
+
uspasstracker G167290 GH
|
35
34
|
```
|
36
35
|
|
37
36
|
**Example (Status check via Nigeria Embassy)**
|
38
37
|
|
39
38
|
```
|
40
|
-
|
39
|
+
uspasstracker N167290 NG
|
41
40
|
```
|
42
41
|
|
43
42
|
## Interactive Mode
|
44
|
-
You may enter a mode advanced mode by simply typing `
|
43
|
+
You may enter a mode advanced mode by simply typing `uspasstracker` without any arguments
|
45
44
|
|
46
45
|
```
|
47
|
-
|
46
|
+
uspasstracker
|
48
47
|
```
|
49
48
|
|
50
49
|
## Application Usage
|
@@ -6,15 +6,15 @@ require 'tty-spinner'
|
|
6
6
|
require 'tty-font'
|
7
7
|
require 'pastel'
|
8
8
|
|
9
|
-
USAGE = "USAGE:
|
9
|
+
USAGE = "USAGE: uspasstracker PassportNumber ISOCountryCode
|
10
10
|
|
11
11
|
Examples (Ghana, Nigeria, China Respectively)
|
12
12
|
---------------------------------------------
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
uspasstracker G167290 GH
|
14
|
+
uspasstracker N982922 NG
|
15
|
+
uspasstracker C829293 CN
|
16
16
|
|
17
|
-
Just call [
|
17
|
+
Just call [uspasstracker] without arguments for interactive mode".freeze
|
18
18
|
|
19
19
|
CREDITS = "v#{USPassportTracker::VERSION} codename #{USPassportTracker::CODENAME}
|
20
20
|
Maintained and brought to you by Alfred Rowe".freeze
|
@@ -38,6 +38,14 @@ def credits
|
|
38
38
|
line_separator
|
39
39
|
end
|
40
40
|
|
41
|
+
def status(tracker)
|
42
|
+
if tracker.ready_for_pickup?
|
43
|
+
@pastel.green(tracker.response_text)
|
44
|
+
else
|
45
|
+
@pastel.red(tracker.response_text)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
41
49
|
if ARGV.size == 1 && ARGV[0] == 'help'
|
42
50
|
credits
|
43
51
|
puts USAGE
|
@@ -64,4 +72,4 @@ tracker.status
|
|
64
72
|
spinner.stop(@pastel.green('Done!'))
|
65
73
|
line_separator
|
66
74
|
puts(bold_text("Country Name: #{@pastel.green(tracker.country_name)}"))
|
67
|
-
puts(bold_text("Status: #{
|
75
|
+
puts(bold_text("Status: #{status(tracker)}"))
|
data/lib/us_passport_tracker.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: us_passport_tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alfred Rowe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,7 +113,7 @@ description: Use this tool to check the status of your VISA & Passport collectio
|
|
113
113
|
email:
|
114
114
|
- luvlyrowe@gmail.com
|
115
115
|
executables:
|
116
|
-
-
|
116
|
+
- uspasstracker
|
117
117
|
extensions: []
|
118
118
|
extra_rdoc_files: []
|
119
119
|
files:
|
@@ -128,7 +128,7 @@ files:
|
|
128
128
|
- Rakefile
|
129
129
|
- bin/console
|
130
130
|
- bin/setup
|
131
|
-
- exe/
|
131
|
+
- exe/uspasstracker
|
132
132
|
- lib/us_passport_tracker.rb
|
133
133
|
- lib/us_passport_tracker/version.rb
|
134
134
|
- us_passport_tracker.gemspec
|