butler-mainframe 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/mainframe/emulators/pcomm.rb +10 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 584e7daebabd56842bf77991014705e4d6ffab12
|
4
|
+
data.tar.gz: 6ac836fd5345d15b47d87c3410573dc1d108e3ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9129d7293a4c6db02dbd068b9606b5162d8b5ad88be4a178be9fdfc0e6be6137a467b844de90f7b18364a3a20834309264ecab8832e182e2fc7cb92e2ff2277a
|
7
|
+
data.tar.gz: f379c6be4ab6f2787bb4a3247b3fc48514d9374313391267cf9ca9c5ebbfaf790f5dc465f87fe5a1269a69960c654c0ddf2330877a35dc1bbc00ba70184fe196
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
0.7.3 [☰](https://github.com/marcomd/butler-mainframe/compare/v0.7.2...v0.7.3) March 29th, 2016
|
2
|
+
------------------------------
|
3
|
+
* PComm emulator: fixed a bug when closing the session with ruby 1.8
|
4
|
+
|
1
5
|
0.7.2 [☰](https://github.com/marcomd/butler-mainframe/compare/v0.7.1...v0.7.2) March 22th, 2016
|
2
6
|
------------------------------
|
3
7
|
* Fixed a bug during install in a rails project
|
@@ -45,9 +45,16 @@ module ButlerMainframe
|
|
45
45
|
def sub_close_session
|
46
46
|
@action[:object].StopCommunication
|
47
47
|
@action[:object] = nil
|
48
|
-
|
49
|
-
|
50
|
-
|
48
|
+
if @pid
|
49
|
+
# See http://www-01.ibm.com/support/knowledgecenter/SSEQ5Y_6.0.0/com.ibm.pcomm.doc/books/html/admin_guide10.htm?lang=en
|
50
|
+
cmd_stop = "PCOMSTOP /S=#{@session_tag} /q"
|
51
|
+
if /^1.8/ === RUBY_VERSION
|
52
|
+
Thread.new {system cmd_stop}
|
53
|
+
else
|
54
|
+
Process.spawn cmd_stop
|
55
|
+
end
|
56
|
+
# Process.kill 9, @pid #Another way is to kill the process but the session start 2nd process pcscm.exe
|
57
|
+
end
|
51
58
|
end
|
52
59
|
|
53
60
|
#Execute keyboard command like PF1 or PA2 or ENTER ...
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: butler-mainframe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Mastrodonato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem provides a virtual butler which can perform your custom tasks
|
14
14
|
on a 3270 emulator. Choose your emulator, configure your task and discover a new
|