AutoNic 1.0.2 → 1.0.3
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 +8 -8
- data/README.md +7 -6
- data/autonic.gemspec +1 -1
- data/lib/autonic.rb +1 -1
- data/spec/autonic.spec.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDg0N2RmN2FiOTE5NDYwMDVhNzcyMzJmOGViMWY1Njg5ZGFjYjZhNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODBkOGViYWMzNThmNmEzODVmMzgyM2MyN2RjNjA3NzhiZDU0OTY3NA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODUzYWY1OTk1NTYwODRhNjljZGMwMzA4NzIzMmM3NWYxYTUyNmYxNmMyNmFk
|
10
|
+
ZDg4MDgxOTU0ZTEyOTlkMTJjNjgyNTNkNDBlYTAyODAxN2M1ZWE4NzkyYmU5
|
11
|
+
MGI5ZTcxZWEyZWFmOGYwZTRkNWU2NzA4N2Y1YjVhMDZlMzc4Y2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjBkNmE5ODVlZjY1MjA2ODhjODIzNzRkZWRjYWE2NTgxM2Q5ZDIwZWUyNmM2
|
14
|
+
ZGU0MThhZDFhMzhkNTljYTA4MWVmM2I2NGExZGZiMWJlMTkwNTBlZWZhYzUz
|
15
|
+
YWVjZDc0OTA2NjZhZDVjODFlNTRmNzBhZTk0MGIyZjc1NGRmMjE=
|
data/README.md
CHANGED
@@ -12,14 +12,15 @@ AutoNic is packaged as a rubygem, and you'll need to have at least ruby 1.9 avai
|
|
12
12
|
|
13
13
|
Run it with the `autonic` command.
|
14
14
|
|
15
|
-
|
15
|
+
```bash
|
16
|
+
$ autonic
|
16
17
|
Mac: 00:A0:C9:14:C8:29
|
17
|
-
Name:
|
18
|
-
|
18
|
+
Name: bavaza_gazale
|
19
|
+
```
|
19
20
|
|
20
21
|
Examples
|
21
22
|
--------
|
22
23
|
|
23
|
-
|
24
|
-
|
25
|
-
|
24
|
+
- bawozuri
|
25
|
+
- bahiyure_ru
|
26
|
+
- bavaza_gazale
|
data/autonic.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "AutoNic"
|
7
|
-
gem.version = '1.0.
|
7
|
+
gem.version = '1.0.3'
|
8
8
|
gem.authors = ["whoojemaflip"]
|
9
9
|
gem.email = ["whoojemaflip@gmail.com"]
|
10
10
|
gem.description = %q{Create a silly name for your server automatically from it's Mac address}
|
data/lib/autonic.rb
CHANGED
data/spec/autonic.spec.rb
CHANGED
@@ -8,22 +8,22 @@ describe 'AutoNic' do
|
|
8
8
|
|
9
9
|
it 'gives your server a cute name' do
|
10
10
|
@macr.macaddr = "00:B0:D0:86:BB:F7"
|
11
|
-
@macr.name.should eq "
|
11
|
+
@macr.name.should eq "bawozuri"
|
12
12
|
end
|
13
13
|
|
14
14
|
it 'makes no promises that it will be prouncable' do
|
15
15
|
@macr.macaddr = "00:1b:63:84:45:e6"
|
16
|
-
@macr.name.should eq "
|
16
|
+
@macr.name.should eq "bahiyure_ru"
|
17
17
|
end
|
18
18
|
|
19
19
|
it 'probably sounds like baby noises' do
|
20
20
|
@macr.macaddr = "00:A0:C9:14:C8:29"
|
21
|
-
@macr.name.should eq "
|
21
|
+
@macr.name.should eq "bavaza_gazale"
|
22
22
|
end
|
23
23
|
|
24
24
|
it 'does not create unique names' do
|
25
25
|
@macr.macaddr = "14:10:9f:d8:6e:f7"
|
26
|
-
@macr.name.should eq "
|
26
|
+
@macr.name.should eq "gafetu_pa"
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|