uri-redis 1.1.2 → 1.2.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: 9a62d1cb81a351f7ac57570488570cc164f97f51f40da745a5a893fd2ab17063
4
- data.tar.gz: ea41f6580eaf05025443b0e9d9eeae0673c335c51f7bad36c2b4779d590a8686
3
+ metadata.gz: 4fa796076bf7ed89fabf28ff901ecce357f10d1a93b09dada70b8ba2185f8bff
4
+ data.tar.gz: 16b72d3fd5d6a4e41e95e8195a0633d7784245a6eb3d272da476a27845473e36
5
5
  SHA512:
6
- metadata.gz: 9acf19d22d5773bdea3f780f7941bea9b7900bcb5a612c6f14a14048a8cf9f8933936d7c0f26cb135ee5773036e5ff7b45a494f0e69c18817132f8b0157fec99
7
- data.tar.gz: ab794161d3d1aeab674bd75420f156b30b223c9076e20cad3774a4b9cd1ef002da63d6b0e82be626b75de2821a35ec2d99cd6adbec6c950d25d6391358623b8d
6
+ metadata.gz: 38b55796fce214f4093f75284e2216a673794c383a9068c79bb6bda833352e9d97d4396b54e06a27fd29c9114fda246923979bc255b4d263e44340ad6a9431d5
7
+ data.tar.gz: b7d135ac66b84e03759185c42022cc01106d71cee2ac72b3c07f57caf306db7f367a9eb53c76fb1f53c3f54eb9a61f7c6759009106722a7dd826be5389dfc8b2
@@ -0,0 +1,69 @@
1
+ ##
2
+ # Pre-Commit Configuration
3
+ #
4
+ # Initial setup:
5
+ #
6
+ # 0. Install the pre-commit framework (if it isn't already on your system):
7
+
8
+ # $ pip install pre-commit
9
+ #
10
+ # 1. Install the git hook:
11
+ #
12
+ # $ pre-commit install
13
+ #
14
+ #
15
+ # Other commands:
16
+ #
17
+ # Run it on all the files in this repo:
18
+ # $ pre-commit run --all-files
19
+ #
20
+ # Updating plugin repositories:
21
+ # $ pre-commit autoupdate
22
+ #
23
+ # Automatically enable pre-commit on repositories
24
+ # $ git config --global init.templateDir ~/.git-template
25
+ # $ pre-commit init-templatedir ~/.git-template
26
+ #
27
+ # See also:
28
+ # - https://pre-commit.com for more information
29
+ # - https://pre-commit.com/hooks.html for more hooks
30
+ #
31
+
32
+ default_install_hook_types:
33
+ - pre-commit
34
+ - prepare-commit-msg
35
+
36
+ fail_fast: true
37
+
38
+ repos:
39
+ - repo: meta
40
+ hooks:
41
+ - id: check-hooks-apply
42
+ - id: check-useless-excludes
43
+ - id: identity
44
+
45
+ - repo: https://github.com/pre-commit/pre-commit-hooks
46
+ rev: v4.6.0
47
+ hooks:
48
+ - id: trailing-whitespace
49
+ - id: end-of-file-fixer
50
+ - id: check-yaml
51
+ - id: detect-private-key
52
+ - id: mixed-line-ending
53
+ - id: check-added-large-files
54
+ args: ["--maxkb=1000"]
55
+ - id: no-commit-to-branch
56
+ args: ["--branch", "develop", "--branch", "rel/.*"]
57
+ - id: check-merge-conflict
58
+ - id: forbid-submodules
59
+
60
+ - repo: https://github.com/avilaton/add-msg-issue-prefix-hook
61
+ rev: v0.0.11
62
+ hooks:
63
+ - id: add-msg-issue-prefix
64
+ stages: [prepare-commit-msg]
65
+ name: Link commit to Github issue
66
+ args:
67
+ - "--default=[NOJIRA]"
68
+ - "--pattern=[a-zA-Z0-9]{0,10}-?[0-9]{1,5}"
69
+ - "--template=[#{}]"
data/CHANGES.txt CHANGED
@@ -1,5 +1,10 @@
1
1
  URI-Redis, CHANGES
2
2
 
3
+ #### 1.2.0 (2024-05-20) ###############################
4
+
5
+ * Fix for Ruby <= 3.0 `register_scheme` error.
6
+
7
+
3
8
  #### 1.1.2 (2024-05-02) ###############################
4
9
 
5
10
  * Same functionality as the now yanked 1.1.1 with
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # URI-Redis v1.1.2 (2024-05-02)
1
+ # URI-Redis v1.2 (2024-05-20)
2
2
 
3
3
  Creates a URI object for Redis URLs.
4
4
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  module URI
4
4
  module Redis
5
- VERSION = "1.1.2"
5
+ VERSION = "1.2.0"
6
+ SUMMARY = "A Ruby library for parsing, building and normalizing redis URLs"
6
7
  end
7
8
  end
data/lib/uri/redis.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "uri"
2
+ require "uri/generic"
2
3
  require "redis"
3
4
 
4
5
  # URI::Redis - adds support for Redis URIs to core.
@@ -99,7 +100,11 @@ module URI
99
100
  end
100
101
  end
101
102
 
102
- register_scheme "REDIS", Redis
103
+ if URI.respond_to?(:register_scheme)
104
+ URI.register_scheme "REDIS", Redis
105
+ else
106
+ @@schemes['REDIS'] = Redis
107
+ end
103
108
  end
104
109
 
105
110
  # Adds a URI method to Redis
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - delano
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-05-03 00:00:00.000000000 Z
11
+ date: 2024-05-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: 'URI-Redis: support for parsing Redis URIs like redis://host:port/dbindex'
14
14
  email:
@@ -17,6 +17,7 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".pre-commit-config.yaml"
20
21
  - ".rubocop.yml"
21
22
  - CHANGES.txt
22
23
  - Gemfile