trailblazer 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: c715d450be489fd1d47e0e9543044dbecc683db8
4
- data.tar.gz: 3212afa6969b12ed86cab5b73cb43a84ffa56ac0
3
+ metadata.gz: 5044acf088ef7c93daedbd4b2f26a9601aae07e6
4
+ data.tar.gz: c9195569bbb61caf1f94969e4d39daa262990274
5
5
  SHA512:
6
- metadata.gz: 7ff9d994e6c2176ed8dd418ed49fd9214edb7251c44251b6a1afaa93803063bf599f10f0f08b2e726ec69d979e550bee18567e73ffdb822210db93744d2689b4
7
- data.tar.gz: 4f7a37983d925bd4e6c8722422aa97d067a1dec4ba11c3018c4887d9b5ec8e2fab57aed6ce6a062ad4a0ea2713dbfdd15fda98401343e0c7e5d934783e3abf24
6
+ metadata.gz: 31f85ea3865e9682b21bf1ea57447f1fab277589fd193a37aeba6471ea4823c2d3de88fe866972b900f326d5cfad232ad63705d9e5eb604246066452537a2272
7
+ data.tar.gz: c2452aa7f8a95e7e3698c3442b07e07b13973eb38367a232b7f97b4e9da474a00b30cafd9d534e1799e66888f0b39cdb630804b9077cc293dc44b6cde05f2829
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.5
2
+
3
+ * In Wrap, use `self` instead of a hard class reference. This allows using Wrap in the compat gem.
4
+
1
5
  # 2.0.4
2
6
 
3
7
  * When using `Nested(X)`, the automatic `:name` option is now `"Nested(X)"` instead of the cryptic proc string.
data/Gemfile CHANGED
@@ -9,7 +9,7 @@ gemspec
9
9
  gem "reform-rails"
10
10
  gem "activesupport", "~> 4.2.0"
11
11
 
12
- # gem "roar", github: "apotonick/roar"
12
+ gem "roar", github: "apotonick/roar"
13
13
  # gem "reform", "~> 2.0.0"
14
14
  gem "reform"#, path: "../reform"
15
15
  # gem "roar", path: "../roar"
@@ -1,6 +1,6 @@
1
1
  class Trailblazer::Operation
2
2
  def self.Wrap(wrap, &block)
3
- operation = Class.new(Trailblazer::Operation) # DISCUSS: Trailblazer::Operation.inherit(skip_operation.new: true)
3
+ operation = Class.new(self) # self is Trailblazer::Operation.
4
4
  # DISCUSS: don't instance_exec when |pipe| given?
5
5
  operation.instance_exec(&block) # evaluate the nested pipe.
6
6
 
@@ -1,3 +1,3 @@
1
1
  module Trailblazer
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
data/test/test_helper.rb CHANGED
@@ -27,3 +27,5 @@ module Test
27
27
  end
28
28
  ReturnResult = ->(last, input, options) { input }
29
29
  end
30
+
31
+
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.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Sutterer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-25 00:00:00.000000000 Z
11
+ date: 2017-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trailblazer-operation
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  requirements: []
245
245
  rubyforge_project:
246
- rubygems_version: 2.5.2
246
+ rubygems_version: 2.6.3
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: A high-level architecture for Ruby and Rails.