druthers 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/druthers/def.rb +3 -3
- data/lib/druthers/version.rb +1 -1
- data/test/minitest_helper.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTc3MmFjMzEzOTdhODIzODUxZTA4ZWY5OTY5NTNmYWU1YmQwOTk5Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzBlNDhiMDJiMzk3ZTBjZjMwNWYwOGI1NmRmODkxZmVjZDM0YjFlYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZDQ1YjZhYzhiY2QwMDJkNjA2NmRkOGMxNjZmODMyNWVkYTg4YzkzNmZmZjRi
|
10
|
+
MTIwYjM1MjMxOTE1M2E4ZmVjNjBjODg4ZmEyYjk0MzgyZjRkN2M4NmYyNmI2
|
11
|
+
NDljZjhhNzYyMDM5YTJlMTViYjdlOWIyNzk0OTNiYjJjM2MzZDI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGQ3MDdhZDg2ZTBkYjMyMTg0MzI2NTJhNjU5YWI5OWM3YmJhN2ZiM2I3Y2Iz
|
14
|
+
YzZkMDZjYjVhMzk5NzczNDUyOGIwYWRjMjIzMGY5Y2VlMzllOTA3MTYwYWRm
|
15
|
+
MDU0ZDk1MGU0M2U4NmVlOGNlMTg5ODNjNmIxZjMyZTQxN2Q0M2M=
|
data/CHANGELOG.md
CHANGED
data/lib/druthers/def.rb
CHANGED
@@ -6,14 +6,14 @@ module Druthers
|
|
6
6
|
def def_druthers(*keys)
|
7
7
|
include Support
|
8
8
|
keys.each do |ea|
|
9
|
-
fail "
|
9
|
+
fail "key names must be alphanumeric" unless ea.to_s =~ Druthers::VALID_METHOD_NAME
|
10
10
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
11
11
|
def self.#{ea}=(value)
|
12
12
|
self.set_druther(:#{ea}, value)
|
13
|
-
end
|
13
|
+
end unless respond_to?(:#{ea}=)
|
14
14
|
def self.#{ea}
|
15
15
|
get_druther(:#{ea})
|
16
|
-
end
|
16
|
+
end unless respond_to?(:#{ea})
|
17
17
|
RUBY
|
18
18
|
end
|
19
19
|
end
|
data/lib/druthers/version.rb
CHANGED
data/test/minitest_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: druthers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew McEachen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|