ydim 1.1.2 → 1.1.4

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
  SHA256:
3
- metadata.gz: 70fddd3a98f0a72afb88a5a077c8c87a8ece2dd43fe3f931770cc4cf93c68f5b
4
- data.tar.gz: 95b0da6a7782c62cc2b6092c00e98959e11e24cff49e24183eb33c1ca3268459
3
+ metadata.gz: 669770fe5a8004f1698fa1c421d49d4f35a414d5159f1c1732b82c16fffa9452
4
+ data.tar.gz: 8e764d6b080742a06c580cca2533a2c8f6df9498b86e69382ce435aee662996a
5
5
  SHA512:
6
- metadata.gz: ccc6c17ba86f5cd5f5a0fd22e6a102e5653b085a17e32a520bf7926a2eba536a62db1768fad08ca0da1a4a2f0faaa2fb57b9717de8fd8ac91e20dfd022c5bab5
7
- data.tar.gz: '0018900fa6e3a092df34f1a58389773f86f9d73cb0ef01aa4e8be276c7a74279302257d05027f55d4dcb95a3d2042243b8706ce3f703d25329597d62d6170ce3'
6
+ metadata.gz: ad881091d075cd0374f2b83ad2bb47d8b96e274581463bf96aa17011bb5e0ee470c267f92b9c627bc3f8a0827716ec86731adab73c101253aeac686b2ea80a29
7
+ data.tar.gz: 7bed78d992d39f73c9edeeff169ab8bee441326afaaaa19c947a844e59315e904fb81d0859e78a80a553a697e8546c822130635c1631eb3c57b3e1446b13623c
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.1.4/ 21.01.2023
2
+
3
+ * Read configuration values only from /etc/ydim
4
+
1
5
  === 1.1.1/ 23.01.2018
2
6
 
3
7
  * Update to ydbi 0.5.6 to avoid error with PGconn
@@ -7,9 +7,8 @@ require 'rclconf'
7
7
 
8
8
  module YDIM
9
9
  class Server
10
- ydim_default_dir = File.join(ENV['HOME'], '.ydim')
10
+ ydim_default_dir = '/etc/ydim'
11
11
  default_config_files = [
12
- File.join(ydim_default_dir, 'ydimd.yml'),
13
12
  '/etc/ydim/ydimd.yml',
14
13
  ]
15
14
  defaults = {
data/lib/ydim/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module YDIM
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ydim
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
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: 2023-01-04 00:00:00.000000000 Z
11
+ date: 2023-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-smtp
@@ -337,7 +337,6 @@ email: mhatakeyama@ywesee.com, zdavatz@ywesee.com, ngiger@ywesee.com
337
337
  executables:
338
338
  - ydim-edit
339
339
  - ydim-inject
340
- - ydimd
341
340
  extensions: []
342
341
  extra_rdoc_files: []
343
342
  files:
@@ -352,7 +351,6 @@ files:
352
351
  - Rakefile
353
352
  - bin/ydim-edit
354
353
  - bin/ydim-inject
355
- - bin/ydimd
356
354
  - get_db_ydim
357
355
  - install.rb
358
356
  - lib/pdfinvoice/config.rb
@@ -416,7 +414,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
416
414
  - !ruby/object:Gem::Version
417
415
  version: '0'
418
416
  requirements: []
419
- rubygems_version: 3.4.1
417
+ rubygems_version: 3.4.4
420
418
  signing_key:
421
419
  specification_version: 4
422
420
  summary: ywesee distributed invoice manager
data/bin/ydimd DELETED
@@ -1,61 +0,0 @@
1
- #!/usr/bin/env ruby231
2
- # ypdmd -- ydim -- 12.01.2005 -- hwyss@ywesee.com
3
-
4
- require 'yaml'
5
- require 'syck'
6
-
7
- require 'ydim/server'
8
- require 'ydim/odba'
9
- require 'logger'
10
- require 'rclconf'
11
- require 'drb'
12
- require 'fileutils'
13
- require 'odba/connection_pool'
14
- require 'odba/drbwrapper'
15
- require 'pg'
16
- require 'dbi'
17
- require 'dbi/version'
18
- require 'dbd/Pg'
19
-
20
- $0 = __FILE__
21
-
22
- config = YDIM::Server.config
23
- config.load(config.config)
24
-
25
- ODBA.storage.dbi = ODBA::ConnectionPool.new(config.db_driver_url,
26
- config.db_user, config.db_auth, :client_encoding => 'LATIN1')
27
- ODBA.cache.setup
28
-
29
- DRb.install_id_conv ODBA::DRbIdConv.new
30
-
31
- log_file = config.log_file
32
- if(log_file.is_a?(String))
33
- FileUtils.mkdir_p(File.dirname(log_file))
34
- log_file = File.open(log_file, 'a')
35
- at_exit { log_file.close }
36
- end
37
- logger = Logger.new(log_file)
38
- logger.level = Logger.const_get(config.log_level)
39
-
40
- server = YDIM::Server.new(config, logger)
41
- server.extend(DRbUndumped)
42
-
43
- if(config.detach)
44
- pidfile = '/var/run/ydimd.pid'
45
- File.open(pidfile, 'w') { |fh| fh.puts $$ }
46
- at_exit { File.unlink(pidfile) }
47
- Process.fork and exit!(0)
48
- end
49
-
50
- begin
51
- url = config.server_url
52
- DRb.start_service(url, server)
53
- $SAFE = 1
54
- logger.info('start') {
55
- sprintf("starting ydim-server on %s", config.server_url) }
56
- DRb.thread.join
57
- rescue Exception => error
58
- logger.error('fatal') { error }
59
- raise
60
- end
61
-