fasttext 0.2.3 → 0.3.0

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: '08c75eccaf6de25741a61c5dc5e5647f6387f14fe3589403930a3a1775b7842b'
4
- data.tar.gz: 91ea1d96d29539e66857749c15858d3cd1e317ecc9b2988dc07136ecaceee4b4
3
+ metadata.gz: 901023151197dbfbf3f5869eb97607201a355bbbb929221e8ee46800d979e306
4
+ data.tar.gz: eb3652ad82ff2e79f6ea7141ceaef245fdfda9f7985ec12bbfa9a69ceae25eed
5
5
  SHA512:
6
- metadata.gz: ae540aef9c79ad8999ce715d19493467dacd71edca501eefcf97f4d5d3200f8c118437a5865b12b04447cf62cf352d04da17cbccbfc41ab2ab0cdc0e27a9b765
7
- data.tar.gz: 0e75583df1ae15cebc9b71b362834634194cca865610524dca9332e5e2cc86ca3977cfdc2e635ac2340e08abaf37a5bc4d1a8b18da2e10a2bad09cd03f19626d
6
+ metadata.gz: 9987aa49ccb296a56ff8cccca54754d9579fbad4019c2ca79c899a7778d4bc88074740c52001de65774a8066cf754f2016307600cf0df0a51855cd14688344a0
7
+ data.tar.gz: 9072b668db0c34f3135d33752a8aca4d7ceb61a3e46a429f56e1eaad3ca6a21569955035298995938ff201e0063d1493d561cf3e296d26b3693adf6f39d33855
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.3.0 (2023-07-24)
2
+
3
+ - Fixed installation error on Windows
4
+ - Dropped support for Ruby < 3
5
+
6
+ ## 0.2.4 (2022-01-16)
7
+
8
+ - Improved ARM detection
9
+
1
10
  ## 0.2.3 (2021-11-15)
2
11
 
3
12
  - Fixed installation error with ARM Mac
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  MIT License
2
2
 
3
3
  Copyright (c) 2016-present, Facebook, Inc.
4
- Copyright (c) 2019-2021 Andrew Kane
4
+ Copyright (c) 2019-2022 Andrew Kane
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  Add this line to your application’s Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'fasttext'
12
+ gem "fasttext"
13
13
  ```
14
14
 
15
15
  ## Getting Started
data/ext/fasttext/ext.cpp CHANGED
@@ -1,5 +1,6 @@
1
1
  // stdlib
2
2
  #include <cmath>
3
+ #include <cstdint>
3
4
  #include <iterator>
4
5
  #include <sstream>
5
6
  #include <stdexcept>
@@ -1,7 +1,7 @@
1
1
  require "mkmf-rice"
2
2
 
3
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"
4
+ default_optflags = RbConfig::CONFIG["host_os"] =~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i ? "" : "-march=native"
5
5
  # -pthread and -O3 set by default
6
6
  $CXXFLAGS << " -std=c++17 $(optflags) -funroll-loops " << with_config("optflags", default_optflags)
7
7
 
@@ -1,3 +1,3 @@
1
1
  module FastText
2
- VERSION = "0.2.3"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/fasttext.rb CHANGED
@@ -5,10 +5,10 @@ require "fasttext/ext"
5
5
  require "tempfile"
6
6
 
7
7
  # modules
8
- require "fasttext/model"
9
- require "fasttext/classifier"
10
- require "fasttext/vectorizer"
11
- require "fasttext/version"
8
+ require_relative "fasttext/model"
9
+ require_relative "fasttext/classifier"
10
+ require_relative "fasttext/vectorizer"
11
+ require_relative "fasttext/version"
12
12
 
13
13
  module FastText
14
14
  class Error < StandardError; end
@@ -8,6 +8,7 @@
8
8
 
9
9
  #pragma once
10
10
 
11
+ #include <cstdint>
11
12
  #include <istream>
12
13
  #include <ostream>
13
14
  #include <string>
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.3
4
+ version: 0.3.0
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-11-16 00:00:00.000000000 Z
11
+ date: 2023-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rice
@@ -83,14 +83,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
- version: '2.6'
86
+ version: '3'
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
91
  version: '0'
92
92
  requirements: []
93
- rubygems_version: 3.2.22
93
+ rubygems_version: 3.4.10
94
94
  signing_key:
95
95
  specification_version: 4
96
96
  summary: Efficient text classification and representation learning for Ruby