robust_excel_ole 1.18.5 → 1.18.6

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: 7c46520c55bdc3ba5f7d94a7bfb2e880565d52fa640ce8d2ce08204b98a5a12d
4
- data.tar.gz: 032fb5333b2f417131091f12d1d2d9276b5c1fb46bfcae0b9327cf75dd0098d7
3
+ metadata.gz: a5b739b97acfca6d1de0c072244107cc6f179b4be5b669da5cc6beb3a499bbe6
4
+ data.tar.gz: 1be392c5cec7c9f3d7669b1c6202bbc1fcc8d0908f1bf31670b96734cd243009
5
5
  SHA512:
6
- metadata.gz: 05d1175039ff47dc11e3f40743667c4d90653b7f9f21f7f6d168c1dda6566c1a9a2dc66bc207ba6d5347363097e8642145d0f66d9b6e46a0cbd748f4d44701f8
7
- data.tar.gz: 637513fd4f21062f6ea480c1795737cfc5509214408aead3f2bc6aa2fe67750f43264eac872ff817eb069e810686216f8b42cbaffcff180251177f0030977c47
6
+ metadata.gz: 4b65cd6799b1379c4f25f32cc4e59f7c2fd6ae29a34f6a59fb4daaea4e8c42645d1e3eae2fcb41c566f49f94c653390f8536eec88bb03a3afb4d85b675b1165a
7
+ data.tar.gz: 7f55bd724dfd297596c141fd0116e1168527b0eef521eb9f49eed69e4ad569947ee144d25cdadcb5384e67b424a15c489ebc3a942311e1b3f2b84b7f81815773
data/bin/jreo CHANGED
@@ -1,3 +1,73 @@
1
- @echo off
1
+ #!/usr/bin/env ruby
2
+ # -*- mode: ruby -*-
2
3
 
3
- jirb -f -r ../lib/robust_excel_ole -r ../lib/jreo_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
+ gem 'jruby-readline'
13
+
14
+ ARGV.concat ['--readline',
15
+ '--prompt-mode',
16
+ 'simple',
17
+ '-rjruby-readline']
18
+
19
+ #IRB.conf[:PROMPT_MODE] = :SIMPLE
20
+ #IRB.conf[:USE_READLINE] = true
21
+ #IRB.conf[:AUTO_INDENT] = true
22
+
23
+
24
+
25
+
26
+ # 250 entries in the list
27
+ IRB.conf[:SAVE_HISTORY] = 250
28
+
29
+ # Store results in home directory with specified file name
30
+ # IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-history"
31
+ #IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb-save-history"
32
+
33
+ IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.reo-history"
34
+
35
+ # @private
36
+ module Readline
37
+ module Hist
38
+ LOG = IRB.conf[:HISTORY_FILE]
39
+ # LOG = "#{ENV['HOME']}/.irb-history"
40
+
41
+ def self.write_log(line)
42
+ File.open(LOG, 'ab') do |f|
43
+ f << "#{line}
44
+ "
45
+ end
46
+ end
47
+
48
+ def self.start_session_log
49
+ timestamp = proc { Time.now.strftime('%Y-%m-%d, %H:%M:%S') }
50
+ # @private
51
+ class <<timestamp
52
+ alias_method :to_s, :call
53
+ end
54
+ write_log("###### session start: #{timestamp}")
55
+ at_exit { write_log("###### session stop: #{timestamp}") }
56
+ end
57
+ end
58
+
59
+ alias old_readline readline
60
+ def readline(*args)
61
+ ln = old_readline(*args)
62
+ begin
63
+ Hist.write_log(ln)
64
+ rescue StandardError
65
+ end
66
+ ln
67
+ end
68
+ end
69
+
70
+ Readline::Hist.start_session_log
71
+ puts 'JREO console started'
72
+
73
+ IRB.start
data/bin/reo CHANGED
@@ -1,5 +1,5 @@
1
- #!/usr/bin/env ruby
2
- # -*- mode: ruby -*-
1
+ #!/usr/bin/env jruby
2
+ # -*- mode: jruby -*-
3
3
 
4
4
  require 'robust_excel_ole'
5
5
  include REO
@@ -1,3 +1,3 @@
1
1
  module RobustExcelOle
2
- VERSION = "1.18.5"
2
+ VERSION = "1.18.6"
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.18.5
4
+ version: 1.18.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - traths