data_miner 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.log_info "ActiveRecord didn't like trying to set #{resource}.#{name} = #{what_it_should_be} (it came out as nil)"
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
@@ -137,7 +137,7 @@ You need to supply one of #{COMPLETE_UNIT_DEFINITIONS.map(&:inspect).to_sentence
137
137
  end
138
138
  missing_columns.uniq!
139
139
  if missing_columns.any?
140
- DataMiner.log_info %{
140
+ DataMiner.log_debug %{
141
141
 
142
142
  ================================
143
143
 
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.log_info "Skipping data_miner block in #{self.name} because called as x_data_miner"
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.log_info "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?
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
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-07-19 00:00:00 -04:00
20
+ date: 2010-08-20 00:00:00 -04:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency