trailblazer-macro-contract 2.1.0.rc11 → 2.1.0.rc12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +4 -0
- data/Gemfile +1 -1
- data/lib/trailblazer/macro/contract/version.rb +1 -1
- data/test/docs/contract_test.rb +2 -2
- data/test/operation/contract_test.rb +2 -2
- data/test/operation/persist_test.rb +2 -2
- data/test/test_helper.rb +1 -0
- data/trailblazer-macro-contract.gemspec +1 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f2399e629c5260000daee0f15c7a8ba6d8ffe0c0a473322d6f7aa836c4a643c
|
4
|
+
data.tar.gz: 49fe81ecd97abe875cbd946cda6c6699cad6cdda0271b75061164a62728a7d7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 521df8740916a7dd8404608b030f017144452ca497bf96b59dcf14f7420cd0386d1ee300ac1ed5d681b89458ba9878961348c528b9f8816e76cb5bf68f740e0e
|
7
|
+
data.tar.gz: 9ebdea5a3afebcff077f87cb5cc1490258b40b094b8106bf9a4da8e26fd968c0bd701c6a2b35fff1a9772d59882e9a6ed6a81d280786d99132e377c832851b0f
|
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
@@ -5,7 +5,7 @@ gemspec
|
|
5
5
|
gem "dry-auto_inject"
|
6
6
|
gem "dry-matcher"
|
7
7
|
|
8
|
-
|
8
|
+
gem "trailblazer-operation", path: "../trailblazer-operation"
|
9
9
|
# gem "trailblazer-macro", path: "../trailblazer-macro"
|
10
10
|
# gem "trailblazer-activity", path: "../trailblazer-activity"
|
11
11
|
# gem "trailblazer-activity-dsl-linear", path: "../trailblazer-activity-dsl-linear"
|
data/test/docs/contract_test.rb
CHANGED
@@ -24,7 +24,7 @@ class DocsContractOverviewTest < Minitest::Spec
|
|
24
24
|
end
|
25
25
|
#:overv-reform end
|
26
26
|
|
27
|
-
puts Trailblazer::
|
27
|
+
puts Trailblazer::Developer.railway(Create, style: :rows)
|
28
28
|
|
29
29
|
=begin
|
30
30
|
#:overv-reform-pipe
|
@@ -389,7 +389,7 @@ class DryValidationContractTest < Minitest::Spec
|
|
389
389
|
end
|
390
390
|
#:dry-schema end
|
391
391
|
|
392
|
-
puts "@@@@@ #{Trailblazer::
|
392
|
+
puts "@@@@@ #{Trailblazer::Developer.railway(Create, style: :rows)}"
|
393
393
|
|
394
394
|
it { Create.(params: {}).inspect("result.contract.default").must_include "Result:false"}
|
395
395
|
it { Create.(params: {}).inspect("result.contract.default").must_include "errors={:id=>[\"must be filled\""}
|
@@ -70,14 +70,14 @@ class ContractTest < Minitest::Spec
|
|
70
70
|
class New < Upsert
|
71
71
|
end
|
72
72
|
|
73
|
-
it { Trailblazer::
|
73
|
+
it { Trailblazer::Developer.railway(New).must_equal %{[>model.build,>contract.build,>contract.default.validate,>persist.save]} }
|
74
74
|
|
75
75
|
#- overwriting Validate
|
76
76
|
class NewHit < Upsert
|
77
77
|
step Contract::Validate( key: :hit ), override: true
|
78
78
|
end
|
79
79
|
|
80
|
-
it { Trailblazer::
|
80
|
+
it { Trailblazer::Developer.railway(NewHit).must_equal %{[>model.build,>contract.build,>contract.default.validate,>persist.save]} }
|
81
81
|
it { NewHit.(params: {:hit => { title: "Hooray For Me" }}).inspect(:model).must_equal %{<Result:true [#<struct ContractTest::Song title=\"Hooray For Me\">] >} }
|
82
82
|
end
|
83
83
|
end
|
@@ -42,10 +42,10 @@ class PersistTest < Minitest::Spec
|
|
42
42
|
class Update < Create
|
43
43
|
end
|
44
44
|
|
45
|
-
it { Trailblazer::
|
45
|
+
it { Trailblazer::Developer.railway( Update ).must_equal %{[>model.build,>contract.build,>contract.default.validate,<<PersistTest::Create::Fail1,>persist.save,<<PersistTest::Create::Fail2]} }
|
46
46
|
|
47
47
|
#---
|
48
48
|
it do
|
49
49
|
skip "show how save! could be applied and how we could rescue and deviate to left track"
|
50
50
|
end
|
51
|
-
end
|
51
|
+
end
|
data/test/test_helper.rb
CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "dry-validation", "0.11.1" # FIXME: upgrade example code
|
25
25
|
spec.add_development_dependency "reform-rails", "~> 0.2.0.rc2"
|
26
26
|
spec.add_development_dependency "trailblazer-macro", ">= 2.1.0.rc11", "< 2.2.0"
|
27
|
+
spec.add_development_dependency "trailblazer-developer"
|
27
28
|
|
28
29
|
spec.add_development_dependency "minitest"
|
29
30
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trailblazer-macro-contract
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0.
|
4
|
+
version: 2.1.0.rc12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reform
|
@@ -92,6 +92,20 @@ dependencies:
|
|
92
92
|
- - "<"
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: 2.2.0
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: trailblazer-developer
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
95
109
|
- !ruby/object:Gem::Dependency
|
96
110
|
name: minitest
|
97
111
|
requirement: !ruby/object:Gem::Requirement
|