application_seeds 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +7 -0
- data/lib/application_seeds/database.rb +0 -3
- data/lib/application_seeds/version.rb +1 -1
- data/lib/application_seeds.rb +5 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -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
|
data/lib/application_seeds.rb
CHANGED
@@ -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.
|
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-
|
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:
|
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:
|
132
|
+
hash: -1202757200968469914
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
135
|
rubygems_version: 1.8.23
|