reviewed_braai 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,37 +1,13 @@
1
1
  module ReviewedBraai
2
2
  module Handlers
3
- class Base
3
+ class Base < Braai::Handlers::Base
4
4
  include ReviewedBraai::Helpers
5
5
 
6
- attr_accessor :template, :key, :matches
7
-
8
- class << self
9
-
10
- def call(template, key, matches)
11
- handler = self.new(template, key, matches)
12
- handler.safe_perform
13
- end
14
- end
15
-
16
- def initialize(template, key, matches)
17
- @template = template
18
- @key = key
19
- @matches = matches
20
- end
21
-
22
- def safe_perform
23
- begin
24
- perform
25
- rescue => e
26
- rescue_from_error(key)
27
- end
28
- end
29
-
30
6
  def perform
31
7
  "<!-- #{key} -->"
32
8
  end
33
9
 
34
- def rescue_from_error(key)
10
+ def rescue_from_error(e)
35
11
  "<!-- #{key} -->"
36
12
  end
37
13
  end
@@ -1,3 +1,3 @@
1
1
  module ReviewedBraai
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed_braai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-28 00:00:00.000000000 Z
12
+ date: 2013-01-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: braai
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
- version: '0'
21
+ version: 1.4.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
- version: '0'
29
+ version: 1.4.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rspec
32
32
  requirement: !ruby/object:Gem::Requirement