bigrails-redis 0.7.2 → 0.8.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: 7cceaf7f6561f865122a3a94f6e53261671614b8c8e361942ef29fd48930ecc8
4
- data.tar.gz: c77fc0586dabeb68ad465e5bf4f4f562a6d94906197bb3bc34ebc6007f088ee3
3
+ metadata.gz: d1ea25beb121b4011ad78a86fd8ca83a4e76b820a0afd8f6acc8168f11367124
4
+ data.tar.gz: 86fc73aabc2087fb05b245d45d6c69ada045df4b6ad7a6ac135f3d3877a291c8
5
5
  SHA512:
6
- metadata.gz: fffb41b2512e350eb2c60b1db8f5f2844efb678ca019b42ec3a811962440050c74a71a148d638d5bf27c8442b5ac448e64c386b8d44c0e9885c136ee449b7ddc
7
- data.tar.gz: 7480f3d4cfde67814ecfa04dc4ec74dc307a42007219b1646bb62d66702eb037e49f6114286de01e4c1ead25b63dbcd98f00b5056a78fd9c176b95d06e27a18f
6
+ metadata.gz: 8d3769021589337047178f45e6e83e12c24aedfbdfae655417f1a716b86687de086b4ce111c5afc7954bd3f9143ff1b92960663ca3c83d85530c8da73a94fb62
7
+ data.tar.gz: 7d5554d8589a6fdab547bb9b363f38958191f78489ad6f6b928135a3ef550e18b76dafabca74e67d60dd62a55a7d5f7add39cec3f7c38534654e96a4067dc738
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # BigRails::Redis [![Ruby](https://github.com/rubyatscale/bigrails-redis/actions/workflows/main.yml/badge.svg)](https://github.com/rubyatscale/bigrails-redis/actions/workflows/main.yml)
1
+ # BigRails::Redis [![Ruby](https://github.com/rubyatscale/bigrails-redis/actions/workflows/ci.yml/badge.svg)](https://github.com/rubyatscale/bigrails-redis/actions/workflows/ci.yml)
2
2
 
3
3
  A simple Redis connection manager for Rails applications with the need to manage multiple redis connections. It supports distributed and [ConnectionPool](https://github.com/mperham/connection_pool) out of the box.
4
4
 
@@ -95,7 +95,7 @@ If you request a wrapped connection for a non-pooled connection, it'll just retu
95
95
 
96
96
  ### Verifying Connections
97
97
 
98
- This library also allows you to verify connections on demand. If you want, perform the verification in a startup health check to make sure all your connections are valid. It will perform a simple [`PING` command](https://redis.io/commands/PING) and clsoe the connection if it was originally closed. This is to help reduce the number of connections you actually need open. An error will be raised if the connection is bad.
98
+ This library also allows you to verify connections on demand. If you want, perform the verification in a startup health check to make sure all your connections are valid. It will perform a simple [`PING` command](https://redis.io/commands/PING) and close the connection if it was originally closed. This is to help reduce the number of connections you actually need open. An error will be raised if the connection is bad.
99
99
 
100
100
  ```ruby
101
101
  # Verify all connections:
@@ -13,7 +13,7 @@ module BigRails
13
13
  if config.pool_options.any?
14
14
  ensure_connection_pool_added!
15
15
 
16
- ::ConnectionPool.new(config.pool_options) { build(config) }
16
+ ::ConnectionPool.new(**config.pool_options) { build(config) }
17
17
  else
18
18
  build(config)
19
19
  end
@@ -31,8 +31,8 @@ module BigRails
31
31
  configurations[validate_name(name)].deep_dup
32
32
  end
33
33
 
34
- def each(&block)
35
- configurations.keys.map { |name| self.for(name) }.each(&block)
34
+ def each(&)
35
+ configurations.keys.map { |name| self.for(name) }.each(&)
36
36
  end
37
37
 
38
38
  def disconnect
@@ -2,6 +2,6 @@
2
2
 
3
3
  module BigRails
4
4
  module Redis
5
- VERSION = "0.7.2"
5
+ VERSION = "0.8.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,17 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bigrails-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-01-16 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
- name: railties
13
+ name: activesupport
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
16
  - - ">="
@@ -25,7 +24,7 @@ dependencies:
25
24
  - !ruby/object:Gem::Version
26
25
  version: '6'
27
26
  - !ruby/object:Gem::Dependency
28
- name: activesupport
27
+ name: railties
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
30
  - - ">="
@@ -52,7 +51,6 @@ dependencies:
52
51
  - - ">="
53
52
  - !ruby/object:Gem::Version
54
53
  version: '4'
55
- description:
56
54
  email:
57
55
  - ngan@users.noreply.github.com
58
56
  executables: []
@@ -76,7 +74,6 @@ metadata:
76
74
  homepage_uri: https://github.com/rubyatscale/bigrails-redis
77
75
  source_code_uri: https://github.com/rubyatscale/bigrails-redis
78
76
  changelog_uri: https://github.com/rubyatscale/bigrails-redis/releases
79
- post_install_message:
80
77
  rdoc_options: []
81
78
  require_paths:
82
79
  - lib
@@ -84,15 +81,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
84
81
  requirements:
85
82
  - - ">="
86
83
  - !ruby/object:Gem::Version
87
- version: 2.6.0
84
+ version: '3.3'
88
85
  required_rubygems_version: !ruby/object:Gem::Requirement
89
86
  requirements:
90
87
  - - ">="
91
88
  - !ruby/object:Gem::Version
92
89
  version: '0'
93
90
  requirements: []
94
- rubygems_version: 3.5.3
95
- signing_key:
91
+ rubygems_version: 3.6.9
96
92
  specification_version: 4
97
93
  summary: Redis connection manager for Rails applications.
98
94
  test_files: []