foobara-redis-crud-driver 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/src/foobara/redis_crud_driver.rb +1 -12
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a54546ecb7497876846a64f0306c99630365e16051abc72b98af54332f51921b
|
4
|
+
data.tar.gz: 1c8acd4863e4ed466a2a4e90b49050c4cd5d6aa689c981c9d98538e064ab82a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1332d039107309e3743b6289ed84315719eeecb760d4ddd6c7a4bdbbcb66d0faaf8fc853c8b8aeddfa440cf74f7565594652b254388474527151d8482a9e2a05
|
7
|
+
data.tar.gz: f971e1135cf1bacb5a15f5c0ee6c4cb45f0247202793e8c453f5c34f8b7d56659dd25c7bae2c90a1118b99c22728bdc53fa378cd2b761210091d27bcfc5e42be
|
data/CHANGELOG.md
CHANGED
@@ -49,7 +49,7 @@ module Foobara
|
|
49
49
|
redis.incr(sequence_key)
|
50
50
|
end
|
51
51
|
|
52
|
-
def all
|
52
|
+
def all(page_size: nil)
|
53
53
|
Enumerator.new do |yielder|
|
54
54
|
batches_of_primary_keys.each do |batch|
|
55
55
|
raw_records = redis.pipelined do |p|
|
@@ -77,17 +77,6 @@ module Foobara
|
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
80
|
-
# TODO: move this up to base class as a default
|
81
|
-
def find!(record_id)
|
82
|
-
attributes = find(record_id)
|
83
|
-
|
84
|
-
unless attributes
|
85
|
-
raise CannotFindError.new(record_id, "does not exist")
|
86
|
-
end
|
87
|
-
|
88
|
-
attributes
|
89
|
-
end
|
90
|
-
|
91
80
|
def insert(attributes)
|
92
81
|
attributes = Util.deep_dup(attributes)
|
93
82
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foobara-redis-crud-driver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miles Georgi
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version: 0.0.
|
18
|
+
version: 0.0.131
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version: 0.0.
|
25
|
+
version: 0.0.131
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: redis
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,7 +61,6 @@ metadata:
|
|
61
61
|
rubygems_mfa_required: 'true'
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
64
|
-
- lib
|
65
64
|
- src
|
66
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
66
|
requirements:
|
@@ -74,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
73
|
- !ruby/object:Gem::Version
|
75
74
|
version: '0'
|
76
75
|
requirements: []
|
77
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
78
77
|
specification_version: 4
|
79
78
|
summary: Provides support for entity CRUD in Redis for Foobara
|
80
79
|
test_files: []
|