uss-enterprise 0.0.2.5 → 0.0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/test.rb +23 -10
- data/readme.md +57 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c88b0d38a388e2db037680c05786be0ea5d0847
|
4
|
+
data.tar.gz: b57c2b1dad4b58da78e71f8d87cc5ef372eedd51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c253d9359d7483918efc8640f51515ea53fe462bad258cbc60bdfb0f51c1a53684ee52c50675045926e72ead1d72fc0b34495b56c97003b8ba7f49d68f417853
|
7
|
+
data.tar.gz: 46e0761c2b1a0b439d4f3608791007f4397b855bd8b85006db3003ad4f8dac6fae1316c08315576fc56e0c1e5599217dee68e6599bddd3fa8a933ace041fb9b4
|
data/lib/test.rb
CHANGED
@@ -1,13 +1,26 @@
|
|
1
|
-
ship =
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
ship = <<~HEREDOC
|
2
|
+
/\/\/\ / \
|
3
|
+
| \ / | / \
|
4
|
+
| \/ | / \
|
5
|
+
| /\ |----------------------| /\ |
|
6
|
+
| / \ | | / \ |
|
7
|
+
|/ \| | / \ |
|
8
|
+
|\ /| | | ( ) | |
|
9
|
+
| \ / | | | ( ) | |
|
10
|
+
| \/ | /\ | | | | /\
|
11
|
+
| /\ | / \ | | | | / \
|
12
|
+
| / \ | |----| | | | | |----|
|
13
|
+
|/ \|---------------| | | /| . |\ | | |
|
14
|
+
|\ /| | | / | . | \ | |
|
15
|
+
| \ / | | / | . | \ |
|
16
|
+
| \/ | | / | . | \ |
|
17
|
+
| /\ |---------------|/ | . | \|
|
18
|
+
| / \ | / NASA | . | NASA \
|
19
|
+
|/ \| ( | | )
|
20
|
+
|/\/\/\| | | |--| |--| | |
|
21
|
+
------------------------/ \-----/ \/ \-----/ \--------
|
22
|
+
\\// \\//\\// \\//
|
23
|
+
\/ \/ \/ \/
|
11
24
|
HEREDOC
|
12
25
|
|
13
26
|
|
data/readme.md
CHANGED
@@ -1 +1,57 @@
|
|
1
|
-
|
1
|
+
# USS Enterprise
|
2
|
+
|
3
|
+
*These are the voyages...*
|
4
|
+
|
5
|
+
```
|
6
|
+
-------------------------- ________________ _
|
7
|
+
----------------------------- \__(=======/_=_/____.--'-`--.___
|
8
|
+
--------------------------- \ \ `,--,-.___.----'
|
9
|
+
----------------------- .--`\\--'../
|
10
|
+
------------------- '---._____.|]
|
11
|
+
```
|
12
|
+
|
13
|
+
|
14
|
+
This gem exposes an executable on the commandline that outputs ASCII art of a ship that bore the name "U.S.S. Enterprise".
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
`gem install uss-enterprise`
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
|
22
|
+
`$ enterprise` outputs a random Enterprise.
|
23
|
+
|
24
|
+
You can also supply the `-l` flag, followed by an argument to specify a specific enterprise.
|
25
|
+
|
26
|
+
Acceptable arguments produce the following ships:
|
27
|
+
|
28
|
+
- `rev # => U.S.S Enterprise (1775) - US Navy sloop during the American Revolution`
|
29
|
+
- `cvn # => U.S.S. Enterprise CVN-65 - Nimitz class aircraft carrier`
|
30
|
+
- `ov # => Enterprise O.V.-101 - Test unit spaceshuttle`
|
31
|
+
- `nx # => Enterprise NX-01`
|
32
|
+
- `none # => Enterprise NCC-1701`
|
33
|
+
- `a # => Enterprise NCC-1701-A`
|
34
|
+
- `b # => Enterprise NCC-1701-B`
|
35
|
+
- `c # => Enterprise NCC-1701-C`
|
36
|
+
- `d # => Enterprise NCC-1701-D`
|
37
|
+
- `e # => Enterprise NCC-1701-E`
|
38
|
+
|
39
|
+
*It doesn't handle bad arguments well yet.*
|
40
|
+
|
41
|
+
## Recommended usage
|
42
|
+
|
43
|
+
Append `enterprise [-l] [arg]` to your `.bash_profile` or `.zshrc` or whatever so you are greeted with an awesome ship every time you load the terminal.
|
44
|
+
|
45
|
+
|
46
|
+
### Sources for ASCII art
|
47
|
+
|
48
|
+
- [Sloop (1775)](http://www.ascii-code.com/ascii-art/vehicles/boats.php)
|
49
|
+
- [Aircraft carrier](http://carrier.ascii.uk/)
|
50
|
+
- [Spaceshuttle](http://www.ascii-code.com/ascii-art/space/spaceships.php)
|
51
|
+
- [NX class](https://startrekasciiart.blogspot.co.uk/2011/05/nx-class.html)
|
52
|
+
- [Constitution class](https://startrekasciiart.blogspot.co.uk/2011/06/constitution-class.html)
|
53
|
+
- [Constitution refit](https://startrekasciiart.blogspot.co.uk/2011/06/constitution-class-refit.html)
|
54
|
+
- [Excelsior class](https://startrekasciiart.blogspot.co.uk/2011/05/excelsior-class.html)
|
55
|
+
- [Ambassador class](https://startrekasciiart.blogspot.co.uk/2011/06/ambassador-class.html)
|
56
|
+
- [Galaxy class](https://startrekasciiart.blogspot.co.uk/2011/05/galaxy-class.html)
|
57
|
+
- [Sovereign class](https://startrekasciiart.blogspot.co.uk/2011/05/sovereign-class.html)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uss-enterprise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.2.
|
4
|
+
version: 0.0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean DMR
|
@@ -27,7 +27,7 @@ files:
|
|
27
27
|
- lib/uss-enterprise/ship_builders.rb
|
28
28
|
- lib/uss-enterprise/ship_chooser.rb
|
29
29
|
- readme.md
|
30
|
-
homepage: https://github.com/flyinggrizzly/enterprise
|
30
|
+
homepage: https://github.com/flyinggrizzly/uss-enterprise
|
31
31
|
licenses:
|
32
32
|
- GPL-3.0
|
33
33
|
metadata: {}
|