transactd 3.5.0-x64-mswin64-100 → 3.6.0-x64-mswin64-100
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 +4 -4
 - data/bin/2.0/transactd.so +0 -0
 - data/bin/2.1/transactd.so +0 -0
 - data/bin/2.2/transactd.so +0 -0
 - data/bin/2.3/transactd.so +0 -0
 - data/bin/common/tdclc_64_3_6.dll +0 -0
 - data/bin/common/tdclcpp_vc100_64mr_3_6.dll +0 -0
 - data/source/bzs/test/tdclrb/transactd_datetime_spec.rb +40 -4
 - data/source/bzs/test/tdclrb/transactd_fetch_spec.rb +785 -0
 - data/source/bzs/test/tdclrb/transactd_pool_spec.rb +21 -1
 - data/source/bzs/test/tdclrb/transactd_setget_spec.rb +450 -0
 - data/source/bzs/test/tdclrb/transactd_spec.rb +14 -2
 - data/source/bzs/test/tdclrb/transactd_v3_spec.rb +1192 -11
 - data/transactd.gemspec +1 -1
 - metadata +7 -5
 - data/bin/common/tdclc_64_3_5.dll +0 -0
 - data/bin/common/tdclcpp_vc100_64mr_3_5.dll +0 -0
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8eecb845c979a7224435a71a77cce086437eb650
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 3f2623111024428241ea3c794411a56a74f66486
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e5b0d94c21ef7a695c82a8dace089b13d2af57e8492ffe102789206dbd0d258dd576df18cbdf4dc03fbaac6224b5bf55faf00b75d6dd9eda1e5959a6a8263734
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 68c7a611f44885a2fa56b6caee492d775d5f57377739c36ab19f2391996dcf178df48c4a500101b90a88ab7d0b19d93cde16796f85815daacdf7a49eb2484e62
         
     | 
    
        data/bin/2.0/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/bin/2.1/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/bin/2.2/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/bin/2.3/transactd.so
    CHANGED
    
    | 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -20,6 +20,14 @@ 
     | 
|
| 
       20 
20 
     | 
    
         
             
            =end
         
     | 
| 
       21 
21 
     | 
    
         
             
            require 'transactd'
         
     | 
| 
       22 
22 
     | 
    
         | 
| 
      
 23 
     | 
    
         
            +
            def hhnnssuu2i(hh, nn, ss, uu)
         
     | 
| 
      
 24 
     | 
    
         
            +
              uu + ss * 256 + nn * 256**2 + hh * 256**3
         
     | 
| 
      
 25 
     | 
    
         
            +
            end
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            def yymmdd2i(yy, mm, dd)
         
     | 
| 
      
 28 
     | 
    
         
            +
              dd + mm * 256 + yy * 256**2
         
     | 
| 
      
 29 
     | 
    
         
            +
            end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
       23 
31 
     | 
    
         
             
            describe Transactd, 'datetime' do
         
     | 
| 
       24 
32 
     | 
    
         
             
              it 'get BtrDate' do
         
     | 
| 
       25 
33 
     | 
    
         
             
                i_nowdate = Transactd::getNowDate() # get today as integer
         
     | 
| 
         @@ -28,8 +36,8 @@ describe Transactd, 'datetime' do 
     | 
|
| 
       28 
36 
     | 
    
         
             
                #p i_nowdate
         
     | 
| 
       29 
37 
     | 
    
         
             
                #p s_i_nowdate + ' ' + s_i_nowdate.encoding.to_s
         
     | 
| 
       30 
38 
     | 
    
         
             
                #p s_i_nowdate2 + ' ' + s_i_nowdate2.encoding.to_s
         
     | 
| 
       31 
     | 
    
         
            -
                nowdate = Transactd::BtrDate.new()
         
     | 
| 
       32 
     | 
    
         
            -
                nowdate.i = i_nowdate 
     | 
| 
      
 39 
     | 
    
         
            +
                nowdate = Transactd::BtrDate.new()  # get today as BtrDate
         
     | 
| 
      
 40 
     | 
    
         
            +
                nowdate.i = i_nowdate
         
     | 
| 
       33 
41 
     | 
    
         
             
                s_nowdate  = Transactd::btrdtoa(nowdate)
         
     | 
| 
       34 
42 
     | 
    
         
             
                s_nowdate2 = Transactd::btrdtoa(nowdate, true)
         
     | 
| 
       35 
43 
     | 
    
         
             
                #p nowdate
         
     | 
| 
         @@ -37,6 +45,19 @@ describe Transactd, 'datetime' do 
     | 
|
| 
       37 
45 
     | 
    
         
             
                #p s_nowdate2 + ' ' + s_nowdate2.encoding.to_s
         
     | 
| 
       38 
46 
     | 
    
         
             
                expect(s_i_nowdate).to eq s_nowdate
         
     | 
| 
       39 
47 
     | 
    
         
             
                expect(s_i_nowdate2).to eq s_nowdate2
         
     | 
| 
      
 48 
     | 
    
         
            +
                expect(nowdate.yy.class).to eq Fixnum
         
     | 
| 
      
 49 
     | 
    
         
            +
                expect(nowdate.mm.class).to eq Fixnum
         
     | 
| 
      
 50 
     | 
    
         
            +
                expect(nowdate.dd.class).to eq Fixnum
         
     | 
| 
      
 51 
     | 
    
         
            +
                expect("#{format('%04d', nowdate.yy)}/#{format('%02d', nowdate.mm)}/#{format('%02d', nowdate.dd)}").to eq s_nowdate
         
     | 
| 
      
 52 
     | 
    
         
            +
                expect("#{format('%04d', nowdate.yy)}-#{format('%02d', nowdate.mm)}-#{format('%02d', nowdate.dd)}").to eq s_nowdate2
         
     | 
| 
      
 53 
     | 
    
         
            +
                expect(i_nowdate).to eq yymmdd2i(nowdate.yy, nowdate.mm, nowdate.dd)
         
     | 
| 
      
 54 
     | 
    
         
            +
                nowdate.yy = 2014
         
     | 
| 
      
 55 
     | 
    
         
            +
                nowdate.mm = 8
         
     | 
| 
      
 56 
     | 
    
         
            +
                nowdate.dd = 15
         
     | 
| 
      
 57 
     | 
    
         
            +
                expect(nowdate.yy).to eq 2014
         
     | 
| 
      
 58 
     | 
    
         
            +
                expect(nowdate.mm).to eq 8
         
     | 
| 
      
 59 
     | 
    
         
            +
                expect(nowdate.dd).to eq 15
         
     | 
| 
      
 60 
     | 
    
         
            +
                expect(nowdate.i).to eq yymmdd2i(2014, 8, 15)
         
     | 
| 
       40 
61 
     | 
    
         
             
              end
         
     | 
| 
       41 
62 
     | 
    
         | 
| 
       42 
63 
     | 
    
         
             
              it 'get BtrTime' do
         
     | 
| 
         @@ -44,12 +65,27 @@ describe Transactd, 'datetime' do 
     | 
|
| 
       44 
65 
     | 
    
         
             
                s_i_nowtime  = Transactd::btrttoa(i_nowtime)
         
     | 
| 
       45 
66 
     | 
    
         
             
                #p i_nowtime
         
     | 
| 
       46 
67 
     | 
    
         
             
                #p s_i_nowtime + ' ' + s_i_nowtime.encoding.to_s
         
     | 
| 
       47 
     | 
    
         
            -
                nowtime = Transactd::BtrTime.new()
         
     | 
| 
       48 
     | 
    
         
            -
                nowtime.i = i_nowtime 
     | 
| 
      
 68 
     | 
    
         
            +
                nowtime = Transactd::BtrTime.new()    # get now time as BtrTime
         
     | 
| 
      
 69 
     | 
    
         
            +
                nowtime.i = i_nowtime
         
     | 
| 
       49 
70 
     | 
    
         
             
                s_nowtime  = Transactd::btrttoa(nowtime)
         
     | 
| 
       50 
71 
     | 
    
         
             
                #p nowtime
         
     | 
| 
       51 
72 
     | 
    
         
             
                #p s_nowtime + ' ' + s_nowtime.encoding.to_s
         
     | 
| 
       52 
73 
     | 
    
         
             
                expect(s_i_nowtime).to eq s_nowtime
         
     | 
| 
      
 74 
     | 
    
         
            +
                expect(nowtime.hh.class).to eq Fixnum
         
     | 
| 
      
 75 
     | 
    
         
            +
                expect(nowtime.nn.class).to eq Fixnum
         
     | 
| 
      
 76 
     | 
    
         
            +
                expect(nowtime.ss.class).to eq Fixnum
         
     | 
| 
      
 77 
     | 
    
         
            +
                expect(nowtime.uu.class).to eq Fixnum
         
     | 
| 
      
 78 
     | 
    
         
            +
                expect("#{format('%02d', nowtime.hh)}:#{format('%02d', nowtime.nn)}:#{format('%02d', nowtime.ss)}").to eq s_nowtime
         
     | 
| 
      
 79 
     | 
    
         
            +
                expect(i_nowtime).to eq hhnnssuu2i(nowtime.hh, nowtime.nn, nowtime.ss, nowtime.uu)
         
     | 
| 
      
 80 
     | 
    
         
            +
                nowtime.hh = 1
         
     | 
| 
      
 81 
     | 
    
         
            +
                nowtime.nn = 2
         
     | 
| 
      
 82 
     | 
    
         
            +
                nowtime.ss = 31
         
     | 
| 
      
 83 
     | 
    
         
            +
                nowtime.uu = 32
         
     | 
| 
      
 84 
     | 
    
         
            +
                expect(nowtime.hh).to eq 1
         
     | 
| 
      
 85 
     | 
    
         
            +
                expect(nowtime.nn).to eq 2
         
     | 
| 
      
 86 
     | 
    
         
            +
                expect(nowtime.ss).to eq 31
         
     | 
| 
      
 87 
     | 
    
         
            +
                expect(nowtime.uu).to eq 32
         
     | 
| 
      
 88 
     | 
    
         
            +
                expect(nowtime.i).to eq hhnnssuu2i(1, 2, 31, 32)
         
     | 
| 
       53 
89 
     | 
    
         
             
              end
         
     | 
| 
       54 
90 
     | 
    
         | 
| 
       55 
91 
     | 
    
         
             
              it 'get BtrDateTime' do
         
     |