common_project_tasks 0.3.1 → 0.3.2
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.
- data/examples/app_vars.yml +3 -0
- data/lib/common_project_tasks/app.rake +4 -0
- metadata +27 -9
data/examples/app_vars.yml
CHANGED
|
@@ -6,6 +6,9 @@ app_vars: &app_vars
|
|
|
6
6
|
# post_fixture_tasks: some_rake_task_to_run
|
|
7
7
|
# load_sql_file: 'db/sql/roar_production_data_only-2008-07-25.sql'
|
|
8
8
|
# update_git_submodules: false
|
|
9
|
+
|
|
10
|
+
# A way of runing migrations after the sql file has loaded.
|
|
11
|
+
#run_post_db_migrate: true
|
|
9
12
|
|
|
10
13
|
development:
|
|
11
14
|
load_sql_file: '/db/sql/roar_production_data_only-2008-07-25.sql'
|
|
@@ -51,6 +51,10 @@ namespace :app do
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
if !app_vars[ENV['RAILS_ENV']]['run_post_db_migrate'].nil? and app_vars[ENV['RAILS_ENV']]['run_post_db_migrate'] == true
|
|
55
|
+
Rake::Task['db:migrate'].invoke
|
|
56
|
+
end
|
|
57
|
+
|
|
54
58
|
end
|
|
55
59
|
|
|
56
60
|
##############################################
|
metadata
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: common_project_tasks
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
hash: 23
|
|
5
|
+
prerelease: false
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 3
|
|
9
|
+
- 2
|
|
10
|
+
version: 0.3.2
|
|
5
11
|
platform: ruby
|
|
6
12
|
authors:
|
|
7
13
|
- Wes Hays
|
|
@@ -10,19 +16,25 @@ autorequire:
|
|
|
10
16
|
bindir: bin
|
|
11
17
|
cert_chain: []
|
|
12
18
|
|
|
13
|
-
date:
|
|
19
|
+
date: 2010-12-06 00:00:00 -08:00
|
|
14
20
|
default_executable:
|
|
15
21
|
dependencies:
|
|
16
22
|
- !ruby/object:Gem::Dependency
|
|
17
23
|
name: rake
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
prerelease: false
|
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
26
|
+
none: false
|
|
21
27
|
requirements:
|
|
22
28
|
- - ">="
|
|
23
29
|
- !ruby/object:Gem::Version
|
|
30
|
+
hash: 57
|
|
31
|
+
segments:
|
|
32
|
+
- 0
|
|
33
|
+
- 8
|
|
34
|
+
- 3
|
|
24
35
|
version: 0.8.3
|
|
25
|
-
|
|
36
|
+
type: :runtime
|
|
37
|
+
version_requirements: *id001
|
|
26
38
|
description: Rails gem/plugin to load common project tasks.
|
|
27
39
|
email: gems@gbdev.com
|
|
28
40
|
executables: []
|
|
@@ -52,21 +64,27 @@ rdoc_options:
|
|
|
52
64
|
require_paths:
|
|
53
65
|
- lib/
|
|
54
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
67
|
+
none: false
|
|
55
68
|
requirements:
|
|
56
69
|
- - ">="
|
|
57
70
|
- !ruby/object:Gem::Version
|
|
71
|
+
hash: 3
|
|
72
|
+
segments:
|
|
73
|
+
- 0
|
|
58
74
|
version: "0"
|
|
59
|
-
version:
|
|
60
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
76
|
+
none: false
|
|
61
77
|
requirements:
|
|
62
78
|
- - ">="
|
|
63
79
|
- !ruby/object:Gem::Version
|
|
80
|
+
hash: 3
|
|
81
|
+
segments:
|
|
82
|
+
- 0
|
|
64
83
|
version: "0"
|
|
65
|
-
version:
|
|
66
84
|
requirements: []
|
|
67
85
|
|
|
68
86
|
rubyforge_project: Project on www.github.com
|
|
69
|
-
rubygems_version: 1.3.
|
|
87
|
+
rubygems_version: 1.3.7
|
|
70
88
|
signing_key:
|
|
71
89
|
specification_version: 3
|
|
72
90
|
summary: Rails gem/plugin to load common project tasks.
|