familia 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -8
- data/Gemfile.lock +15 -16
- data/README.md +2 -2
- data/VERSION.yml +1 -1
- data/familia.gemspec +20 -14
- data/lib/familia/redisobject.rb +2 -0
- data/lib/familia.rb +3 -3
- data/try/20_redis_object_try.rb +2 -2
- data/try/21_redis_object_zset_try.rb +1 -1
- metadata +86 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8dbe9434bda5d5e9c9e95b094a29bfce543067013cb12b629a85f46c06a7a15
|
4
|
+
data.tar.gz: b683e7b892a3d20d3d8174541bae36f1ad730928093177403f3240b307a202c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5980af9f8c2c677871bdf68823501eb6fdbfb416c723a20c7a4efe38783a1299740254f4bb85ccf50be27378c1acca10dda6a100d0b478d8a2e80e633b41b4d1
|
7
|
+
data.tar.gz: 79845a5aa30366128606f784ea1187b64653cceb6466b0a459988e0ca46aa31cb8892640ed2ba332511ebcd9af5cd48d24bb48eddcbd3670ab559d2718786ee8
|
data/Gemfile
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
gem 'redis', '>= 4.8.1', '< 6.0'
|
6
|
-
gem 'uri-redis', '>= 1.3.0'
|
7
|
-
gem 'gibbler', '~> 1.0.0'
|
8
|
-
gem 'storable', '~> 0.10.0'
|
9
|
-
gem 'multi_json', '~> 1.15'
|
3
|
+
gemspec
|
10
4
|
|
11
5
|
group :development, :test do
|
12
6
|
gem 'pry-byebug', '~> 3.10.1', require: false
|
13
|
-
gem 'tryouts', '~> 2.
|
7
|
+
gem 'tryouts', '~> 2.3', require: false
|
14
8
|
end
|
data/Gemfile.lock
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
familia (0.10.2)
|
5
|
+
gibbler (~> 1.0.0)
|
6
|
+
multi_json (~> 1.15)
|
7
|
+
redis (>= 4.8.1, < 6.0)
|
8
|
+
storable (~> 0.10.0)
|
9
|
+
uri-redis (>= 1.3.0)
|
10
|
+
|
1
11
|
GEM
|
2
12
|
remote: https://rubygems.org/
|
3
13
|
specs:
|
@@ -6,7 +16,6 @@ GEM
|
|
6
16
|
byebug (11.1.3)
|
7
17
|
coderay (1.1.3)
|
8
18
|
connection_pool (2.4.1)
|
9
|
-
drydock (0.6.9)
|
10
19
|
gibbler (1.0.0)
|
11
20
|
attic (~> 1.0)
|
12
21
|
rake (~> 13.0)
|
@@ -24,28 +33,18 @@ GEM
|
|
24
33
|
redis-client (0.22.2)
|
25
34
|
connection_pool
|
26
35
|
storable (0.10.0)
|
27
|
-
|
28
|
-
drydock (< 1.0)
|
29
|
-
storable (~> 0.10)
|
30
|
-
tryouts (2.2.0)
|
31
|
-
sysinfo (~> 0.10)
|
36
|
+
tryouts (2.3.1)
|
32
37
|
uri-redis (1.3.0)
|
33
38
|
|
34
39
|
PLATFORMS
|
40
|
+
arm64-darwin-23
|
35
41
|
arm64-darwin-24
|
36
42
|
ruby
|
37
43
|
|
38
44
|
DEPENDENCIES
|
39
|
-
|
40
|
-
multi_json (~> 1.15)
|
45
|
+
familia!
|
41
46
|
pry-byebug (~> 3.10.1)
|
42
|
-
|
43
|
-
storable (~> 0.10.0)
|
44
|
-
tryouts (~> 2.2)
|
45
|
-
uri-redis (>= 1.3.0)
|
46
|
-
|
47
|
-
RUBY VERSION
|
48
|
-
ruby 3.2.4p170
|
47
|
+
tryouts (~> 2.3)
|
49
48
|
|
50
49
|
BUNDLED WITH
|
51
|
-
2.5.
|
50
|
+
2.5.14
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Familia - 0.10.
|
1
|
+
# Familia - 0.10.2
|
2
2
|
|
3
3
|
**Organize and store ruby objects in Redis. A Ruby ORM for Redis.**
|
4
4
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
Get it in one of the following ways:
|
8
8
|
|
9
|
-
* In your Gemfile: `gem 'familia', '>= 0.10.
|
9
|
+
* In your Gemfile: `gem 'familia', '>= 0.10.2'`
|
10
10
|
* Install it by hand: `gem install familia`
|
11
11
|
* Or for development: `git clone git@github.com:delano/familia.git`
|
12
12
|
|
data/VERSION.yml
CHANGED
data/familia.gemspec
CHANGED
@@ -1,17 +1,23 @@
|
|
1
|
-
Gem::Specification.new do |
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
Gem::Specification.new do |spec|
|
2
|
+
spec.name = "familia"
|
3
|
+
spec.version = "0.10.2"
|
4
|
+
spec.summary = "An ORM for Redis in Ruby."
|
5
|
+
spec.description = "Familia: #{spec.summary}. Organize and store ruby objects in Redis"
|
6
|
+
spec.authors = ["Delano Mandelbaum"]
|
7
|
+
spec.email = "gems@solutious.com"
|
8
|
+
spec.homepage = "https://github.com/delano/familia"
|
9
|
+
spec.license = "MIT"
|
10
10
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
12
|
+
spec.bindir = "exe"
|
13
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
14
|
+
spec.require_paths = ["lib"]
|
15
15
|
|
16
|
-
|
16
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.7.8")
|
17
|
+
|
18
|
+
spec.add_dependency 'redis', '>= 4.8.1', '< 6.0'
|
19
|
+
spec.add_dependency 'uri-redis', '~> 1.3'
|
20
|
+
spec.add_dependency 'gibbler', '~> 1.0.0'
|
21
|
+
spec.add_dependency 'storable', '~> 0.10.0'
|
22
|
+
spec.add_dependency 'multi_json', '~> 1.15'
|
17
23
|
end
|
data/lib/familia/redisobject.rb
CHANGED
data/lib/familia.rb
CHANGED
@@ -51,12 +51,12 @@ module Familia
|
|
51
51
|
end
|
52
52
|
def trace label, redis_instance, ident, context=nil
|
53
53
|
return unless Familia.debug?
|
54
|
-
|
55
|
-
if context
|
54
|
+
codeline = if context
|
56
55
|
context = [context].flatten
|
57
56
|
context.reject! { |line| line =~ /lib\/familia/ }
|
58
|
-
|
57
|
+
context.first
|
59
58
|
end
|
59
|
+
info "[%s] -> %s <- %s %s" % [label, codeline, redis_instance.id, ident]
|
60
60
|
end
|
61
61
|
def uri= v
|
62
62
|
v = URI.parse v unless URI === v
|
data/try/20_redis_object_try.rb
CHANGED
@@ -30,13 +30,13 @@ Familia.apiversion = 'v1'
|
|
30
30
|
|
31
31
|
## Check ttl
|
32
32
|
@limiter.counter.ttl
|
33
|
-
#=> 3600
|
33
|
+
#=> 3600.0
|
34
34
|
|
35
35
|
## Check ttl for a different instance
|
36
36
|
## (this exists to make sure options are cloned for each instance)
|
37
37
|
@limiter2 = Limiter.new :requests
|
38
38
|
@limiter2.counter.ttl
|
39
|
-
#=> 3600
|
39
|
+
#=> 3600.0
|
40
40
|
|
41
41
|
## Check realttl
|
42
42
|
sleep 1
|
metadata
CHANGED
@@ -1,16 +1,93 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: familia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Delano Mandelbaum
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
12
|
-
dependencies:
|
13
|
-
|
11
|
+
date: 2024-06-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: redis
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.8.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '6.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 4.8.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '6.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: uri-redis
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.3'
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.3'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: gibbler
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.0.0
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: 1.0.0
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: storable
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 0.10.0
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 0.10.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: multi_json
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '1.15'
|
82
|
+
type: :runtime
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '1.15'
|
89
|
+
description: 'Familia: An ORM for Redis in Ruby.. Organize and store ruby objects
|
90
|
+
in Redis'
|
14
91
|
email: gems@solutious.com
|
15
92
|
executables: []
|
16
93
|
extensions: []
|
@@ -46,7 +123,7 @@ homepage: https://github.com/delano/familia
|
|
46
123
|
licenses:
|
47
124
|
- MIT
|
48
125
|
metadata: {}
|
49
|
-
post_install_message:
|
126
|
+
post_install_message:
|
50
127
|
rdoc_options: []
|
51
128
|
require_paths:
|
52
129
|
- lib
|
@@ -61,8 +138,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
138
|
- !ruby/object:Gem::Version
|
62
139
|
version: '0'
|
63
140
|
requirements: []
|
64
|
-
rubygems_version: 3.
|
65
|
-
signing_key:
|
141
|
+
rubygems_version: 3.5.9
|
142
|
+
signing_key:
|
66
143
|
specification_version: 4
|
67
|
-
summary:
|
144
|
+
summary: An ORM for Redis in Ruby.
|
68
145
|
test_files: []
|