robust_excel_ole 1.19.3 → 1.19.4
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 +14 -55
- data/lib/robust_excel_ole/version.rb +1 -1
- metadata +1 -2
- data/lib/jreo_console.rb +0 -67
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95548d132f97e8ea26991a4ac303ed6ae8fa1b006cd155b6cce5500d3fde8c0d
|
4
|
+
data.tar.gz: 3549593f1108b8500c1cc7551befc352122ba034f9640e0acf14f26b77a429fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10dfed5039f7cca3bf98e67ffb384c2a715c6132befa66de5d5f34e9e70ce3f7bc19a43a1e349d3688c9898513d42ab77082d2c57a870ec0d2aebb4a1079d7cc
|
7
|
+
data.tar.gz: 05bc5ac08e0858142a9dcaf9aff3ebe4c52985c04a068e5e0e2b61ab4b02d1205e5f1616145f2d747d7cd76758b0ad92db2ee57a1bf9cf60ad478cfa23ecf4aa
|
data/lib/reo_console.rb
CHANGED
@@ -1,62 +1,21 @@
|
|
1
|
-
require '
|
1
|
+
require 'pry'
|
2
|
+
require 'robust_excel_ole'
|
2
3
|
include REO
|
3
4
|
# include RobustExcelOle
|
4
5
|
include General
|
5
6
|
|
6
|
-
|
7
|
-
|
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
|
-
#
|
15
|
-
|
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
|
-
|
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
|
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.
|
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
|
data/lib/jreo_console.rb
DELETED
@@ -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'
|