tordist 0.1.1 → 0.1.2

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: ad1215287f3a9bcc437e62ec6245c63fca6ed88c
4
- data.tar.gz: 598f23d5df18834dda5fc4bda53d858c4292b8fb
3
+ metadata.gz: 8284011595f0e408417d88e4b474edd306aac4c7
4
+ data.tar.gz: 84b94e1533005b7133cef5ad225ccdfcc7698f1f
5
5
  SHA512:
6
- metadata.gz: 1725829c95cad881ddf6b3ca5a4eb8d83cf5d890f49eb96a27f39f2ea96aa19e33fccc01d053dc20c8d016db6e8b1ea6cd5554a89df6a0144309e8d14e0f3616
7
- data.tar.gz: 4b5988d4c6edaa8a619b815993c95d2a2cfa84d0b9053b7b66dda606ada1f4802a486981d5b095ab59861fc8c96b39156b6f773038ad5bb2e05b2360e814a190
6
+ metadata.gz: f47e70324365b068bdfd7247a787f880ed5312b69c65814b3d55e638e014bb1570786e417776710d12b7ba207973e3fa8f608e5225fe28d3d12ad6c4cf012146
7
+ data.tar.gz: f85d9cbc6dbe37eca3c63da65a755442ea0f7119471b90fee437e6cbfcfa8f11630e9b83dfd7ae3bb0baeb96cf4546344fcb09cdc67febbddc9e91e4dd15af7d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tordist (0.1.0)
4
+ tordist (0.1.1)
5
5
  attr_extras
6
6
 
7
7
  GEM
@@ -1,5 +1,9 @@
1
1
  class Tordist::Generator
2
2
 
3
+ def initialize(clearing_id)
4
+ @clearing_id = clearing_id
5
+ end
6
+
3
7
  def generate(transactions)
4
8
  @transactions = transactions
5
9
  tordist_string = header
@@ -11,7 +15,6 @@ class Tordist::Generator
11
15
  end
12
16
 
13
17
  def body
14
- # BBEEF3 0783382000000000680000000000000V216044400001809257C1 +000000000000000
15
18
  body_string = ""
16
19
  @transactions.each do |transaction|
17
20
  @transaction = transaction
@@ -27,7 +30,7 @@ class Tordist::Generator
27
30
  end
28
31
 
29
32
  def header_broker
30
- @transactions.first.broker
33
+ @clearing_id
31
34
  end
32
35
 
33
36
  def symbol
@@ -1,3 +1,3 @@
1
1
  module Tordist
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/tordist-0.1.1.gem ADDED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tordist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Investtools
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-27 00:00:00.000000000 Z
11
+ date: 2017-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -117,6 +117,7 @@ files:
117
117
  - lib/tordist/transaction.rb
118
118
  - lib/tordist/version.rb
119
119
  - tordist-0.1.0.gem
120
+ - tordist-0.1.1.gem
120
121
  - tordist.gemspec
121
122
  homepage: https://github.com/investtools/tordist
122
123
  licenses: