transactd 2.0.0 → 2.0.1

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: f0d4476167db8386d79022f49d8623266044df1b
4
- data.tar.gz: 0e646030abc99d95589be9851a6c9ee9f2a8317a
3
+ metadata.gz: 2da0b9038e2306c9fb2404d8c8a519daf1481628
4
+ data.tar.gz: 4a86fa655c4da1ffa828dba27504271c2c073eb0
5
5
  SHA512:
6
- metadata.gz: c8c1e2b9d5e81cf7fe8b02ffb59775a72bfabf7337fca99ef59b092f63ff805cced4d671292f28054bfd6266f4d2495869b5ceba05cb7b6ed1ccea2b242c1214
7
- data.tar.gz: f8b2ea5deece11ed0584277dd654badec464b5fd49acf9bfc4e6fb520f16935272b6817b7aff39be1601373844bc49174a74350a9106598b509ccbdce00ac080
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}_BuildNumber_path "${TRANSACTD_ROOT}/build/${this_target}/BUILDNUMBER.txt")
60
- if(EXISTS "${${this_target}_BuildNumber_path}")
61
- file(STRINGS "${${this_target}_BuildNumber_path}" TRANSACTD_BUILD_NUMBER_PRE)
62
- MATH(EXPR TRANSACTD_BUILD_NUMBER "${TRANSACTD_BUILD_NUMBER_PRE} + 1")
63
- file(WRITE "${${this_target}_BuildNumber_path}" "${TRANSACTD_BUILD_NUMBER}")
64
- message(STATUS "${this_target} increment build number : ${TRANSACTD_BUILD_NUMBER_PRE} -> ${TRANSACTD_BUILD_NUMBER}")
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 not found so BuildNumber = ${TRANSACTD_BUILD_NUMBER}")
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
  # ==========================================================
@@ -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}.${TDVER_CPP_INTERFACE_VER_RELEASE}.${TDVER_RUBY_BUILD}"
134
- P_VER "${TDVER_CPP_INTERFACE_VER_MAJOR}.${TDVER_CPP_INTERFACE_VER_MINOR}.${TDVER_CPP_INTERFACE_VER_RELEASE}.${TDVER_RUBY_BUILD}"
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}.${TDVER_CPP_INTERFACE_VER_RELEASE})
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
@@ -40,6 +40,8 @@ if ERRORLEVEL 1 (
40
40
 
41
41
  if "%~1" == "install" goto :INSTALLCMD
42
42
  if "%~1" == "site-install" goto :INSTALLCMD
43
+ if "%~2" == "install" goto :INSTALLCMD
44
+ if "%~2" == "site-install" goto :INSTALLCMD
43
45
  exit /b 0
44
46
 
45
47
  :INSTALLCMD
@@ -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, RECORD_COUNT);
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, RECORD_COUNT);
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[:CPP_INTERFACE_VER_RELEASE].to_s
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.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-25 00:00:00.000000000 Z
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