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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 827856e649d8af3b892979456fb1acbcfc9ab746934713422903e68342872371
4
- data.tar.gz: 68b14dcca2f7e31880ac54b26e0f3c92bfeebf90ca9387be741f158d7fbeb5ee
3
+ metadata.gz: eeda96afbaa9bf3906802191f7d5a47809bf034f90fa08eb9d21f07888c1f668
4
+ data.tar.gz: 6f3670729f0fc4432658bd115770b53ad78cd7e39ecc3611bead5af586b9b261
5
5
  SHA512:
6
- metadata.gz: 7a5ea72e1d06f357866dfde5a453591d43bad5a9ebd178cad88db09e351fc6ae3830d380514ee00ce582f45cb80339980e90c363298b910bfb2d2ccf3765008f
7
- data.tar.gz: b2a953f74000b6b40f76ae43920e516c39c24856a2c29d89f63ee8253878c1c0ba847342b7915f134de6df3caa620f520f076951e10fed445726f793098153de
6
+ metadata.gz: 29fddf368c40400b59ad9f203f25c9a248938b291dab3528054b1098ab16ca638db69a2b630af934f99eedabbb723f5513f7b8adafb06e3c01317bb44503cb1f
7
+ data.tar.gz: c48584623cd202f1e97c69271e28fd57cf73e87c0b448c035da8d9030ee8fdb20a51a1803618c71487ad66588f89fabeadcf4c80cae44992cf8c3af38729d6f4
@@ -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
@@ -12,7 +12,7 @@ ActiveRecord and remote server (such as ActiveResource).
12
12
  Add this line to your application's Gemfile:
13
13
 
14
14
  ```ruby
15
- gem 'computed_model', '~> 0.1.1'
15
+ gem 'computed_model', '~> 0.2.1'
16
16
  ```
17
17
 
18
18
  And then execute:
@@ -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 ? "#{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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ComputedModel
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
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.0
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-26 00:00:00.000000000 Z
13
+ date: 2020-03-28 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler