soulheart 0.2.1 → 0.2.2
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/soulheart +4 -1
- data/lib/soulheart/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: b940c579f757c257a88e570248db8b58e960c1b2
         | 
| 4 | 
            +
              data.tar.gz: f4b963e11a35ee654f71480f12ace35d65b9c213
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 5c932ab836432de24dbb7f8d040926a64fb93b57d2dc4dc5fbd7b007703013ddba084092537c7b9895ce14398d12caaea1e82a02bc40518c1e9a6ad204505e11
         | 
| 7 | 
            +
              data.tar.gz: a5381685e30a771b118a39ea6c02f1831c078ec964687ddb75c1d372c146c4003cbf0f8288c09e90e223b7a9d5763f985bbc2ff9fb6aa7f9bfe59f6e001dafc0
         | 
    
        data/bin/soulheart
    CHANGED
    
    | @@ -129,11 +129,13 @@ end | |
| 129 129 | 
             
            def normalize(file=nil)
         | 
| 130 130 | 
             
              if @normalize_regex
         | 
| 131 131 | 
             
                f = open_file(file) 
         | 
| 132 | 
            -
                puts f.readlines.map(&:strip).reject(&:empty?).first
         | 
| 132 | 
            +
                puts "Updating normalizer: regular expression - " + f.readlines.map(&:strip).reject(&:empty?).first
         | 
| 133 133 | 
             
                Soulheart.normalizer = f.readlines.map(&:strip).reject(&:empty?).first
         | 
| 134 134 | 
             
              elsif @normalize_no_sym
         | 
| 135 | 
            +
                puts "Updating normalizer: allow symbols"
         | 
| 135 136 | 
             
                Soulheart.normalizer = ''
         | 
| 136 137 | 
             
              else
         | 
| 138 | 
            +
                puts "Updating normalizer: default settings"    
         | 
| 137 139 | 
             
                Soulheart.normalizer = Soulheart.default_normalizer
         | 
| 138 140 | 
             
              end
         | 
| 139 141 | 
             
            end
         | 
| @@ -151,6 +153,7 @@ when 'stop-words' | |
| 151 153 | 
             
            when 'normalize'
         | 
| 152 154 | 
             
              ARGV[1] ? normalize(ARGV[1]) : normalize
         | 
| 153 155 | 
             
            when 'clear'
         | 
| 156 | 
            +
              puts @remove_results ? "Clearing ALL data (-R option)" : "Clearing data"
         | 
| 154 157 | 
             
              clear
         | 
| 155 158 | 
             
              load ARGV[1] if ARGV[1]
         | 
| 156 159 | 
             
            else
         | 
    
        data/lib/soulheart/version.rb
    CHANGED