robust_excel_ole 1.18.4 → 1.18.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf35f3fb5a6a208f408a41bfb4dd72424030458ecbbf51590e457ce63cdaef55
4
- data.tar.gz: 04357d405ae6d393480457ffb4d2e21fde6cd8b87a123be6467f1389c83d6727
3
+ metadata.gz: 7c46520c55bdc3ba5f7d94a7bfb2e880565d52fa640ce8d2ce08204b98a5a12d
4
+ data.tar.gz: 032fb5333b2f417131091f12d1d2d9276b5c1fb46bfcae0b9327cf75dd0098d7
5
5
  SHA512:
6
- metadata.gz: 8702bb3c42465b1c3c04ccb248fdc6d17f415193fba5ef12d05820517420970b8da04f042de4a562390e21ee8b1f90325eb5826bd012d3aeea0ca3a8640292e5
7
- data.tar.gz: 84ce7e871aeb7005441832c97ef68e67da3ef46e20c024ae3c7a51dcef946de13d89902e6a40c8173bd486d9c2a44a9db2e3f8139c2ed0501133b503066821af
6
+ metadata.gz: 05d1175039ff47dc11e3f40743667c4d90653b7f9f21f7f6d168c1dda6566c1a9a2dc66bc207ba6d5347363097e8642145d0f66d9b6e46a0cbd748f4d44701f8
7
+ data.tar.gz: 637513fd4f21062f6ea480c1795737cfc5509214408aead3f2bc6aa2fe67750f43264eac872ff817eb069e810686216f8b42cbaffcff180251177f0030977c47
data/bin/reo CHANGED
@@ -1,3 +1,61 @@
1
- @echo off
1
+ #!/usr/bin/env ruby
2
+ # -*- mode: ruby -*-
2
3
 
3
- irb -f -r ../lib/robust_excel_ole -r ../lib/reo_console.rb
4
+ require 'robust_excel_ole'
5
+ include REO
6
+ # include RobustExcelOle
7
+ include General
8
+
9
+ require 'irb'
10
+ require 'irb/completion'
11
+ require 'irb/ext/save-history'
12
+
13
+ ARGV.concat ['--readline',
14
+ '--prompt-mode',
15
+ 'simple']
16
+
17
+ # 250 entries in the list
18
+ IRB.conf[:SAVE_HISTORY] = 250
19
+
20
+ # Store results in home directory with specified file name
21
+ # IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
22
+ IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.reo-history"
23
+
24
+ # @private
25
+ module Readline
26
+ module Hist
27
+ LOG = IRB.conf[:HISTORY_FILE]
28
+ # LOG = "#{ENV['HOME']}/.irb-history"
29
+
30
+ def self.write_log(line)
31
+ File.open(LOG, 'ab') do |f|
32
+ f << "#{line}
33
+ "
34
+ end
35
+ end
36
+
37
+ def self.start_session_log
38
+ timestamp = proc { Time.now.strftime('%Y-%m-%d, %H:%M:%S') }
39
+ # @private
40
+ class <<timestamp
41
+ alias_method :to_s, :call
42
+ end
43
+ write_log("###### session start: #{timestamp}")
44
+ at_exit { write_log("###### session stop: #{timestamp}") }
45
+ end
46
+ end
47
+
48
+ alias old_readline readline
49
+ def readline(*args)
50
+ ln = old_readline(*args)
51
+ begin
52
+ Hist.write_log(ln)
53
+ rescue StandardError
54
+ end
55
+ ln
56
+ end
57
+ end
58
+
59
+ Readline::Hist.start_session_log
60
+ puts 'REO console started'
61
+ IRB.start
@@ -1,8 +1,9 @@
1
- # require '../robust_excel_ole/lib/robust_excel_ole'
1
+ require '../robust_excel_ole/lib/robust_excel_ole'
2
2
  include REO
3
3
  # include RobustExcelOle
4
4
  include General
5
5
 
6
+ require 'irb'
6
7
  require 'irb/completion'
7
8
  require 'irb/ext/save-history'
8
9
 
@@ -17,6 +18,10 @@ IRB.conf[:SAVE_HISTORY] = 250
17
18
  # IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
18
19
  IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.reo-history"
19
20
 
21
+ IRB.conf[:PROMPT_MODE] = 'ert' #:SIMPLE
22
+ #IRB.conf[:USE_READLINE] = true
23
+ #IRB.conf[:AUTO_INDENT] = true
24
+
20
25
  # @private
21
26
  module Readline
22
27
  module Hist
@@ -54,3 +59,5 @@ end
54
59
 
55
60
  Readline::Hist.start_session_log
56
61
  puts 'REO console started'
62
+ IRB.start
63
+
@@ -1,3 +1,3 @@
1
1
  module RobustExcelOle
2
- VERSION = "1.18.4"
2
+ VERSION = "1.18.5"
3
3
  end
data/reo.bat CHANGED
@@ -1,3 +1,5 @@
1
1
  @echo off
2
2
 
3
- irb -f -r ./lib/robust_excel_ole -r ./lib/reo_console.rb
3
+ irb -f -r ./lib/reo_console.rb
4
+
5
+ #irb -f -r ./lib/robust_excel_ole -r ./lib/reo_console.rb
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.18.4
4
+ version: 1.18.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - traths
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-09 00:00:00.000000000 Z
11
+ date: 2020-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec