lspci 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27b0d31ba714fae96ac4413769672b0fe3dc4b06
4
- data.tar.gz: d1a8201831e28836cc7392facf3d6eeea6f772b3
3
+ metadata.gz: d9c81feb4b54e2fb4ab1f2033e8365d1bc385d03
4
+ data.tar.gz: 8b63b2c215a4b0801f59bb33d50f14a55925451d
5
5
  SHA512:
6
- metadata.gz: 3e55c287da8f048264368a6691dd863184ad7162151cf9d452ceb6928bb134d4e931614cf03eb9ba485e4cdfbb65c677581034defc067dc48f6375b37d15a45a
7
- data.tar.gz: c209d04c3a7ae4722c8940ab80b78893fdb8033320b1ec6a86378cc0382abba377fc3b4981cee7ad904583a2f6aab59b6cb82f8d4d0fe932f6a32ab41890943b
6
+ metadata.gz: 0e524dc51879df35629fc988b685374b5f1554e034cb6ab38095afba5bce3016699d0694578e686e9fa60287959998a8b239039d96437023fb59cc0c3b1419f7
7
+ data.tar.gz: 3d11ffed21fb7e3a4619c51387d7c6c44fdf80f95f257f794423a89690b82e9f9ece9929ef0c264d3edf6bfb38531cea3fd3622aed0fe70cf1d7a492ccfd43d7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lspci (0.1.0)
4
+ lspci (0.1.1)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -3,12 +3,6 @@
3
3
 
4
4
  # Getting Started
5
5
 
6
- ```ruby
7
- # TODO: Will add sample code soon
8
- ```
9
-
10
- ## Installation
11
-
12
6
  Add this line to your application's Gemfile:
13
7
 
14
8
  ```ruby
@@ -21,21 +15,43 @@ And then execute:
21
15
 
22
16
  Or install it yourself as:
23
17
 
24
- $ gem install ruby-lspci
18
+ $ gem install lspci
25
19
 
26
- ## Usage
27
20
 
28
- TODO: Write usage instructions here
29
-
30
- ## Development
21
+ ## Usage
31
22
 
32
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
23
+ ```ruby
24
+ [1] pry(main)> require 'lspci'
25
+ => true
26
+ [2] pry(main)> Lspci.pci_devices
27
+ => [{"slot"=>"00:00.0", "class"=>"Host bridge", "vendor"=>"Intel Corporation", "device"=>"Intel Kaby Lake Host Bridge", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 872f", "rev"=>"05"},
28
+ {"slot"=>"00:01.0", "class"=>"PCI bridge", "vendor"=>"Intel Corporation", "device"=>"Sky Lake PCIe Controller (x16)", "rev"=>"05"},
29
+ {"slot"=>"00:01.1", "class"=>"PCI bridge", "vendor"=>"Intel Corporation", "device"=>"Sky Lake PCIe Controller (x8)", "rev"=>"05"},
30
+ {"slot"=>"00:14.0", "class"=>"USB controller", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH USB 3.0 xHCI Controller", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 872f", "progif"=>"30"},
31
+ {"slot"=>"00:16.0", "class"=>"Communication controller", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH CSME HECI #1", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 872f"},
32
+ {"slot"=>"00:17.0", "class"=>"SATA controller", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH SATA controller [AHCI mode]", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 872f", "progif"=>"01"},
33
+ {"slot"=>"00:1b.0", "class"=>"PCI bridge", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH PCI Express Root Port #17", "rev"=>"f0"},
34
+ {"slot"=>"00:1c.0", "class"=>"PCI bridge", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH PCI Express Root Port #1", "rev"=>"f0"},
35
+ {"slot"=>"00:1c.4", "class"=>"PCI bridge", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH PCI Express Root Port #5", "rev"=>"f0"},
36
+ {"slot"=>"00:1d.0", "class"=>"PCI bridge", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH PCI Express Root Port #9", "rev"=>"f0"},
37
+ {"slot"=>"00:1f.0", "class"=>"ISA bridge", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH LPC Controller (Z270)", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 872f"},
38
+ {"slot"=>"00:1f.2", "class"=>"Memory controller", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH PMC", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 872f"},
39
+ {"slot"=>"00:1f.3", "class"=>"Audio device", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH HD Audio", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 8724"},
40
+ {"slot"=>"00:1f.4", "class"=>"SMBus", "vendor"=>"Intel Corporation", "device"=>"200 Series PCH SMBus Controller", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 872f"},
41
+ {"slot"=>"00:1f.6", "class"=>"Ethernet controller", "vendor"=>"Intel Corporation", "device"=>"Ethernet Connection (5) I219-V", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Ethernet Connection (5) I219-V"},
42
+ {"slot"=>"02:00.0", "class"=>"VGA compatible controller", "vendor"=>"NVIDIA Corporation", "device"=>"GP107 [GeForce GTX 1050]", "svendor"=>"eVga.com. Corp.", "sdevice"=>"Device 6150", "rev"=>"a1"},
43
+ {"slot"=>"02:00.1", "class"=>"Audio device", "vendor"=>"NVIDIA Corporation", "device"=>"GP107GL High Definition Audio Controller", "svendor"=>"eVga.com. Corp.", "sdevice"=>"Device 6150", "rev"=>"a1"},
44
+ {"slot"=>"05:00.0", "class"=>"USB controller", "vendor"=>"ASMedia Technology Inc.", "device"=>"Device 2142", "svendor"=>"ASUSTeK Computer Inc.", "sdevice"=>"Device 8732", "progif"=>"30"}]
45
+ [3] pry(main)> Lspci.pci_devices.first[:device] # note, these are HashWithIndifferentAccess
46
+ => "Intel Kaby Lake Host Bridge"
47
+ [4] pry(main)> Lspci.pci_devices.count
48
+ => 18
33
49
 
34
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
50
+ ```
35
51
 
36
52
  ## Contributing
37
53
 
38
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ruby-lspci. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
54
+ Bug reports and pull requests are welcome on GitHub at https://github.com/hebron-george/ruby-lspci. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
39
55
 
40
56
  ## License
41
57
 
@@ -43,4 +59,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
43
59
 
44
60
  ## Code of Conduct
45
61
 
46
- Everyone interacting in the Ruby::Lspci project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/ruby-lspci/blob/master/CODE_OF_CONDUCT.md).
62
+ Everyone interacting in the Ruby::Lspci project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/hebron-george/ruby-lspci/blob/master/CODE_OF_CONDUCT.md).
data/lib/lspci/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lspci
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lspci.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Hebron George"]
10
10
  spec.email = ["hebrontgeorge@gmail.com"]
11
11
 
12
- spec.summary = %q{`lspci` parser}
12
+ spec.summary = %q{`lspci -vmm` parser}
13
13
  spec.description = spec.summary
14
14
  spec.homepage = 'https://github.com/hebron-george/ruby-lspci'
15
15
  spec.license = "MIT"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lspci
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hebron George
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: "`lspci` parser"
83
+ description: "`lspci -vmm` parser"
84
84
  email:
85
85
  - hebrontgeorge@gmail.com
86
86
  executables:
@@ -127,5 +127,5 @@ rubyforge_project:
127
127
  rubygems_version: 2.6.11
128
128
  signing_key:
129
129
  specification_version: 4
130
- summary: "`lspci` parser"
130
+ summary: "`lspci -vmm` parser"
131
131
  test_files: []