tapsoob 0.4.20-java → 0.4.21-java
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/lib/tapsoob/operation.rb +2 -2
 - data/lib/tapsoob/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7f23fae83b548006f4c32b04c4996ec88de7d631026c886e0abd221368b89382
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 19c023656dbb303a860d0396f0f0f2ce734d90b1998515f0ecaec53e4939fd7f
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9390e1a84e41f650e204fea3162737a1b52c9a6bb08f884d36e4a29b9df45eb2dffffde1cac8dad728cb36b9897805dc482a8690d6e5f05679455edc071203b3
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: afb4fd2228e48a463d5d18a3f63f379ec2201ddd5e405c2293a7b3bb08d7e2522160d413e0e3bea234d4e69b6f998a32951337ba078ad180bdd4dfc33a73cf98
         
     | 
    
        data/lib/tapsoob/operation.rb
    CHANGED
    
    | 
         @@ -393,7 +393,7 @@ module Tapsoob 
     | 
|
| 
       393 
393 
     | 
    
         
             
                  log.info "#{tables.size} tables, #{format_number(record_count)} records"
         
     | 
| 
       394 
394 
     | 
    
         | 
| 
       395 
395 
     | 
    
         
             
                  tables.each do |table_name, count|
         
     | 
| 
       396 
     | 
    
         
            -
                    next unless File.exists?(File.join(dump_path, "data", "#{table_name}.json"))
         
     | 
| 
      
 396 
     | 
    
         
            +
                    next unless File.exists?(File.join(dump_path, "data", "#{table_name}.json")) || JSON.parse(File.read(File.join(dump_path, "data", "#{table}.json")))["data"].size == 0
         
     | 
| 
       397 
397 
     | 
    
         
             
                    db[table_name.to_sym].truncate if @opts[:purge]
         
     | 
| 
       398 
398 
     | 
    
         
             
                    stream = Tapsoob::DataStream.factory(db, {
         
     | 
| 
       399 
399 
     | 
    
         
             
                      :table_name => table_name,
         
     | 
| 
         @@ -485,7 +485,7 @@ module Tapsoob 
     | 
|
| 
       485 
485 
     | 
    
         | 
| 
       486 
486 
     | 
    
         
             
                def fetch_local_tables_info
         
     | 
| 
       487 
487 
     | 
    
         
             
                  tables_with_counts = {}
         
     | 
| 
       488 
     | 
    
         
            -
                  tbls = Dir.glob(File.join(dump_path, " 
     | 
| 
      
 488 
     | 
    
         
            +
                  tbls = Dir.glob(File.join(dump_path, "schemas", "*")).map { |path| File.basename(path, ".rb") }
         
     | 
| 
       489 
489 
     | 
    
         
             
                  tbls.each do |table|
         
     | 
| 
       490 
490 
     | 
    
         
             
                    if File.exists?(File.join(dump_path, "data", "#{table}.json"))
         
     | 
| 
       491 
491 
     | 
    
         
             
                      data = JSON.parse(File.read(File.join(dump_path, "data", "#{table}.json")))
         
     | 
    
        data/lib/tapsoob/version.rb
    CHANGED