trailblazer-macro 2.1.2 → 2.1.3

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: 40b0e15f1f350730e29523549e1093931d345d118f24dfc186e201d92e674f4a
4
- data.tar.gz: 07d680040a3404a155636a8998321684609ce3bdee9988ac43dafd163d96d2eb
3
+ metadata.gz: 05d8aa98a836c3309c0d44fca95f9bad68c025b7e3358b5e2029ac3f065ad58a
4
+ data.tar.gz: 9d19baf7edee2388ae99741628729bbafb7d6eb77b09c0baebc19b7e884349f2
5
5
  SHA512:
6
- metadata.gz: c61f315deeed6243a45810a92ebfd11d4f832e86de66b7e7d6896bcc8cb5cd7bc0eb9f76985e8f632e6986c03696ad8a4ca96dd92504c05f11519abb8577e89e
7
- data.tar.gz: 3c8ca095a7bf17d821d1209817604bd1416d04a8c7aff6ddc967a89248781c6fee9356db7333e1a64d7955f211b853b8b1de7a6f56a6656327bf5258b57bc149
6
+ metadata.gz: d5a1336a619916dc0397595a24671b8c7fcfb765fc39ccdb74a07898bf667b51a808f85cdd595916c0a15db4ffba7103cd2922545ca6d5d432d8015316581990
7
+ data.tar.gz: d9f939b6d3f3521b255de73efb4a27ce7baa7aadd4a25d7766e5adcf224a6fb0241882736306123f879b8d0821d7710f177eb233e65f39459a5afae5dea6e210
@@ -1,9 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.6.5
4
- - 2.5.5
5
- - 2.4.4
6
- - 2.3.7
7
- - 2.2
8
-
3
+ - ruby-head
4
+ - 2.7
5
+ - 2.6
6
+ - 2.5
7
+ - 2.4
9
8
  cache: bundler
9
+ jobs:
10
+ allow_failures:
11
+ - rvm: ruby-head
12
+ - rvm: 2.7
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.1.3
2
+
3
+ * Rename Model()'s `not_found_end` kwarg to `not_found_terminus` for consistency.
4
+
1
5
  # 2.1.2
2
6
 
3
7
  * Fix to make macros available in all Linear::DSL strategies.
@@ -2,7 +2,7 @@ module Trailblazer::Macro
2
2
 
3
3
  Linear = Trailblazer::Activity::DSL::Linear
4
4
 
5
- def self.Model(model_class, action = nil, find_by_key = nil, id: 'model.build', not_found_end: false)
5
+ def self.Model(model_class, action = nil, find_by_key = nil, id: 'model.build', not_found_terminus: false)
6
6
  task = Trailblazer::Activity::TaskBuilder::Binary(Model.new)
7
7
 
8
8
  injection = Trailblazer::Activity::TaskWrap::Inject::Defaults::Extension(
@@ -12,7 +12,7 @@ module Trailblazer::Macro
12
12
  )
13
13
 
14
14
  options = { task: task, id: id, extensions: [injection] }
15
- options = options.merge(Linear::Output(:failure) => Linear::End(:not_found)) if not_found_end
15
+ options = options.merge(Linear::Output(:failure) => Linear::End(:not_found)) if not_found_terminus
16
16
 
17
17
  options
18
18
  end
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Macro
4
- VERSION = "2.1.2"
4
+ VERSION = "2.1.3"
5
5
  end
6
6
  end
7
7
  end
@@ -47,7 +47,7 @@ class DocsModelTest < Minitest::Spec
47
47
 
48
48
  #:update-with-not-found-end
49
49
  class UpdateFailureWithModelNotFound < Trailblazer::Operation
50
- step Model( Song, :find_by, not_found_end: true )
50
+ step Model( Song, :find_by, not_found_terminus: true )
51
51
  # ..
52
52
  end
53
53
  #:update-with-not-found-end end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-macro
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-05 00:00:00.000000000 Z
12
+ date: 2020-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler