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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3b8f1ac614181c49f61854a38bf6c8e7ec1ed7e67fe985a98555e5a8d715f721
4
- data.tar.gz: 7c468282651c7c4641de099d1d113136b91b4962a01e088990eb48962bb32be8
3
+ metadata.gz: 30d42170e4611dc73b1c63623f02bed13c370ee3fa17545cc963714e76a81934
4
+ data.tar.gz: 8a3de92029db9d781846d8c78d1fe6731d9a2834fdea266889338bff8e138824
5
5
  SHA512:
6
- metadata.gz: 1acc7f793f86024eb4dc289f7cbb6029aab0991fac2c8423f06b0339b2e4570a90b8a173bf9d659eb1e0d70635d367f5b2d96e753be0a1a91c5d8d2f6f786ec2
7
- data.tar.gz: 9b8ce497e5bec32cec243003f87a5dccbdaeb8139c1b204c7e0f75d610b651bae5bd1191f3b29c627b2fa47db0ef96b549d7537d66a901d89bfe60207b05dd2d
6
+ metadata.gz: bd7fa71f754207f5638977b63c66b19386c7b9fe60a708b3edb5da015c87af89abdd6f3a92e9b342a4dff3ec4cfa9a0754718260240140404adcb4905aa0b4c7
7
+ data.tar.gz: 74b337113fcc1a34461b3086e62659b45719e8070b041bedc6f8ca442037be18a152bdedfaaaa747ca67ffca6e0ae2444a79d265e9a32807e0b6b5b8e5e41cd2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.8 (2022-01-16)
2
+
3
+ - Updated CmdStan to 2.28.1
4
+
1
5
  ## 0.1.7 (2021-08-23)
2
6
 
3
7
  - Updated CmdStan to 2.27.0
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  BSD 3-Clause License
2
2
 
3
3
  Copyright (c) 2019, Stan Developers and their Assignees
4
- Copyright (c) 2020-2021, Andrew Kane
4
+ Copyright (c) 2020-2022, Andrew Kane
5
5
  All rights reserved.
6
6
 
7
7
  Redistribution and use in source and binary forms, with or without
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
- [![Build Status](https://github.com/ankane/cmdstan/workflows/build/badge.svg?branch=master)](https://github.com/ankane/cmdstan/actions)
5
+ [![Build Status](https://github.com/ankane/cmdstan-ruby/workflows/build/badge.svg?branch=master)](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
@@ -3,8 +3,8 @@ require "fileutils"
3
3
  require "net/http"
4
4
  require "tmpdir"
5
5
 
6
- version = "2.27.0"
7
- checksum = "ff71f4d255cf26c2d8366a8173402656a659399468871305056aa3d56329c1d5"
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
@@ -1,3 +1,3 @@
1
1
  module CmdStan
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
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.7
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: 2021-08-23 00:00:00.000000000 Z
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.2.22
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