iknow_view_models 3.2.14 → 3.3.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 680a05c75dacc9f5380b920439650249c11d04ab3f1b685e88081414fc4a72d3
|
|
4
|
+
data.tar.gz: 7328f45000837430c6627ecb1f916f529172b53fe0266aba8a0d02c48d131935
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ae7508982f9e95354f137e84e8bb844b5373f5236526c7640276cc93f3bdb78846864a0cc35209ded4cd24963bbab248010849bfe6cbabcf8c01046288c97bd
|
|
7
|
+
data.tar.gz: 459318dca0636a4381b96e83ce6d260380b74106834b6d60b88af886363c846233c9dc2547e082e009b799d8e674d2cf48811bd49765d3bd2e2a4f2f8e307882
|
data/.circleci/config.yml
CHANGED
|
@@ -5,7 +5,7 @@ executors:
|
|
|
5
5
|
parameters:
|
|
6
6
|
ruby-version:
|
|
7
7
|
type: string
|
|
8
|
-
default: "2.
|
|
8
|
+
default: "2.7"
|
|
9
9
|
pg-version:
|
|
10
10
|
type: string
|
|
11
11
|
default: "11"
|
|
@@ -102,8 +102,8 @@ workflows:
|
|
|
102
102
|
build:
|
|
103
103
|
jobs:
|
|
104
104
|
- test:
|
|
105
|
-
name: 'ruby 2.
|
|
106
|
-
ruby-version: "2.
|
|
105
|
+
name: 'ruby 2.7 rails 5.2 pg 12'
|
|
106
|
+
ruby-version: "2.7"
|
|
107
107
|
pg-version: "12"
|
|
108
108
|
gemfile: gemfiles/rails_5_2.gemfile
|
|
109
109
|
- test:
|
|
@@ -116,6 +116,11 @@ workflows:
|
|
|
116
116
|
ruby-version: "2.7"
|
|
117
117
|
pg-version: "12"
|
|
118
118
|
gemfile: gemfiles/rails_6_1.gemfile
|
|
119
|
+
- test:
|
|
120
|
+
name: 'ruby 3.0 rails 6.1 pg 12'
|
|
121
|
+
ruby-version: "3.0"
|
|
122
|
+
pg-version: "12"
|
|
123
|
+
gemfile: gemfiles/rails_6_1.gemfile
|
|
119
124
|
- publish:
|
|
120
125
|
filters:
|
|
121
126
|
branches:
|
data/iknow_view_models.gemspec
CHANGED
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
|
19
19
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
20
20
|
spec.require_paths = ['lib']
|
|
21
21
|
|
|
22
|
-
spec.required_ruby_version = 2.
|
|
22
|
+
spec.required_ruby_version = '>= 2.7'
|
|
23
23
|
|
|
24
24
|
spec.add_dependency 'activerecord', '>= 5.0'
|
|
25
25
|
spec.add_dependency 'activesupport', '>= 5.0'
|
data/lib/view_model.rb
CHANGED
|
@@ -238,16 +238,16 @@ class ViewModel
|
|
|
238
238
|
ViewModel::SerializeContext
|
|
239
239
|
end
|
|
240
240
|
|
|
241
|
-
def new_serialize_context(
|
|
242
|
-
serialize_context_class.new(
|
|
241
|
+
def new_serialize_context(...)
|
|
242
|
+
serialize_context_class.new(...)
|
|
243
243
|
end
|
|
244
244
|
|
|
245
245
|
def deserialize_context_class
|
|
246
246
|
ViewModel::DeserializeContext
|
|
247
247
|
end
|
|
248
248
|
|
|
249
|
-
def new_deserialize_context(
|
|
250
|
-
deserialize_context_class.new(
|
|
249
|
+
def new_deserialize_context(...)
|
|
250
|
+
deserialize_context_class.new(...)
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
def accepts_schema_version?(schema_version)
|
|
@@ -24,8 +24,8 @@ class ViewModel::TraversalContext
|
|
|
24
24
|
|
|
25
25
|
delegate :access_control, :callbacks, to: :shared_context
|
|
26
26
|
|
|
27
|
-
def self.new_child(
|
|
28
|
-
self.allocate.tap { |c| c.initialize_as_child(
|
|
27
|
+
def self.new_child(...)
|
|
28
|
+
self.allocate.tap { |c| c.initialize_as_child(...) }
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def initialize(shared_context: nil, **shared_context_params)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: iknow_view_models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- iKnow Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-04-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|
|
@@ -486,14 +486,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
486
486
|
requirements:
|
|
487
487
|
- - ">="
|
|
488
488
|
- !ruby/object:Gem::Version
|
|
489
|
-
version: '
|
|
489
|
+
version: '2.7'
|
|
490
490
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
491
491
|
requirements:
|
|
492
492
|
- - ">="
|
|
493
493
|
- !ruby/object:Gem::Version
|
|
494
494
|
version: '0'
|
|
495
495
|
requirements: []
|
|
496
|
-
rubygems_version: 3.
|
|
496
|
+
rubygems_version: 3.1.6
|
|
497
497
|
signing_key:
|
|
498
498
|
specification_version: 4
|
|
499
499
|
summary: ViewModels provide a means of encapsulating a collection of related data
|