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 +4 -4
- data/.pre-commit-config.yaml +69 -0
- data/CHANGES.txt +5 -0
- data/README.md +1 -1
- data/lib/uri/redis/version.rb +2 -1
- data/lib/uri/redis.rb +6 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fa796076bf7ed89fabf28ff901ecce357f10d1a93b09dada70b8ba2185f8bff
|
4
|
+
data.tar.gz: 16b72d3fd5d6a4e41e95e8195a0633d7784245a6eb3d272da476a27845473e36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/README.md
CHANGED
data/lib/uri/redis/version.rb
CHANGED
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
|
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.
|
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-
|
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
|