fasttext 0.2.2 → 0.2.3

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: 9aae7e20933f51ebebd802276d7e006ce792fcfc6dd94ea8ceda887ab0f4eca8
4
- data.tar.gz: a90a7bbfffe424829052afc3519bc0473a7fc1b22a2d1ea0c8786d9372a0cdb5
3
+ metadata.gz: '08c75eccaf6de25741a61c5dc5e5647f6387f14fe3589403930a3a1775b7842b'
4
+ data.tar.gz: 91ea1d96d29539e66857749c15858d3cd1e317ecc9b2988dc07136ecaceee4b4
5
5
  SHA512:
6
- metadata.gz: 3042a798560e5960d18d8bcefb66833bf621bc1dcf26f77742602d0d4e7b1e4cc33b078f9225c209ac9a0d2f89c9b3c98ad2446582af4a3ac4effc761192c58d
7
- data.tar.gz: d70ce1005916a809a78b02f23232b1efd7cc59dc9d3ed2df7929f946db2f326c0df40729b2ea953846e906c2774d6b6e971650f3d585da65ae6562bdcb9a9b5e
6
+ metadata.gz: ae540aef9c79ad8999ce715d19493467dacd71edca501eefcf97f4d5d3200f8c118437a5865b12b04447cf62cf352d04da17cbccbfc41ab2ab0cdc0e27a9b765
7
+ data.tar.gz: 0e75583df1ae15cebc9b71b362834634194cca865610524dca9332e5e2cc86ca3977cfdc2e635ac2340e08abaf37a5bc4d1a8b18da2e10a2bad09cd03f19626d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.3 (2021-11-15)
2
+
3
+ - Fixed installation error with ARM Mac
4
+
1
5
  ## 0.2.2 (2021-10-16)
2
6
 
3
7
  - Fixed `file cannot be opened` errors
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # fastText
1
+ # fastText Ruby
2
2
 
3
3
  [fastText](https://fasttext.cc) - efficient text classification and representation learning - for Ruby
4
4
 
5
- [![Build Status](https://github.com/ankane/fastText/workflows/build/badge.svg?branch=master)](https://github.com/ankane/fastText/actions)
5
+ [![Build Status](https://github.com/ankane/fastText-ruby/workflows/build/badge.svg?branch=master)](https://github.com/ankane/fastText-ruby/actions)
6
6
 
7
7
  ## Installation
8
8
 
@@ -256,22 +256,22 @@ model.predict("bon appétit")
256
256
 
257
257
  ## History
258
258
 
259
- View the [changelog](https://github.com/ankane/fasttext/blob/master/CHANGELOG.md)
259
+ View the [changelog](https://github.com/ankane/fastText-ruby/blob/master/CHANGELOG.md)
260
260
 
261
261
  ## Contributing
262
262
 
263
263
  Everyone is encouraged to help improve this project. Here are a few ways you can help:
264
264
 
265
- - [Report bugs](https://github.com/ankane/fasttext/issues)
266
- - Fix bugs and [submit pull requests](https://github.com/ankane/fasttext/pulls)
265
+ - [Report bugs](https://github.com/ankane/fastText-ruby/issues)
266
+ - Fix bugs and [submit pull requests](https://github.com/ankane/fastText-ruby/pulls)
267
267
  - Write, clarify, or fix documentation
268
268
  - Suggest or add new features
269
269
 
270
270
  To get started with development:
271
271
 
272
272
  ```sh
273
- git clone --recursive https://github.com/ankane/fastText.git
274
- cd fastText
273
+ git clone --recursive https://github.com/ankane/fastText-ruby.git
274
+ cd fastText-ruby
275
275
  bundle install
276
276
  bundle exec rake compile
277
277
  bundle exec rake test
@@ -1,7 +1,9 @@
1
1
  require "mkmf-rice"
2
2
 
3
+ # -march=native not supported with ARM Mac
4
+ default_optflags = RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm/i ? "" : "-march=native"
3
5
  # -pthread and -O3 set by default
4
- $CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags", "-march=native")
6
+ $CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags", default_optflags)
5
7
 
6
8
  ext = File.expand_path(".", __dir__)
7
9
  fasttext = File.expand_path("../../vendor/fastText/src", __dir__)
@@ -1,3 +1,3 @@
1
1
  module FastText
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fasttext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
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-10-16 00:00:00.000000000 Z
11
+ date: 2021-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -71,7 +71,7 @@ files:
71
71
  - vendor/fastText/src/utils.h
72
72
  - vendor/fastText/src/vector.cc
73
73
  - vendor/fastText/src/vector.h
74
- homepage: https://github.com/ankane/fastText
74
+ homepage: https://github.com/ankane/fastText-ruby
75
75
  licenses:
76
76
  - MIT
77
77
  metadata: {}
@@ -93,6 +93,5 @@ requirements: []
93
93
  rubygems_version: 3.2.22
94
94
  signing_key:
95
95
  specification_version: 4
96
- summary: fastText - efficient text classification and representation learning - for
97
- Ruby
96
+ summary: Efficient text classification and representation learning for Ruby
98
97
  test_files: []