seed_packet 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/seed_packet/environment.rb +4 -0
- data/lib/seed_packet/version.rb +1 -1
- data/lib/seed_packet.rb +6 -0
- data/lib/tasks/seed_packet.rake +8 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cf9766d9096b986348b2f3fa2a830c3f3ddb335
|
4
|
+
data.tar.gz: 6ed6a558c913478870a79064c01ccc27a419d931
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d14926434f9b55deeba61f86df0147cf37a924d84322d82ba15c2965eed349583a1278debbc60314cfd3517b5f860bd0683957f8d4f917b3f866f27bb5e5d4f
|
7
|
+
data.tar.gz: a629c18b25d2ac6090d8239244981954d665ed71c3b16bdbc3f9268b0a94decaeb12aff3ae698512ed2ef3ce9b0e9369853d8d8654b5659a84798a0bf2676dc9
|
data/lib/seed_packet/version.rb
CHANGED
data/lib/seed_packet.rb
CHANGED
data/lib/tasks/seed_packet.rake
CHANGED
@@ -1,26 +1,24 @@
|
|
1
|
-
namespace :
|
1
|
+
namespace :db do
|
2
2
|
desc 'Reset the database and load seed data'
|
3
|
-
task reset_and_seed: ['db:reset', '
|
3
|
+
task reset_and_seed: ['db:reset', 'db:seed']
|
4
4
|
|
5
5
|
desc 'Remigrate the database and load seed data'
|
6
|
-
task remigrate_and_seed: ['db:migrate:reset', '
|
6
|
+
task remigrate_and_seed: ['db:migrate:reset', 'db:seed']
|
7
7
|
|
8
8
|
desc 'Provide a base load of randomly generated (but valid) data for development.'
|
9
|
-
task default: 'prepare' do
|
10
|
-
Rake::Task['seed_packet:seed'].invoke
|
11
|
-
Rake::Task['seed_packet:sample'].invoke
|
12
|
-
end
|
13
|
-
|
14
9
|
task seed: 'prepare' do
|
15
10
|
MyApp::Database::Seed.new(environment: Rails.env).seed
|
11
|
+
MyApp::Database::Sample.new(environment: Rails.env).sample
|
16
12
|
end
|
17
13
|
|
18
|
-
|
19
|
-
|
14
|
+
desc 'Scrub data from a production database load'
|
15
|
+
task scrub: 'prepare' do
|
16
|
+
MyApp::Database::Scrub.new(environment: Rails.env).scrub
|
20
17
|
end
|
21
18
|
|
22
19
|
task prepare: :environment do
|
23
20
|
require File.expand_path('../../../../db/seed.rb', __FILE__)
|
24
21
|
require File.expand_path('../../../../db/sample.rb', __FILE__)
|
22
|
+
require File.expand_path('../../../../db/scrub.rb', __FILE__)
|
25
23
|
end
|
26
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: seed_packet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jfelchner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|