cmdstan 0.1.8 → 0.1.9

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: 30d42170e4611dc73b1c63623f02bed13c370ee3fa17545cc963714e76a81934
4
- data.tar.gz: 8a3de92029db9d781846d8c78d1fe6731d9a2834fdea266889338bff8e138824
3
+ metadata.gz: 86b23f06c13af5825711739c0fc3a66c141fabc38507fd6b4e3e067137422c38
4
+ data.tar.gz: 4921aae2623e273021f1a3f37f11bd16631902f0b6fb663b36a28d8412968abf
5
5
  SHA512:
6
- metadata.gz: bd7fa71f754207f5638977b63c66b19386c7b9fe60a708b3edb5da015c87af89abdd6f3a92e9b342a4dff3ec4cfa9a0754718260240140404adcb4905aa0b4c7
7
- data.tar.gz: 74b337113fcc1a34461b3086e62659b45719e8070b041bedc6f8ca442037be18a152bdedfaaaa747ca67ffca6e0ae2444a79d265e9a32807e0b6b5b8e5e41cd2
6
+ metadata.gz: bfe6e78ce9194750c3ee8c89ac02eb9e1b5526c502f9e0908bd5a3c2f3296bb7650de0e0abc61381142a2888c3bb0dedac2d9c80db252084ccf51a7d7f91e41c
7
+ data.tar.gz: c6176782e0ffb1c9817ab4db949a0e208a143c87c2420ee1747de3149e3b590d6298b019052d5425dd8ec533f32acd190698dee8bb17fc291e96fd2770f0f1ed
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.1.9 (2022-02-07)
2
+
3
+ - Added support for Linux ARM
4
+ - Updated CmdStan to 2.28.2
5
+
1
6
  ## 0.1.8 (2022-01-16)
2
7
 
3
8
  - Updated CmdStan to 2.28.1
data/README.md CHANGED
@@ -9,7 +9,7 @@ Bayesian inference for Ruby, powered by [CmdStan](https://github.com/stan-dev/cm
9
9
  Add this line to your application’s Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'cmdstan'
12
+ gem "cmdstan"
13
13
  ```
14
14
 
15
15
  Installation can take a few minutes as CmdStan downloads and builds.
@@ -3,9 +3,15 @@ require "fileutils"
3
3
  require "net/http"
4
4
  require "tmpdir"
5
5
 
6
- version = "2.28.1"
7
- checksum = "eacadb4a1ca6997c9858e301780e729e53a9b5207b19ae2616abc882677e7637"
8
- url = "https://github.com/stan-dev/cmdstan/releases/download/v#{version}/cmdstan-#{version}.tar.gz"
6
+ version = "2.28.2"
7
+ # TODO figure out Mac ARM
8
+ if RbConfig::CONFIG["host_os"] !~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
9
+ checksum = "cd8f588a1267e3e36761b7bcdff1b7f36bf43b8ec119667654995bfa5f921fa4"
10
+ url = "https://github.com/stan-dev/cmdstan/releases/download/v#{version}/cmdstan-#{version}-linux-arm64.tar.gz"
11
+ else
12
+ checksum = "4e6ed2685460d7f33ddbc81ccb1e59befa7efd91e46d5b040027aab8daec4526"
13
+ url = "https://github.com/stan-dev/cmdstan/releases/download/v#{version}/cmdstan-#{version}.tar.gz"
14
+ end
9
15
 
10
16
  path = ENV["CMDSTAN"] || File.expand_path("../../tmp/cmdstan", __dir__)
11
17
  FileUtils.mkdir_p(path)
@@ -65,4 +71,5 @@ system "tar", "zxf", download_path, "-C", path, "--strip-components=1", *tar_arg
65
71
 
66
72
  # build
67
73
  make_command = Gem.win_platform? ? "mingw32-make" : "make"
68
- system make_command, "build"
74
+ success = system(make_command, "build")
75
+ raise "Build failed" unless success
@@ -1,3 +1,3 @@
1
1
  module CmdStan
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdstan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-17 00:00:00.000000000 Z
11
+ date: 2022-02-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org