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 +4 -4
- data/.github/dependabot.yml +10 -0
- data/.github/workflows/test.yml +19 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/computed_model.rb +3 -2
- data/lib/computed_model/version.rb +1 -1
- metadata +8 -7
- data/.travis.yml +0 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 21e228839945609c0ea57b95c23b1d6d7a2df2e31bdc077c23d04c7dfbe0a52f
|
4
|
+
data.tar.gz: 5f2dcf0e436b2c3bed403f592c8d7619e8b1e33db9e991ac07b5a9a6885cd063
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b4e81cc16de364f6e4a6105038c30e5f2f49e0faa8adb9fdf121558563af41bb4b7ee315b20bd4cd8d5fe49248d4f1a0c7eec41283cadddcba7115e149bdb5
|
7
|
+
data.tar.gz: 69a3808af0eda772fa93bff71d59d442972f0a673bc68485767033f72c60296c40bb7e4c7e095b91096394d0b037dc1f1f90e78c9bf04641cfb61125d4046193
|
@@ -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
data/README.md
CHANGED
data/lib/computed_model.rb
CHANGED
@@ -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
|
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] ||= []
|
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.
|
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:
|
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.
|
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: []
|