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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08c4f4e12eac1466b8530e800eed63ddd66d1deba843e71c72a8f5aa41e659e8'
4
- data.tar.gz: 672efdd013c30086d023fbdf4aaefd7fff20b982ff4a6ca5d9e83547771bb070
3
+ metadata.gz: 4e801757d4f504cd9af77bdc3ad6cf65120b3f66d5575e74afe546cac0417e82
4
+ data.tar.gz: 23e72de8bb059aadfcfd3efe3de4e57f303798bb078e6a37d0c2abd8f30834aa
5
5
  SHA512:
6
- metadata.gz: b4a8e2a4cd7cb4aac4df0e1ae1bc04da699a28dd358f0557551b23bcd31f7211ac17301d06e6e6f1d7c061bd8e6deed31ca2c03b576c8605fdf55697932e9eee
7
- data.tar.gz: e14d58df8a37dfe87cfef44a4710e943e0915595ba82430c4ec01fa42b4767c4be99a5257950cdbbfc06dd6e77d1c9c385e62358c8a09f5416473eeb426ac9b9
6
+ metadata.gz: a9c4a92366775ecc0655c4480a9cf09442c004be9d4dc638e2b26581449cbe2cc98e39b5132d9a0e17008e5e898fd1232f62bf2eb5e3515c1274c4690127a5ab
7
+ data.tar.gz: 716cb11ac1c6dba21a4dc2320a035e29c9033269f8ae3cb4829a83cc914f39fb17d59dd91eec80f26b053cdc36479a33c0b86ff2519bb0de98db1fbe16522077
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Gearhead
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gearhead
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh