robust_excel_ole 1.24 → 1.25

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7d0cb1b064c701e9a0cafbc632baceca0e69a4aeb47a6eba5ddcec109f27dee
4
- data.tar.gz: f565901c9fa35233a7668958fd78ccf008e9ceb333e701e0662a850a9b5806e0
3
+ metadata.gz: ec2281789116629bceb9d28bb49ea8c75f10306084d5d81348cd3d05f521e2ac
4
+ data.tar.gz: 1adb8026858ed313c16dae70914448ce4c77a8cfc047fdf5fba15cdb41a9e448
5
5
  SHA512:
6
- metadata.gz: 69aebb4f2b71f46fbf58f3b9884a11347893b3335a32690b536c2174102fadf0971cb3074f8140feedaa8a4ef91683c79c67b77192c64b846bb310ba2bda20fa
7
- data.tar.gz: 06bee2e7e0f277e2e647de1c4281a1961649b9d22128b76389873c03f86c7baf5f8c9681e030b735a29c2358b949bdc7ac54133e74b01adb6750e9368b2daffd
6
+ metadata.gz: f0daec2c817688fe78593042eefc2bd34c3d8e8d9eaed6cbcf1653892fc3d4e16e146832f7d9e8ddeac70d4d66bbaf22e7c72cb4e1aa27cfdf2ca2f04f29146b
7
+ data.tar.gz: be997a68bd9b9c543b65c780779607210bd005db79bb448fec1c5f49cd05760213b01860555d8439ed7f91264e833e889034db7bc75e85681a77c0e224c0956a
@@ -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{ |var| local_vars[var] = bnd.local_variable_get(var) unless exclude_vars.include?(var) }
59
- Pry.set_local_vars(local_vars)
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
@@ -1,3 +1,3 @@
1
1
  module RobustExcelOle
2
- VERSION = "1.24"
2
+ VERSION = "1.25"
3
3
  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.24'
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-29 00:00:00.000000000 Z
11
+ date: 2020-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry