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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f7dfd62b5effc22b11650772a01893fb816bba2f7565cadbcf8c1b74e3addfb
4
- data.tar.gz: 17bdf86aff8dcff9bef87b7c48026bcf777371f6334c9785bc64b2c861f4396b
3
+ metadata.gz: 9ec167840035ebb19c383e47b89ff022afa481c18fc1d2fb57c4df82144d9190
4
+ data.tar.gz: 2d6369b933564a056c75febba5a40dbfc5dd7a09fea3b73bfb2edb429186a962
5
5
  SHA512:
6
- metadata.gz: 78bb7822a7e02d83b1141a67c9432ceaf1f08bd3a2aa0dbd81dd0edca8a105304c546b30b75fb9efd39fcf807ff088346ea748179125852d888c5e2142b6a5fa
7
- data.tar.gz: c1be456cc760a8785472386a7bdaabf8aade3ff6d5a6d06b2b60fcf74b9d38a08e96dad84e06d0f882edaf02a403ba27074530610eded5359774e670a43c49b3
6
+ metadata.gz: 934adec1dd9919214f5828898eda276685761b1d6cc9c0f3a5120976c3266ae2b3d76f2699e08f168c8592d3c3340ef312a826676c57d63aa11b812e6052f602
7
+ data.tar.gz: b428af18cdaf881ddb0e973ea26e610727aa8bbd252e4a06032b56db909f8ba9259504bfbdb60bdb7b13c46783fc006141a815472db2c43024866376f785c757
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.2 (2020-04-10)
2
+
3
+ - Added `tbb` to path for Windows
4
+
1
5
  ## 0.1.1 (2020-04-09)
2
6
 
3
7
  - Added support for Windows
data/lib/cmdstan/mle.rb CHANGED
@@ -12,6 +12,7 @@ module CmdStan
12
12
  CSV.foreach(@output_file.path, skip_lines: /^#/, headers: true, converters: :numeric) do |row|
13
13
  return row.to_h
14
14
  end
15
+ raise "Bug detected"
15
16
  end
16
17
 
17
18
  def column_names
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"
@@ -1,3 +1,3 @@
1
1
  module CmdStan
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdstan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane