cmdstan 0.1.7 → 0.1.8
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/LICENSE.txt +1 -1
- data/README.md +6 -6
- data/ext/cmdstan/extconf.rb +7 -5
- data/lib/cmdstan/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 30d42170e4611dc73b1c63623f02bed13c370ee3fa17545cc963714e76a81934
|
|
4
|
+
data.tar.gz: 8a3de92029db9d781846d8c78d1fe6731d9a2834fdea266889338bff8e138824
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd7fa71f754207f5638977b63c66b19386c7b9fe60a708b3edb5da015c87af89abdd6f3a92e9b342a4dff3ec4cfa9a0754718260240140404adcb4905aa0b4c7
|
|
7
|
+
data.tar.gz: 74b337113fcc1a34461b3086e62659b45719e8070b041bedc6f8ca442037be18a152bdedfaaaa747ca67ffca6e0ae2444a79d265e9a32807e0b6b5b8e5e41cd2
|
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Bayesian inference for Ruby, powered by [CmdStan](https://github.com/stan-dev/cmdstan)
|
|
4
4
|
|
|
5
|
-
[](https://github.com/ankane/cmdstan/actions)
|
|
5
|
+
[](https://github.com/ankane/cmdstan-ruby/actions)
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
@@ -64,22 +64,22 @@ This library is modeled after the [CmdStanPy API](https://github.com/stan-dev/cm
|
|
|
64
64
|
|
|
65
65
|
## History
|
|
66
66
|
|
|
67
|
-
View the [changelog](https://github.com/ankane/cmdstan/blob/master/CHANGELOG.md)
|
|
67
|
+
View the [changelog](https://github.com/ankane/cmdstan-ruby/blob/master/CHANGELOG.md)
|
|
68
68
|
|
|
69
69
|
## Contributing
|
|
70
70
|
|
|
71
71
|
Everyone is encouraged to help improve this project. Here are a few ways you can help:
|
|
72
72
|
|
|
73
|
-
- [Report bugs](https://github.com/ankane/cmdstan/issues)
|
|
74
|
-
- Fix bugs and [submit pull requests](https://github.com/ankane/cmdstan/pulls)
|
|
73
|
+
- [Report bugs](https://github.com/ankane/cmdstan-ruby/issues)
|
|
74
|
+
- Fix bugs and [submit pull requests](https://github.com/ankane/cmdstan-ruby/pulls)
|
|
75
75
|
- Write, clarify, or fix documentation
|
|
76
76
|
- Suggest or add new features
|
|
77
77
|
|
|
78
78
|
To get started with development:
|
|
79
79
|
|
|
80
80
|
```sh
|
|
81
|
-
git clone https://github.com/ankane/cmdstan.git
|
|
82
|
-
cd cmdstan
|
|
81
|
+
git clone https://github.com/ankane/cmdstan-ruby.git
|
|
82
|
+
cd cmdstan-ruby
|
|
83
83
|
bundle install
|
|
84
84
|
bundle exec ruby ext/cmdstan/extconf.rb
|
|
85
85
|
bundle exec rake test
|
data/ext/cmdstan/extconf.rb
CHANGED
|
@@ -3,8 +3,8 @@ require "fileutils"
|
|
|
3
3
|
require "net/http"
|
|
4
4
|
require "tmpdir"
|
|
5
5
|
|
|
6
|
-
version = "2.
|
|
7
|
-
checksum = "
|
|
6
|
+
version = "2.28.1"
|
|
7
|
+
checksum = "eacadb4a1ca6997c9858e301780e729e53a9b5207b19ae2616abc882677e7637"
|
|
8
8
|
url = "https://github.com/stan-dev/cmdstan/releases/download/v#{version}/cmdstan-#{version}.tar.gz"
|
|
9
9
|
|
|
10
10
|
path = ENV["CMDSTAN"] || File.expand_path("../../tmp/cmdstan", __dir__)
|
|
@@ -13,7 +13,9 @@ raise "Directory not empty. Run: rake clean" unless Dir.empty?(path)
|
|
|
13
13
|
|
|
14
14
|
$stdout.sync = true
|
|
15
15
|
|
|
16
|
-
def download_file(url, download_path, checksum)
|
|
16
|
+
def download_file(url, download_path, checksum, redirects = 0)
|
|
17
|
+
raise "Too many redirects" if redirects > 10
|
|
18
|
+
|
|
17
19
|
uri = URI(url)
|
|
18
20
|
location = nil
|
|
19
21
|
|
|
@@ -39,7 +41,7 @@ def download_file(url, download_path, checksum)
|
|
|
39
41
|
end
|
|
40
42
|
puts # newline
|
|
41
43
|
|
|
42
|
-
abort "Bad checksum" if digest.hexdigest != checksum
|
|
44
|
+
abort "Bad checksum: #{digest.hexdigest}" if digest.hexdigest != checksum
|
|
43
45
|
else
|
|
44
46
|
abort "Bad response"
|
|
45
47
|
end
|
|
@@ -47,7 +49,7 @@ def download_file(url, download_path, checksum)
|
|
|
47
49
|
end
|
|
48
50
|
|
|
49
51
|
# outside of Net::HTTP block to close previous connection
|
|
50
|
-
download_file(location, download_path, checksum) if location
|
|
52
|
+
download_file(location, download_path, checksum, redirects + 1) if location
|
|
51
53
|
end
|
|
52
54
|
|
|
53
55
|
# download
|
data/lib/cmdstan/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.1.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Kane
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email: andrew@ankane.org
|
|
@@ -28,7 +28,7 @@ files:
|
|
|
28
28
|
- lib/cmdstan/model.rb
|
|
29
29
|
- lib/cmdstan/utils.rb
|
|
30
30
|
- lib/cmdstan/version.rb
|
|
31
|
-
homepage: https://github.com/ankane/cmdstan
|
|
31
|
+
homepage: https://github.com/ankane/cmdstan-ruby
|
|
32
32
|
licenses:
|
|
33
33
|
- BSD-3-Clause
|
|
34
34
|
metadata: {}
|
|
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
47
47
|
- !ruby/object:Gem::Version
|
|
48
48
|
version: '0'
|
|
49
49
|
requirements: []
|
|
50
|
-
rubygems_version: 3.
|
|
50
|
+
rubygems_version: 3.3.3
|
|
51
51
|
signing_key:
|
|
52
52
|
specification_version: 4
|
|
53
53
|
summary: Bayesian inference for Ruby, powered by CmdStan
|