te3270 0.8.0 → 0.8.1

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: 3a98a2c51a06119ab5ff8660994f1cbf352356d9
4
- data.tar.gz: dd0cc3dda81267b7408b80e745b3de6adf7ecb78
3
+ metadata.gz: 0b8ddf072f9f9cd64003ca654af024ad1b6fe2c6
4
+ data.tar.gz: e78254e04a34431a4da5c4376c860ef06f3c75e6
5
5
  SHA512:
6
- metadata.gz: d019afdd33a9b46215f887c3983bce5bb86911e5fb2ceb5c1fabcfb97f683028117da4321aaf91bbd110683c8ad35512b64bce79a6d68f4cfe7b46e6b2cd3b1e
7
- data.tar.gz: 4638275f200b51447eab85aa35b859a23a445a6fc3501485f4cb94572811f09e29f988515b32e5f8774c5b2329c7e7ec6678456791d90b8809b71163202e4441
6
+ metadata.gz: 478e2822e1b6777d2c353084cadd5ec2bcbef3af290972e38ff9bdb8c676260a15227670a8e878d55e8bdcc22c90ac8f387a5ae9fb30d7da83c0ac0f5afa9ca9
7
+ data.tar.gz: e94556825730d4176b08d98d880437e1028aac498df571c488b94a8d79f694b8f00c8f402ce8387240ff3a498b592e5c6600ea3cc9fa9fa2be7cdcb3309867cf
data/ChangeLog CHANGED
@@ -1,6 +1,12 @@
1
- === Version 0.8.0 / 2016-11-22 (Thanks David West)
1
+ === Version 0.8.1 / 2017-03-06
2
+ * Fixes
3
+ * Fixed get_string method for Virtel (Thanks David West)
4
+ * Support for uploading a file with Extra (Thanks kumzme)
5
+ * Updated dependency from watir-webdriver to watir
6
+
7
+ === Version 0.8.0 / 2016-11-22
2
8
  * Enhancements
3
- * Added support for Virtel driver
9
+ * Added support for Virtel driver (Thanks David West)
4
10
 
5
11
  === Version 0.7.1 / 2016/7/5
6
12
  * Enhanced the native portion of installation by added messages and warnings
@@ -131,6 +131,51 @@ module TE3270
131
131
  end
132
132
  end
133
133
 
134
+ #
135
+ # Set Dialog True or False
136
+ # @param [Bool] True or False - Show or Hide Dialog Default False
137
+ #
138
+ def set_Show_Host_Dialog(showHostDialog_Received)
139
+ begin
140
+ if showHostDialog_Received != true
141
+ return false
142
+ end
143
+ return true
144
+ rescue
145
+ return false
146
+ end
147
+ end
148
+
149
+ # Send File Method: Support for Text TSO uploads only
150
+ #
151
+ # @param [String] filePath Full file path of Local file
152
+ # @param [String] fileHost Name of the Mainframe file
153
+ # @param [Bool] showHostDialog Show File transfer dialog or not
154
+ #
155
+ def send_Host_File(filePath, fileHost, showHostDialog_Passed)
156
+ create_Show_Dialog = set_Show_Host_Dialog(showHostDialog_Passed)
157
+ session.FileTransferScheme = "Text Default"
158
+ session.FileTransferHostOS = 1 # For TSO transfer Default
159
+ session.SendFile(filePath, fileHost, create_Show_Dialog)
160
+ quiet_period
161
+ end
162
+
163
+ #
164
+ # Receive File Method: Support for Text TSO Downloads only
165
+ #
166
+ # @param [String] filePath Full file path of Local file
167
+ # @param [String] fileHost Name of the Mainframe file
168
+ # @param [Bool] showHostDialog Show File transfer dialog or not
169
+ #
170
+ def recv_Host_File(filePath, fileHost, showHostDialog_Passed)
171
+ create_Show_Dialog = set_Show_Host_Dialog(showHostDialog_Passed)
172
+ session.FileTransferScheme = "Text Default"
173
+ session.FileTransferHostOS = 1 # For TSO transfer Default
174
+ session.ReceiveFile(filePath, fileHost, create_Show_Dialog)
175
+ quiet_period
176
+ end
177
+
178
+
134
179
  #
135
180
  # Creates a method to take screenshot of the active screen. If you have set the +:visible+
136
181
  # property to false it will be made visible prior to taking the screenshot and then changed
@@ -53,7 +53,7 @@ module TE3270
53
53
  #
54
54
  def get_string(row, column, length)
55
55
  @browser.execute_script <<-JS
56
- return VIR3270.getBoxedText("#{row}", "#{column}", 1, "#{length}");
56
+ return VIR3270.collectText("#{row}", "#{column}", 1, "#{length}");
57
57
  JS
58
58
  end
59
59
 
@@ -1,4 +1,3 @@
1
1
  module TE3270
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
4
-
@@ -21,8 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.extensions = ["ext/mkrf_conf.rb"]
22
22
 
23
23
  spec.add_dependency 'page_navigation', '>= 0.9'
24
- spec.add_dependency 'watir-webdriver', '0.6.10'
25
- spec.add_dependency 'selenium-webdriver', '~>2.35.0'
24
+ spec.add_dependency 'watir', '~> 6.0'
26
25
  spec.add_dependency 'win32screenshot' if Gem.win_platform?
27
26
 
28
27
  spec.add_development_dependency "bundler", "~> 1.3"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: te3270
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey S. Morgan
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-11-22 00:00:00.000000000 Z
16
+ date: 2017-03-06 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: page_navigation
@@ -30,33 +30,19 @@ dependencies:
30
30
  - !ruby/object:Gem::Version
31
31
  version: '0.9'
32
32
  - !ruby/object:Gem::Dependency
33
- name: watir-webdriver
34
- requirement: !ruby/object:Gem::Requirement
35
- requirements:
36
- - - '='
37
- - !ruby/object:Gem::Version
38
- version: 0.6.10
39
- type: :runtime
40
- prerelease: false
41
- version_requirements: !ruby/object:Gem::Requirement
42
- requirements:
43
- - - '='
44
- - !ruby/object:Gem::Version
45
- version: 0.6.10
46
- - !ruby/object:Gem::Dependency
47
- name: selenium-webdriver
33
+ name: watir
48
34
  requirement: !ruby/object:Gem::Requirement
49
35
  requirements:
50
36
  - - "~>"
51
37
  - !ruby/object:Gem::Version
52
- version: 2.35.0
38
+ version: '6.0'
53
39
  type: :runtime
54
40
  prerelease: false
55
41
  version_requirements: !ruby/object:Gem::Requirement
56
42
  requirements:
57
43
  - - "~>"
58
44
  - !ruby/object:Gem::Version
59
- version: 2.35.0
45
+ version: '6.0'
60
46
  - !ruby/object:Gem::Dependency
61
47
  name: bundler
62
48
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
148
  version: '0'
163
149
  requirements: []
164
150
  rubyforge_project:
165
- rubygems_version: 2.5.1
151
+ rubygems_version: 2.5.2
166
152
  signing_key:
167
153
  specification_version: 4
168
154
  summary: Automates a 3270 Terminal Emulator