xmlconv 1.1.1 → 1.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: 1a0cc0602375720c02d07d9739b38ff86f435f38
4
- data.tar.gz: 7f3d6a5737221b3f8a6edde132d0371930f7b155
3
+ metadata.gz: f51b6c935c67d4d4378708ecad815096b3955ab8
4
+ data.tar.gz: 3c2a81fd16985404d9c17f5d8917756c365dab0b
5
5
  SHA512:
6
- metadata.gz: 433c00703555c1a93a404bf2b9214422598e1a7d13123a161ee1b2eb48a99108f20515099c7b401168511f3d59d4ac8b13cb5e1a1aee9c73cb923205d705cf19
7
- data.tar.gz: 4e8b6f90feec79de4276ba716b4418dfe5cfc33cddeea9981ab2b3df03ef7e5ddaa55f053b3d22cc3a3825174d405d2c080737a468ad6046fe17ea0131f7dd8b
6
+ metadata.gz: d080c4f508a5cf819f9ecc8ce3cc3a14d3775c821a9fb2f4d32ac9f23cce5b9d3ca481afbdabbca6c136347a314894df68bb067b7814b4d36798a0eb6858cbc0
7
+ data.tar.gz: 85791f42f0005b8b9855cc0c8ab86ebe39a98cf7e3a59f8e21e855bad9da87950069dafd066f85d1b9ac3dbfa5b9d2f1ab5cd62f16a7098d0118b6cf46bd5643
@@ -8,7 +8,7 @@ sudo: false
8
8
  before_install:
9
9
  - gem --version
10
10
 
11
- script: bundle exec test/suite.rb
11
+ script: bundle exec ruby test/suite.rb
12
12
 
13
13
  rvm:
14
14
  - 2.3.1
@@ -1,3 +1,7 @@
1
+ === 1.1.2 / 07.06.2017
2
+
3
+ * Added forgotten rack_interface.rb
4
+
1
5
  === 1.1.1 / 06.06.2017
2
6
 
3
7
  * Adapted to use the rack based SBSM
@@ -35,6 +35,7 @@ module XmlConv
35
35
  'invoice_item_format' => "Commission %s\n%s %1.2f Turnover\nout of %i transmitted invoices",
36
36
  'log_file' => STDERR,
37
37
  'log_level' => 'INFO',
38
+ 'log_pattern' => File.join(Dir.pwd, 'log', '%Y/%m/%d/app.log'),
38
39
  'mail_host' => 'localhost',
39
40
  'mail_from' => 'xmlconv@ywesee.com',
40
41
  'pass_hash' => nil,
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'date'
4
+ require 'sbsm/app'
5
+
6
+ module XmlConv
7
+ module Util
8
+ class RackInterface < SBSM::RackInterface
9
+ ENABLE_ADMIN = true
10
+ SESSION = XmlConv::Util::Session
11
+ VALIDATOR = XmlConv::Util::Validator
12
+ def initialize(app: XmlConvApp,
13
+ auth: nil,
14
+ validator: XmlConv::Util::Validator)
15
+ [ File.join(Dir.pwd, 'etc', 'config.yml'),
16
+ ].each do |config_file|
17
+ if File.exist?(config_file)
18
+ SBSM.info "XmlConv.config.load from #{config_file}"
19
+ XmlConv.config.load (config_file)
20
+ break
21
+ end
22
+ end
23
+ @app = app
24
+ super(app: app,
25
+ session_class: XmlConv::Util::Session,
26
+ unknown_user: XmlConv::Util::KnownUser,
27
+ validator: validator,
28
+ cookie_name: 'virbac.bbmb'
29
+ )
30
+ end
31
+ end
32
+ end
33
+ end
@@ -1,3 +1,3 @@
1
1
  module XmlConv
2
- VERSION = '1.1.1'
2
+ VERSION = '1.1.2'
3
3
  end
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlconv
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz, Niklaus Giger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-06 00:00:00.000000000 Z
11
+ date: 2017-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: odba
@@ -309,7 +309,6 @@ email: mhatakeyama@ywesee.com, zdavatz@ywesee.com, ngiger@ywesee.com
309
309
  executables:
310
310
  - migrate_xmlconv_to_utf_8
311
311
  - xmlconv_admin
312
- - xmlconvd
313
312
  extensions: []
314
313
  extra_rdoc_files: []
315
314
  files:
@@ -319,11 +318,9 @@ files:
319
318
  - History.txt
320
319
  - LICENSE
321
320
  - Manifest.txt
322
- - README.txt
323
321
  - Rakefile
324
322
  - bin/migrate_xmlconv_to_utf_8
325
323
  - bin/xmlconv_admin
326
- - bin/xmlconvd
327
324
  - converter_scripts/convert.rb
328
325
  - converter_scripts/xmlconv_convert.rb
329
326
  - data/grammar/i2.grammar
@@ -369,6 +366,7 @@ files:
369
366
  - lib/xmlconv/util/known_user.rb
370
367
  - lib/xmlconv/util/mail.rb
371
368
  - lib/xmlconv/util/polling_manager.rb
369
+ - lib/xmlconv/util/rack_interface.rb
372
370
  - lib/xmlconv/util/session.rb
373
371
  - lib/xmlconv/util/transaction.rb
374
372
  - lib/xmlconv/util/validator.rb
data/README.txt DELETED
@@ -1,25 +0,0 @@
1
- = xmlconv
2
-
3
- * http://scm.ywesee.com/?p=xmlconv/.git;a=summary
4
-
5
- == DESCRIPTION:
6
-
7
- xmlconverter, convert XML to flat files.
8
-
9
- == REQUIREMENTS:
10
-
11
- * sandozxmlconv - sudo gem install sandozxmlconv
12
-
13
- == INSTALL:
14
-
15
- * sudo gem install xmlconv
16
-
17
- == DEVELOPERS:
18
-
19
- * Zeno R.R. Davatz
20
- * Masaomi Hatakeyama
21
- * Hannes Wyss (up to Version 1.0)
22
-
23
- == LICENSE:
24
-
25
- GPLv2.0
@@ -1,51 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # XmlConv -- xmlconv2 -- 10.05.2012 -- yasaka@ywesee.com
3
- # XmlConv -- xmlconv2 -- 07.06.2004 -- hwyss@ywesee.com
4
-
5
- require 'drb/drb'
6
- require 'odba/connection_pool'
7
- require 'xmlconv/config'
8
- require 'xmlconv/util/application'
9
- require 'xmlconv/util/autoload'
10
- require 'logger'
11
-
12
- config = XmlConv::CONFIG
13
-
14
- log_file = config.log_file
15
- if(log_file.is_a?(String))
16
- FileUtils.mkdir_p(File.dirname(log_file))
17
- log_file = File.open(log_file, 'a')
18
- at_exit { log_file.close }
19
- end
20
- logger = Logger.new(log_file)
21
- logger.level = Logger.const_get(config.log_level)
22
- XmlConv::LOGGER = logger
23
- if config.respond_to? :mail_suppress_sending
24
- ::Mail.defaults do delivery_method :test end
25
- puts "Mail.mail_suppress_sending"
26
- elsif config.respond_to?(:smtp_server)
27
- options = {}
28
- options[:address] = config.smtp_server
29
- options[:port] = config.smtp_port
30
- options[:domain] = config.smtp_domain
31
- options[:user_name] = config.smtp_user
32
- options[:password] = config.smtp_pass
33
- options[:authentication] = 'plain'
34
- options[:enable_starttls_auto] = true
35
- puts "Mail.defaults set to :smpt #{options}"
36
- ::Mail.defaults do delivery_method :smtp, options end
37
- end
38
-
39
- XmlConv::Util.autoload(config.plugin_dir, 'plugin')
40
- XmlConv::Util.autoload(config.postproc_dir, 'postproc')
41
-
42
- ODBA.storage.dbi = ODBA::ConnectionPool.new("DBI:Pg:#{config.db_name}",
43
- config.db_user, config.db_auth)
44
- ODBA.cache.setup
45
- ODBA.cache.prefetch
46
-
47
- $0 = config.program_name
48
- DRb.start_service(config.server_url, XmlConvApp.new)
49
- logger.info(config.program_name) { "drb-service listening on #{config.server_url}" }
50
-
51
- DRb.thread.join