sequins 0.1.2 → 0.1.3

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: 056e21b0bc192d4c206223492dde4f2e0b77f6e9
4
- data.tar.gz: 994041d33fec1c90138ce71579e042dd57e144b5
3
+ metadata.gz: 26a80653dfdd9799d6f6fed0602b4284f2efaccf
4
+ data.tar.gz: 53c6df79e9f3711741d126d0e41c13ead63f3b9a
5
5
  SHA512:
6
- metadata.gz: 1ae876d988d4817e944b75ff1119f593cc43d10eb8efbaac3c023639044a0d07dbf7093fe0232009c269aa2098aef3a501e3b9f412e1b4f6fdb019610c2ab662
7
- data.tar.gz: 7ae79622feb2eb4af69937592eeff9c04dcf6189c7c9ea234f33b7d3922b95d3834f9146a26bfa3a39051c79fc23b6793708c8160c2912ca19a9955b5eb98974
6
+ metadata.gz: 8c05077845a1f61e35723845e2a360a31f7d1560c001efe5e3f1ff0d2e6b83c6e38a2f076207c92ff54688c4c172aef64525430a58a1b4242597af268367bfed
7
+ data.tar.gz: 6496d6e35bc2c9548c93e846ffbad735beb98472d9e86fc0c216ee5532786f4fee13c802230a4c1b14422bf39a59fb650d2839a0c8115c86c7bbdb9f9c3eb292
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sequins (0.1.1)
4
+ sequins (0.1.3)
5
5
  autoloaded (~> 2)
6
6
  docile
7
7
  rails (>= 5.0)
@@ -68,7 +68,7 @@ GEM
68
68
  nokogiri (>= 1.5.9)
69
69
  mail (2.7.0)
70
70
  mini_mime (>= 0.1.1)
71
- marcel (0.3.2)
71
+ marcel (0.3.3)
72
72
  mimemagic (~> 0.3.2)
73
73
  method_source (0.9.0)
74
74
  mimemagic (0.3.2)
@@ -19,6 +19,11 @@ module Sequins
19
19
  @hooks[stage] << StepProxy.new({}, block)
20
20
  end
21
21
 
22
+ def prepend_hook(stage, &block)
23
+ @hooks[stage] ||= []
24
+ @hooks[stage].unshift StepProxy.new({}, block)
25
+ end
26
+
22
27
  def run_step_for_target(step_name, target, *args)
23
28
  proxy = @steps[step_name]
24
29
  raise UnknownStepError.new(step_name) if proxy.nil?
@@ -1,3 +1,3 @@
1
1
  module Sequins
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Keen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-09-28 00:00:00.000000000 Z
11
+ date: 2018-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docile