media 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -14,7 +14,7 @@ And then execute:
14
14
 
15
15
  Or install it yourself as:
16
16
 
17
- $ gem install foo
17
+ $ gem install media
18
18
 
19
19
  ## Usage
20
20
 
@@ -16,7 +16,9 @@ module Media
16
16
  converter = new
17
17
 
18
18
  if block_given?
19
- @context = eval('self', blk.binding)
19
+ context = eval('self', blk.binding)
20
+ converter.instance_variable_set(:@context, context)
21
+
20
22
  converter.instance_eval(&blk)
21
23
  end
22
24
  converter
@@ -39,7 +41,6 @@ module Media
39
41
 
40
42
  def method_missing(method, *args, &blk)
41
43
  @context && @context.send(method, *args, &blk)
42
- super(method, *args, &blk)
43
44
  end
44
45
  end
45
46
 
@@ -10,7 +10,9 @@ module Media
10
10
  filter = new(name: name)
11
11
 
12
12
  if block_given?
13
- @context = eval('self', blk.binding)
13
+ context = eval('self', blk.binding)
14
+ filter.instance_variable_set(:@context, context)
15
+
14
16
  filter.instance_eval(&blk)
15
17
  end
16
18
  filter
@@ -34,7 +36,6 @@ module Media
34
36
 
35
37
  def method_missing(method, *args, &blk)
36
38
  @context && @context.send(method, *args, &blk)
37
- super
38
39
  end
39
40
  end
40
41
 
@@ -11,7 +11,9 @@ module Media
11
11
  chain = new
12
12
 
13
13
  if block_given?
14
- @context = eval('self', blk.binding)
14
+ context = eval('self', blk.binding)
15
+ chain.instance_variable_set(:@context, context)
16
+
15
17
  chain.instance_eval(&blk)
16
18
  end
17
19
  chain
@@ -26,7 +28,6 @@ module Media
26
28
 
27
29
  def method_missing(method, *args, &blk)
28
30
  @context && @context.send(method, *args, &blk)
29
- super
30
31
  end
31
32
  end
32
33
 
@@ -13,7 +13,9 @@ module Media
13
13
  graph = new
14
14
 
15
15
  if block_given?
16
- @context = eval('self', blk.binding)
16
+ context = eval('self', blk.binding)
17
+ graph.instance_variable_set(:@context, context)
18
+
17
19
  graph.instance_eval(&blk)
18
20
  end
19
21
  graph
@@ -28,7 +30,6 @@ module Media
28
30
 
29
31
  def method_missing(method, *args, &blk)
30
32
  @context && @context.send(method, *args, &blk)
31
- super
32
33
  end
33
34
  end
34
35
 
@@ -10,7 +10,9 @@ module Media
10
10
  input = new(url: url)
11
11
 
12
12
  if block_given?
13
- @context = eval('self', blk.binding)
13
+ context = eval('self', blk.binding)
14
+ input.instance_variable_set(:@context, context)
15
+
14
16
  input.instance_eval(&blk)
15
17
  end
16
18
  input
@@ -32,7 +34,6 @@ module Media
32
34
 
33
35
  def method_missing(method, *args, &blk)
34
36
  @context && @context.send(method, *args, &blk)
35
- super(method, *args, &blk)
36
37
  end
37
38
  end
38
39
 
@@ -13,7 +13,9 @@ module Media
13
13
  output = new(url: url)
14
14
 
15
15
  if block_given?
16
- @context = eval('self', blk.binding)
16
+ context = eval('self', blk.binding)
17
+ output.instance_variable_set(:@context, context)
18
+
17
19
  output.instance_eval(&blk)
18
20
  end
19
21
  output
@@ -37,7 +39,6 @@ module Media
37
39
 
38
40
  def method_missing(method, *args, &blk)
39
41
  @context && @context.send(method, *args, &blk)
40
- super
41
42
  end
42
43
  end
43
44
 
data/lib/media/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Media
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: media
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jamie Hodge
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-12 00:00:00.000000000 Z
12
+ date: 2013-02-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  prerelease: false