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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b6413a7b945e393b8baa3a495aac23add0b441a4355eab849f9fbe04c88302f
4
- data.tar.gz: 8ff7bbec10e5c54bdd441210490ac4821e1af9883712b7e402a823326c7a5709
3
+ metadata.gz: 3f2399e629c5260000daee0f15c7a8ba6d8ffe0c0a473322d6f7aa836c4a643c
4
+ data.tar.gz: 49fe81ecd97abe875cbd946cda6c6699cad6cdda0271b75061164a62728a7d7a
5
5
  SHA512:
6
- metadata.gz: 485c18523ff12598036bc545a9d4198e7a6c8caf55151d2408c8ca8a1102c53b8e161542e414092ec1afed01a23272c0f225435698f1a60d46689413dbc1b34e
7
- data.tar.gz: df126c3051524791589a7822a76f22d8807cd8f434b8e4401256714c8f3a7ee077f1aecfbbe74f2f0f8e09bb7029ae001298382ce47b6f5b2d13b5bd80d733ed
6
+ metadata.gz: 521df8740916a7dd8404608b030f017144452ca497bf96b59dcf14f7420cd0386d1ee300ac1ed5d681b89458ba9878961348c528b9f8816e76cb5bf68f740e0e
7
+ data.tar.gz: 9ebdea5a3afebcff077f87cb5cc1490258b40b094b8106bf9a4da8e26fd968c0bd701c6a2b35fff1a9772d59882e9a6ed6a81d280786d99132e377c832851b0f
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.1.0.rc12
2
+
3
+ * Dependencies updated.
4
+
1
5
  # 2.1.0.rc11
2
6
 
3
7
  * Use `>= activity-0.8`.
data/Gemfile CHANGED
@@ -5,7 +5,7 @@ gemspec
5
5
  gem "dry-auto_inject"
6
6
  gem "dry-matcher"
7
7
 
8
- # gem "trailblazer-operation", path: "../trailblazer-operation"
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"
@@ -2,7 +2,7 @@ module Trailblazer
2
2
  module Version
3
3
  module Macro
4
4
  module Contract
5
- VERSION = "2.1.0.rc11".freeze
5
+ VERSION = "2.1.0.rc12".freeze
6
6
  end
7
7
  end
8
8
  end
@@ -24,7 +24,7 @@ class DocsContractOverviewTest < Minitest::Spec
24
24
  end
25
25
  #:overv-reform end
26
26
 
27
- puts Trailblazer::Operation::Inspect.(Create, style: :rows)
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::Operation::Inspect.(Create, style: :rows)}"
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::Operation::Inspect.(New).must_equal %{[>model.build,>contract.build,>contract.default.validate,>persist.save]} }
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::Operation::Inspect.(NewHit).must_equal %{[>model.build,>contract.build,>contract.default.validate,>persist.save]} }
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::Operation::Inspect.( Update ).must_equal %{[>model.build,>contract.build,>contract.default.validate,<<PersistTest::Create::Fail1,>persist.save,<<PersistTest::Create::Fail2]} }
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
@@ -1,5 +1,6 @@
1
1
  require "pp"
2
2
  require 'delegate'
3
+ require "trailblazer/developer"
3
4
  require "trailblazer/macro"
4
5
  require "trailblazer-macro-contract"
5
6
  require "minitest/autorun"
@@ -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.rc11
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-06-16 00:00:00.000000000 Z
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