data_miner 0.5.2 → 0.5.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/data_miner/attribute.rb +1 -1
- data/lib/data_miner/base.rb +1 -1
- data/lib/data_miner.rb +2 -2
- metadata +4 -4
    
        data/lib/data_miner/attribute.rb
    CHANGED
    
    | @@ -99,7 +99,7 @@ module DataMiner | |
| 99 99 |  | 
| 100 100 | 
             
                  what_it_is = record.send name
         | 
| 101 101 | 
             
                  if what_it_is.nil? and !what_it_should_be.nil?
         | 
| 102 | 
            -
                    DataMiner. | 
| 102 | 
            +
                    DataMiner.log_debug "ActiveRecord didn't like trying to set #{resource}.#{name} = #{what_it_should_be} (it came out as nil)"
         | 
| 103 103 | 
             
                    nil
         | 
| 104 104 | 
             
                  elsif what_it_is == what_it_was
         | 
| 105 105 | 
             
                    false
         | 
    
        data/lib/data_miner/base.rb
    CHANGED
    
    
    
        data/lib/data_miner.rb
    CHANGED
    
    | @@ -103,13 +103,13 @@ ActiveRecord::Base.class_eval do | |
| 103 103 | 
             
              def self.x_data_miner(&block)
         | 
| 104 104 | 
             
                DataMiner.start_logging
         | 
| 105 105 |  | 
| 106 | 
            -
                DataMiner. | 
| 106 | 
            +
                DataMiner.log_debug "Skipping data_miner block in #{self.name} because called as x_data_miner"
         | 
| 107 107 | 
             
              end
         | 
| 108 108 |  | 
| 109 109 | 
             
              def self.data_miner(&block)
         | 
| 110 110 | 
             
                DataMiner.start_logging
         | 
| 111 111 |  | 
| 112 | 
            -
                DataMiner. | 
| 112 | 
            +
                DataMiner.log_debug "Database table `#{table_name}` doesn't exist. It might be created in the data_miner block, but if it's not, DataMiner probably won't work properly until you run a migration or otherwise fix the schema." unless table_exists?
         | 
| 113 113 |  | 
| 114 114 | 
             
                DataMiner.resource_names.push self.name unless DataMiner.resource_names.include? self.name
         | 
| 115 115 |  | 
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: data_miner
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 4 | 
            +
              hash: 13
         | 
| 5 5 | 
             
              prerelease: false
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 0
         | 
| 8 8 | 
             
              - 5
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 0.5. | 
| 9 | 
            +
              - 3
         | 
| 10 | 
            +
              version: 0.5.3
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - Seamus Abshere
         | 
| @@ -17,7 +17,7 @@ autorequire: | |
| 17 17 | 
             
            bindir: bin
         | 
| 18 18 | 
             
            cert_chain: []
         | 
| 19 19 |  | 
| 20 | 
            -
            date: 2010- | 
| 20 | 
            +
            date: 2010-08-20 00:00:00 -04:00
         | 
| 21 21 | 
             
            default_executable: 
         | 
| 22 22 | 
             
            dependencies: 
         | 
| 23 23 | 
             
            - !ruby/object:Gem::Dependency 
         |