meta-utils 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/meta-utils.rb +1 -3
- metadata +3 -3
data/Rakefile
CHANGED
@@ -5,8 +5,8 @@ begin
|
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "meta-utils"
|
8
|
-
gem.summary = %Q{
|
9
|
-
gem.description = %Q{
|
8
|
+
gem.summary = %Q{Utilities for meta programming}
|
9
|
+
gem.description = %Q{Utilities for meta programming}
|
10
10
|
gem.email = "niclas.nilsson@factor10.com"
|
11
11
|
gem.homepage = "http://github.com/niclasnilsson/meta-utils"
|
12
12
|
gem.authors = ["Niclas Nilsson"]
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.2.0
|
data/lib/meta-utils.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'facets'
|
2
|
-
|
3
1
|
module Kernel
|
4
2
|
alias_method :d, :binding
|
5
3
|
end
|
@@ -11,7 +9,7 @@ class Binding
|
|
11
9
|
variables = debug_str.split(',').map { |v| v.strip }
|
12
10
|
|
13
11
|
variables.each do |var|
|
14
|
-
result = eval var
|
12
|
+
result = eval var, self
|
15
13
|
str += "#{separator}#{var}=#{result.inspect.strip}"
|
16
14
|
separator = ', '
|
17
15
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meta-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Niclas Nilsson
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: "0"
|
24
24
|
version:
|
25
|
-
description:
|
25
|
+
description: Utilities for meta programming
|
26
26
|
email: niclas.nilsson@factor10.com
|
27
27
|
executables: []
|
28
28
|
|
@@ -69,7 +69,7 @@ rubyforge_project:
|
|
69
69
|
rubygems_version: 1.3.5
|
70
70
|
signing_key:
|
71
71
|
specification_version: 3
|
72
|
-
summary: Utilities for meta programming
|
72
|
+
summary: Utilities for meta programming
|
73
73
|
test_files:
|
74
74
|
- spec/meta-utils_spec.rb
|
75
75
|
- spec/regular_methods.rb
|