cmdstan 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/cmdstan/mle.rb +1 -0
- data/lib/cmdstan/utils.rb +8 -1
- data/lib/cmdstan/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ec167840035ebb19c383e47b89ff022afa481c18fc1d2fb57c4df82144d9190
|
4
|
+
data.tar.gz: 2d6369b933564a056c75febba5a40dbfc5dd7a09fea3b73bfb2edb429186a962
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 934adec1dd9919214f5828898eda276685761b1d6cc9c0f3a5120976c3266ae2b3d76f2699e08f168c8592d3c3340ef312a826676c57d63aa11b812e6052f602
|
7
|
+
data.tar.gz: b428af18cdaf881ddb0e973ea26e610727aa8bbd252e4a06032b56db909f8ba9259504bfbdb60bdb7b13c46783fc006141a815472db2c43024866376f785c757
|
data/CHANGELOG.md
CHANGED
data/lib/cmdstan/mle.rb
CHANGED
data/lib/cmdstan/utils.rb
CHANGED
@@ -3,9 +3,16 @@ module CmdStan
|
|
3
3
|
private
|
4
4
|
|
5
5
|
def run_command(*args)
|
6
|
+
env = {}
|
7
|
+
if windows?
|
8
|
+
# add tbb to path
|
9
|
+
tbblib = ENV["STAN_TBB"] || File.join(CmdStan.path, "stan", "lib", "stan_math", "lib", "tbb")
|
10
|
+
env["PATH"] = "#{tbblib};#{ENV["PATH"]}"
|
11
|
+
end
|
12
|
+
|
6
13
|
# use an open3 method since it does escaping (like system)
|
7
14
|
# use capture2e so we don't need to worry about deadlocks
|
8
|
-
output, status = Open3.capture2e(*args)
|
15
|
+
output, status = Open3.capture2e(env, *args)
|
9
16
|
if status.exitstatus != 0
|
10
17
|
$stderr.puts output
|
11
18
|
raise Error, "Command failed"
|
data/lib/cmdstan/version.rb
CHANGED