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 +1 -1
- data/lib/maintain/backend/base.rb +0 -4
- data/lib/maintain/backend.rb +3 -3
- data/lib/maintain/maintainer.rb +1 -1
- data/maintain.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.14
|
data/lib/maintain/backend.rb
CHANGED
@@ -22,14 +22,14 @@ module Maintain
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
def build(back_end
|
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
|
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
|
32
|
+
back_end.new
|
33
33
|
rescue
|
34
34
|
end
|
35
35
|
end
|
data/lib/maintain/maintainer.rb
CHANGED
@@ -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
|
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
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 14
|
10
|
+
version: 0.2.14
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Flip Sasser
|