uri-redis 1.1.0 → 1.1.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: 9d3733d391eb1143e238f47c190e49c48efe4a616316757effcf7d653c03c488
4
- data.tar.gz: 18cbf4d564e3c031c3d3dc9a788e28e79bf53657fcb234f2878f3d12eee82f0a
3
+ metadata.gz: c2e4e8d6cca73e004a478e058249d482d84f33be00cb1cf33c0bb7d2458bff78
4
+ data.tar.gz: 767267e29b0ce98d54b4e5969cab04cc4f180a2e48f3d27074a82900659bcffa
5
5
  SHA512:
6
- metadata.gz: b4efae3a9fe01cf9dece02866dc2d45435068a23825e4b1b617d8919398f994a5c9887841d885fc576a260fc791415e6225847c1675e247b2ea964c385cb9c3c
7
- data.tar.gz: 757b7e28a203e3056f95d7c6c15115e9ff1cdff790ded33c9e72ad7ee70c25205ace9c608e90f8fdf13129da0cba26d5020bcb3b55b38d3b76983f4d927e0010
6
+ metadata.gz: bf8f3b38f7d8e7d39ca6f029dfc8419ed89e9f748f542ba0c475266f594aedf0e5461b5b5187cd60ad77da021152ac0bffc20e5dbef66db2bdcaed8d6a6e7a4a
7
+ data.tar.gz: 1fb12117c5056b54d9c346efe5d77bfc534ac5b172e0f2d67cfa5395c4653ac104a43d0851f03e277a9e5ecbce9c275e428fddd6436ce7e5fe553667d5bba4ec
data/CHANGES.txt CHANGED
@@ -1,11 +1,5 @@
1
1
  URI-Redis, CHANGES
2
2
 
3
- #### 1.1.0 (2024-04-04) ###############################
4
-
5
- * Fix for frozen strings issue.
6
- * Allow fow updated redis, tryouts releases.
7
-
8
-
9
3
  #### 1.0.0 (2023-01-17) ###############################
10
4
 
11
5
  * CHANGE: Just a version bump to 1.0 for a full
data/Gemfile CHANGED
@@ -2,8 +2,6 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- ruby '>= 2.6.8'
6
-
7
5
  # Specify your gem's dependencies in uri-redis.gemspec
8
6
  gemspec
9
7
 
data/Gemfile.lock CHANGED
@@ -10,30 +10,28 @@ GEM
10
10
  ast (2.4.2)
11
11
  drydock (0.6.9)
12
12
  json (2.7.2)
13
- language_server-protocol (3.17.0.3)
14
13
  parallel (1.24.0)
15
14
  parser (3.3.0.5)
16
15
  ast (~> 2.4.1)
17
16
  racc
18
17
  racc (1.7.3)
19
18
  rainbow (3.1.1)
20
- rake (13.2.0)
19
+ rake (13.2.1)
21
20
  redis (4.8.1)
22
21
  regexp_parser (2.9.0)
23
22
  rexml (3.2.6)
24
- rubocop (1.62.1)
23
+ rubocop (1.50.2)
25
24
  json (~> 2.3)
26
- language_server-protocol (>= 3.17.0)
27
25
  parallel (~> 1.10)
28
- parser (>= 3.3.0.2)
26
+ parser (>= 3.2.0.0)
29
27
  rainbow (>= 2.2.2, < 4.0)
30
28
  regexp_parser (>= 1.8, < 3.0)
31
29
  rexml (>= 3.2.5, < 4.0)
32
- rubocop-ast (>= 1.31.1, < 2.0)
30
+ rubocop-ast (>= 1.28.0, < 2.0)
33
31
  ruby-progressbar (~> 1.7)
34
32
  unicode-display_width (>= 2.4.0, < 3.0)
35
- rubocop-ast (1.31.2)
36
- parser (>= 3.3.0.4)
33
+ rubocop-ast (1.30.0)
34
+ parser (>= 3.2.1.0)
37
35
  ruby-progressbar (1.13.0)
38
36
  storable (0.10.0)
39
37
  sysinfo (0.10.0)
@@ -45,7 +43,6 @@ GEM
45
43
 
46
44
  PLATFORMS
47
45
  arm64-darwin-22
48
- ruby
49
46
 
50
47
  DEPENDENCIES
51
48
  rake (~> 13.0)
@@ -54,4 +51,4 @@ DEPENDENCIES
54
51
  uri-redis!
55
52
 
56
53
  BUNDLED WITH
57
- 2.5.7
54
+ 2.4.12
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # URI-Redis v1.1.0 (2024-04-04)
1
+ # URI-Redis v1.0 (pre-release)
2
2
 
3
3
  Creates a URI object for Redis URLs.
4
4
 
@@ -30,6 +30,11 @@ Get it in one of the following ways:
30
30
  * [Github](https://github.com/delano/uri-redis)
31
31
 
32
32
 
33
+ ## Credits
34
+
35
+ * delano (https://delanotes.com/)
36
+
37
+
33
38
  ## License
34
39
 
35
40
  See LICENSE.txt
@@ -2,6 +2,6 @@
2
2
 
3
3
  module URI
4
4
  module Redis
5
- VERSION = "1.1.0"
5
+ VERSION = "1.1.1"
6
6
  end
7
7
  end
data/lib/uri/redis.rb CHANGED
@@ -18,6 +18,7 @@ module URI
18
18
  # uri = URI::Redis.build(host: "localhost", port: 6379, db: 2)
19
19
  # uri.to_s #=> "redis://localhost:6379/2"
20
20
  class Redis < URI::Generic
21
+ VERSION = "0.4" unless defined?(URI::Redis::VERSION)
21
22
  DEFAULT_PORT = 6379
22
23
  DEFAULT_DB = 0
23
24
 
@@ -101,7 +102,15 @@ module URI
101
102
  end
102
103
  end
103
104
 
104
- register_scheme "REDIS", Redis
105
+ # If the @@scheme class variable exists, this is an older version
106
+ # of URI. Otherwise if the register_scheme class method is available
107
+ # we'll use that instead since it's the modern approach.
108
+ if defined?(@@schemes)
109
+ @@schemes['REDIS'] = Redis
110
+ else
111
+ register_scheme "REDIS", Redis
112
+ end
113
+
105
114
  end
106
115
 
107
116
  # Adds a URI method to Redis
@@ -1,5 +1,6 @@
1
+ # frozen_string_literal: true
1
2
 
2
- require_relative "../lib/uri/redis"
3
+ require "uri/redis"
3
4
 
4
5
  ## Default database is 0
5
6
  uri = URI.parse "redis://localhost"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uri-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - delano
@@ -14,36 +14,42 @@ dependencies:
14
14
  name: redis
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '4.8'
20
- - - "<"
19
+ version: '4.1'
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '7'
22
+ version: 4.1.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '4.8'
30
- - - "<"
29
+ version: '4.1'
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '7'
32
+ version: 4.1.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: tryouts
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.1'
37
40
  - - ">="
38
41
  - !ruby/object:Gem::Version
39
- version: '0'
42
+ version: 2.1.1
40
43
  type: :development
41
44
  prerelease: false
42
45
  version_requirements: !ruby/object:Gem::Requirement
43
46
  requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '2.1'
44
50
  - - ">="
45
51
  - !ruby/object:Gem::Version
46
- version: '0'
52
+ version: 2.1.1
47
53
  description: 'URI-Redis: support for parsing Redis URIs like redis://host:port/dbindex'
48
54
  email:
49
55
  - delano@solutious.com