builder 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/blankslate.rb +6 -2
- data/lib/builder/version.rb +1 -1
- metadata +2 -2
data/lib/blankslate.rb
CHANGED
@@ -44,12 +44,16 @@ class BlankSlate
|
|
44
44
|
# Hide the method named +name+ in the BlankSlate class. Don't
|
45
45
|
# hide +instance_eval+ or any method beginning with "__".
|
46
46
|
def hide(name)
|
47
|
-
|
48
|
-
|
47
|
+
warn_level = $VERBOSE
|
48
|
+
$VERBOSE = nil
|
49
|
+
if instance_methods.include?(name._blankslate_as_name) &&
|
50
|
+
name !~ /^(__|instance_eval$)/
|
49
51
|
@hidden_methods ||= {}
|
50
52
|
@hidden_methods[name.to_sym] = instance_method(name)
|
51
53
|
undef_method name
|
52
54
|
end
|
55
|
+
ensure
|
56
|
+
$VERBOSE = warn_level
|
53
57
|
end
|
54
58
|
|
55
59
|
def find_hidden_method(name)
|
data/lib/builder/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-09-
|
12
|
+
date: 2012-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ! 'Builder provides a number of builder objects that make creating structured
|
15
15
|
data
|