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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75de9f8409ab162202f0b975756e85f92b8ab98e
4
- data.tar.gz: 444109e617aa1f97d6fbb2152fca42d113a9c635
3
+ metadata.gz: 584e7daebabd56842bf77991014705e4d6ffab12
4
+ data.tar.gz: 6ac836fd5345d15b47d87c3410573dc1d108e3ad
5
5
  SHA512:
6
- metadata.gz: 9100aaab6f4d93ae5a7af875a04d9b018bfc266054bb24250d2abf1dad7e33bf2cf2adb360ed5f8431997c28861daae095109290720e6174514de54fbc4afad3
7
- data.tar.gz: e8ebba2f849f65b482e562a049e5a18851c95a627773683573bd19e9562af59657d22f0cebbc3de5c1b33b809bcbaea36c7c5226609a6727504b8c55cd956ad4
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
- # See http://www-01.ibm.com/support/knowledgecenter/SSEQ5Y_6.0.0/com.ibm.pcomm.doc/books/html/admin_guide10.htm?lang=en
49
- Process.spawn "PCOMSTOP /S=#{@session_tag} /q" if @pid
50
- # Process.kill 9, @pid #Another way is to kill the process but the session start 2nd process pcscm.exe
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.2
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-22 00:00:00.000000000 Z
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