macaddr 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/macaddr.rb CHANGED
@@ -23,7 +23,7 @@ end
23
23
  require 'systemu'
24
24
 
25
25
  module Mac
26
- VERSION = '1.3.0'
26
+ VERSION = '1.4.0'
27
27
 
28
28
  def Mac.version
29
29
  ::Mac::VERSION
data/macaddr.gemspec CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "macaddr"
6
- spec.version = "1.3.0"
6
+ spec.version = "1.4.0"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "macaddr"
9
9
  spec.description = "description: macaddr kicks the ass"
@@ -17,7 +17,7 @@ Gem::Specification::new do |spec|
17
17
  "macaddr.gemspec",
18
18
  "test",
19
19
  "test/data",
20
- "test/data/c8:bc:c8:9b:28:b1",
20
+ "test/data/osx",
21
21
  "test/mac_test.rb",
22
22
  "test/testing.rb"]
23
23
 
File without changes
data/test/mac_test.rb CHANGED
@@ -19,6 +19,8 @@ Testing Mac do
19
19
  end
20
20
 
21
21
 
22
+ ### c8\:bc\:c8\:9b\:28\:b1
23
+
22
24
  BEGIN {
23
25
  $testdir = File.dirname(File.expand_path(__FILE__))
24
26
  $rootdir = File.dirname($testdir)
@@ -28,10 +30,11 @@ BEGIN {
28
30
 
29
31
  $datadir = File.join($testdir, 'data')
30
32
  $data = {}
31
- glob = File.join($datadir, '**/**')
32
- Dir.glob(glob) do |entry|
33
- key = File.basename(entry)
34
- val = IO.read(entry)
35
- $data[key] = val
33
+
34
+ {
35
+ 'c8:bc:c8:9b:28:b1' => 'osx'
36
+ }.each do |expected, basename|
37
+ entry = File.join($datadir, basename)
38
+ $data[expected] = IO.read(entry)
36
39
  end
37
40
  }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macaddr
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
- - 3
8
+ - 4
9
9
  - 0
10
- version: 1.3.0
10
+ version: 1.4.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ara T. Howard
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-13 00:00:00 -06:00
18
+ date: 2011-08-16 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -48,7 +48,7 @@ files:
48
48
  - Rakefile
49
49
  - lib/macaddr.rb
50
50
  - macaddr.gemspec
51
- - test/data/c8:bc:c8:9b:28:b1
51
+ - test/data/osx
52
52
  - test/mac_test.rb
53
53
  - test/testing.rb
54
54
  has_rdoc: true