fix-protocol 0.0.50 → 0.0.53
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 316f1e25ae64a1c178904c60db2939019c96b711
|
4
|
+
data.tar.gz: 93d480f3a398270e4b42eed42271871300f4162f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82a0aa1e26e42fb2bdf5f47804875407f149ee9ea64e31e89819d05f6ae2955973289c6f1436d10db8fac5d655f2547d4fbd557f5b9ad935b3c1412b2849e2e3
|
7
|
+
data.tar.gz: b881f7453af5710c9bd10b3b81d998f51ef263151c4859aa26adfd577bee22f99c44fce2f5ca8826a0da3b1e5edd5f50d54a9cf4d24a6cd73f1f59a076b4e41d
|
data/lib/fix/protocol/field.rb
CHANGED
data/lib/fix/protocol/message.rb
CHANGED
@@ -38,7 +38,7 @@ module Fix
|
|
38
38
|
def dump
|
39
39
|
if valid?
|
40
40
|
dumped = super
|
41
|
-
header.body_length = dumped.gsub(/^8=[^\x01]+\
|
41
|
+
header.body_length = dumped.gsub(/^8=[^\x01]+\x01/, '').gsub(/^9=[^\x01]+\x01/, '').length
|
42
42
|
dumped = super
|
43
43
|
"#{dumped}10=#{'%03d' % (dumped.bytes.inject(&:+) % 256)}\x01"
|
44
44
|
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'fix/protocol/messages/logon_body'
|
2
|
+
|
1
3
|
module Fix
|
2
4
|
module Protocol
|
3
5
|
module Messages
|
@@ -7,10 +9,11 @@ module Fix
|
|
7
9
|
#
|
8
10
|
class Logon < Message
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
12
|
+
extend Forwardable
|
13
|
+
def_delegators :body, :encrypt_method, :encrypt_method=, :heart_bt_int, :heart_bt_int=,
|
14
|
+
:username, :username=, :reset_seq_num, :reset_seq_num=
|
15
|
+
|
16
|
+
unordered :body, klass: LogonBody
|
14
17
|
|
15
18
|
#
|
16
19
|
# Returns the logon-specific errors
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Fix
|
2
|
+
module Protocol
|
3
|
+
module Messages
|
4
|
+
|
5
|
+
#
|
6
|
+
# Body of a logon message
|
7
|
+
#
|
8
|
+
class LogonBody < UnorderedPart
|
9
|
+
|
10
|
+
field :encrypt_method, tag: 98, required: true, type: :integer, default: 0
|
11
|
+
field :heart_bt_int, tag: 108, required: true, type: :integer, default: 30
|
12
|
+
field :username, tag: 553, required: true
|
13
|
+
field :reset_seq_num_flag, tag: 141
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -7,8 +7,8 @@ module Fix
|
|
7
7
|
#
|
8
8
|
class Reject < Message
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
field :ref_seq_num, tag: 45, required: true, type: :integer
|
11
|
+
field :text, tag: 58, required: true
|
12
12
|
|
13
13
|
end
|
14
14
|
end
|
data/lib/fix/protocol/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fix-protocol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.53
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David François
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -140,6 +140,7 @@ files:
|
|
140
140
|
- lib/fix/protocol/messages/heartbeat.rb
|
141
141
|
- lib/fix/protocol/messages/instrument.rb
|
142
142
|
- lib/fix/protocol/messages/logon.rb
|
143
|
+
- lib/fix/protocol/messages/logon_body.rb
|
143
144
|
- lib/fix/protocol/messages/logout.rb
|
144
145
|
- lib/fix/protocol/messages/market_data_incremental_refresh.rb
|
145
146
|
- lib/fix/protocol/messages/market_data_request.rb
|