gearhead 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gearhead/gear.rb +3 -2
- data/lib/gearhead/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e801757d4f504cd9af77bdc3ad6cf65120b3f66d5575e74afe546cac0417e82
|
4
|
+
data.tar.gz: 23e72de8bb059aadfcfd3efe3de4e57f303798bb078e6a37d0c2abd8f30834aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9c4a92366775ecc0655c4480a9cf09442c004be9d4dc638e2b26581449cbe2cc98e39b5132d9a0e17008e5e898fd1232f62bf2eb5e3515c1274c4690127a5ab
|
7
|
+
data.tar.gz: 716cb11ac1c6dba21a4dc2320a035e29c9033269f8ae3cb4829a83cc914f39fb17d59dd91eec80f26b053cdc36479a33c0b86ff2519bb0de98db1fbe16522077
|
data/lib/gearhead/gear.rb
CHANGED
@@ -6,14 +6,14 @@ module Gearhead
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def define_gear_setting(name, default = nil)
|
9
|
-
instance_variable_set("@_gear_#{name}", default)
|
9
|
+
instance_variable_set("@_gear_#{name}", default.dup)
|
10
10
|
ivar = "@_gear_#{name}"
|
11
11
|
self.class.define_method :"_gear_#{name}" do
|
12
12
|
return instance_variable_get(ivar) if instance_variable_defined?(ivar)
|
13
13
|
instance_variable_get("@_gear_#{name}")
|
14
14
|
end
|
15
15
|
self.class.define_method :"_gear_#{name}=" do |value|
|
16
|
-
instance_variable_set("@_gear_#{name}", value)
|
16
|
+
instance_variable_set("@_gear_#{name}", value.dup)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
@@ -23,6 +23,7 @@ module Gearhead
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
26
|
+
|
26
27
|
class Gear
|
27
28
|
include Settings
|
28
29
|
|
data/lib/gearhead/version.rb
CHANGED