fix-protocol 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7794c49ae6633b51af2c60befb621831ecff826
4
- data.tar.gz: 95ebd5ecd54b776d0f799c4aaf87e6e091ae4d88
3
+ metadata.gz: 3eaeccdfef785de62e4ba4d4c3fdf35f9b5e7deb
4
+ data.tar.gz: d39b8458438d5d4fbb1bd4ebd4e0f2bec636ff96
5
5
  SHA512:
6
- metadata.gz: 373a1c89bda40efec6577efeb641870ef02f4e5e5444734ec745717821947aac54b659b508ae844a99f97fcafe510be229f69368f1e9bc0e4fbf3553112cb639
7
- data.tar.gz: fb095eff99fac138baaa9c50f5d8c007b0ae6bba593d854de5ab996608bb83f93737fc4e985a090b801e4c9169c4e05c9e7a54b1f876156143670d85382f69da
6
+ metadata.gz: 522826d4dccc9a32ded210c8ca7b1409221091e78c456550217d0543ee401c37cfaac28505ea9d2b49fa5bf4da92913ecda49edc34b2ae81c975891750fd519a
7
+ data.tar.gz: 97d715b60b8e49ab80d917d28f380e232c3e7fe5e7d469bd8875edcd6255bf1a7db44d9bf810252f56e5a1fce76eef9753dca683153f3d7c04e1e3035585301f
data/README.md CHANGED
@@ -1,4 +1,26 @@
1
- FIX Protocol [![Build Status](https://secure.travis-ci.org/Paymium/fix-protocol.png?branch=master)](http://travis-ci.org/Paymium/fix-protocol)
1
+ FIX Protocol [![Build Status](https://secure.travis-ci.org/Paymium/fix-protocol.png?branch=master)](http://travis-ci.org/Paymium/fix-protocol) [![Gem Version](https://badge.fury.io/rb/fix-protocol.svg)](http://badge.fury.io/rb/fix-protocol)
2
2
  =
3
3
 
4
4
  This library aims to provide a set of useful tools to generate, parse and process messages FIX standard.
5
+
6
+ Currently it only supports the FIX messages needed for our own use. Additional messages support should however be quite easy to add.
7
+
8
+ ## Example usage
9
+
10
+ ````ruby
11
+ require 'fix/protocol'
12
+
13
+ msg = FP::Messages::Logon.new
14
+ msg.header.sender_comp_id = 'MY_ID'
15
+ msg.header.target_comp_id = 'MY_COUNTERPARTY'
16
+ msg.username = 'MY_USERNAME'
17
+
18
+ if msg.valid?
19
+ msg.dump
20
+ else
21
+ puts msg.errors.join(", ")
22
+ end
23
+ ````
24
+
25
+ Which would output the sample message : `8=FIX.4.4\x019=105\x0135=A\x0149=MY_ID\x0156=MY_COUNTERPARTY\x0134=0\x0152=20141021-10:33:15\x0198=0\x01108=30\x01553=MY_USERNAME\x01141=\x0110=176\x01`
26
+
@@ -1,3 +1,4 @@
1
+ require 'forwardable'
1
2
  require 'fix/protocol/message_part'
2
3
 
3
4
  module Fix
@@ -4,7 +4,7 @@ module Fix
4
4
  #
5
5
  # The fix-protocol gem version string
6
6
  #
7
- VERSION = '0.0.3'
7
+ VERSION = '0.0.4'
8
8
 
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fix-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David François