transactd 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2da0b9038e2306c9fb2404d8c8a519daf1481628
|
4
|
+
data.tar.gz: 4a86fa655c4da1ffa828dba27504271c2c073eb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b8441f3548c3ae079603917df147555c61593733a8cf4305a08ffec57be89a387de84024acff57042682e0fa492d6e55d39b7d45ea97e85b36d9bef4d3b1c54
|
7
|
+
data.tar.gz: 9e3442bee7906a55c8997e7ab9a79008670d86200d7a005f7d562b29e15d0b78776a265591f88ccc746a9dfa819d8d54339bfc0e33d800f77b721089804bad35
|
@@ -56,16 +56,18 @@ endif()
|
|
56
56
|
if(NOT COMMAND transactd_read_build_number)
|
57
57
|
macro(transactd_read_build_number TRANSACTD_ROOT)
|
58
58
|
if(WIN32)
|
59
|
-
set(${this_target}
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
else()
|
59
|
+
set(${this_target}_BN_PATH "${TRANSACTD_ROOT}/build/${this_target}/BUILDNUMBER.txt")
|
60
|
+
|
61
|
+
transactd_read_file_to_int("${${this_target}_BN_PATH}")
|
62
|
+
set(TD_BUILD_NUMBER_PRE "${TRANSACTD_READ_FILE_TO_INT_RETURN}")
|
63
|
+
MATH(EXPR TRANSACTD_BUILD_NUMBER "${TD_BUILD_NUMBER_PRE} + 1")
|
64
|
+
if (TRANSACTD_BUILD_NUMBER LESS 1)
|
66
65
|
set(TRANSACTD_BUILD_NUMBER 1)
|
67
|
-
message(STATUS "${this_target} BUILDNUMBER.txt
|
66
|
+
message(STATUS "${this_target} BUILDNUMBER.txt is invalid so BuildNumber = 1")
|
67
|
+
else()
|
68
|
+
message(STATUS "${this_target} increment build number : ${TD_BUILD_NUMBER_PRE} -> ${TRANSACTD_BUILD_NUMBER}")
|
68
69
|
endif()
|
70
|
+
file(WRITE "${${this_target}_BN_PATH}" "${TRANSACTD_BUILD_NUMBER}")
|
69
71
|
else()
|
70
72
|
set(TRANSACTD_BUILD_NUMBER 1)
|
71
73
|
endif()
|
@@ -73,6 +75,22 @@ endmacro()
|
|
73
75
|
endif()
|
74
76
|
|
75
77
|
|
78
|
+
# ==========================================================
|
79
|
+
# read file to integer
|
80
|
+
# ==========================================================
|
81
|
+
if(NOT COMMAND transactd_read_file_to_int)
|
82
|
+
macro(transactd_read_file_to_int TD_READ_PATH)
|
83
|
+
set(TRANSACTD_READ_FILE_TO_INT_RETURN -1)
|
84
|
+
if(EXISTS "${TD_READ_PATH}")
|
85
|
+
file(STRINGS "${TD_READ_PATH}" TRANSACTD_READ_FILE_TO_INT_RETURN)
|
86
|
+
MATH(EXPR TRANSACTD_READ_FILE_TO_INT_RETURN "${TRANSACTD_READ_FILE_TO_INT_RETURN} + 0")
|
87
|
+
else()
|
88
|
+
message(STATUS "${TD_READ_PATH} not found.")
|
89
|
+
endif()
|
90
|
+
endmacro()
|
91
|
+
endif()
|
92
|
+
|
93
|
+
|
76
94
|
# ==========================================================
|
77
95
|
# read version
|
78
96
|
# ==========================================================
|
data/build/tdclrb/CMakeLists.txt
CHANGED
@@ -71,6 +71,8 @@ endif()
|
|
71
71
|
# version info
|
72
72
|
# ==========================================================
|
73
73
|
transactd_read_version("${TRANSACTD_ROOT}")
|
74
|
+
transactd_read_file_to_int("${TRANSACTD_ROOT}/build/tdclrb/GEM_RELEASE_VERSION")
|
75
|
+
set(TDVER_RUBY_RELEASE "${TRANSACTD_READ_FILE_TO_INT_RETURN}")
|
74
76
|
transactd_read_build_number("${TRANSACTD_ROOT}")
|
75
77
|
set(TDVER_RUBY_BUILD "${TRANSACTD_BUILD_NUMBER}")
|
76
78
|
|
@@ -130,8 +132,8 @@ if(WIN32)
|
|
130
132
|
transactd_generate_rc_file(
|
131
133
|
TRANSACTD_ROOT "${TRANSACTD_ROOT}"
|
132
134
|
OUTFILE "${${this_target}_RC_FILE}"
|
133
|
-
F_VER "${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}.${
|
134
|
-
P_VER "${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}.${
|
135
|
+
F_VER "${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}.${TDVER_RUBY_RELEASE}.${TDVER_RUBY_BUILD}"
|
136
|
+
P_VER "${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}.${TDVER_RUBY_RELEASE}.${TDVER_RUBY_BUILD}"
|
135
137
|
P_NAME "Transactd Client ${TRANSACTD_VER_POSTFIX}"
|
136
138
|
F_DESC "Transactd Ruby client"
|
137
139
|
)
|
@@ -210,7 +212,7 @@ endif()
|
|
210
212
|
if(UNIX)
|
211
213
|
set_target_properties(${this_target} PROPERTIES
|
212
214
|
SOVERSION ${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}
|
213
|
-
VERSION ${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}.${
|
215
|
+
VERSION ${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}.${TDVER_RUBY_RELEASE})
|
214
216
|
endif()
|
215
217
|
|
216
218
|
|
@@ -0,0 +1 @@
|
|
1
|
+
1
|
@@ -214,7 +214,7 @@ function readRange($db, $tb) {
|
|
214
214
|
$start = 1;
|
215
215
|
while ($start < RECORD_COUNT) {
|
216
216
|
$tb->clearBuffer();
|
217
|
-
$tb->setFilter('*', 1,
|
217
|
+
$tb->setFilter('*', 1, RECORD_UNIT);
|
218
218
|
$tb->setFV(FDI_ID, $start);
|
219
219
|
$tb->find(Bz\table::findForword);
|
220
220
|
for ($i = $start; $i < $start + RECORD_UNIT; $i++) {
|
@@ -235,7 +235,7 @@ function readRangeSnapshot($db, $tb) {
|
|
235
235
|
$start = 1;
|
236
236
|
while ($start < RECORD_COUNT) {
|
237
237
|
$tb->clearBuffer();
|
238
|
-
$tb->setFilter('*', 1,
|
238
|
+
$tb->setFilter('*', 1, RECORD_UNIT);
|
239
239
|
$tb->setFV(FDI_ID, $start);
|
240
240
|
$tb->find(Bz\table::findForword);
|
241
241
|
for ($i = $start; $i < $start + RECORD_UNIT; $i++) {
|
data/transactd.gemspec
CHANGED
@@ -27,7 +27,7 @@ spec_build = Gem::Specification.new do |s|
|
|
27
27
|
s.homepage = 'http://www.bizstation.jp/ja/transactd'
|
28
28
|
s.license = 'GPL v2'
|
29
29
|
|
30
|
-
# read version from tdapcapi.h
|
30
|
+
# read major/minor version from tdapcapi.h
|
31
31
|
verfile = 'source/bzs/db/protocol/tdap/tdapcapi.h'
|
32
32
|
unless File.exist?(verfile)
|
33
33
|
raise 'Can not found ' + verfile
|
@@ -42,13 +42,21 @@ spec_build = Gem::Specification.new do |s|
|
|
42
42
|
}
|
43
43
|
}
|
44
44
|
unless (versions.has_key?(:CPP_INTERFACE_VER_MAJOR) &&
|
45
|
-
versions.has_key?(:CPP_INTERFACE_VER_MINOR)
|
46
|
-
versions.has_key?(:CPP_INTERFACE_VER_RELEASE))
|
45
|
+
versions.has_key?(:CPP_INTERFACE_VER_MINOR))
|
47
46
|
raise 'Can not read versions from ' + verfile
|
48
47
|
end
|
48
|
+
# read release version from GEM_RELEASE_VERSION
|
49
|
+
verfile = 'build/tdclrb/GEM_RELEASE_VERSION'
|
50
|
+
unless File.exist?(verfile)
|
51
|
+
raise 'Can not found ' + verfile
|
52
|
+
end
|
53
|
+
File.open(verfile, "r") {|f|
|
54
|
+
l = f.read.gsub(/\s\n/, '')
|
55
|
+
versions[:GEM_RELEASE_VERSION] = Integer(l)
|
56
|
+
}
|
49
57
|
s.version = versions[:CPP_INTERFACE_VER_MAJOR].to_s + '.' +
|
50
58
|
versions[:CPP_INTERFACE_VER_MINOR].to_s + '.' +
|
51
|
-
versions[:
|
59
|
+
versions[:GEM_RELEASE_VERSION].to_s
|
52
60
|
|
53
61
|
binary_file = File.join('bin', RUBY_VERSION.match(/\d+\.\d+/)[0], 'transactd.so')
|
54
62
|
binarymode = File.exist?(binary_file)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transactd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BizStation Corp.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-30 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Transactd client for ruby gem
|
14
14
|
email: transactd@bizstation.jp
|
@@ -323,6 +323,7 @@ files:
|
|
323
323
|
- build/tdclrb/gem/Makefile.win32-VS
|
324
324
|
- build/tdclrb/gem/transactd.rb
|
325
325
|
- build/tdclrb/gem_output.cmake
|
326
|
+
- build/tdclrb/GEM_RELEASE_VERSION
|
326
327
|
- ./BUILD_UNIX-JA
|
327
328
|
- ./BUILD_WIN-JA
|
328
329
|
- ./CMakeLists.txt
|