vagrant-goodhosts 1.1.2 → 1.1.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: d9d571c66bee739daa440ff14420530877b8de9a54772960000c322a621a6dfc
4
- data.tar.gz: 1da6af09b2600518c6bc98b46dfd788429408fd43cd22b652cedf699931eca5f
3
+ metadata.gz: 45d903470fa6dcb3da784a7cf514e2657f0b8fcabf240dcc27b62c3cb392d3af
4
+ data.tar.gz: a42fca228267c92d706eacfc5bc335954975e3ac13611a8e4199830f3ec0a50f
5
5
  SHA512:
6
- metadata.gz: f6d3f083e720d58cadeab5a822bbe3eebfcc25adbe1e7bc695b6ad7bb81762d6a2dfe5851ab37580dfcde0bd194d07b78043d5abaa40e64d273d95fc0775b293
7
- data.tar.gz: 2094f799367acc58696189954d1691564c7feb3d677fed5edca8ac760e34e819a0dd1313309eb90636b17117ef69c8b05e0195e4bb62c71486ce16cb27c2dc3e
6
+ metadata.gz: c64e57715871cd38e54cc485ec672bc7d34c9e9b8ba79ad269741926122953958abc543ef69ef5fb73d691d5be192ba59b29c09af56d294384f707e956c599e6
7
+ data.tar.gz: 5eb7a176fa5cfdc3dfc39dfb5aca3b17dcb9c595088186c8a00e5e26fdd618e42e0bae8e4a6b90149974af1f1177c2e6ca8fa15650adffb6d1372ec23115bae7
@@ -48,14 +48,17 @@ module VagrantPlugins
48
48
  if OS.windows?
49
49
  return 'cli.exe'
50
50
  elsif OS.mac?
51
- type = system('uname -m')
52
- if type == 'x86_64'
53
- return 'cli_amd64_osx'
54
- else
51
+ if Etc.uname[:version].include? 'ARM64'
55
52
  return 'cli_arm64_osx'
53
+ else
54
+ return 'cli_amd64_osx'
56
55
  end
57
56
  elsif OS.linux?
58
- return 'cli'
57
+ if Etc.uname[:version].include? 'ARM64'
58
+ return 'cli_arm64_linux'
59
+ else
60
+ return 'cli_amd64_linux'
61
+ end
59
62
  else
60
63
  raise Error::WebDriverError, "unknown os: #{host_os.inspect}"
61
64
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module GoodHosts
3
- VERSION = '1.1.2'
3
+ VERSION = '1.1.3'
4
4
  end
5
5
  end
data/package.sh CHANGED
@@ -7,7 +7,8 @@ curl -s https://api.github.com/repos/goodhosts/cli/releases/latest | jq --raw-ou
7
7
  # Extract
8
8
  tar -zxvf goodhosts-1.1.0-darwin-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_osx
9
9
  tar -zxvf goodhosts-1.1.0-darwin-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_osx
10
- tar -zxvf goodhosts-1.1.0-linux-amd64.tar.gz goodhosts && mv goodhosts cli
10
+ tar -zxvf goodhosts-1.1.0-linux-amd64.tar.gz goodhosts && mv goodhosts cli_amd64_linux
11
+ tar -zxvf goodhosts-1.1.0-linux-arm64.tar.gz goodhosts && mv goodhosts cli_arm64_linux
11
12
  tar -zxvf goodhosts-1.1.0-windows-amd64.tar.gz goodhosts.exe && mv goodhosts.exe cli.exe
12
13
  rm -f ./*.tar.gz
13
14
  rm -f ./*.txt
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-goodhosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniele Scasciafratte
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-16 00:00:00.000000000 Z
11
+ date: 2022-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -71,9 +71,10 @@ files:
71
71
  - lib/vagrant-goodhosts/Action/RemoveHosts.rb
72
72
  - lib/vagrant-goodhosts/Action/UpdateHosts.rb
73
73
  - lib/vagrant-goodhosts/GoodHosts.rb
74
- - lib/vagrant-goodhosts/bundle/cli
75
74
  - lib/vagrant-goodhosts/bundle/cli.exe
75
+ - lib/vagrant-goodhosts/bundle/cli_amd64_linux
76
76
  - lib/vagrant-goodhosts/bundle/cli_amd64_osx
77
+ - lib/vagrant-goodhosts/bundle/cli_arm64_linux
77
78
  - lib/vagrant-goodhosts/bundle/cli_arm64_osx
78
79
  - lib/vagrant-goodhosts/config.rb
79
80
  - lib/vagrant-goodhosts/plugin.rb