xmlconv 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +0 -0
  3. data/Gemfile +0 -0
  4. data/History.txt +4 -0
  5. data/LICENSE +0 -0
  6. data/Manifest.txt +0 -0
  7. data/Rakefile +0 -0
  8. data/data/grammar/i2.grammar +0 -0
  9. data/lib/xmlconv/config.rb +0 -0
  10. data/lib/xmlconv/i2/header.rb +0 -0
  11. data/lib/xmlconv/i2/position.rb +0 -0
  12. data/lib/xmlconv/state/global.rb +0 -0
  13. data/lib/xmlconv/state/login.rb +2 -3
  14. data/lib/xmlconv/util/autoload.rb +0 -0
  15. data/lib/xmlconv/util/destination.rb +0 -0
  16. data/lib/xmlconv/util/mail.rb +11 -0
  17. data/lib/xmlconv/util/polling_manager.rb +0 -0
  18. data/lib/xmlconv/util/transaction.rb +0 -0
  19. data/lib/xmlconv/version.rb +1 -1
  20. data/lib/xmlconv/view/login.rb +0 -0
  21. data/readme.md +0 -0
  22. data/test/config.rb +0 -0
  23. data/test/data/sandoz.xundart@bbmb.ch.20110524001038.928592 +0 -0
  24. data/test/data/simple_email.txt +0 -0
  25. data/test/test_i2/address.rb +0 -0
  26. data/test/test_i2/date.rb +0 -0
  27. data/test/test_i2/document.rb +0 -0
  28. data/test/test_i2/header.rb +0 -0
  29. data/test/test_i2/order.rb +0 -0
  30. data/test/test_i2/parser.rb +0 -0
  31. data/test/test_i2/position.rb +0 -0
  32. data/test/test_model/address.rb +0 -0
  33. data/test/test_model/agreement.rb +0 -0
  34. data/test/test_model/bdd.rb +0 -0
  35. data/test/test_model/bsr.rb +0 -0
  36. data/test/test_model/delivery.rb +0 -0
  37. data/test/test_model/delivery_item.rb +0 -0
  38. data/test/test_model/freetext_container.rb +0 -0
  39. data/test/test_model/invoice.rb +0 -0
  40. data/test/test_model/invoice_item.rb +0 -0
  41. data/test/test_model/name.rb +0 -0
  42. data/test/test_model/part_info.rb +0 -0
  43. data/test/test_model/party.rb +0 -0
  44. data/test/test_model/price.rb +0 -0
  45. data/test/test_util/application.rb +0 -0
  46. data/test/test_util/destination.rb +0 -0
  47. data/test/test_util/invoicer.rb +0 -0
  48. data/test/test_util/polling_manager.rb +0 -0
  49. data/test/test_util/transaction.rb +0 -0
  50. data/xmlconv.gemspec +1 -1
  51. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f51b6c935c67d4d4378708ecad815096b3955ab8
4
- data.tar.gz: 3c2a81fd16985404d9c17f5d8917756c365dab0b
3
+ metadata.gz: 132a524daba12cd229c004baff161ecc1aeeb566
4
+ data.tar.gz: d123c9b0db154412052e9e136ca2fe17a7503b81
5
5
  SHA512:
6
- metadata.gz: d080c4f508a5cf819f9ecc8ce3cc3a14d3775c821a9fb2f4d32ac9f23cce5b9d3ca481afbdabbca6c136347a314894df68bb067b7814b4d36798a0eb6858cbc0
7
- data.tar.gz: 85791f42f0005b8b9855cc0c8ab86ebe39a98cf7e3a59f8e21e855bad9da87950069dafd066f85d1b9ac3dbfa5b9d2f1ab5cd62f16a7098d0118b6cf46bd5643
6
+ metadata.gz: af6d05768520e257ee7a071f2ba8a79d2319031a80c8e3a55129b0d48e21c4e34efc2a14f394cd69e4a3b6aa0c41204ebe51374b781621bad95fe6a0164fd891
7
+ data.tar.gz: b04037fe973ab119a22e84791af39e6eccfd106340bb3b4aa21cd510c6c70fe843b9511628305b3b839c022d137f11de1072da9ee17429b29e867b6fa977fba2
data/.travis.yml CHANGED
File without changes
data/Gemfile CHANGED
File without changes
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.3 / 12.06.2017
2
+
3
+ * Fix processing mail and postprocess of sandoz.xmlconv
4
+
1
5
  === 1.1.2 / 07.06.2017
2
6
 
3
7
  * Added forgotten rack_interface.rb
data/LICENSE CHANGED
File without changes
data/Manifest.txt CHANGED
File without changes
data/Rakefile CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -19,10 +19,9 @@ module XmlConv
19
19
  transaction.input = xml_src
20
20
  transaction.reader = 'SunStoreBdd'
21
21
  transaction.writer = XmlConv::CONFIG.writer
22
- poll_config = YAML.load_file(XmlConv::CONFIG.polling_file)
23
- transaction.destination = XmlConv::Util::Destination.book(poll_config.destination)
22
+ transaction.destination = XmlConv::Util::Destination.book(XmlConv::CONFIG.destination)
24
23
  transaction.partner = File.basename(session.request_path)
25
- transaction.origin = session.request_origin
24
+ transaction.origin = session.remote_ip
26
25
  transaction.postprocs.push(['Soap', 'update_partner'])
27
26
  transaction.postprocs.push(['Bbmb2', 'inject', XmlConv::CONFIG.bbmb_url, 'customer_id'])
28
27
  res = session.app.execute_with_response(transaction)
File without changes
File without changes
@@ -13,6 +13,17 @@ module Mail
13
13
  recipients.uniq!
14
14
  return if(recipients.empty?)
15
15
  puts "XmlConv::Util::Mail.notify #{ XmlConv::CONFIG.mail_from} -> #{recipients} subject: #{my_subject}"
16
+ options = { :address => XmlConv::CONFIG.smtp_server,
17
+ :port => XmlConv::CONFIG.smtp_port,
18
+ :domain => XmlConv::CONFIG.smtp_domain,
19
+ :user_name => XmlConv::CONFIG.smtp_user,
20
+ :password => XmlConv::CONFIG.smtp_pass,
21
+ :authentication => XmlConv::CONFIG.smtp_authtype,
22
+ :enable_starttls_auto => true
23
+ }
24
+ ::Mail.defaults do
25
+ delivery_method :smtp, options
26
+ end
16
27
  mail = ::Mail.deliver do
17
28
  from XmlConv::CONFIG.mail_from
18
29
  to recipients
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  module XmlConv
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
File without changes
data/readme.md CHANGED
File without changes
data/test/config.rb CHANGED
File without changes
File without changes
File without changes
data/test/test_i2/date.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
data/xmlconv.gemspec CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "ydbd-pg", '>= 0.5.1'
22
22
  spec.add_dependency "ydbi", '>= 0.5.1'
23
23
  spec.add_dependency "json"
24
- spec.add_dependency "sbsm", '>= 1.4.3'
24
+ spec.add_dependency "sbsm", '>= 1.4.4'
25
25
  spec.add_dependency "htmlgrid"
26
26
  spec.add_dependency "ydim"
27
27
  spec.add_dependency "syck"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlconv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.4.3
75
+ version: 1.4.4
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 1.4.3
82
+ version: 1.4.4
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: htmlgrid
85
85
  requirement: !ruby/object:Gem::Requirement