Skip to content

Commit ca36d9b

Browse files
committed
Prep for 1.4.0 release.
1 parent 272fce7 commit ca36d9b

File tree

6 files changed

+17
-4
lines changed

6 files changed

+17
-4
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.4.0 - 26-Aug-2025
2+
* The sysname, nodename, release, version and machine methods are now memoized.
3+
* The memoist gem has been added as a dependency.
4+
* Specs added for memoization.
5+
16
## 1.3.1 - 19-Nov-2024
27
* Remove a useless ostruct require. Thanks go to Koichi Ito for the spot and patch.
38

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ p Sys::Uname.uname
2626
p Sys::Platform.linux? # => true
2727
p Sys::Platform::ARCH # => :x86_64
2828
```
29+
30+
## Memoist Notes
31+
As of version 1.4.0 most methods are memoized via the memoist gem since
32+
these values are unlikely to change during without a restart/reboot. As
33+
per the memoist documentation, you can force a cache flush if desired to
34+
refresh the values.
35+
36+
https://github.com/matthewrudy/memoist
2937

3038
## BSD flavors, including OS X
3139
Users on BSD platforms get the extra `Uname.model` method.

doc/uname.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ https://github.com/djberg96/sys-uname
8080
Apache-2.0
8181

8282
== Copyright
83-
(C) 2002-2024 Daniel J. Berger
83+
(C) 2002-2025 Daniel J. Berger
8484
All Rights Reserved
8585

8686
== Warranty

lib/sys/uname.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Sys
44
class Uname
55
# The version of the sys-uname gem.
6-
VERSION = '1.3.1'
6+
VERSION = '1.4.0'
77
end
88

99
class Platform

spec/sys_platform_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
RSpec.describe Sys::Platform do
1111
example 'the VERSION constant is set to the expected value' do
12-
expect(Sys::Platform::VERSION).to eql('1.3.1')
12+
expect(Sys::Platform::VERSION).to eql('1.4.0')
1313
expect(Sys::Platform::VERSION).to be_frozen
1414
end
1515

spec/sys_uname_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
context 'universal singleton methods' do
2828
example 'version constant is set to expected value' do
29-
expect(Sys::Uname::VERSION).to eql('1.3.1')
29+
expect(Sys::Uname::VERSION).to eql('1.4.0')
3030
expect(Sys::Uname::VERSION).to be_frozen
3131
end
3232

0 commit comments

Comments
 (0)