xmlconv 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -0
- data/Gemfile +0 -0
- data/History.txt +4 -0
- data/LICENSE +0 -0
- data/Manifest.txt +0 -0
- data/Rakefile +0 -0
- data/data/grammar/i2.grammar +0 -0
- data/lib/xmlconv/config.rb +0 -0
- data/lib/xmlconv/i2/header.rb +0 -0
- data/lib/xmlconv/i2/position.rb +0 -0
- data/lib/xmlconv/state/global.rb +0 -0
- data/lib/xmlconv/state/login.rb +2 -3
- data/lib/xmlconv/util/autoload.rb +0 -0
- data/lib/xmlconv/util/destination.rb +0 -0
- data/lib/xmlconv/util/mail.rb +11 -0
- data/lib/xmlconv/util/polling_manager.rb +0 -0
- data/lib/xmlconv/util/transaction.rb +0 -0
- data/lib/xmlconv/version.rb +1 -1
- data/lib/xmlconv/view/login.rb +0 -0
- data/readme.md +0 -0
- data/test/config.rb +0 -0
- data/test/data/sandoz.xundart@bbmb.ch.20110524001038.928592 +0 -0
- data/test/data/simple_email.txt +0 -0
- data/test/test_i2/address.rb +0 -0
- data/test/test_i2/date.rb +0 -0
- data/test/test_i2/document.rb +0 -0
- data/test/test_i2/header.rb +0 -0
- data/test/test_i2/order.rb +0 -0
- data/test/test_i2/parser.rb +0 -0
- data/test/test_i2/position.rb +0 -0
- data/test/test_model/address.rb +0 -0
- data/test/test_model/agreement.rb +0 -0
- data/test/test_model/bdd.rb +0 -0
- data/test/test_model/bsr.rb +0 -0
- data/test/test_model/delivery.rb +0 -0
- data/test/test_model/delivery_item.rb +0 -0
- data/test/test_model/freetext_container.rb +0 -0
- data/test/test_model/invoice.rb +0 -0
- data/test/test_model/invoice_item.rb +0 -0
- data/test/test_model/name.rb +0 -0
- data/test/test_model/part_info.rb +0 -0
- data/test/test_model/party.rb +0 -0
- data/test/test_model/price.rb +0 -0
- data/test/test_util/application.rb +0 -0
- data/test/test_util/destination.rb +0 -0
- data/test/test_util/invoicer.rb +0 -0
- data/test/test_util/polling_manager.rb +0 -0
- data/test/test_util/transaction.rb +0 -0
- data/xmlconv.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 132a524daba12cd229c004baff161ecc1aeeb566
|
4
|
+
data.tar.gz: d123c9b0db154412052e9e136ca2fe17a7503b81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/LICENSE
CHANGED
File without changes
|
data/Manifest.txt
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/data/grammar/i2.grammar
CHANGED
File without changes
|
data/lib/xmlconv/config.rb
CHANGED
File without changes
|
data/lib/xmlconv/i2/header.rb
CHANGED
File without changes
|
data/lib/xmlconv/i2/position.rb
CHANGED
File without changes
|
data/lib/xmlconv/state/global.rb
CHANGED
File without changes
|
data/lib/xmlconv/state/login.rb
CHANGED
@@ -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
|
-
|
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.
|
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
|
data/lib/xmlconv/util/mail.rb
CHANGED
@@ -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
|
data/lib/xmlconv/version.rb
CHANGED
data/lib/xmlconv/view/login.rb
CHANGED
File without changes
|
data/readme.md
CHANGED
File without changes
|
data/test/config.rb
CHANGED
File without changes
|
File without changes
|
data/test/data/simple_email.txt
CHANGED
File without changes
|
data/test/test_i2/address.rb
CHANGED
File without changes
|
data/test/test_i2/date.rb
CHANGED
File without changes
|
data/test/test_i2/document.rb
CHANGED
File without changes
|
data/test/test_i2/header.rb
CHANGED
File without changes
|
data/test/test_i2/order.rb
CHANGED
File without changes
|
data/test/test_i2/parser.rb
CHANGED
File without changes
|
data/test/test_i2/position.rb
CHANGED
File without changes
|
data/test/test_model/address.rb
CHANGED
File without changes
|
File without changes
|
data/test/test_model/bdd.rb
CHANGED
File without changes
|
data/test/test_model/bsr.rb
CHANGED
File without changes
|
data/test/test_model/delivery.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/test/test_model/invoice.rb
CHANGED
File without changes
|
File without changes
|
data/test/test_model/name.rb
CHANGED
File without changes
|
File without changes
|
data/test/test_model/party.rb
CHANGED
File without changes
|
data/test/test_model/price.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/test/test_util/invoicer.rb
CHANGED
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.
|
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.
|
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.
|
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.
|
82
|
+
version: 1.4.4
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: htmlgrid
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|