trailblazer-macro-contract 2.1.0.beta3 → 2.1.0.beta4

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: 744436a578a09a11d2a249112c658eac323707e59519d217a3aaf0fc0265cceb
4
- data.tar.gz: 894ab26672ffba623b261b288550bef7e458ccef339a96ac1870b98b313259dc
3
+ metadata.gz: e76cb3d4994697ebe273d8d8f4d23eb22cfdf6e4c3e14938916e069a153e6d8d
4
+ data.tar.gz: 0bb78c2ca2ba55978dc72bb97166f2bdfa3e3c774061608ab1720f75d0ce735a
5
5
  SHA512:
6
- metadata.gz: 0d964c01af9d4a9b5c340831f1d08c624af051fa052db84aa16dbc8540215baffbc7ce71bd801b0f7e700b4b8b75a7926ba528869ea785a6a284e1664ef18e61
7
- data.tar.gz: e33190a3e847c3857feab9296a21342c32a5bfa68e12ab480b01dfd541ec66866250b5aa669a5fdc890ae2239ab4798f0f0086e8fee0935507bdde6ded0638d0
6
+ metadata.gz: 43ef3c668e774660436555c176e5922d675e03d56d695dbcf4db9531c58ea81d31ac2e93468c16c56896d77bfafe14995c29e22adda5d701be443b66ca957629
7
+ data.tar.gz: '018f95459f73d4033c49ef1566fbc607a79a8c270e634f763a607e2d8a61eec3bdc855f5802b6712f76e8aa9e7a94c5fcccde73af11bb6e6bd77250eea84db35'
@@ -1,15 +1,8 @@
1
+ sudo: false
1
2
  language: ruby
2
- before_install:
3
- - gem install bundler
4
- matrix:
5
- include:
6
- - rvm: 2.1
7
- gemfile: Gemfile
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
@@ -1,3 +1,7 @@
1
+ # 2.1.0.beta4
2
+
3
+ * New activity API update.
4
+
1
5
  # 2.1.0.beta3
2
6
 
3
7
  * New activity API update.
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", path: "../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"
@@ -0,0 +1,2 @@
1
+ require "trailblazer/macro/contract/version"
2
+ require "trailblazer/macro/contract"
@@ -1,5 +1,5 @@
1
1
  require "reform"
2
- require "trailblazer/macro/contract/version"
2
+ require "trailblazer/operation"
3
3
  require "trailblazer/operation/contract"
4
4
  require "trailblazer/operation/validate"
5
5
  require "trailblazer/operation/persist"
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Macro
3
3
  module Contract
4
- VERSION = "2.1.0.beta3".freeze
4
+ VERSION = "2.1.0.beta4".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -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 %{|-- #<Trailblazer::Activity::Start semantic=:default>
60
- |-- model.build
61
- |-- contract.build
62
- |-- contract.default.validate
63
- | |-- #<Trailblazer::Activity::Start semantic=:default>
64
- | |-- contract.default.params_extract
65
- | |-- contract.default.call
66
- | `-- #<Trailblazer::Activity::End semantic=:failure>
67
- `-- #<Trailblazer::Operation::Railway::End::Failure semantic=:failure>}
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
  #---
@@ -1,11 +1,10 @@
1
1
  require "pp"
2
2
  require 'delegate'
3
3
  require "trailblazer/macro"
4
- require "trailblazer/macro/contract"
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.2.4", "< 0.3.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.beta3
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-23 00:00:00.000000000 Z
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.2.4
53
+ version: 0.3.0
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: 0.3.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.2.4
63
+ version: 0.3.0
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: 0.3.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