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 +4 -4
- data/History.txt +4 -0
- data/lib/ydim/server_config.rb +1 -2
- data/lib/ydim/version.rb +1 -1
- metadata +3 -5
- data/bin/ydimd +0 -61
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 669770fe5a8004f1698fa1c421d49d4f35a414d5159f1c1732b82c16fffa9452
|
4
|
+
data.tar.gz: 8e764d6b080742a06c580cca2533a2c8f6df9498b86e69382ce435aee662996a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad881091d075cd0374f2b83ad2bb47d8b96e274581463bf96aa17011bb5e0ee470c267f92b9c627bc3f8a0827716ec86731adab73c101253aeac686b2ea80a29
|
7
|
+
data.tar.gz: 7bed78d992d39f73c9edeeff169ab8bee441326afaaaa19c947a844e59315e904fb81d0859e78a80a553a697e8546c822130635c1631eb3c57b3e1446b13623c
|
data/History.txt
CHANGED
data/lib/ydim/server_config.rb
CHANGED
data/lib/ydim/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|
-
|