application_seeds 0.4.0 → 0.4.1

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ v0.4.1, 2014-02-14
2
+ ------------------
3
+
4
+ * Moved code that tells Rails schema dump to ignore the
5
+ application_seeds table to lib/application_seeds.rb
6
+
7
+
1
8
  v0.4.0, 2014-02-09
2
9
  ------------------
3
10
 
@@ -18,9 +18,6 @@ module ApplicationSeeds
18
18
  end
19
19
 
20
20
  def create_metadata_table
21
- if defined?(ActiveRecord)
22
- ActiveRecord::SchemaDumper.ignore_tables = ["application_seeds"]
23
- end
24
21
  connection.exec('DROP TABLE IF EXISTS application_seeds;')
25
22
  connection.exec('CREATE TABLE application_seeds (dataset varchar(255));')
26
23
  end
@@ -1,3 +1,3 @@
1
1
  module ApplicationSeeds
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -224,7 +224,7 @@ module ApplicationSeeds
224
224
 
225
225
  def seed_data(type, options)
226
226
  type = type.to_s
227
- raise "No seed data could be found for '#{type}'" if @seed_data[type].nil?
227
+ raise "No seed data file could be found for '#{type}'" if @seed_data[type].nil?
228
228
 
229
229
  if options.nil?
230
230
  fetch(type)
@@ -404,3 +404,7 @@ module ApplicationSeeds
404
404
  end
405
405
  end
406
406
  end
407
+
408
+ if defined?(ActiveRecord)
409
+ ActiveRecord::SchemaDumper.ignore_tables = ["application_seeds"]
410
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: application_seeds
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-02-10 00:00:00.000000000 Z
12
+ date: 2014-02-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  segments:
122
122
  - 0
123
- hash: 1911143344573555233
123
+ hash: -1202757200968469914
124
124
  required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  none: false
126
126
  requirements:
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: 1911143344573555233
132
+ hash: -1202757200968469914
133
133
  requirements: []
134
134
  rubyforge_project:
135
135
  rubygems_version: 1.8.23