trailblazer-macro-contract 2.1.0.beta3 → 2.1.0.beta4
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 +4 -4
- data/.travis.yml +7 -14
- data/CHANGES.md +4 -0
- data/Gemfile +1 -3
- data/lib/trailblazer-macro-contract.rb +2 -0
- data/lib/trailblazer/macro/contract.rb +1 -1
- data/lib/trailblazer/macro/contract/version.rb +1 -1
- data/test/docs/contract_test.rb +10 -9
- data/test/test_helper.rb +1 -2
- data/trailblazer-macro-contract.gemspec +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e76cb3d4994697ebe273d8d8f4d23eb22cfdf6e4c3e14938916e069a153e6d8d
|
4
|
+
data.tar.gz: 0bb78c2ca2ba55978dc72bb97166f2bdfa3e3c774061608ab1720f75d0ce735a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43ef3c668e774660436555c176e5922d675e03d56d695dbcf4db9531c58ea81d31ac2e93468c16c56896d77bfafe14995c29e22adda5d701be443b66ca957629
|
7
|
+
data.tar.gz: '018f95459f73d4033c49ef1566fbc607a79a8c270e634f763a607e2d8a61eec3bdc855f5802b6712f76e8aa9e7a94c5fcccde73af11bb6e6bd77250eea84db35'
|
data/.travis.yml
CHANGED
@@ -1,15 +1,8 @@
|
|
1
|
+
sudo: false
|
1
2
|
language: ruby
|
2
|
-
before_install:
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
- rvm: 2.2
|
9
|
-
gemfile: Gemfile
|
10
|
-
- rvm: 2.3.1
|
11
|
-
gemfile: Gemfile
|
12
|
-
- rvm: 2.4.1
|
13
|
-
gemfile: Gemfile
|
14
|
-
- rvm: 2.5.0
|
15
|
-
gemfile: Gemfile
|
3
|
+
before_install: gem install bundler
|
4
|
+
rvm:
|
5
|
+
- 2.5.1
|
6
|
+
- 2.4.4
|
7
|
+
- 2.3.7
|
8
|
+
- 2.2.10
|
data/CHANGES.md
CHANGED
data/Gemfile
CHANGED
@@ -13,9 +13,7 @@ gem "dry-auto_inject"
|
|
13
13
|
gem "dry-matcher"
|
14
14
|
gem "dry-validation"
|
15
15
|
|
16
|
-
gem "trailblazer-operation",
|
17
|
-
gem "trailblazer-activity", path: "../trailblazer-circuit"
|
18
|
-
gem "trailblazer-macro", path: "../trailblazer-macro"
|
16
|
+
# gem "trailblazer-operation", github: "trailblazer/trailblazer-operation"
|
19
17
|
# gem "trailblazer-macro", github: "trailblazer/trailblazer-macro"
|
20
18
|
|
21
19
|
gem "minitest-line"
|
data/test/docs/contract_test.rb
CHANGED
@@ -56,15 +56,16 @@ class DocsContractOverviewTest < Minitest::Spec
|
|
56
56
|
|
57
57
|
it "shows 2-level tracing" do
|
58
58
|
result = Create.trace( params: { length: "A" } )
|
59
|
-
result.wtf.gsub(/0x\w+/, "").must_equal %{
|
60
|
-
|--
|
61
|
-
|--
|
62
|
-
|-- contract.
|
63
|
-
|
64
|
-
| |--
|
65
|
-
| |-- contract.default.
|
66
|
-
|
|
67
|
-
`--
|
59
|
+
result.wtf.gsub(/0x\w+/, "").must_equal %{`-- DocsContractOverviewTest::Create
|
60
|
+
|-- Start.default
|
61
|
+
|-- model.build
|
62
|
+
|-- contract.build
|
63
|
+
|-- contract.default.validate
|
64
|
+
| |-- Start.default
|
65
|
+
| |-- contract.default.params_extract
|
66
|
+
| |-- contract.default.call
|
67
|
+
| `-- End.failure
|
68
|
+
`-- End.failure}
|
68
69
|
end
|
69
70
|
end
|
70
71
|
#---
|
data/test/test_helper.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
require "pp"
|
2
2
|
require 'delegate'
|
3
3
|
require "trailblazer/macro"
|
4
|
-
require "trailblazer
|
4
|
+
require "trailblazer-macro-contract"
|
5
5
|
require "minitest/autorun"
|
6
6
|
|
7
7
|
# TODO: convert tests to non-rails.
|
8
|
-
require "reform"
|
9
8
|
require "reform/form/active_model/validations"
|
10
9
|
Reform::Form.class_eval do
|
11
10
|
include Reform::Form::ActiveModel::Validations
|
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.add_dependency "declarative"
|
21
21
|
spec.add_dependency "reform", ">= 2.2.0", "< 3.0.0"
|
22
|
-
spec.add_dependency "trailblazer-operation", ">= 0.
|
22
|
+
spec.add_dependency "trailblazer-operation", ">= 0.3.0", "< 0.4.0"
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler"
|
25
25
|
spec.add_development_dependency "trailblazer-macro", ">= 2.1.0.beta2", "< 2.2.0"
|
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.beta4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Sutterer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03
|
11
|
+
date: 2018-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: declarative
|
@@ -50,20 +50,20 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: 0.
|
53
|
+
version: 0.3.0
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
56
|
+
version: 0.4.0
|
57
57
|
type: :runtime
|
58
58
|
prerelease: false
|
59
59
|
version_requirements: !ruby/object:Gem::Requirement
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.3.0
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
|
-
version: 0.
|
66
|
+
version: 0.4.0
|
67
67
|
- !ruby/object:Gem::Dependency
|
68
68
|
name: bundler
|
69
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -227,6 +227,7 @@ files:
|
|
227
227
|
- LICENSE.txt
|
228
228
|
- README.md
|
229
229
|
- Rakefile
|
230
|
+
- lib/trailblazer-macro-contract.rb
|
230
231
|
- lib/trailblazer/macro/contract.rb
|
231
232
|
- lib/trailblazer/macro/contract/version.rb
|
232
233
|
- lib/trailblazer/operation/contract.rb
|