maintain 0.2.13 → 0.2.14

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.13
1
+ 0.2.14
@@ -7,10 +7,6 @@ module Maintain
7
7
  require_method :aggregate
8
8
  end
9
9
 
10
- def initialize(maintainer)
11
- @maintainer = maintainer
12
- end
13
-
14
10
  def read(instance, attribute)
15
11
  require_method :read
16
12
  end
@@ -22,14 +22,14 @@ module Maintain
22
22
  end
23
23
  end
24
24
 
25
- def build(back_end, maintainer)
25
+ def build(back_end)
26
26
  back_end = back_end.to_s.split('_').map(&:capitalize).join('')
27
27
  if constants.include? back_end.to_s
28
- const_get(back_end.to_sym).new(maintainer)
28
+ const_get(back_end.to_sym).new
29
29
  else
30
30
  begin
31
31
  back_end = const_missing(back_end)
32
- back_end.new(maintainer)
32
+ back_end.new
33
33
  rescue
34
34
  end
35
35
  end
@@ -69,7 +69,7 @@ module Maintain
69
69
  @maintainee = maintainee.name
70
70
  @attribute = attribute.to_sym
71
71
  if back_end = options.delete(:back_end)
72
- @back_end = Maintain::Backend.build(back_end, self)
72
+ @back_end = Maintain::Backend.build(back_end)
73
73
  end
74
74
  options.each do |key, value|
75
75
  self.send(key, value)
data/maintain.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{maintain}
8
- s.version = "0.2.13"
8
+ s.version = "0.2.14"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Flip Sasser"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintain
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 13
10
- version: 0.2.13
9
+ - 14
10
+ version: 0.2.14
11
11
  platform: ruby
12
12
  authors:
13
13
  - Flip Sasser