mailcvt 0.2.2 → 0.2.3
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.
- data/lib/mailcvt/version.rb +1 -1
- data/lib/to_cc_parser.rb +6 -5
- metadata +3 -3
    
        data/lib/mailcvt/version.rb
    CHANGED
    
    
    
        data/lib/to_cc_parser.rb
    CHANGED
    
    | @@ -15,7 +15,7 @@ class ToCcParser < BaseParser | |
| 15 15 | 
             
                def replace_tocc(mtocc)
         | 
| 16 16 | 
             
                    inputcount = 0
         | 
| 17 17 | 
             
                    replacecount = 0 
         | 
| 18 | 
            -
                     | 
| 18 | 
            +
                    tocc2count = 0 
         | 
| 19 19 | 
             
                    mlog = @oh.getmout('.mlog')
         | 
| 20 20 | 
             
                    File.open(mlog, 'a') do |omlog|
         | 
| 21 21 | 
             
                        File.foreach(mtocc) do |line|
         | 
| @@ -29,15 +29,16 @@ class ToCcParser < BaseParser | |
| 29 29 | 
             
                                tocc = @toccs[fn]
         | 
| 30 30 | 
             
                                cols[4+1] = tocc[4]
         | 
| 31 31 | 
             
                                cols[5+1] = tocc[5]
         | 
| 32 | 
            +
                                omlog.puts cols[1..-1].join("\t")
         | 
| 33 | 
            +
                            else
         | 
| 34 | 
            +
                                tocc2count += 1
         | 
| 32 35 | 
             
                            end
         | 
| 33 | 
            -
                            outputcount += 1
         | 
| 34 | 
            -
                            omlog.puts cols[1..-1].join("\t")
         | 
| 35 36 | 
             
                        end
         | 
| 36 37 | 
             
                    end
         | 
| 37 38 |  | 
| 38 39 | 
             
                    msg = "#{formatcount(replacecount, inputcount)} replaced. "
         | 
| 39 | 
            -
                    msg << "#{formatcount( | 
| 40 | 
            -
                    msg << "#{formatcount(inputcount -  | 
| 40 | 
            +
                    msg << "#{formatcount(tocc2count, inputcount)} to others dir. "
         | 
| 41 | 
            +
                    msg << "#{formatcount(inputcount - replacecount - tocc2count, inputcount)} ignored. "
         | 
| 41 42 | 
             
                    msg << "Totally #{inputcount} row#{inputcount > 1 ? 's' : ''} from .mtocc file."
         | 
| 42 43 | 
             
                end
         | 
| 43 44 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: mailcvt
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.2. | 
| 4 | 
            +
              version: 0.2.3
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -121,7 +121,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 121 121 | 
             
                  version: '0'
         | 
| 122 122 | 
             
                  segments:
         | 
| 123 123 | 
             
                  - 0
         | 
| 124 | 
            -
                  hash: - | 
| 124 | 
            +
                  hash: -1102121600936436388
         | 
| 125 125 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 126 126 | 
             
              none: false
         | 
| 127 127 | 
             
              requirements:
         | 
| @@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 130 130 | 
             
                  version: '0'
         | 
| 131 131 | 
             
                  segments:
         | 
| 132 132 | 
             
                  - 0
         | 
| 133 | 
            -
                  hash: - | 
| 133 | 
            +
                  hash: -1102121600936436388
         | 
| 134 134 | 
             
            requirements: []
         | 
| 135 135 | 
             
            rubyforge_project: 
         | 
| 136 136 | 
             
            rubygems_version: 1.8.25
         |