dummy_data 0.9.3 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,14 @@
1
+ require "active_record"
1
2
  require "active_record/fixtures"
2
3
 
3
4
  namespace :dummy do
4
5
  namespace :data do
5
6
  desc "Load the generated dummy data into the current environment's database."
6
7
  task :import => :environment do
7
- Fixtures.reset_cache
8
+ ActiveRecord::Fixtures.reset_cache
8
9
  fixtures_folder = File.join(Rails.root, "<%= options.output_folder %>/data")
9
10
  fixtures = Dir[File.join(fixtures_folder, '*.yml')].map {|f| File.basename(f, '.yml') }
10
- Fixtures.create_fixtures(fixtures_folder, fixtures)
11
+ ActiveRecord::Fixtures.create_fixtures(fixtures_folder, fixtures)
11
12
  end
12
13
  end
13
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dummy_data
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dummy
16
- requirement: &70293898635520 !ruby/object:Gem::Requirement
16
+ requirement: &70114162932660 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70293898635520
24
+ version_requirements: *70114162932660
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &70293898634620 !ruby/object:Gem::Requirement
27
+ requirement: &70114162931440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70293898634620
35
+ version_requirements: *70114162931440
36
36
  description: Uses dummy to generate consistent fake data for your models (including
37
37
  associations) and provides a rake task to import it into the database
38
38
  email: