te3270 0.2-x86-mingw32 → 0.3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +4 -0
- data/README.md +11 -0
- data/lib/te3270/emulators/extra.rb +1 -1
- data/lib/te3270/screen_populator.rb +22 -0
- data/lib/te3270/version.rb +1 -1
- data/spec/lib/te3270/emulators/extra_spec.rb +1 -1
- data/te3270.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 884918d1a9dfbd02b28e27f4c912259c853d6461
|
4
|
+
data.tar.gz: f9f4db002c0330631fd3430bf2f7cfa4b27f041b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98a5d58f45f2516b1740f693608acbc43feebe21b516ff1574c6735caf597ee78b081edb3e6f770ef75219d4382fbd7967161f2a3d3b9912aac45b7b6fa7602d
|
7
|
+
data.tar.gz: d06e262c90a2d1f72e1b55a4fa2e4e15bda00a8da01817bc396629cca1457319f4cdb128a96679e8dd55b520449828a386dc77280e404a30432b61928e47d100
|
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== Version 0.3 / 2014-2-25
|
2
|
+
* Enhancements
|
3
|
+
* disconnect does not close all open sessions with Extra now - only the one that connect opened
|
4
|
+
|
1
5
|
=== Version 0.2 / 2014-2-9
|
2
6
|
* Enhancements
|
3
7
|
* Added populate_screen_with method to TE3270 to populate all fields that are included in provided Hash
|
data/README.md
CHANGED
@@ -77,6 +77,17 @@ or you can use the version of `on` that takes a block like this:
|
|
77
77
|
screen.password = 'the_password'
|
78
78
|
end
|
79
79
|
|
80
|
+
There is also a way to pass in a `Hash` and have it populate an entire screen. Just simply
|
81
|
+
ensure the key for an entry in the `Hash` matches the name you gave a text field and it will
|
82
|
+
find and set the value. This allows the gem to easily work with the DataMagic gem.
|
83
|
+
|
84
|
+
# given this Hash
|
85
|
+
my_date = { userid: 'the_id', password: 'the_password' }
|
86
|
+
|
87
|
+
# you can simply call this method
|
88
|
+
on(MainframeScreen).populate_screen_with my_data
|
89
|
+
|
90
|
+
|
80
91
|
## Contributing
|
81
92
|
|
82
93
|
1. Fork it
|
@@ -2,10 +2,32 @@
|
|
2
2
|
module TE3270
|
3
3
|
module ScreenPopulator
|
4
4
|
|
5
|
+
#
|
6
|
+
# This method will populate all matched screen text fields from the
|
7
|
+
# Hash passed as an argument. The way it find an element is by
|
8
|
+
# matching the Hash key to the name you provided when declaring
|
9
|
+
# the text field on your screen.
|
10
|
+
#
|
11
|
+
# @example
|
12
|
+
# class ExampleScreen
|
13
|
+
# include TE3270
|
14
|
+
#
|
15
|
+
# text_field(:username, 1, 2, 20)
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# ...
|
19
|
+
#
|
20
|
+
# @emulator = TE3270::emulator_for :quick3270
|
21
|
+
# example_screen = ExampleScreen.new(@emulator)
|
22
|
+
# example_screen.populate_screen_with :username => 'a name'
|
23
|
+
#
|
24
|
+
# @param [Hash] hsh the data to use to populate this screen.
|
25
|
+
#
|
5
26
|
def populate_screen_with(hsh)
|
6
27
|
hsh.each do |key, value|
|
7
28
|
self.send("#{key}=", value) if self.respond_to? "#{key}=".to_sym
|
8
29
|
end
|
9
30
|
end
|
31
|
+
|
10
32
|
end
|
11
33
|
end
|
data/lib/te3270/version.rb
CHANGED
data/te3270.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = TE3270::VERSION
|
9
9
|
spec.platform = Gem::Platform::CURRENT
|
10
10
|
spec.authors = ["Jeffrey S. Morgan","Pradeep K. Macharla"]
|
11
|
-
spec.email
|
11
|
+
spec.email = ["jeff.morgan@leandog.com", "pradeep@seleniumframework.com"]
|
12
12
|
spec.description = %q{Automates a 3270 Terminal Emulator}
|
13
13
|
spec.summary = %q{Automates a 3270 Terminal Emulator}
|
14
14
|
spec.homepage = "http://github.com/cheezy/te3270"
|
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.
|
4
|
+
version: '0.3'
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Jeffrey S. Morgan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: page_navigation
|
@@ -84,7 +84,7 @@ dependencies:
|
|
84
84
|
description: Automates a 3270 Terminal Emulator
|
85
85
|
email:
|
86
86
|
- jeff.morgan@leandog.com
|
87
|
-
-
|
87
|
+
- pradeep@seleniumframework.com
|
88
88
|
executables: []
|
89
89
|
extensions: []
|
90
90
|
extra_rdoc_files: []
|