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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6094ea590e66afd51a244fc0bdb4eaa3252a26cd3c1a7da445b5a222a44b9cca
4
- data.tar.gz: 235b5ffc47898796c08fdcaca31341ff236bca5ea6b70aa1a11e3dc14617bd5c
3
+ metadata.gz: f8dbe9434bda5d5e9c9e95b094a29bfce543067013cb12b629a85f46c06a7a15
4
+ data.tar.gz: b683e7b892a3d20d3d8174541bae36f1ad730928093177403f3240b307a202c8
5
5
  SHA512:
6
- metadata.gz: ed2cce70440beb24a905a139b316d03db97df8e91e7651c75cec4616276f75db22576afde2c257ff7b92dc6eab2cb0e902d2743f28334ff5048f76dff5c7cb39
7
- data.tar.gz: cd67c6ee621157797594186cf9487e2cf2fd24e756d1a21f3534556e0e3b9938dcb119346df3e96659cac072c1cc080b3394d59950fde264fe28230f92ba12fc
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
- ruby '>= 2.7.8'
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.2', require: false
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
- sysinfo (0.10.0)
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
- gibbler (~> 1.0.0)
40
- multi_json (~> 1.15)
45
+ familia!
41
46
  pry-byebug (~> 3.10.1)
42
- redis (>= 4.8.1, < 6.0)
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.9
50
+ 2.5.14
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Familia - 0.10.1
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.0'`
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
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :MAJOR: 0
3
3
  :MINOR: 10
4
- :PATCH: 1
4
+ :PATCH: 2
data/familia.gemspec CHANGED
@@ -1,17 +1,23 @@
1
- Gem::Specification.new do |s|
2
- s.name = "familia"
3
- s.version = "0.10.1"
4
- s.summary = "Organize and store ruby objects in Redis"
5
- s.description = "Familia: #{s.summary}"
6
- s.authors = ["Delano Mandelbaum"]
7
- s.email = "gems@solutious.com"
8
- s.homepage = "https://github.com/delano/familia"
9
- s.license = "MIT"
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
- s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
12
- s.bindir = "exe"
13
- s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
14
- s.require_paths = ["lib"]
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
- s.required_ruby_version = Gem::Requirement.new(">= 2.7.8")
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
@@ -262,6 +262,8 @@ module Familia
262
262
  ret = case @opts[:class]
263
263
  when ::Symbol, ::String, ::Integer, ::Float, Gibbler::Digest
264
264
  v
265
+ when ::NilClass
266
+ ""
265
267
  else
266
268
  if ::String === v
267
269
  v
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
- info "[%s] %s %s" % [label, redis_instance.id, ident]
55
- if context
54
+ codeline = if context
56
55
  context = [context].flatten
57
56
  context.reject! { |line| line =~ /lib\/familia/ }
58
- info " %s" % context[0..6].join("\n ")
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
@@ -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
@@ -47,7 +47,7 @@ require 'familia/test_helpers'
47
47
 
48
48
  ## Familia::SortedSet#score
49
49
  @a.metrics.score 'metric4'
50
- #=> 54
50
+ #=> 54.0
51
51
 
52
52
  ## Familia::SortedSet#remrangebyscore
53
53
  @a.metrics.remrangebyscore 3, 100
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.1
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-17 00:00:00.000000000 Z
12
- dependencies: []
13
- description: 'Familia: Organize and store ruby objects in Redis'
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.1.6
65
- signing_key:
141
+ rubygems_version: 3.5.9
142
+ signing_key:
66
143
  specification_version: 4
67
- summary: Organize and store ruby objects in Redis
144
+ summary: An ORM for Redis in Ruby.
68
145
  test_files: []