computed_model 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/lib/computed_model.rb +1 -1
- data/lib/computed_model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeda96afbaa9bf3906802191f7d5a47809bf034f90fa08eb9d21f07888c1f668
|
4
|
+
data.tar.gz: 6f3670729f0fc4432658bd115770b53ad78cd7e39ecc3611bead5af586b9b261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29fddf368c40400b59ad9f203f25c9a248938b291dab3528054b1098ab16ca638db69a2b630af934f99eedabbb723f5513f7b8adafb06e3c01317bb44503cb1f
|
7
|
+
data.tar.gz: c48584623cd202f1e97c69271e28fd57cf73e87c0b448c035da8d9030ee8fdb20a51a1803618c71487ad66588f89fabeadcf4c80cae44992cf8c3af38729d6f4
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
## Unreleased
|
2
|
+
|
3
|
+
## 0.2.1
|
4
|
+
|
5
|
+
- Fix problem with `prefix` option in `delegate_dependency` not working
|
6
|
+
|
7
|
+
## 0.2.0
|
8
|
+
|
2
9
|
- **BREAKING CHANGE** Make define_loader more concise interface like GraphQL's DataLoader.
|
3
10
|
- Introduce primary loader through `#define_primary_loader`.
|
4
11
|
- **BREAKING CHANGE** Change `#bulk_load_and_compute` signature to support primary loader.
|
data/README.md
CHANGED
data/lib/computed_model.rb
CHANGED
@@ -120,7 +120,7 @@ module ComputedModel
|
|
120
120
|
# @example delegate name from raw_user, but expose as user_name
|
121
121
|
# delegate_dependency :name, to: :raw_user, prefix: :user
|
122
122
|
def delegate_dependency(*methods, to:, allow_nil: nil, prefix: nil, include_subdeps: nil)
|
123
|
-
method_prefix = prefix ? "#{
|
123
|
+
method_prefix = prefix ? "#{prefix}_" : ""
|
124
124
|
methods.each do |meth_name|
|
125
125
|
pmeth_name = :"#{method_prefix}#{meth_name}"
|
126
126
|
if include_subdeps
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: computed_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masaki Hara
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2020-03-
|
13
|
+
date: 2020-03-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|