easyconf-rails 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/easyconf-rails.rb +8 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/easyconf-rails.rb
CHANGED
@@ -24,6 +24,14 @@ class SemiOpenStruct < OpenStruct
|
|
24
24
|
@table.keys
|
25
25
|
end
|
26
26
|
|
27
|
+
def delete_field(key)
|
28
|
+
if @table.has_key?(key.to_sym)
|
29
|
+
@table.delete(key.to_sym)
|
30
|
+
else
|
31
|
+
raise(NameError, "method `#{key}` not defined in #{self.class}")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
27
35
|
# Call the given block for every key and value we have.
|
28
36
|
def each # :yields: key, val
|
29
37
|
@table.each do |key, val|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: easyconf-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -37,11 +37,11 @@ cert_chain:
|
|
37
37
|
VUFLUXhsRkovYUtsUE1qNzM1ejhFb2dhWkMxWkhnZzN2a2dHR3l1NTdOLzhC
|
38
38
|
RERHMFR6QwpabjN1MmxlVmFlL2ZKMDN6WUdBcmh1SktQZ2M9Ci0tLS0tRU5E
|
39
39
|
IENFUlRJRklDQVRFLS0tLS0K
|
40
|
-
date: 2012-05
|
40
|
+
date: 2012-06-05 00:00:00.000000000 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rails
|
44
|
-
requirement: &
|
44
|
+
requirement: &70749730 !ruby/object:Gem::Requirement
|
45
45
|
none: false
|
46
46
|
requirements:
|
47
47
|
- - ! '>='
|
@@ -49,7 +49,7 @@ dependencies:
|
|
49
49
|
version: '0'
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
|
-
version_requirements: *
|
52
|
+
version_requirements: *70749730
|
53
53
|
description: Configure Rails apps with a simple YAML file.
|
54
54
|
email: the.magical.kat@gmail.com
|
55
55
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|