trailblazer-activity 0.8.2 → 0.8.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: 42e6d0b63df00cb8281f8b75aad450b4232a43da05f72f3f03d1791e9b35a634
4
- data.tar.gz: fdde93763556dc9067b2402644a2806a28a8e60f6733be0c4797492f6d2f8600
3
+ metadata.gz: 963c78273fd623d221116e36d467bcbcaf0f2ac133ae2eba3284fd6438228a4b
4
+ data.tar.gz: 341dc4c8ffa718fe459d11c2d33f059afd97ba44ab8c04b137861179d3403cef
5
5
  SHA512:
6
- metadata.gz: 3af63f03154d41a02117209d3ac1c4d58aa395da12b08e4fde178ea5d92aadf6a57b5cc089e79a232d4ada07d39cc7ebb5ad88aac191487947e1a47eb9bdf712
7
- data.tar.gz: 46db7d3c2492d87a4594077c7f24dd7f0400ad960801415a045da637ddec51930d17236cee3bb82dcea02c9b50c7ac138f6a0f967611bae4aeeb1358787815e6
6
+ metadata.gz: 730319c87eac30efc200fa2e043d12a50c5956301fd50050e1e44477248b3cc5de9a6a79376817af362b0b640a87de99bd5e10d1437a1095ec74a31b0dc524b8
7
+ data.tar.gz: 68bd28cd5e6353e80c8b812c96c0cb587240fec872ca34ca870912cd2123d918f1c86168c7def9979f098b86da267c88cd91116951fb92c17787841a66f16784
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.8.3
2
+
3
+ * Use `Context.for` to create contexts.
4
+
1
5
  # 0.8.2
2
6
 
3
7
  * Fix `Present` so it works with Ruby <= 2.3.
data/README.md CHANGED
@@ -79,3 +79,9 @@ With Activity, modeling business processes turns out to be ridiculously simple:
79
79
  ## Operation
80
80
 
81
81
  Trailblazer's [`Operation`](http://trailblazer.to/2.1/operation) internally uses an activity to model the processes.
82
+
83
+ ## License
84
+
85
+ © Copyright 2018, Trailblazer GmbH
86
+
87
+ Licensed under the LGPLv3 license. We also offer a [commercial-friendly license](http://trailblazer.to/pro).
@@ -1,7 +1,8 @@
1
1
  module Trailblazer
2
2
  class Activity
3
- # The Introspect API abstracts internals about circuits and provides a convenient API
4
- # to third-parties such as tracing, rendering activities, etc.
3
+ # The Introspect API provides inflections for `Activity` instances.
4
+ # It abstracts internals about circuits and provides a convenient API to third-parties such as
5
+ # tracing, rendering an activity, or finding particular tasks.
5
6
  module Introspect
6
7
  def self.Graph(*args)
7
8
  Graph.new(*args)
@@ -11,7 +11,9 @@ class Trailblazer::Activity
11
11
  input = ->(original_ctx) do
12
12
  defaulted_options = defaults_for(defaults, original_ctx)
13
13
 
14
- Trailblazer.Context(original_ctx.merge(defaulted_options))
14
+ ctx = original_ctx.merge(defaulted_options)
15
+
16
+ Trailblazer::Context.for(ctx, [original_ctx, {}], {})
15
17
  end
16
18
 
17
19
  output = ->(original_ctx, new_ctx) { # FIXME: use Unscope
@@ -1,7 +1,7 @@
1
1
  module Trailblazer
2
2
  module Version
3
3
  module Activity
4
- VERSION = "0.8.2"
4
+ VERSION = "0.8.3"
5
5
  end
6
6
  end
7
7
  end
@@ -10,14 +10,14 @@ Gem::Specification.new do |spec|
10
10
 
11
11
  spec.summary = %q{Runtime code for Trailblazer activities.}
12
12
  spec.homepage = "http://trailblazer.to"
13
- spec.licenses = ["MIT"]
13
+ spec.licenses = ["LGPL-3.0"]
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
16
  f.match(%r{^(test)/})
17
17
  end
18
18
  spec.require_paths = ["lib"]
19
19
 
20
- spec.add_dependency "trailblazer-context"
20
+ spec.add_dependency "trailblazer-context", ">= 0.1.4"
21
21
 
22
22
  spec.add_development_dependency "bundler"
23
23
  spec.add_development_dependency "minitest", "~> 5.0"
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.8.2
4
+ version: 0.8.3
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: trailblazer-context
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.1.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.1.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -120,7 +120,7 @@ files:
120
120
  - trailblazer-activity.gemspec
121
121
  homepage: http://trailblazer.to
122
122
  licenses:
123
- - MIT
123
+ - LGPL-3.0
124
124
  metadata: {}
125
125
  post_install_message:
126
126
  rdoc_options: []