robust_excel_ole 1.24 → 1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reo_console.rb +7 -32
- data/lib/robust_excel_ole/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec2281789116629bceb9d28bb49ea8c75f10306084d5d81348cd3d05f521e2ac
|
4
|
+
data.tar.gz: 1adb8026858ed313c16dae70914448ce4c77a8cfc047fdf5fba15cdb41a9e448
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0daec2c817688fe78593042eefc2bd34c3d8e8d9eaed6cbcf1653892fc3d4e16e146832f7d9e8ddeac70d4d66bbaf22e7c72cb4e1aa27cfdf2ca2f04f29146b
|
7
|
+
data.tar.gz: be997a68bd9b9c543b65c780779607210bd005db79bb448fec1c5f49cd05760213b01860555d8439ed7f91264e833e889034db7bc75e85681a77c0e224c0956a
|
data/lib/reo_console.rb
CHANGED
@@ -6,38 +6,8 @@ include General
|
|
6
6
|
|
7
7
|
# pry mit behalten lokaler Variablen
|
8
8
|
|
9
|
-
class Object
|
10
|
-
|
11
|
-
def pry(object = nil, hash = {})
|
12
|
-
@local_vars ||= { }
|
13
|
-
if object.nil? || Hash === object # rubocop:disable Style/CaseEquality
|
14
|
-
Pry.start(self, object || {})
|
15
|
-
else
|
16
|
-
Pry.start(object, hash)
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
end
|
21
|
-
|
22
9
|
class Pry
|
23
10
|
|
24
|
-
def self.set_local_vars local_vars
|
25
|
-
@local_vars = local_vars
|
26
|
-
end
|
27
|
-
|
28
|
-
def self.get_local_vars
|
29
|
-
@local_vars
|
30
|
-
end
|
31
|
-
|
32
|
-
def self.binding_for(target)
|
33
|
-
return target if Binding === target # rubocop:disable Style/CaseEquality
|
34
|
-
return TOPLEVEL_BINDING if Pry.main == target
|
35
|
-
__bnd = target.instance_eval{ target.__binding__ }
|
36
|
-
@local_vars.each{ |var,value| __bnd.local_variable_set(var, value) }
|
37
|
-
#target.__binding__
|
38
|
-
__bnd
|
39
|
-
end
|
40
|
-
|
41
11
|
class REPL
|
42
12
|
|
43
13
|
def repl
|
@@ -55,8 +25,13 @@ class Pry
|
|
55
25
|
bnd = pry.binding_stack.first
|
56
26
|
exclude_vars = [:__, :_, :_dir, :_dir_, :_file, :_file_, :_in_, :_out_, :_ex, :_ex_, :pry_instance]
|
57
27
|
local_vars = Pry.get_local_vars
|
58
|
-
bnd.local_variables.each
|
59
|
-
|
28
|
+
bnd.local_variables.each do |var|
|
29
|
+
unless exclude_vars.include?(var)
|
30
|
+
pry.add_sticky_local(var) do
|
31
|
+
bnd.local_variable_get(var)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
60
35
|
return pry.exit_value unless pry.eval(val)
|
61
36
|
end
|
62
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robust_excel_ole
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.25'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- traths
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|