breakout-detection 0.3.0 → 0.3.1

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: c0cba782e9a04a46e901e1ed9b109296be0195c0c91738cd7caf92cf40123eab
4
- data.tar.gz: e5a48e32dcd93fcdec89317aa36872d9656cb39bf3dd12e37a6b7321c774138e
3
+ metadata.gz: 8a0ba64d0eabd1b0a9498549ac7fba2845a16f2c29ac92887f2634e9282bc97d
4
+ data.tar.gz: 91ddb465b3444dc6ddcf294ad80c93b862cbc7d0653bf20fe3c6f4c103329edc
5
5
  SHA512:
6
- metadata.gz: 8546d608d848aa0be380bf39a33605d48d2957385581870b828120a99c7de91e8229e7fc6376c8fe093744f962df29195cd931bc85d9add76350fd0494af945a
7
- data.tar.gz: 78c613f4c618e6c20a67d2486358f4854affc1c1f6ca5b99c846e4b869d4c8ffc5033f8b25d18474982799cb11df030696f67b600142743e3f9305bcf1797057
6
+ metadata.gz: 883109f457e918d875fbb7a7a5f391c94c4349e6f1ffb9820b5240af22f6ff381b47ea7df26571851c31cec026e1e4d16ade68df767e03f2a625747fbfa5a804
7
+ data.tar.gz: 9e5b96d0e3b348c9f52b3e7e4286b3f78c56641e814a0febb969b5bc368f97af49f1715042b83d082f1c13ab34bd2879e8926da9c6229157e1f8aeb8bc870842
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.1 (2025-10-26)
2
+
3
+ - Fixed error with Rice 4.7
4
+
1
5
  ## 0.3.0 (2025-04-03)
2
6
 
3
7
  - Dropped support for Ruby < 3.2
@@ -1,5 +1,6 @@
1
1
  #include <algorithm>
2
2
  #include <cmath>
3
+ #include <functional>
3
4
  #include <set>
4
5
  #include <vector>
5
6
  #include "helper.h"
@@ -6,6 +6,7 @@
6
6
 
7
7
  #include <algorithm>
8
8
  #include <cmath>
9
+ #include <functional>
9
10
  #include <set>
10
11
  #include <vector>
11
12
  #include "helper.h"
@@ -6,6 +6,7 @@ Instead of calculating mean(X), we calculate median(X), and similarly for Y
6
6
 
7
7
  #include <algorithm>
8
8
  #include <cmath>
9
+ #include <functional>
9
10
  #include <queue>
10
11
  #include <vector>
11
12
 
@@ -15,7 +16,7 @@ double getMedian(const std::priority_queue<double, std::vector<double>, std::gre
15
16
 
16
17
  std::vector<int> EDMX(const std::vector<double>& Z, int min_size = 24, double alpha = 2) {
17
18
 
18
- alpha = 2; // Not used, just here for uniform funciton signature
19
+ alpha = 2; // Not used, just here for uniform function signature
19
20
 
20
21
  std::priority_queue<double> LeftMax;
21
22
  std::priority_queue<double, std::vector<double>, std::greater<double>> LeftMin;
data/ext/breakout/ext.cpp CHANGED
@@ -1,4 +1,6 @@
1
- // rice
1
+ #include <string>
2
+ #include <vector>
3
+
2
4
  #include <rice/rice.hpp>
3
5
  #include <rice/stl.hpp>
4
6
 
@@ -44,7 +46,7 @@ void Init_ext() {
44
46
 
45
47
  auto a = Rice::Array();
46
48
  for (auto v : res) {
47
- a.push(v);
49
+ a.push(v, false);
48
50
  }
49
51
  return a;
50
52
  });
@@ -1,6 +1,8 @@
1
1
  #include <algorithm>
2
2
  #include <cmath>
3
+ #include <functional>
3
4
  #include <set>
5
+ #include "helper.h"
4
6
 
5
7
  extern double Linear(double x) { return 1; }
6
8
  extern double Const(double x) { return 0; }
@@ -2,6 +2,7 @@
2
2
 
3
3
  #include <algorithm>
4
4
  #include <cmath>
5
+ #include <functional>
5
6
  #include <set>
6
7
 
7
8
  double get_median(const std::multiset<double>&, const std::multiset<double, std::greater<double>>&);
@@ -1,3 +1,3 @@
1
1
  module Breakout
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: breakout-detection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rice
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: 4.3.3
18
+ version: '4.7'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: 4.3.3
25
+ version: '4.7'
26
26
  email: andrew@ankane.org
27
27
  executables: []
28
28
  extensions:
@@ -61,7 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  requirements: []
64
- rubygems_version: 3.6.2
64
+ rubygems_version: 3.6.9
65
65
  specification_version: 4
66
66
  summary: Breakout detection for Ruby
67
67
  test_files: []