chef-utils 15.10.12 → 15.11.3

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: 76c25b870983b74b6d72d42877db6eeecbfae9592cd093dc43ddedb0fe288900
4
- data.tar.gz: d59193774a8d7b40c8c1e5bfdec24db9770ab4b0c54eb54e9fc376dddd1fd7f4
3
+ metadata.gz: c0c75c95baf0a557d351149a747a6afacfadbabbe963f95cf5f7c5de04dc9661
4
+ data.tar.gz: 318102046034b8ca50b9de2ac8e76648a7e31474eab8bc694f4dca11331911ee
5
5
  SHA512:
6
- metadata.gz: 848be02ce6d88d242729a6a635f7c7c26d0639dff2fa6f77319ad4651553362ad0abfbc48becc1e94095e7a391b7e770c1811cbd6891d16523e805075031f665
7
- data.tar.gz: 15a4dddd22432185a6b58b76f646919002a34725ee9fe489323726852b2927e0d06386d7e7f9ba0dab0ba297cec11015e6fb8b375db9a649cd70a955c4bd89de
6
+ metadata.gz: d67a41101576028ceeafc46d3ba35684e24e1ea4752823983c2910a1c9511929f15b69a47557378c9bc651d4242ecc2222b27d62b7ed184117943387c9787c25
7
+ data.tar.gz: e551f1c077834e16f352677751b41eb5b1d8ca8f4b85b605edc983d74032f74d72b7960534b6d556d2b164bdbfe2c4b4332382b652fa1bdfc939c85a10fbd46d
@@ -110,17 +110,17 @@ module ChefUtils
110
110
  # @return [Boolean]
111
111
  #
112
112
  def arm?(node = __getnode)
113
- %w{armhf aarch64 arm64 arch64}.include?(node["kernel"]["machine"])
113
+ %w{armv6l armv7l armhf aarch64 arm64 arch64}.include?(node["kernel"]["machine"])
114
114
  end
115
115
 
116
- # Determine if the current architecture is 32-bit ARM.
116
+ # Determine if the current architecture is 32-bit ARM hard float.
117
117
  #
118
118
  # @since 15.5
119
119
  #
120
120
  # @return [Boolean]
121
121
  #
122
122
  def armhf?(node = __getnode)
123
- %w{armhf}.include?(node["kernel"]["machine"])
123
+ %w{armv6l armv7l armhf}.include?(node["kernel"]["machine"])
124
124
  end
125
125
 
126
126
  # Determine if the current architecture is s390x.
@@ -15,5 +15,5 @@
15
15
 
16
16
  module ChefUtils
17
17
  CHEFUTILS_ROOT = File.expand_path("../..", __FILE__)
18
- VERSION = "15.10.12".freeze
18
+ VERSION = "15.11.3".freeze
19
19
  end
@@ -131,6 +131,17 @@ RSpec.describe ChefUtils::DSL::Architecture do
131
131
 
132
132
  arch_reports_true_for(:armhf?, :_32_bit?, :arm?)
133
133
  end
134
+ context "on armv6l" do
135
+ let(:arch) { "armv6l" }
136
+
137
+ arch_reports_true_for(:armhf?, :_32_bit?, :arm?)
138
+ end
139
+ context "on armv7l" do
140
+ let(:arch) { "armv7l" }
141
+
142
+ arch_reports_true_for(:armhf?, :_32_bit?, :arm?)
143
+ end
144
+
134
145
  context "on s390" do
135
146
  let(:arch) { "s390" }
136
147
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.10.12
4
+ version: 15.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chef Software, Inc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-22 00:00:00.000000000 Z
11
+ date: 2020-05-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: