active_hll 0.2.1 → 0.4.0

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: 49fecb9c7cb1cdcf399ce9ae00e9e637d9d3c0c3789ad02da9bef4e2977bc2f5
4
- data.tar.gz: d02131c319a338575fc215397a95d153648bc6c5b390c453f67d0509b1a3ee6f
3
+ metadata.gz: 7e8154d11ab2feb39d836d8745365df3ef5dada9aa5a92213474be5a30e610e4
4
+ data.tar.gz: 777eae2244f6e5c0b343e736cb90f62f8fd82d8209a3945e5b56a43542420d31
5
5
  SHA512:
6
- metadata.gz: acc8c253b0d5ab708e73459ed35506e6d009f3c8f709c9f82a1b44ca77da2ac0a8431767f8d6a9d15faf5a17dbf20db1d7093008cad8e118979f1ffcf93b61ef
7
- data.tar.gz: 1375c9ac1f6d6df024dfc0ccdf9304f1245a8d5510e8e69b34bf1d51fa49f6fb2bec7cf137476492c68d1b29f3344d947ba3b1cc26e762a53a46bf0c2681e7a1
6
+ metadata.gz: 0dc780f68c0469ce562ee215c5b760ba2191aed7478f97137326cbdd76b8a2c42fafd0bd16a98f064087b4ecb9d9cd99584c0a53d141766bac71b657dbf1189f
7
+ data.tar.gz: 2a3d036ba7e4e5d0dcd1272c74a1cbf9a212c90db4c7e7ad978c09015f76a805c8ffbf9ef0c5959600d3e4cdb46ae50b15ad172c7ec9cf14ddf28da689dba905
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 0.4.0 (2026-04-09)
2
+
3
+ - Dropped support for Ruby < 3.3 and Active Record < 7.2
4
+
5
+ ## 0.3.0 (2025-04-03)
6
+
7
+ - Dropped support for Ruby < 3.2 and Active Record < 7.1
8
+
1
9
  ## 0.2.1 (2024-10-07)
2
10
 
3
11
  - Fixed connection leasing for Active Record 7.2+
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2023-2024 Andrew Kane
3
+ Copyright (c) 2023-2025 Andrew Kane
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -12,8 +12,8 @@ First, install the [hll extension](https://github.com/citusdata/postgresql-hll)
12
12
 
13
13
  ```sh
14
14
  cd /tmp
15
- curl -L https://github.com/citusdata/postgresql-hll/archive/refs/tags/v2.18.tar.gz | tar xz
16
- cd postgresql-hll-2.18
15
+ curl -L https://github.com/citusdata/postgresql-hll/archive/refs/tags/v2.19.tar.gz | tar xz
16
+ cd postgresql-hll-2.19
17
17
  make
18
18
  make install # may need sudo
19
19
  ```
@@ -39,7 +39,7 @@ HLLs provide an approximate count of unique values (like unique visitors). By ro
39
39
  Create a table with an `hll` column
40
40
 
41
41
  ```ruby
42
- class CreateEventRollups < ActiveRecord::Migration[7.2]
42
+ class CreateEventRollups < ActiveRecord::Migration[8.1]
43
43
  def change
44
44
  create_table :event_rollups do |t|
45
45
  t.date :time_bucket, index: {unique: true}
@@ -1,3 +1,3 @@
1
1
  module ActiveHll
2
- VERSION = "0.2.1"
2
+ VERSION = "0.4.0"
3
3
  end
data/lib/active_hll.rb CHANGED
@@ -33,9 +33,5 @@ ActiveSupport.on_load(:active_record) do
33
33
  ActiveRecord::ConnectionAdapters::TableDefinition.send(:define_column_methods, :hll)
34
34
 
35
35
  # prevent unknown OID warning
36
- if ActiveRecord::VERSION::MAJOR >= 7
37
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.singleton_class.prepend(ActiveHll::RegisterType)
38
- else
39
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend(ActiveHll::RegisterType)
40
- end
36
+ ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.singleton_class.prepend(ActiveHll::RegisterType)
41
37
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_hll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.4.0
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-08 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -16,15 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '6.1'
18
+ version: '7.2'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '6.1'
27
- description:
25
+ version: '7.2'
28
26
  email: andrew@ankane.org
29
27
  executables: []
30
28
  extensions: []
@@ -45,7 +43,6 @@ homepage: https://github.com/ankane/active_hll
45
43
  licenses:
46
44
  - MIT
47
45
  metadata: {}
48
- post_install_message:
49
46
  rdoc_options: []
50
47
  require_paths:
51
48
  - lib
@@ -53,15 +50,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
50
  requirements:
54
51
  - - ">="
55
52
  - !ruby/object:Gem::Version
56
- version: '3.1'
53
+ version: '3.3'
57
54
  required_rubygems_version: !ruby/object:Gem::Requirement
58
55
  requirements:
59
56
  - - ">="
60
57
  - !ruby/object:Gem::Version
61
58
  version: '0'
62
59
  requirements: []
63
- rubygems_version: 3.5.16
64
- signing_key:
60
+ rubygems_version: 4.0.6
65
61
  specification_version: 4
66
62
  summary: HyperLogLog for Rails and Postgres
67
63
  test_files: []