trailblazer 2.1.0.rc1 → 2.1.0.rc12

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: bfc3429bc0df03bc91db7e24e3046d1016e7ca0535a3509fd236d6cb70df49d2
4
- data.tar.gz: e7da32f130dab4b12c3e40f01f2ce7fbdb919ebb13d9c70e79872ba9f5959157
3
+ metadata.gz: d4b62c0623a66c9bdcb250934bffd4e2552116d4e7ce0684007995414ff847de
4
+ data.tar.gz: 6e0d46da13dd13699751120b802f0f2036079dbe69c9e558391f85359f340b4f
5
5
  SHA512:
6
- metadata.gz: 4862d79d2d219ece0ecc52ab065cee15eed89a7c6af2871f156383469f1403ef8d3dd5138853e0e50a862e30b18d4e8dd1774f6fbe2e35d51a2e4c866e12a02f
7
- data.tar.gz: 9566b38b888c2038a88cd4367342543695b00a25677c21accfdc37ccc521be3dea13f8ddc85dda3a8bafa75ad916f04f63ca10da94823e4d7b0c8e3771f27d18
6
+ metadata.gz: 9a5176a78e65ba81ed7466afefac092cc7a8a6dc0ecb029465a6c07823707db35d59378186d6f95ba3e8eb3cebe1fe1397c65c0aaadb4d809dcbcfe1d122d313
7
+ data.tar.gz: 799922bbff5184d8c464dfdf81b40a7b778742eb7b1cd1a2076efb21d9cafb715a971f8ac76817dc0d1b54826a51b82f37639166956e253336b28a452c208985
@@ -71,3 +71,31 @@ Style/StringMethods:
71
71
  Enabled: true
72
72
  Style/SymbolArray:
73
73
  Enabled: true
74
+ # this allows in rspec to have expect { } with multiple lines
75
+ Style/BlockDelimiters:
76
+ EnforcedStyle: braces_for_chaining
77
+ Layout/EndOfLine:
78
+ Enabled: false
79
+ # don't need these checks in test folders
80
+ Metrics/ModuleLength:
81
+ Exclude:
82
+ - "spec/**/*"
83
+ - "test/**/*"
84
+ Metrics/BlockLength:
85
+ Exclude:
86
+ - "spec/**/*"
87
+ - "test/**/*"
88
+ - "*.gemspec" # definitely not in the gemspec
89
+ Metrics/MethodLength:
90
+ Max: 20
91
+ Lint/UnreachableCode:
92
+ Description: 'Unreachable code.'
93
+ Enabled: false
94
+ Lint/Void:
95
+ Enabled: false
96
+ Layout/AlignHash:
97
+ EnforcedLastArgumentHashStyle: ignore_implicit
98
+ Metrics/AbcSize:
99
+ Max: 25
100
+ Style/LambdaCall:
101
+ Enabled: false
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-06-03 16:45:22 +0800 using RuboCop version 0.56.0.
3
+ # on 2018-06-20 07:55:52 +0800 using RuboCop version 0.57.2.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -50,18 +50,10 @@ Layout/BlockEndNewline:
50
50
  Exclude:
51
51
  - 'lib/trailblazer/operation/module.rb'
52
52
 
53
- # Offense count: 3
54
- # Cop supports --auto-correct.
55
- # Configuration parameters: IndentOneStep, IndentationWidth.
56
- # SupportedStyles: case, end
57
- Layout/CaseIndentation:
58
- EnforcedStyle: end
59
-
60
- # Offense count: 20
53
+ # Offense count: 19
61
54
  # Cop supports --auto-correct.
62
55
  Layout/CommentIndentation:
63
56
  Exclude:
64
- - 'lib/trailblazer/operation/input_output.rb'
65
57
  - 'test/docs/fast_test.rb'
66
58
  - 'test/docs/operation_test.rb'
67
59
  - 'test/docs/trace_test.rb'
@@ -83,11 +75,10 @@ Layout/EmptyLineBetweenDefs:
83
75
  - 'test/docs/fast_test.rb'
84
76
  - 'test/test_helper.rb'
85
77
 
86
- # Offense count: 18
78
+ # Offense count: 17
87
79
  # Cop supports --auto-correct.
88
80
  Layout/EmptyLines:
89
81
  Exclude:
90
- - 'Gemfile'
91
82
  - 'test/benchmark.rb'
92
83
  - 'test/docs/fast_test.rb'
93
84
  - 'test/docs/operation_test.rb'
@@ -116,7 +107,7 @@ Layout/EmptyLinesAroundMethodBody:
116
107
  Exclude:
117
108
  - 'lib/trailblazer/operation/test.rb'
118
109
 
119
- # Offense count: 26
110
+ # Offense count: 24
120
111
  # Configuration parameters: EnforcedStyle.
121
112
  # SupportedStyles: native, lf, crlf
122
113
  Layout/EndOfLine:
@@ -150,7 +141,7 @@ Layout/IndentationConsistency:
150
141
  Exclude:
151
142
  - 'test/docs/operation_test.rb'
152
143
 
153
- # Offense count: 11
144
+ # Offense count: 12
154
145
  # Cop supports --auto-correct.
155
146
  Layout/LeadingCommentSpace:
156
147
  Exclude:
@@ -158,6 +149,7 @@ Layout/LeadingCommentSpace:
158
149
  - 'test/docs/operation_test.rb'
159
150
  - 'test/dsl/contract_test.rb'
160
151
  - 'test/variables_test.rb'
152
+ - 'trailblazer.gemspec'
161
153
 
162
154
  # Offense count: 8
163
155
  # Cop supports --auto-correct.
@@ -197,12 +189,13 @@ Layout/SpaceBeforeComma:
197
189
  Exclude:
198
190
  - 'test/variables_test.rb'
199
191
 
200
- # Offense count: 3
192
+ # Offense count: 4
201
193
  # Cop supports --auto-correct.
202
194
  Layout/SpaceBeforeComment:
203
195
  Exclude:
204
196
  - 'lib/trailblazer/dsl.rb'
205
197
  - 'test/dsl/contract_test.rb'
198
+ - 'trailblazer.gemspec'
206
199
 
207
200
  # Offense count: 4
208
201
  # Cop supports --auto-correct.
@@ -288,10 +281,9 @@ Lint/UnusedMethodArgument:
288
281
  - 'test/docs/fast_test.rb'
289
282
  - 'test/docs/trace_test.rb'
290
283
 
291
- # Offense count: 4
284
+ # Offense count: 3
292
285
  Lint/UselessAssignment:
293
286
  Exclude:
294
- - 'lib/trailblazer/operation/input_output.rb'
295
287
  - 'test/deprecation/call_test.rb'
296
288
  - 'test/deprecation/context_test.rb'
297
289
 
@@ -314,7 +306,7 @@ Metrics/CyclomaticComplexity:
314
306
  Metrics/LineLength:
315
307
  Max: 290
316
308
 
317
- # Offense count: 4
309
+ # Offense count: 3
318
310
  # Configuration parameters: CountComments.
319
311
  Metrics/MethodLength:
320
312
  Max: 16
@@ -366,14 +358,13 @@ Style/BracesAroundHashParameters:
366
358
  - 'test/docs/operation_test.rb'
367
359
  - 'test/dsl/contract_test.rb'
368
360
 
369
- # Offense count: 12
361
+ # Offense count: 11
370
362
  # Cop supports --auto-correct.
371
363
  # Configuration parameters: AutoCorrect, EnforcedStyle.
372
364
  # SupportedStyles: nested, compact
373
365
  Style/ClassAndModuleChildren:
374
366
  Exclude:
375
367
  - 'lib/trailblazer/operation/auto_inject.rb'
376
- - 'lib/trailblazer/operation/input_output.rb'
377
368
  - 'lib/trailblazer/operation/module.rb'
378
369
  - 'test/docs/fast_test.rb'
379
370
  - 'test/docs/operation_test.rb'
data/CHANGES.md CHANGED
@@ -30,6 +30,20 @@ document Task API and define step API
30
30
  deprecate step->(options) ?
31
31
  injectable, per-operation step arguments strategy?
32
32
 
33
+
34
+ # 2.1.0
35
+
36
+ * Remove `declarative` dependency.
37
+
38
+ # 2.1.0.2c12
39
+
40
+ * Update dependencies.
41
+
42
+ # 2.1.0.rc11
43
+
44
+ * Remove all macros. They're not located in `trailblazer-macro` and `trailblazer-macro-contract`.
45
+ * Remove DSL
46
+
33
47
  # 2.1.0.rc1
34
48
 
35
49
  * Remove `task` and `input_output`, those are implemented in `activity`.
@@ -71,6 +85,7 @@ injectable, per-operation step arguments strategy?
71
85
  ```
72
86
 
73
87
  will now invoke `Comment[ params[:id] ]`, which makes using Sequel a breeze.
88
+ code: `contract do .. end` etc needs to be moved to a new gem if we want to keep it alive.
74
89
 
75
90
  # 2.0.6
76
91
 
@@ -127,7 +127,7 @@ Go back to your pull request after a few minutes and see whether it passed muste
127
127
 
128
128
  ## Quality
129
129
 
130
- Commiting to OSS projects is always difficult, because all maintainers will adhere to their own quality standards that you don't know. Every projects wants "good code design", and so do we, so here are a few things that you should follow when contributing.
130
+ Committing to OSS projects is always difficult, because all maintainers will adhere to their own quality standards that you don't know. Every projects wants "good code design", and so do we, so here are a few things that you should follow when contributing.
131
131
 
132
132
  * Good design matters: sometimes a feature could be added with a simple `if <my new case>` to an existing block of code. Usually, an `if` implies that the original design didn't plan on handling multiple cases, or in other words, **a refactoring of the code structure might be necessary**. If you're unsure: [Talk to us!](https://gitter.im/trailblazer/chat)
133
133
  * Make smaller pull requests. It is so much easier to discuss something graspable and not a "37 files changed" PR. The sooner we see your code, the earlier we can decide about which way to go. It is incredibly appreciated, though, to send us a link to a branch of yours where we can see the desired changes in total. We can then help splitting those into smaller steps.
@@ -145,7 +145,7 @@ When you have release rights, please follow these rules.
145
145
  At this point you're waiting on us. Expect a conversation regarding your pull request; Questions, clarifications, and so on.
146
146
 
147
147
  Some things that will increase the chance that your pull request is accepted:
148
- * Use Trailblazer idioms and follow the Trailblazer idealogy
148
+ * Use Trailblazer idioms and follow the Trailblazer ideology
149
149
  * Include tests that fail without your code, and pass with it
150
150
  * Update the documentation, guides, etc.
151
151
 
data/Gemfile CHANGED
@@ -1,43 +1,4 @@
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
-
6
1
  source 'https://rubygems.org'
7
2
 
8
3
  # Specify your gem's dependencies in trailblazer.gemspec
9
4
  gemspec
10
-
11
- gem "multi_json"
12
-
13
- gem "dry-auto_inject"
14
- gem "dry-matcher"
15
- gem "dry-validation"
16
-
17
- case ENV['GEMS_SOURCE']
18
- when 'local'
19
- gem "reform", path: "../reform"
20
- gem "reform-rails", path: "../reform-rails"
21
- gem "trailblazer-operation", path: "../trailblazer-operation"
22
- gem "trailblazer-macro", path: "../trailblazer-macro"
23
- gem "trailblazer-macro-contract", path: "../trailblazer-macro-contract"
24
- gem "trailblazer-activity", path: "../trailblazer-activity"
25
- gem "trailblazer-context", path: "../trailblazer-context"
26
- when 'github'
27
- gem "reform", github: "trailblazer/reform"
28
- gem "reform-rails", github: "trailblazer/reform-rails"
29
- gem "trailblazer-operation", github: "trailblazer/trailblazer-operation"
30
- gem "trailblazer-macro", github: "trailblazer/trailblazer-macro"
31
- gem "trailblazer-macro-contract", github: "trailblazer/trailblazer-macro-contract"
32
- gem "trailblazer-activity", github: "trailblazer/trailblazer-activity"
33
- gem "trailblazer-context", github: "trailblazer/trailblazer-context"
34
- when 'custom'
35
- eval_gemfile('GemfileCustom')
36
- else # use rubygems releases
37
- gem "reform"
38
- gem "reform-rails"
39
- end
40
-
41
- gem "minitest-line"
42
-
43
- gem "rubocop", require: false
data/Rakefile CHANGED
@@ -1,23 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
- require "rubocop/rake_task"
4
3
 
5
- task :default => %i[test rubocop]
4
+ task :default => %i[test]
6
5
 
7
6
  Rake::TestTask.new(:test) do |test|
8
7
  test.libs << 'test'
9
8
  test.test_files = FileList['test/**/*_test.rb'] - FileList["test/deprecation/*_test.rb"]
10
9
  test.verbose = true
11
10
  end
12
-
13
- Rake::TestTask.new(:testdep) do |test|
14
- test.libs << 'test'
15
- test.test_files = FileList["test/deprecation/*_test.rb"]
16
- test.verbose = true
17
- end
18
-
19
- RuboCop::RakeTask.new(:rubocop) do |task|
20
- task.patterns = ['lib/**/*.rb', 'test/**/*.rb']
21
- task.options << "--display-cop-names"
22
- task.fail_on_error = false
23
- end
@@ -1,9 +1,4 @@
1
1
  require "trailblazer/version"
2
-
3
2
  require "trailblazer/operation"
4
- require "trailblazer/dsl"
5
-
6
- require "trailblazer/operation/deprecations"
7
-
8
3
  require "trailblazer/macro"
9
4
  require "trailblazer/macro/contract"
@@ -1,3 +1,5 @@
1
1
  module Trailblazer
2
- VERSION = "2.1.0.rc1"
2
+ module Version
3
+ VERSION = "2.1.0.rc12"
4
+ end
3
5
  end
@@ -4,7 +4,7 @@ require 'trailblazer/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "trailblazer"
7
- spec.version = Trailblazer::VERSION
7
+ spec.version = Trailblazer::Version::VERSION
8
8
  spec.authors = ["Nick Sutterer"]
9
9
  spec.email = ["apotonick@gmail.com"]
10
10
  spec.description = %q{A high-level architecture introducing new abstractions such as operations and control flow, form objects and policies.}
@@ -18,17 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = `git ls-files -z test`.split("\x0")
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency "trailblazer-macro", ">= 2.1.0.rc1", "< 2.2.0"
22
- spec.add_dependency "trailblazer-macro-contract", "2.1.0.rc1"#, "< 2.2.0"
21
+ spec.add_dependency "trailblazer-macro", ">= 2.1.0.rc12", "< 2.2.0"
22
+ spec.add_dependency "trailblazer-macro-contract", "2.1.0.rc12"#, "< 2.2.0"
23
23
  spec.add_dependency "trailblazer-operation" # TODO: why do we need this here?
24
24
 
25
- spec.add_dependency "declarative"
26
-
27
25
  spec.add_development_dependency "bundler"
28
26
  spec.add_development_dependency "rake"
29
27
  spec.add_development_dependency "minitest"
30
- spec.add_development_dependency "nokogiri"
31
28
 
32
- spec.add_development_dependency "roar"
33
- spec.required_ruby_version = '>= 2.0.0'
29
+ spec.required_ruby_version = '>= 2.1.0'
34
30
  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.rc1
4
+ version: 2.1.0.rc12
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-06-18 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-macro
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.0.rc1
19
+ version: 2.1.0.rc12
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.2.0
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 2.1.0.rc1
29
+ version: 2.1.0.rc12
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.2.0
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 2.1.0.rc1
39
+ version: 2.1.0.rc12
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - '='
45
45
  - !ruby/object:Gem::Version
46
- version: 2.1.0.rc1
46
+ version: 2.1.0.rc12
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: trailblazer-operation
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -58,20 +58,6 @@ dependencies:
58
58
  - - ">="
59
59
  - !ruby/object:Gem::Version
60
60
  version: '0'
61
- - !ruby/object:Gem::Dependency
62
- name: declarative
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - ">="
66
- - !ruby/object:Gem::Version
67
- version: '0'
68
- type: :runtime
69
- prerelease: false
70
- version_requirements: !ruby/object:Gem::Requirement
71
- requirements:
72
- - - ">="
73
- - !ruby/object:Gem::Version
74
- version: '0'
75
61
  - !ruby/object:Gem::Dependency
76
62
  name: bundler
77
63
  requirement: !ruby/object:Gem::Requirement
@@ -114,34 +100,6 @@ dependencies:
114
100
  - - ">="
115
101
  - !ruby/object:Gem::Version
116
102
  version: '0'
117
- - !ruby/object:Gem::Dependency
118
- name: nokogiri
119
- requirement: !ruby/object:Gem::Requirement
120
- requirements:
121
- - - ">="
122
- - !ruby/object:Gem::Version
123
- version: '0'
124
- type: :development
125
- prerelease: false
126
- version_requirements: !ruby/object:Gem::Requirement
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- version: '0'
131
- - !ruby/object:Gem::Dependency
132
- name: roar
133
- requirement: !ruby/object:Gem::Requirement
134
- requirements:
135
- - - ">="
136
- - !ruby/object:Gem::Version
137
- version: '0'
138
- type: :development
139
- prerelease: false
140
- version_requirements: !ruby/object:Gem::Requirement
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- version: '0'
145
103
  description: A high-level architecture introducing new abstractions such as operations
146
104
  and control flow, form objects and policies.
147
105
  email:
@@ -164,26 +122,8 @@ files:
164
122
  - Rakefile
165
123
  - THOUGHTS
166
124
  - lib/trailblazer.rb
167
- - lib/trailblazer/deprecation/call.rb
168
- - lib/trailblazer/deprecation/context.rb
169
- - lib/trailblazer/dsl.rb
170
- - lib/trailblazer/operation/auto_inject.rb
171
- - lib/trailblazer/operation/deprecations.rb
172
- - lib/trailblazer/operation/module.rb
173
- - lib/trailblazer/operation/test.rb
174
125
  - lib/trailblazer/version.rb
175
- - test/benchmark.rb
176
- - test/deprecation/call_test.rb
177
- - test/deprecation/context_test.rb
178
- - test/docs/auto_inject_test.rb
179
- - test/docs/fast_test.rb
180
- - test/docs/input_output_test.rb
181
- - test/docs/operation_test.rb
182
- - test/docs/trace_test.rb
183
- - test/dsl/contract_test.rb
184
- - test/module_test.rb
185
126
  - test/test_helper.rb
186
- - test/variables_test.rb
187
127
  - trailblazer.gemspec
188
128
  homepage: http://trailblazer.to
189
129
  licenses:
@@ -197,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
197
137
  requirements:
198
138
  - - ">="
199
139
  - !ruby/object:Gem::Version
200
- version: 2.0.0
140
+ version: 2.1.0
201
141
  required_rubygems_version: !ruby/object:Gem::Requirement
202
142
  requirements:
203
143
  - - ">"
@@ -210,15 +150,4 @@ signing_key:
210
150
  specification_version: 4
211
151
  summary: A high-level architecture for Ruby and Rails.
212
152
  test_files:
213
- - test/benchmark.rb
214
- - test/deprecation/call_test.rb
215
- - test/deprecation/context_test.rb
216
- - test/docs/auto_inject_test.rb
217
- - test/docs/fast_test.rb
218
- - test/docs/input_output_test.rb
219
- - test/docs/operation_test.rb
220
- - test/docs/trace_test.rb
221
- - test/dsl/contract_test.rb
222
- - test/module_test.rb
223
153
  - test/test_helper.rb
224
- - test/variables_test.rb