facter-statistax 0.0.4 → 0.0.5

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: a067d8b6115b01681c8fc7ed3bdb1da5a40c6eae415f515c3ac42459726db6c3
4
- data.tar.gz: e9614b6e442b2caf5b67d2f63f890d384391715bb3c9172f3d6ab32002cc986d
3
+ metadata.gz: bcc0b315393b6dbdb88eed44a5a229093c35247fe24923e2cc933b895190427c
4
+ data.tar.gz: 59b79b77581ba3a3381db50661445111ccf8d9899067fd6c777e158e07f5fb21
5
5
  SHA512:
6
- metadata.gz: 2049c59104f91ea2cb54f33d7e7127fcbfaf5721eab7983fbcb6de1763b145b3e0e2707ee9c62f135edb3eea7024fec883af26d5ea795baeda913c4a56e3e968
7
- data.tar.gz: 8b9193dd375a5a14c9cf630415ee7aad4bdafec06ba65ffddf98590bce015714d9bd3e4ae0f9addb261f0cc7a6dbc7da42ebe2f83c24b3a609179f4c21d9ba98
6
+ metadata.gz: 27995fbf64a16d83b224846f6c4066bf41c45c9b362649ed3a78fff18c2a6ab7a013a67db4e9f54ab3286d3b8a0a96fa50a09a28a9bd78f95a416a920ff36379
7
+ data.tar.gz: d4348406db8f0c878ef52f3b2931d38de4a33cbee26de17e693fac1dec863fcf50c60c19450ce6f158cac418da18205264ce3b5998879496bd57838752f5b591
@@ -12,7 +12,7 @@ module FacterStatistax
12
12
 
13
13
  def execute
14
14
  sum = sum_for_each_repetition do
15
- time, _status = Open3.capture2("ruby #{SCRIPTS_DIR}/benchmark_script.rb #{IS_GEM} #{fact}")
15
+ time, _status = Open3.capture2("ruby \"#{SCRIPTS_DIR}/benchmark_script.rb\" #{IS_GEM} #{fact}")
16
16
  log_time(fact, time)
17
17
  time.to_f
18
18
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module FacterStatistax
2
- VERSION = '0.0.4'
4
+ VERSION = '0.0.5'
3
5
  end
@@ -5,9 +5,9 @@ require 'open3'
5
5
 
6
6
  if ARGV[0].to_s == 'false'
7
7
  if Gem.win_platform?
8
- facter_dir = "C:/Program Files/Puppet Labs/Puppet/puppet/lib/ruby/vendor_ruby/../../../"
9
- ENV['PATH'] = "#{File.join(facter_dir, 'bin')}#{File::PATH_SEPARATOR}#{File.join(facter_dir, '../puppet/bin')}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
10
- require "#{facter_dir}/bin/libfacter.so"
8
+ facter_dir = "C:/Program Files/Puppet Labs/Puppet/puppet/bin"
9
+ ENV['PATH'] = "#{facter_dir}#{File::PATH_SEPARATOR}#{File::PATH_SEPARATOR}#{ENV['PATH']}"
10
+ require "#{facter_dir}/libfacter.so"
11
11
  else
12
12
  require "/opt/puppetlabs/puppet/lib/libfacter.so"
13
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facter-statistax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''