cmfrec 0.3.0 → 0.3.1

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: d3cc7d70530eefc7b13324753b454d03573da7d832c46cb4dee2ab9213eafcdd
4
- data.tar.gz: 662af2ec4ab1a1bd33a39c18773d0c48967422286a2fa137960772b7e67d437a
3
+ metadata.gz: c549b3c94d2b80e94938f61694636fc35b85bb0217bec39d5234f81dbba1684b
4
+ data.tar.gz: e953ddaa00c5ba4b13838300aad880175db5d2c1531bf284866348b69ff2075b
5
5
  SHA512:
6
- metadata.gz: 8fd6f1f8f0bd7d7c870c28fb57a0cec89aacf2d27aed53b5d68fb6935f5071dbe73931a5ff776f4a864f0cc91a17c793eabfe2a2b21f9b368a4c36ada5cb929d
7
- data.tar.gz: 116d26ddafeeb439ef0895e30805afa0d2d2a453aeb369cf7122f13f5bf3ad457dac65c974d26debc84f353baf5f0c889c559e56620ef7458af4968ee9f5262a
6
+ metadata.gz: 53e65f7b6ab488238713ff468c438cf45ecdbe85608c505fe4a66f140486b279785355fbf4aaedd72f6c4d6bc5fad502c97d7d592c24c4952520186db83adef1
7
+ data.tar.gz: 4dd240635c221c6eada3c66f9fa244da90c342655ebcdf98731fbd805bec1015a51c72fdb87a1c6423b0994ccd9d4729a784d6af603a2f6154aa1178ef37bf6b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.3.1 (2024-12-29)
2
+
3
+ - Removed dependency on `base64` gem for serialization
4
+
1
5
  ## 0.3.0 (2024-10-23)
2
6
 
3
7
  - Changed dataset directory to match XDG Base Directory Specification
@@ -250,7 +250,6 @@ module Cmfrec
250
250
  end
251
251
 
252
252
  def to_json
253
- require "base64"
254
253
  require "json"
255
254
 
256
255
  obj = {
@@ -812,16 +811,14 @@ module Cmfrec
812
811
  end
813
812
 
814
813
  def json_dump_ptr(ptr)
815
- Base64.strict_encode64(ptr.to_s(ptr.size)) if ptr
814
+ [ptr.to_s(ptr.size)].pack("m0") if ptr
816
815
  end
817
816
 
818
817
  def json_load_ptr(str)
819
- Fiddle::Pointer[Base64.strict_decode64(str)] if str
818
+ Fiddle::Pointer[str.unpack1("m0")] if str
820
819
  end
821
820
 
822
821
  def json_load(obj)
823
- require "base64"
824
-
825
822
  @implicit = obj["implicit"]
826
823
 
827
824
  # options
@@ -1,3 +1,3 @@
1
1
  module Cmfrec
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmfrec
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
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-23 00:00:00.000000000 Z
10
+ date: 2024-12-30 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: fiddle
@@ -24,7 +23,6 @@ dependencies:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
25
  version: '0'
27
- description:
28
26
  email: andrew@ankane.org
29
27
  executables: []
30
28
  extensions: []
@@ -51,7 +49,6 @@ homepage: https://github.com/ankane/cmfrec-ruby
51
49
  licenses:
52
50
  - MIT
53
51
  metadata: {}
54
- post_install_message:
55
52
  rdoc_options: []
56
53
  require_paths:
57
54
  - lib
@@ -66,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
66
63
  - !ruby/object:Gem::Version
67
64
  version: '0'
68
65
  requirements: []
69
- rubygems_version: 3.5.16
70
- signing_key:
66
+ rubygems_version: 3.6.2
71
67
  specification_version: 4
72
68
  summary: Recommendations for Ruby using collective matrix factorization
73
69
  test_files: []