kanrisuru 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 596f187f09116db8bd36b6eb7a0864f440afdf9e34d784c6215793a5e335f4cd
4
- data.tar.gz: 0056efd85ffcc42a36bf9086961c3f7438d5716f0cee580587fa48c60af3cfa5
3
+ metadata.gz: 61ecfd6fb284ffd9a3f3866846d89c8e92ac114ce49838a0613e4df29c69e5cc
4
+ data.tar.gz: 1a782563313983a22f55481d2c6bdb156c312d7ac09e98fbd2d79cc1c8776832
5
5
  SHA512:
6
- metadata.gz: f232ff04685236d29e2e8c5c2652ffb7b93e57ca36a7179158787df70553865d7516045e718d03c1bd8e3257a08c793b82941a4cbcb247c39beea667788d57df
7
- data.tar.gz: af237e0803c4229b008f8ff9b3defae4df00d17af4dab9b51fe3f23797c8af406f4844befe43ed678b99685338a8d2c6e19d7c1e3fea919ccd2082e6059e8576
6
+ metadata.gz: '0253078dba72eb5b276fa42e45afe5e3f397d54192c64dd53fd18c2e9104aa08d6c258f123f613c5987db8efddefc4a068e5dd73c5b9596550b6f5c52f1b1780'
7
+ data.tar.gz: 743ab69e8e58486655d0eeb0549e4490b40ebda8192a0df04ee6bca3f1bdbdf4e9c885e09f61339dffbfe4685125b3e2ed327850d9a356033178547ebbd49ca2
@@ -76,7 +76,19 @@ module Kanrisuru
76
76
  end
77
77
 
78
78
  def address_size
79
- @cpu_architecture.byte_order
79
+ @cpu_architecture.address_size
80
+ end
81
+
82
+ def cpu_mhz
83
+ @cpu_architecture.cpu_mhz
84
+ end
85
+
86
+ def cpu_max_mhz
87
+ @cpu_architecture.cpu_max_mhz
88
+ end
89
+
90
+ def cpu_min_mhz
91
+ @cpu_architecture.cpu_min_mhz
80
92
  end
81
93
 
82
94
  def hypervisor
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kanrisuru
4
- VERSION = '0.3.0'
4
+ VERSION = '0.3.1'
5
5
  end
@@ -18,6 +18,12 @@ RSpec.describe Kanrisuru::Core::System do
18
18
  host.disconnect
19
19
  end
20
20
 
21
+ it 'gets cpu details' do
22
+ result = host.lscpu
23
+ expect(result).to be_success
24
+ expect(result.data).to be_instance_of(Kanrisuru::Core::System::CPUArchitecture)
25
+ end
26
+
21
27
  it 'gets environment variables' do
22
28
  result = host.load_env
23
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kanrisuru
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Mammina