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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDU5ZjY2MjdlZjAxMzhjMmMxMDE5OWYxMjAxOTBiMmU4NzJlMTY0Yw==
4
+ NDg0N2RmN2FiOTE5NDYwMDVhNzcyMzJmOGViMWY1Njg5ZGFjYjZhNQ==
5
5
  data.tar.gz: !binary |-
6
- NWJmM2Y3NzExZTQ4NmExYzZhMGFiMzQ0NjZhZjNkOTRmOGZkM2FjOQ==
6
+ ODBkOGViYWMzNThmNmEzODVmMzgyM2MyN2RjNjA3NzhiZDU0OTY3NA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ODdhMzhmMmZjYTUzZmUxZjAyYTdhY2RlMDc0Y2Q5NDY3ZGYyMTg2NTZlMTBi
10
- NzU3YmMwNWEzOTI3ZTIyZjU1MjE2YzNhYzU5MzYyYTlkNzM2N2JmOGUwZDg5
11
- ZmZhZDQwOWNkNmViOTg5NTVlOGI1ZWFjMDU2N2E2ZWFhYjUxNTI=
9
+ ODUzYWY1OTk1NTYwODRhNjljZGMwMzA4NzIzMmM3NWYxYTUyNmYxNmMyNmFk
10
+ ZDg4MDgxOTU0ZTEyOTlkMTJjNjgyNTNkNDBlYTAyODAxN2M1ZWE4NzkyYmU5
11
+ MGI5ZTcxZWEyZWFmOGYwZTRkNWU2NzA4N2Y1YjVhMDZlMzc4Y2E=
12
12
  data.tar.gz: !binary |-
13
- YWIwYTdjZjMxY2NlZDUyYTg4MjZkZDA0NmI4ZjdlOGM1N2NjMGM5Nzg1MzYy
14
- NDJlZGZjYTQwNzVjZTYxOTliMjUzNTdjN2ZkZWVlNDY1NWJlOTVlNDgyYzgz
15
- MDExMzI5NzM0MDhiMjdjNDA5MzJiNTdjMDU1NzQ3YTM5YTBhZDY=
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
- `$ autonic
15
+ ```bash
16
+ $ autonic
16
17
  Mac: 00:A0:C9:14:C8:29
17
- Name: BAVAZA GAZALE`
18
-
18
+ Name: bavaza_gazale
19
+ ```
19
20
 
20
21
  Examples
21
22
  --------
22
23
 
23
- BAWOZURI
24
- BAHIYURE RU
25
- GAFETU
24
+ - bawozuri
25
+ - bahiyure_ru
26
+ - bavaza_gazale
@@ -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.2'
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}
@@ -19,7 +19,7 @@ class AutoNic
19
19
  end
20
20
 
21
21
  def name
22
- macAddrToName
22
+ macAddrToName.downcase.gsub(' ', '_')
23
23
  end
24
24
 
25
25
  def popHexPair(s)
@@ -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 "BAWOZURI"
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 "BAHIYURE RU"
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 "BAVAZA GAZALE"
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 "GAFETU PA"
26
+ @macr.name.should eq "gafetu_pa"
27
27
  end
28
28
  end
29
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: AutoNic
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - whoojemaflip