dummy_data 0.9.2 → 0.9.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -78,7 +78,7 @@ module Dummy
78
78
  end.max * options.growth_ratio # **info[:associations].size
79
79
  end
80
80
 
81
- if options.manual_amounts
81
+ if options.manual_amounts && models.include?(model)
82
82
  user_defined = ask("Number of records for #{model} (default: #{amount}): ")
83
83
  amount = user_defined unless user_defined.empty?
84
84
  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.2
4
+ version: 0.9.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-03 00:00:00.000000000Z
12
+ date: 2011-10-31 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: dummy
16
- requirement: &70140825737160 !ruby/object:Gem::Requirement
16
+ requirement: &70293898635520 !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: *70140825737160
24
+ version_requirements: *70293898635520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &70140825736620 !ruby/object:Gem::Requirement
27
+ requirement: &70293898634620 !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: *70140825736620
35
+ version_requirements: *70293898634620
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:
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: 1.3.6
69
69
  requirements: []
70
70
  rubyforge_project: dummy_data
71
- rubygems_version: 1.8.6
71
+ rubygems_version: 1.8.10
72
72
  signing_key:
73
73
  specification_version: 3
74
74
  summary: Uses dummy to generate data for your models and allows you to import it