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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5102faea87997e857762e741ce242ab0bb77de92
4
- data.tar.gz: 42d1444622dbdcee26eba2c661f88856111817f8
3
+ metadata.gz: 884918d1a9dfbd02b28e27f4c912259c853d6461
4
+ data.tar.gz: f9f4db002c0330631fd3430bf2f7cfa4b27f041b
5
5
  SHA512:
6
- metadata.gz: 66f689c9e4a9f2468dfd3dada7943201bce3267a7ac0b5cf582b9a898a86d54ee21c1e6b42c8e3752f8d65b03df42c1f519da5f29046e9d8b997d3a38c633ecc
7
- data.tar.gz: dc73b6477a9e93df44071f4172514d97f5053c34cbfbe5f42b812f81ac1ac944f07cbe8c52e2e55642a152e387d3c26d14ffb2d7371c3cc4f95cc3551570f4c3
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
@@ -44,7 +44,7 @@ module TE3270
44
44
  # Disconnects the Extra System connection
45
45
  #
46
46
  def disconnect
47
- system.Quit
47
+ session.Close
48
48
  end
49
49
 
50
50
  #
@@ -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
@@ -1,4 +1,4 @@
1
1
  module TE3270
2
- VERSION = "0.2"
2
+ VERSION = "0.3"
3
3
  end
4
4
 
@@ -80,7 +80,7 @@ describe TE3270::Emulators::Extra do
80
80
  end
81
81
 
82
82
  it 'should disconnect from a session' do
83
- extra_system.should_receive(:Quit)
83
+ extra_session.should_receive(:Close)
84
84
  extra.connect
85
85
  extra.disconnect
86
86
  end
@@ -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 = ["jeff.morgan@leandog.com","macharla.pradeep.kumar@gmail.com"]
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.2'
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-09 00:00:00.000000000 Z
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
- - macharla.pradeep.kumar@gmail.com
87
+ - pradeep@seleniumframework.com
88
88
  executables: []
89
89
  extensions: []
90
90
  extra_rdoc_files: []