computed_model 0.2.1 → 0.2.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: eeda96afbaa9bf3906802191f7d5a47809bf034f90fa08eb9d21f07888c1f668
4
- data.tar.gz: 6f3670729f0fc4432658bd115770b53ad78cd7e39ecc3611bead5af586b9b261
3
+ metadata.gz: 21e228839945609c0ea57b95c23b1d6d7a2df2e31bdc077c23d04c7dfbe0a52f
4
+ data.tar.gz: 5f2dcf0e436b2c3bed403f592c8d7619e8b1e33db9e991ac07b5a9a6885cd063
5
5
  SHA512:
6
- metadata.gz: 29fddf368c40400b59ad9f203f25c9a248938b291dab3528054b1098ab16ca638db69a2b630af934f99eedabbb723f5513f7b8adafb06e3c01317bb44503cb1f
7
- data.tar.gz: c48584623cd202f1e97c69271e28fd57cf73e87c0b448c035da8d9030ee8fdb20a51a1803618c71487ad66588f89fabeadcf4c80cae44992cf8c3af38729d6f4
6
+ metadata.gz: 73b4e81cc16de364f6e4a6105038c30e5f2f49e0faa8adb9fdf121558563af41bb4b7ee315b20bd4cd8d5fe49248d4f1a0c7eec41283cadddcba7115e149bdb5
7
+ data.tar.gz: 69a3808af0eda772fa93bff71d59d442972f0a673bc68485767033f72c60296c40bb7e4c7e095b91096394d0b037dc1f1f90e78c9bf04641cfb61125d4046193
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "20:00"
8
+ open-pull-requests-limit: 10
9
+ reviewers:
10
+ - qnighy
@@ -0,0 +1,19 @@
1
+ name: test
2
+
3
+ on: [push, pull_request]
4
+
5
+ jobs:
6
+ test:
7
+ runs-on: ubuntu-latest
8
+
9
+ strategy:
10
+ matrix:
11
+ ruby: ["2.5", "2.6", "2.7"]
12
+
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - uses: ruby/setup-ruby@v1
16
+ with:
17
+ ruby-version: ${{ matrix.ruby }}
18
+ - run: bundle install
19
+ - run: bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## Unreleased
2
2
 
3
+ ## 0.2.2
4
+
5
+ - [#7](https://github.com/wantedly/computed_model/pull/7) Accept Hash as a `with` parameter
6
+
3
7
  ## 0.2.1
4
8
 
5
9
  - Fix problem with `prefix` option in `delegate_dependency` not working
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.2.1'
15
+ gem 'computed_model', '~> 0.2.2'
16
16
  ```
17
17
 
18
18
  And then execute:
@@ -307,11 +307,12 @@ module ComputedModel
307
307
  end
308
308
  end
309
309
 
310
- # @param deps [Array<Symbol, Hash>]
310
+ # @param deps [Array<(Symbol, Hash)>, Hash, Symbol]
311
311
  # @return [Hash{Symbol=>Array}]
312
312
  def self.normalize_dependencies(deps)
313
313
  normalized = {}
314
- deps.each do |elem|
314
+ deps = [deps] if deps.is_a?(Hash)
315
+ Array(deps).each do |elem|
315
316
  case elem
316
317
  when Symbol
317
318
  normalized[elem] ||= []
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ComputedModel
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: computed_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaki Hara
8
8
  - Masayuki Izumi
9
9
  - Wantedly, Inc.
10
- autorequire:
10
+ autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2020-03-28 00:00:00.000000000 Z
13
+ date: 2021-03-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -69,9 +69,10 @@ executables: []
69
69
  extensions: []
70
70
  extra_rdoc_files: []
71
71
  files:
72
+ - ".github/dependabot.yml"
73
+ - ".github/workflows/test.yml"
72
74
  - ".gitignore"
73
75
  - ".rspec"
74
- - ".travis.yml"
75
76
  - ".yardopts"
76
77
  - CHANGELOG.md
77
78
  - Gemfile
@@ -89,7 +90,7 @@ metadata:
89
90
  homepage_uri: https://github.com/wantedly/computed_model
90
91
  source_code_uri: https://github.com/wantedly/computed_model
91
92
  changelog_uri: https://github.com/wantedly/computed_model/blob/master/CHANGELOG.md
92
- post_install_message:
93
+ post_install_message:
93
94
  rdoc_options: []
94
95
  require_paths:
95
96
  - lib
@@ -104,8 +105,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
104
105
  - !ruby/object:Gem::Version
105
106
  version: '0'
106
107
  requirements: []
107
- rubygems_version: 3.0.3
108
- signing_key:
108
+ rubygems_version: 3.2.3
109
+ signing_key:
109
110
  specification_version: 4
110
111
  summary: Batch loader with dependency resolution and computed fields
111
112
  test_files: []
data/.travis.yml DELETED
@@ -1,6 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.7
4
- - 2.6
5
- - 2.5
6
- before_install: gem install bundler -v 2.1.4