gbdev-common_project_tasks 0.1.2 → 0.2.0

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.
@@ -2,6 +2,7 @@ app_vars: &app_vars
2
2
  rebuild_database: true
3
3
  load_fixtures: true
4
4
  fixtures: 'states,users,permissions'
5
+ # post_fixture_tasks: some_rake_task_to_run
5
6
 
6
7
  development:
7
8
  <<: *app_vars
@@ -24,6 +24,14 @@ namespace :app do
24
24
  ENV['FIXTURES'] = app_vars[ENV['RAILS_ENV']]['fixtures']
25
25
  Rake::Task['spec:db:fixtures:load'].invoke
26
26
  end
27
+
28
+ unless app_vars[ENV['RAILS_ENV']]['post_fixture_tasks'].nil?
29
+ #begin
30
+ Rake::Task[app_vars[ENV['RAILS_ENV']]['post_fixture_tasks']].invoke
31
+ #rescue
32
+ # Fail quietly if the task does not exist
33
+ #end
34
+ end
27
35
  end
28
36
 
29
37
  ##############################################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gbdev-common_project_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wes Hays
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-01-11 00:00:00 -08:00
13
+ date: 2009-02-05 00:00:00 -08:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency