trailblazer-activity 0.15.0 → 0.15.1

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: 6b06f440b4b9b94230fad09bc1b2024ee3297d3b454cae381f01053af65dfe8d
4
- data.tar.gz: 1cd2bae0d2bd7a7f18cacee0d54af07fa4e8783b75b2852816c6882bb5f17b6a
3
+ metadata.gz: f042c2ed7dab6bafd3932cfbc357ada176de13aed6a91ba05be74f0d9d000ede
4
+ data.tar.gz: 471066060ff8ad800f77e26e0f1cc7090ff1b0a8820971c41de93f1760a6cf74
5
5
  SHA512:
6
- metadata.gz: 4844b0b023f93fc12f218932a7d574d96e94684adaab4a186f85cb378cb7e7e92b889bec061af70bc6731d83a56a0fe5ff2651f5f250a0e4d091b454304193e5
7
- data.tar.gz: 3a41f612cecfabdc2e5d0fef50411f5db1a5c6867a8c88ce784e569bfcc2b17b62bfda7a4104b8bbbb68cb157c311961622e7f64b9e5cc811ff09ee1db133296
6
+ metadata.gz: 02726f73b7af8b91ee4b34bc87dbb0a15246eb35d520ae2cd165519382d0578cad791466ff81e85ed4f95e31cf3988562115c40a6f90ab0c80b96c776c444809
7
+ data.tar.gz: dfb7ad6686ed5f0a8668a032c2b65357b0e5c857afa6459a9f1a101e728aa454c38cc1814133172aabbf8ee63ef350dda9c33f2997527161e566e93b1c10da44
@@ -6,7 +6,7 @@ jobs:
6
6
  fail-fast: false
7
7
  matrix:
8
8
  # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
9
- ruby: [2.5, 2.6, 2.7, '3.0', 3.1, head, jruby, jruby-head]
9
+ ruby: [2.5, 2.6, 2.7, '3.0', 3.1, 3.2, head, jruby, jruby-head]
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
12
  - uses: actions/checkout@v3
data/CHANGES.md CHANGED
@@ -1,3 +1,10 @@
1
+ # 0.15.1
2
+
3
+ * Introduce `Extension.WrapStatic()` as a consistent interface for creating wrap_static extensions
4
+ exposing the friendly interface.
5
+ * Deprecate `Extension(merge: ...)` since we have `Extension.WrapStatic` now.
6
+ * Better deprecation warnings for extensions using `Insert` and not the friendly interface.
7
+
1
8
  # 0.15.0
2
9
 
3
10
  * Rename `Circuit::Run` to `Circuit::Runner` for consistency with `TaskWrap::Runner`.
@@ -19,6 +19,9 @@ module Trailblazer
19
19
  # If you want a {wrap_static} extension, wrap it using `Extension.WrapStatic.new`.
20
20
  def self.Extension(*inserts, merge: nil)
21
21
  if merge
22
+ Deprecate.warn caller_locations[0], "The :merge option for TaskWrap.Extension is deprecated and will be removed in 0.16.
23
+ Please refer to https://trailblazer.to/2.1/docs/activity.html#activity-taskwrap-static and have a great day."
24
+
22
25
  return Extension::WrapStatic.new(extension: Extension.new(*merge))
23
26
  # TODO: remove me once we drop the pre-friendly interface.
24
27
  end
@@ -56,8 +59,8 @@ module Trailblazer
56
59
  def deprecated_extension_for(extension_rows)
57
60
  return extension_rows unless extension_rows.find { |ext| ext.is_a?(Array) }
58
61
 
59
- warn "[Trailblazer] You are using the old API for taskWrap extensions.
60
- Please update to the new TaskWrap.Extension() API: # FIXME !!!!!"
62
+ Deprecate.warn caller_locations[3], "You are using the old API for taskWrap extensions.
63
+ Please update to the new TaskWrap.Extension() API."
61
64
 
62
65
  extension_rows.collect do |ary|
63
66
  {
@@ -67,6 +70,13 @@ Please update to the new TaskWrap.Extension() API: # FIXME !!!!!"
67
70
  end
68
71
  end
69
72
 
73
+ # Create extensions from the friendly interface that can alter the wrap_static
74
+ # of a step in an activity. The returned extensionn can be passed directly via {:extensions}
75
+ # to the compiler, or when using the `#step` DSL.
76
+ def self.WrapStatic(*inserts)
77
+ WrapStatic.new(extension: TaskWrap.Extension(*inserts))
78
+ end
79
+
70
80
  # Extension are used at compile-time with {wrap_static}, mostly with the {dsl} gem.
71
81
  # {WrapStatic} extensions are called for setup through {Intermediate.config} at compile-time.
72
82
  # Each extension alters the activity's wrap_static taskWrap.
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Activity
4
- VERSION = '0.15.0'.freeze
4
+ VERSION = '0.15.1'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer-activity
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-14 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-context