robust_excel_ole 1.19.3 → 1.19.4

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: 708ee59b1de0837be9b9c43acfeafb381d40e4548394325d96f05f563db2b442
4
- data.tar.gz: 1c1aae5be7989a82c359e56afa298fc8757adf7d50dee937f8cd8b17d6281653
3
+ metadata.gz: 95548d132f97e8ea26991a4ac303ed6ae8fa1b006cd155b6cce5500d3fde8c0d
4
+ data.tar.gz: 3549593f1108b8500c1cc7551befc352122ba034f9640e0acf14f26b77a429fc
5
5
  SHA512:
6
- metadata.gz: 7406dead8ea47a8ba23289266e70820257c3367e019f4715e151e760225534637a009cd436be2215264cd820392c3faa95d51463cfb319c372253815859d11b1
7
- data.tar.gz: b84d2f084ee989b10f870540e7bea9e111af45b72b9dc1263fa80ffa341c1b0991d5cc0fff971797ec94af43d1c0dbac5d8031a4b8f4e633966e69a9a7dfa00a
6
+ metadata.gz: 10dfed5039f7cca3bf98e67ffb384c2a715c6132befa66de5d5f34e9e70ce3f7bc19a43a1e349d3688c9898513d42ab77082d2c57a870ec0d2aebb4a1079d7cc
7
+ data.tar.gz: 05bc5ac08e0858142a9dcaf9aff3ebe4c52985c04a068e5e0e2b61ab4b02d1205e5f1616145f2d747d7cd76758b0ad92db2ee57a1bf9cf60ad478cfa23ecf4aa
@@ -1,62 +1,21 @@
1
- require '../robust_excel_ole/lib/robust_excel_ole'
1
+ require 'pry'
2
+ require 'robust_excel_ole'
2
3
  include REO
3
4
  # include RobustExcelOle
4
5
  include General
5
6
 
6
- require 'irb'
7
- require 'irb/completion'
8
- require 'irb/ext/save-history'
7
+ puts 'REO console started'
8
+ puts
9
9
 
10
- ARGV.concat ['--readline',
11
- '--prompt-mode',
12
- 'simple']
13
10
 
14
- # 250 entries in the list
15
- IRB.conf[:SAVE_HISTORY] = 250
11
+ # some pry configuration
12
+ Pry.config.windows_console_warning = false
13
+ Pry.config.history.should_save = true
14
+ #Pry.editor = 'notepad' # 'subl', 'vi'
15
+ #Pry.config.prompt =
16
+ # [
17
+ # ->(_obj, _nest_level, _) { ">> " },
18
+ # ->(*) { " " }
19
+ # ]
16
20
 
17
- # Store results in home directory with specified file name
18
- # IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
19
- IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.reo-history"
20
-
21
- IRB.conf[:PROMPT_MODE] = :SIMPLE
22
- #IRB.conf[:USE_READLINE] = true
23
- #IRB.conf[:AUTO_INDENT] = true
24
-
25
- # @private
26
- module Readline
27
- module Hist
28
- LOG = IRB.conf[:HISTORY_FILE]
29
- # LOG = "#{ENV['HOME']}/.irb-history"
30
-
31
- def self.write_log(line)
32
- File.open(LOG, 'ab') do |f|
33
- f << "#{line}
34
- "
35
- end
36
- end
37
-
38
- def self.start_session_log
39
- timestamp = proc { Time.now.strftime('%Y-%m-%d, %H:%M:%S') }
40
- # @private
41
- class <<timestamp
42
- alias_method :to_s, :call
43
- end
44
- write_log("###### session start: #{timestamp}")
45
- at_exit { write_log("###### session stop: #{timestamp}") }
46
- end
47
- end
48
-
49
- alias old_readline readline
50
- def readline(*args)
51
- ln = old_readline(*args)
52
- begin
53
- Hist.write_log(ln)
54
- rescue StandardError
55
- end
56
- ln
57
- end
58
- end
59
-
60
- Readline::Hist.start_session_log
61
- puts 'REO console started: the changed one'
62
- #IRB.start
21
+ pry
@@ -1,3 +1,3 @@
1
1
  module RobustExcelOle
2
- VERSION = "1.19.3"
2
+ VERSION = "1.19.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: robust_excel_ole
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.3
4
+ version: 1.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - traths
@@ -115,7 +115,6 @@ files:
115
115
  - examples/open_save_close/example_simple.rb
116
116
  - examples/open_save_close/example_unobtrusively.rb
117
117
  - jreo.bat
118
- - lib/jreo_console.rb
119
118
  - lib/reo_console.rb
120
119
  - lib/robust_excel_ole.rb
121
120
  - lib/robust_excel_ole/address_tool.rb
@@ -1,67 +0,0 @@
1
- # require '../robust_excel_ole/lib/robust_excel_ole'
2
- include REO
3
- # include RobustExcelOle
4
- include General
5
-
6
- require 'irb/completion'
7
- require 'irb/ext/save-history'
8
- gem 'jruby-readline'
9
-
10
- ARGV.concat ['--readline',
11
- '--prompt-mode',
12
- 'simple',
13
- '-rjruby-readline']
14
-
15
- #IRB.conf[:PROMPT_MODE] = :SIMPLE
16
- #IRB.conf[:USE_READLINE] = true
17
- #IRB.conf[:AUTO_INDENT] = true
18
-
19
-
20
-
21
-
22
- # 250 entries in the list
23
- IRB.conf[:SAVE_HISTORY] = 250
24
-
25
- # Store results in home directory with specified file name
26
- # IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
27
- #IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
28
-
29
- IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.reo-history"
30
-
31
- # @private
32
- module Readline
33
- module Hist
34
- LOG = IRB.conf[:HISTORY_FILE]
35
- # LOG = "#{ENV['HOME']}/.irb-history"
36
-
37
- def self.write_log(line)
38
- File.open(LOG, 'ab') do |f|
39
- f << "#{line}
40
- "
41
- end
42
- end
43
-
44
- def self.start_session_log
45
- timestamp = proc { Time.now.strftime('%Y-%m-%d, %H:%M:%S') }
46
- # @private
47
- class <<timestamp
48
- alias_method :to_s, :call
49
- end
50
- write_log("###### session start: #{timestamp}")
51
- at_exit { write_log("###### session stop: #{timestamp}") }
52
- end
53
- end
54
-
55
- alias old_readline readline
56
- def readline(*args)
57
- ln = old_readline(*args)
58
- begin
59
- Hist.write_log(ln)
60
- rescue StandardError
61
- end
62
- ln
63
- end
64
- end
65
-
66
- Readline::Hist.start_session_log
67
- puts 'JREO console started'