seamusabshere-data_miner 0.1.2 → 0.1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/data_miner.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{data_miner}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Seamus Abshere", "Andy Rossmeissl"]
12
- s.date = %q{2009-08-20}
12
+ s.date = %q{2009-08-28}
13
13
  s.description = %q{Mine remote data into your ActiveRecord models. You can also perform associations and convert units.}
14
14
  s.email = %q{seamus@abshere.net}
15
15
  s.extra_rdoc_files = [
@@ -6,9 +6,17 @@ module DataMiner
6
6
 
7
7
  module ClassMethods
8
8
  def mine_data(options = {}, &block)
9
- class_eval { cattr_accessor :data_mine }
10
- self.data_mine = Configuration.new(self)
11
- yield data_mine
9
+ if defined?(:NO_DATA_MINER) and ::NO_DATA_MINER == true
10
+ class_eval do
11
+ def data_mine
12
+ raise "NO_DATA_MINER is set to true, so data_mine is not available"
13
+ end
14
+ end
15
+ else
16
+ class_eval { cattr_accessor :data_mine }
17
+ self.data_mine = Configuration.new(self)
18
+ yield data_mine
19
+ end
12
20
  end
13
21
  end
14
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seamusabshere-data_miner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seamus Abshere
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-20 00:00:00 -07:00
13
+ date: 2009-08-28 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -97,7 +97,6 @@ files:
97
97
  - test/test_helper.rb
98
98
  has_rdoc: false
99
99
  homepage: http://github.com/seamusabshere/data_miner
100
- licenses:
101
100
  post_install_message:
102
101
  rdoc_options:
103
102
  - --charset=UTF-8
@@ -120,7 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
119
  requirements: []
121
120
 
122
121
  rubyforge_project:
123
- rubygems_version: 1.3.5
122
+ rubygems_version: 1.2.0
124
123
  signing_key:
125
124
  specification_version: 3
126
125
  summary: Mine remote data into your ActiveRecord models.