canal 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/canal/version.rb +1 -1
  3. data/lib/canal.rb +5 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 307ba1a54d39dd5c2ec842cb31f54704eeaf511c
4
- data.tar.gz: a338c6d5760da25c790bf7d272f2ecaf193a87c9
3
+ metadata.gz: 6d161ce583930471d7dd171b918f8a69dc115296
4
+ data.tar.gz: adf0e0d7b4702a0fa840984bcc3035721747883d
5
5
  SHA512:
6
- metadata.gz: d0e2a8d19f533949fd2660f4361080a9c98e21a2538db9b239f573f16ba19ebf2501ddc3e1fe94e14bc61621f75d4d6968f1d084334e1d34142a03b748cd9007
7
- data.tar.gz: de6e2c4646544e66da0e4fd7b12c8b537c9aba4a31037cd4737d2cfc9b9c56d6d6e3be3dd1645257418f0b537142a020eec7c0f05688448d498520005e39ac74
6
+ metadata.gz: b8b3f48cea170db0439d30ac59a6368b96760c7f602ed4e7cf24dbc9e1dc865efa6b02a7f7b3d8b9214cabe86910a419205fdeb7bf48e8366450a75c422250b0
7
+ data.tar.gz: 666bb3ab504b3030ef073bb4bd14a4015d6824c6fe4629ef0bd4eade0d4293ee1c168f472fa018eb29e602aa2eea533ae67f63754e6a1473e938889cd7ed99ac
data/lib/canal/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Canal
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/lib/canal.rb CHANGED
@@ -7,8 +7,11 @@ module Canal
7
7
  end
8
8
 
9
9
  def method_missing(name, *args, &block)
10
- @functions << [name, args, block]
11
- self
10
+ functions = @functions
11
+ Canal::Context.new.instance_eval {
12
+ @functions = functions + [[name, args, block]]
13
+ self
14
+ }
12
15
  end
13
16
 
14
17
  def call(object)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benoit Cote-Jodoin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-20 00:00:00.000000000 Z
11
+ date: 2016-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler