midas-edge 0.3.1 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 464c47984f7e61fc4e726a0e4499a56a91d0294ff1b1c2d28f65795d11a7b78b
4
- data.tar.gz: 38cc5f7c6a671fc5508c36ae546c92219eb2eba51499b4ff4bf1036acf33d444
3
+ metadata.gz: db3ebe1bca1ac9cee7d586443797af32ce2c5b0be1bd5437086771286256b9d4
4
+ data.tar.gz: 9bda6d88abb05e2e30635ee3d90d16bfdb1236d5ff6dd9b49fe3dace3381c1d6
5
5
  SHA512:
6
- metadata.gz: 44251431f027cf89f46b3c1f51fcc73e72bfe5ae28121e2cf0f6292e622cfc9994fc343452947827c19505ecf5335dd9a22a46280c77dc4914a8e4ec61b21557
7
- data.tar.gz: c925fffbd5e8dca94c90f7eb1a5607cc569373e37797d6971eabf022181fb72eaf7c11d23aeee01707c899a0a76663e8897906a93df5f947276b5cda034b85e1
6
+ metadata.gz: 723a7e3f66bcdad0aca83ec6dfed3123eb6b9b619c59befc1728142a8a7372122210fd888fc4886231a61788b8dc32ac8ccd5c7edb86b2d3854d2a4fae222bbb
7
+ data.tar.gz: 3324454c3b96d2153e5624887fe0e6a8125373e4797ce686bb43601588c09ded2fc0275dd85192f1257f2696aff05ce860390d413877cf217b63c5b9082926af
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.3.3 (2022-12-28)
2
+
3
+ - Fixed installation error on Mac
4
+
5
+ ## 0.3.2 (2021-06-08)
6
+
7
+ - Fixed installation error
8
+
1
9
  ## 0.3.1 (2021-05-23)
2
10
 
3
11
  - Improved performance
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
- # MIDAS
1
+ # MIDAS Ruby
2
2
 
3
3
  [MIDAS](https://github.com/bhatiasiddharth/MIDAS) - edge stream anomaly detection - for Ruby
4
4
 
5
- [![Build Status](https://github.com/ankane/midas/workflows/build/badge.svg?branch=master)](https://github.com/ankane/midas/actions)
5
+ [![Build Status](https://github.com/ankane/midas-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/midas-ruby/actions)
6
6
 
7
7
  ## Installation
8
8
 
9
9
  Add this line to your application’s Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'midas-edge'
12
+ gem "midas-edge"
13
13
  ```
14
14
 
15
15
  ## Getting Started
@@ -78,22 +78,22 @@ midas.fit_predict("data.csv")
78
78
 
79
79
  ## History
80
80
 
81
- View the [changelog](https://github.com/ankane/midas/blob/master/CHANGELOG.md)
81
+ View the [changelog](https://github.com/ankane/midas-ruby/blob/master/CHANGELOG.md)
82
82
 
83
83
  ## Contributing
84
84
 
85
85
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
86
86
 
87
- - [Report bugs](https://github.com/ankane/midas/issues)
88
- - Fix bugs and [submit pull requests](https://github.com/ankane/midas/pulls)
87
+ - [Report bugs](https://github.com/ankane/midas-ruby/issues)
88
+ - Fix bugs and [submit pull requests](https://github.com/ankane/midas-ruby/pulls)
89
89
  - Write, clarify, or fix documentation
90
90
  - Suggest or add new features
91
91
 
92
92
  To get started with development:
93
93
 
94
94
  ```sh
95
- git clone --recursive https://github.com/ankane/midas.git
96
- cd midas
95
+ git clone --recursive https://github.com/ankane/midas-ruby.git
96
+ cd midas-ruby
97
97
  bundle install
98
98
  bundle exec rake compile
99
99
  bundle exec rake test
data/ext/midas/extconf.rb CHANGED
@@ -1,10 +1,14 @@
1
1
  require "mkmf-rice"
2
+ require "numo/narray"
2
3
 
3
4
  $CXXFLAGS << " -std=c++17 $(optflags)"
4
5
 
5
- numo = $LOAD_PATH.find { |v| File.exist?("#{v}/numo/numo/narray.h") }
6
- abort "Numo header not found" unless numo && find_header("numo/narray.h", "#{numo}/numo")
7
- abort "Numo library not found" if Gem.win_platform? && !find_library("narray", nil, "#{numo}/numo")
6
+ numo = File.join(Gem.loaded_specs["numo-narray"].require_path, "numo")
7
+ abort "Numo header not found" unless find_header("numo/narray.h", numo)
8
+ abort "Numo library not found" if Gem.win_platform? && !find_library("narray", nil, numo)
9
+
10
+ # for https://bugs.ruby-lang.org/issues/19005
11
+ $LDFLAGS += " -Wl,-undefined,dynamic_lookup" if RbConfig::CONFIG["host_os"] =~ /darwin/i
8
12
 
9
13
  midas = File.expand_path("../../vendor/MIDAS/src", __dir__)
10
14
  abort "Midas not found" unless find_header("NormalCore.hpp", midas)
data/lib/midas/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Midas
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: midas-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.3
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-05-23 00:00:00.000000000 Z
11
+ date: 2022-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -61,7 +61,7 @@ files:
61
61
  - vendor/MIDAS/src/FilteringCore.hpp
62
62
  - vendor/MIDAS/src/NormalCore.hpp
63
63
  - vendor/MIDAS/src/RelationalCore.hpp
64
- homepage: https://github.com/ankane/midas
64
+ homepage: https://github.com/ankane/midas-ruby
65
65
  licenses:
66
66
  - MIT
67
67
  metadata: {}
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  requirements: []
83
- rubygems_version: 3.2.3
83
+ rubygems_version: 3.4.1
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Edge stream anomaly detection for Ruby