libffm 0.2.1 → 0.2.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: 782aa375cfb5914f555a5cfcce90861d735b17eb9cc2ac0d2cb5f742440abea6
4
- data.tar.gz: e0fa4042b6c1c107adbb5ea773e0723964b3b6471a6e8786fa917f014e753313
3
+ metadata.gz: cbc7ebda36dab0e6d13aed6d06824e0a4510248098bde695e41c04bd91e55c33
4
+ data.tar.gz: b1ffb029a0b8c18ecd36bfd63b183b5dd898aed57d8fe9bebbd0fe93d02708e5
5
5
  SHA512:
6
- metadata.gz: ec6e9c1da413726debdc94f1fdf468ebb6c2f9667eb2aabd7aae4eb2420442d0d926567e629649c6e4986cf7f6740deafba4a11e682c7ac1e6af697cdbc7ea68
7
- data.tar.gz: '08b2ec52e249662570bb2af23efe46625e38efc94dc542cec054728740f776fcfe1cad06516799bb350ec00628ef36ce5332183d9f48dd052f25be50f54973b3'
6
+ metadata.gz: 8c17c7a1a863d6b73f12929bdf95ec955a7fa5f7d0c36eb9a4e6b7f0796598da25aa75d2ad21e4a180733a629a328b2cdbb006b2fcdebc11029e81177d162dd0
7
+ data.tar.gz: fa70dcd097097e0dfc3a576440d5428652851b0459212d48ee804b599086bcb1bd99d9e35454f5f1917ec13c2c4ec05a7dadfef97609ae835d8d7849e854bdf2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.2.3 (2022-02-27)
2
+
3
+ - Fixed installation on Mac ARM
4
+
5
+ ## 0.2.2 (2022-12-26)
6
+
7
+ - Fixed error in finalizer
8
+
1
9
  ## 0.2.1 (2021-05-23)
2
10
 
3
11
  - Improved performance
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  Copyright (c) 2017 The LIBFFM Project.
3
- Copyright (c) 2020-2021 Andrew Kane.
3
+ Copyright (c) 2020-2023 Andrew Kane.
4
4
  All rights reserved.
5
5
 
6
6
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -1,15 +1,15 @@
1
- # LIBFFM
1
+ # LIBFFM Ruby
2
2
 
3
3
  [LIBFFM](https://github.com/ycjuan/libffm) - field-aware factorization machines - for Ruby
4
4
 
5
- [![Build Status](https://github.com/ankane/libffm/workflows/build/badge.svg?branch=master)](https://github.com/ankane/libffm/actions)
5
+ [![Build Status](https://github.com/ankane/libffm-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/libffm-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 'libffm'
12
+ gem "libffm"
13
13
  ```
14
14
 
15
15
  ## Getting Started
@@ -69,22 +69,22 @@ Libffm::Model.new(
69
69
 
70
70
  ## History
71
71
 
72
- View the [changelog](https://github.com/ankane/libffm/blob/master/CHANGELOG.md)
72
+ View the [changelog](https://github.com/ankane/libffm-ruby/blob/master/CHANGELOG.md)
73
73
 
74
74
  ## Contributing
75
75
 
76
76
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
77
77
 
78
- - [Report bugs](https://github.com/ankane/libffm/issues)
79
- - Fix bugs and [submit pull requests](https://github.com/ankane/libffm/pulls)
78
+ - [Report bugs](https://github.com/ankane/libffm-ruby/issues)
79
+ - Fix bugs and [submit pull requests](https://github.com/ankane/libffm-ruby/pulls)
80
80
  - Write, clarify, or fix documentation
81
81
  - Suggest or add new features
82
82
 
83
83
  To get started with development:
84
84
 
85
85
  ```sh
86
- git clone --recursive https://github.com/ankane/libffm.git
87
- cd libffm
86
+ git clone --recursive https://github.com/ankane/libffm-ruby.git
87
+ cd libffm-ruby
88
88
  bundle install
89
89
  bundle exec rake compile
90
90
  bundle exec rake test
@@ -2,7 +2,10 @@ require "mkmf-rice"
2
2
 
3
3
  # -DUSESSE requires sse3
4
4
  # TODO test for it or update fork to use __SSE3__
5
- $CXXFLAGS += " -std=c++17 $(optflags) -march=native"
5
+
6
+ # -march=native not supported with ARM Mac
7
+ default_optflags = RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i ? "" : "-march=native"
8
+ $CXXFLAGS << " -std=c++17 $(optflags) " << with_config("optflags", default_optflags)
6
9
 
7
10
  apple_clang = RbConfig::CONFIG["CC_VERSION_MESSAGE"] =~ /apple clang/i
8
11
 
data/lib/libffm/model.rb CHANGED
@@ -39,7 +39,7 @@ module Libffm
39
39
  end
40
40
 
41
41
  def self.finalize_model(model)
42
- proc { Ext.finalize_model(model) }
42
+ proc { Ext.release_model(model) }
43
43
  end
44
44
  end
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Libffm
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libffm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.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: 2023-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -49,7 +49,7 @@ files:
49
49
  - vendor/libffm/ffm.h
50
50
  - vendor/libffm/timer.cpp
51
51
  - vendor/libffm/timer.h
52
- homepage: https://github.com/ankane/libffm
52
+ homepage: https://github.com/ankane/libffm-ruby
53
53
  licenses:
54
54
  - MIT
55
55
  metadata: {}
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubygems_version: 3.2.3
71
+ rubygems_version: 3.4.6
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: Field-aware factorization machines for Ruby