trailblazer 2.1.0.beta6 → 2.1.0.beta7

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: d9c583449b74afae6004cbba4994c44c509c378756e5cac39d3c0ed0979fc583
4
- data.tar.gz: 1730091f6a3ffcc87cd6f2c548899d347db6d3e2a62e9850a07e5d9ed2c91cab
3
+ metadata.gz: 0ce773fe31967db69100bb736ff5a506ecf84df7b917b57fc47ac57975e10857
4
+ data.tar.gz: 8a9330f14d0062232373673a75638ffd5e829c53b0cb30ea4eaab0ec72679925
5
5
  SHA512:
6
- metadata.gz: c5eaafc11c6c4e8b14ab62089564e7372304fc4482396301f4f1c2fd6a0228f4d18a3d50d0352974ee81584353128f9de1f2db78883f8cfa80dad2786c28a4d9
7
- data.tar.gz: 91a20c9bc960ecb65805a1c4aba086ef5c65f44915f446ba7b0b8a322f2e7d466928444c474426b925011a8f687f81165962fba7a43e15ee3764da3cbca62470
6
+ metadata.gz: c107522acbaeb7ea0e955d18efe50945dd913157923fc701bc4756ac9cd573af8d6705d86fb50177e6b01b9b92646939933b14875bf4fb3844d932d34920da66
7
+ data.tar.gz: 82f23d5b0cfea5455974c03be30a9ee2edeb084d860c52c4824f54a0c216b0478931d0c8a997a391c4c89f2a22056e05f8358e7182286b0fa48c5fa9ff7147eb
@@ -1,15 +1,10 @@
1
+ sudo: false
1
2
  language: ruby
3
+ cache: bundler
2
4
  before_install:
5
+ - gem update --system
3
6
  - gem install bundler
4
- matrix:
5
- include:
6
- # - rvm: 2.0.0
7
- # gemfile: "test/gemfiles/Gemfile.ruby-2.0"
8
- - rvm: 2.1
9
- gemfile: Gemfile
10
- - rvm: 2.2
11
- gemfile: Gemfile
12
- - rvm: 2.3.1
13
- gemfile: Gemfile
14
- - rvm: 2.4.1
15
- gemfile: Gemfile
7
+ rvm:
8
+ - 2.5.1
9
+ - 2.4.4
10
+ - 2.3.7
data/CHANGES.md CHANGED
@@ -30,6 +30,10 @@ document Task API and define step API
30
30
  deprecate step->(options) ?
31
31
  injectable, per-operation step arguments strategy?
32
32
 
33
+ # 2.1.0.beta7
34
+
35
+ * Use new `activity-0.3.2` where `VariableMapping` is included now.
36
+
33
37
  # 2.1.0.beta6
34
38
 
35
39
  * Use new `activity-0.3.0`.
data/Gemfile CHANGED
@@ -1,30 +1,33 @@
1
+ git_source(:github) do |repo_name|
2
+ repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
3
+ "https://github.com/#{repo_name}.git"
4
+ end
5
+
1
6
  source 'https://rubygems.org'
2
7
 
3
8
  # Specify your gem's dependencies in trailblazer.gemspec
4
9
  gemspec
5
10
 
6
- gem "reform-rails"
7
- gem "activesupport"#, "~> 4.2.0"
8
-
9
- # gem "reform", "~> 2.0.0"
10
- gem "reform"#, path: "../reform"
11
11
  gem "multi_json"
12
12
 
13
13
  gem "dry-auto_inject"
14
14
  gem "dry-matcher"
15
15
  gem "dry-validation"
16
16
 
17
- # gem "trailblazer-operation", path: "../operation"
18
- # gem "trailblazer-operation", github: "trailblazer/trailblazer-operation"
19
- # gem "trailblazer-macro", github: "trailblazer/trailblazer-macro"
20
- # gem "trailblazer-macro-contract", github: "trailblazer/trailblazer-macro-contract"
17
+ if ENV['USE_LOCAL_GEMS']
18
+ gem "reform", path: "../reform"
19
+ gem "reform-rails", path: "../reform-rails"
20
+ gem "trailblazer-operation", path: "../trailblazer-operation"
21
+ gem "trailblazer-macro", path: "../trailblazer-macro"
22
+ gem "trailblazer-macro-contract", path: "../trailblazer-macro-contract"
23
+ gem "trailblazer-activity", path: "../trailblazer-activity"
24
+ gem "trailblazer-context", path: "../trailblazer-context"
25
+ else
26
+ gem "reform"
27
+ gem "reform-rails"
28
+ end
29
+
21
30
 
22
31
  gem "minitest-line"
23
32
 
24
33
  gem "rubocop", require: false
25
- # gem "trailblazer-activity", path: "../trailblazer-circuit"
26
- # gem "trailblazer-activity", github: "trailblazer/trailblazer-activity"
27
- # gem "trailblazer-activity", path: "../trailblazer-circuit"
28
- # gem "trailblazer-activity", github: "trailblazer/trailblazer-activity"
29
-
30
- # gem "trailblazer-context", path: "../trailblazer-context"
@@ -1,3 +1,3 @@
1
1
  module Trailblazer
2
- VERSION = "2.1.0.beta6"
2
+ VERSION = "2.1.0.beta7"
3
3
  end
@@ -9,7 +9,6 @@ require "reform/form/active_model/validations"
9
9
  Reform::Form.class_eval do
10
10
  include Reform::Form::ActiveModel::Validations
11
11
  end
12
-
13
12
  # require "trailblazer/deprecation/context.rb"
14
13
 
15
14
  module Mock
@@ -29,8 +28,6 @@ module Test
29
28
  ReturnResult = ->(last, input, options) { input }
30
29
  end
31
30
 
32
- require "pp"
33
-
34
31
  Minitest::Spec::Operation = Trailblazer::Operation
35
32
 
36
33
  Memo = Struct.new(:id, :body) do
@@ -135,7 +135,7 @@ the scoping.
135
135
  result = DiscreetOrganization.("public_opinion" => "Freedom!", "public_knowledge" => true)
136
136
 
137
137
  result.inspect("public_opinion", "rumours", "secret", "edward.public_opinion", "edward.secret", "edward.rumours", "out.keys", "out.rumours", "out.secret", "org.rumours", "org.secret", "public_knowledge", "edward.public_knowledge").
138
- must_equal %{<Result:false [\"Freedom!\", \"Bla\", \"Psst!\", nil, nil, nil, [\"edward.public_opinion\", \"edward.secret\", \"edward.rumours\", \"edward.public_knowledge\"], \"Bla\", \"!tssP\", nil, nil, true, nil] >}
138
+ must_equal %{<Result:false [\"Freedom!\", \"Bla\", \"Psst!\", nil, nil, nil, [\"edward.public_opinion\", \"edward.secret\", \"edward.rumours\", \"edward.public_knowledge\", \"rumours\", \"secret\", \"public_opinion\", \"public_knowledge\"], \"Bla\", \"!tssP\", nil, nil, true, nil] >}
139
139
  end
140
140
 
141
141
  it "with tracing" do
@@ -12,25 +12,23 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = "http://trailblazer.to"
13
13
  spec.license = "LGPL-3.0"
14
14
 
15
- spec.files = `git ls-files`.split($/)
16
- spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
+ f.match(%r{^(test|doc)/})
17
+ end
18
+ spec.test_files = `git ls-files -z test`.split("\x0")
18
19
  spec.require_paths = ["lib"]
19
20
 
20
- spec.add_dependency "trailblazer-operation", ">= 0.3.0", "< 0.4.0"
21
- spec.add_dependency "trailblazer-macro", ">= 2.1.0.beta6", "< 2.2.0"
21
+ spec.add_dependency "trailblazer-operation", ">= 0.3.1", "< 0.4.0"
22
+ spec.add_dependency "trailblazer-macro", ">= 2.1.0.beta7", "< 2.2.0"
22
23
  spec.add_dependency "trailblazer-macro-contract", ">= 2.1.0.beta4", "< 2.2.0"
23
24
 
24
25
  spec.add_dependency "declarative"
25
26
 
26
- spec.add_development_dependency "activemodel" # for Reform::AM::V
27
-
28
27
  spec.add_development_dependency "bundler"
29
28
  spec.add_development_dependency "rake"
30
29
  spec.add_development_dependency "minitest"
31
30
  spec.add_development_dependency "nokogiri"
32
31
 
33
32
  spec.add_development_dependency "roar"
34
- # spec.required_ruby_version = '>= 1.9.3'
35
33
  spec.required_ruby_version = '>= 2.0.0'
36
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trailblazer
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0.beta6
4
+ version: 2.1.0.beta7
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-05-03 00:00:00.000000000 Z
11
+ date: 2018-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-operation
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.0
19
+ version: 0.3.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.4.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.3.0
29
+ version: 0.3.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 0.4.0
@@ -36,7 +36,7 @@ dependencies:
36
36
  requirements:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 2.1.0.beta6
39
+ version: 2.1.0.beta7
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
42
  version: 2.2.0
@@ -46,7 +46,7 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 2.1.0.beta6
49
+ version: 2.1.0.beta7
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
52
  version: 2.2.0
@@ -84,20 +84,6 @@ dependencies:
84
84
  - - ">="
85
85
  - !ruby/object:Gem::Version
86
86
  version: '0'
87
- - !ruby/object:Gem::Dependency
88
- name: activemodel
89
- requirement: !ruby/object:Gem::Requirement
90
- requirements:
91
- - - ">="
92
- - !ruby/object:Gem::Version
93
- version: '0'
94
- type: :development
95
- prerelease: false
96
- version_requirements: !ruby/object:Gem::Requirement
97
- requirements:
98
- - - ">="
99
- - !ruby/object:Gem::Version
100
- version: '0'
101
87
  - !ruby/object:Gem::Dependency
102
88
  name: bundler
103
89
  requirement: !ruby/object:Gem::Requirement
@@ -188,9 +174,6 @@ files:
188
174
  - README.md
189
175
  - Rakefile
190
176
  - THOUGHTS
191
- - doc/Trb-The-Stack.png
192
- - doc/operation-2017.png
193
- - doc/trb.jpg
194
177
  - lib/trailblazer.rb
195
178
  - lib/trailblazer/deprecation/call.rb
196
179
  - lib/trailblazer/deprecation/context.rb
@@ -211,14 +194,10 @@ files:
211
194
  - test/docs/operation_test.rb
212
195
  - test/docs/trace_test.rb
213
196
  - test/dsl/contract_test.rb
214
- - test/gemfiles/Gemfile.ruby-1.9
215
- - test/gemfiles/Gemfile.ruby-2.0
216
- - test/gemfiles/Gemfile.ruby-2.3
217
197
  - test/module_test.rb
218
198
  - test/test_helper.rb
219
199
  - test/variables_test.rb
220
200
  - trailblazer.gemspec
221
- - untitled
222
201
  homepage: http://trailblazer.to
223
202
  licenses:
224
203
  - LGPL-3.0
@@ -253,9 +232,6 @@ test_files:
253
232
  - test/docs/operation_test.rb
254
233
  - test/docs/trace_test.rb
255
234
  - test/dsl/contract_test.rb
256
- - test/gemfiles/Gemfile.ruby-1.9
257
- - test/gemfiles/Gemfile.ruby-2.0
258
- - test/gemfiles/Gemfile.ruby-2.3
259
235
  - test/module_test.rb
260
236
  - test/test_helper.rb
261
237
  - test/variables_test.rb
Binary file
Binary file
Binary file
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
- gemspec path: "../../"
3
-
@@ -1,12 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in trailblazer.gemspec
4
- gemspec path: "../../"
5
-
6
- gem "multi_json"
7
- gem "trailblazer-operation"
8
- gem "minitest-line"
9
- gem "benchmark-ips"
10
- gem "activesupport", "~> 4.2.0"
11
- gem "reform-rails"
12
- gem "dry-validation"
@@ -1,12 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in trailblazer.gemspec
4
- gemspec
5
-
6
- gem "multi_json"
7
-
8
- gem "dry-auto_inject"
9
- gem "dry-matcher"
10
-
11
- gem "minitest-line"
12
- gem "benchmark-ips"
data/untitled DELETED
@@ -1,33 +0,0 @@
1
-
2
- __call__
3
- :params => {}
4
- :current_user => ,
5
- "contract.default.class" =>
6
-
7
-
8
-
9
-
10
-
11
- skills = Skill(container, container)
12
- skill[:a]
13
- READ-ONLY
14
-
15
- ctx = Context(skills) => Context.new(Skill.new {}, skills)
16
- ctx[:a] => <skill>
17
- ctx[:a]= 1
18
- ctx.merge => new Context
19
-
20
- ctx.to_hash
21
-
22
-
23
-
24
- step(Context options, **)
25
-
26
-
27
- input(Context options, **, Hash::Immutable mutable:, Skill runtime:)
28
-
29
-
30
-
31
- Hash::Immutable
32
-
33
- Skills < Hash::Immutable