trailblazer 2.0.5 → 2.0.6

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: 5044acf088ef7c93daedbd4b2f26a9601aae07e6
4
- data.tar.gz: c9195569bbb61caf1f94969e4d39daa262990274
3
+ metadata.gz: 856c86ffb4c7cc3adfe5bf1f6a18b121a2e8869b
4
+ data.tar.gz: 1a79e03ac9dd720d86c7b5d13973316a1e71010b
5
5
  SHA512:
6
- metadata.gz: 31f85ea3865e9682b21bf1ea57447f1fab277589fd193a37aeba6471ea4823c2d3de88fe866972b900f326d5cfad232ad63705d9e5eb604246066452537a2272
7
- data.tar.gz: c2452aa7f8a95e7e3698c3442b07e07b13973eb38367a232b7f97b4e9da474a00b30cafd9d534e1799e66888f0b39cdb630804b9077cc293dc44b6cde05f2829
6
+ metadata.gz: 95d7f47adc5eef009673170e5b423d0ce141884b35501cd6dafc7ef8194ff20e4e4d1ceb1859519961e6f1f983408fe053aede58fba3a6d23588dc2b0ef952bf
7
+ data.tar.gz: c0b9b10bf8fd45e1f55c41bbdd85b9f706f54831fc224915a9b37272e17047911e41c5ccfc220ccf4eed76bbc6ab62c424cb14ca079a5c86e90628dc93b85eaf
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.6
2
+
3
+ * Fix what we broke in 2.0.5, where `Wrap` would always use the current operation subclass and not the empty `Trailblazer::Operation`. Thanks to @mensfeld.
4
+
1
5
  # 2.0.5
2
6
 
3
7
  * In Wrap, use `self` instead of a hard class reference. This allows using Wrap in the compat gem.
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,8 @@
1
1
  class Trailblazer::Operation
2
+ Base = self # TODO: we won't need this with 2.1.
3
+
2
4
  def self.Wrap(wrap, &block)
3
- operation = Class.new(self) # self is Trailblazer::Operation.
5
+ operation = Class.new(Base)
4
6
  # DISCUSS: don't instance_exec when |pipe| given?
5
7
  operation.instance_exec(&block) # evaluate the nested pipe.
6
8
 
@@ -1,3 +1,3 @@
1
1
  module Trailblazer
2
- VERSION = "2.0.5"
2
+ VERSION = "2.0.6"
3
3
  end
@@ -27,5 +27,3 @@ 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.5
4
+ version: 2.0.6
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-29 00:00:00.000000000 Z
11
+ date: 2017-05-02 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.6.3
246
+ rubygems_version: 2.5.2
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: A high-level architecture for Ruby and Rails.