projectdx_pipeline 1.3.0 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/projectdx_pipeline/railtie.rb +0 -2
- data/lib/tasks/projectdx_pipeline.rake +11 -4
- data/projectdx_pipeline.gemspec +2 -2
- metadata +22 -22
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.4
|
@@ -3,8 +3,11 @@ require 'projectdx_pipeline/database_configuration_template'
|
|
3
3
|
namespace :pipeline do
|
4
4
|
desc "Run commit stage build and tests"
|
5
5
|
task :commit => 'commit:default' do
|
6
|
+
puts "You probably want this to run the pipeline:commit:configure, pipeline:commit:build,"
|
7
|
+
puts "and pipeline:commit:test tasks, however..."
|
6
8
|
puts "NOTE: You can't run the db:migrate task in the same command as your tests on Rails projects"
|
7
9
|
end
|
10
|
+
|
8
11
|
namespace :commit do
|
9
12
|
task :configure
|
10
13
|
task :build
|
@@ -22,13 +25,17 @@ namespace :pipeline do
|
|
22
25
|
end
|
23
26
|
|
24
27
|
namespace :build do
|
25
|
-
task :clone_reference_database
|
28
|
+
task :clone_reference_database do
|
26
29
|
config = YAML.load_file('config/database.yml')['development']
|
27
30
|
pg = PGconn.new(:host => config['host'], :port => config['port'],
|
28
31
|
:user => config['username'], :password => config['password'],
|
29
|
-
:dbname => '
|
30
|
-
|
31
|
-
|
32
|
+
:dbname => 'postgres')
|
33
|
+
|
34
|
+
db_name = config['database']
|
35
|
+
db_ref = config['reference_db']
|
36
|
+
pg.exec "SELECT killusers('#{db_ref}', '#{config['database']}')"
|
37
|
+
pg.exec "DROP DATABASE IF EXISTS \"#{db_name}\""
|
38
|
+
pg.exec "CREATE DATABASE \"#{db_name}\" TEMPLATE \"#{db_ref}\""
|
32
39
|
pg.close
|
33
40
|
end
|
34
41
|
end
|
data/projectdx_pipeline.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "projectdx_pipeline"
|
8
|
-
s.version = "1.3.
|
8
|
+
s.version = "1.3.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Renewable Funding"]
|
12
|
-
s.date = "2012-
|
12
|
+
s.date = "2012-04-16"
|
13
13
|
s.description = "Common pipeline tasks and libraries to be used for all components of the ProjectDX platform"
|
14
14
|
s.email = "devteam@renewfund.com"
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: projectdx_pipeline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 4
|
10
|
+
version: 1.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Renewable Funding
|
@@ -15,10 +15,10 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-
|
18
|
+
date: 2012-04-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
|
-
|
21
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
22
22
|
none: false
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
@@ -29,12 +29,12 @@ dependencies:
|
|
29
29
|
- 9
|
30
30
|
- 0
|
31
31
|
version: 2.9.0
|
32
|
+
type: :runtime
|
32
33
|
name: capistrano
|
34
|
+
version_requirements: *id001
|
33
35
|
prerelease: false
|
34
|
-
type: :runtime
|
35
|
-
requirement: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
|
-
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
38
|
none: false
|
39
39
|
requirements:
|
40
40
|
- - ~>
|
@@ -45,12 +45,12 @@ dependencies:
|
|
45
45
|
- 2
|
46
46
|
- 1
|
47
47
|
version: 1.2.1
|
48
|
+
type: :runtime
|
48
49
|
name: capistrano-ext
|
50
|
+
version_requirements: *id002
|
49
51
|
prerelease: false
|
50
|
-
type: :runtime
|
51
|
-
requirement: *id002
|
52
52
|
- !ruby/object:Gem::Dependency
|
53
|
-
|
53
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
54
|
none: false
|
55
55
|
requirements:
|
56
56
|
- - ~>
|
@@ -61,12 +61,12 @@ dependencies:
|
|
61
61
|
- 3
|
62
62
|
- 0
|
63
63
|
version: 2.3.0
|
64
|
+
type: :development
|
64
65
|
name: rspec
|
66
|
+
version_requirements: *id003
|
65
67
|
prerelease: false
|
66
|
-
type: :development
|
67
|
-
requirement: *id003
|
68
68
|
- !ruby/object:Gem::Dependency
|
69
|
-
|
69
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
72
72
|
- - ~>
|
@@ -77,12 +77,12 @@ dependencies:
|
|
77
77
|
- 0
|
78
78
|
- 0
|
79
79
|
version: 1.0.0
|
80
|
+
type: :development
|
80
81
|
name: bundler
|
82
|
+
version_requirements: *id004
|
81
83
|
prerelease: false
|
82
|
-
type: :development
|
83
|
-
requirement: *id004
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
|
-
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
86
86
|
none: false
|
87
87
|
requirements:
|
88
88
|
- - ~>
|
@@ -93,12 +93,12 @@ dependencies:
|
|
93
93
|
- 6
|
94
94
|
- 4
|
95
95
|
version: 1.6.4
|
96
|
+
type: :development
|
96
97
|
name: jeweler
|
98
|
+
version_requirements: *id005
|
97
99
|
prerelease: false
|
98
|
-
type: :development
|
99
|
-
requirement: *id005
|
100
100
|
- !ruby/object:Gem::Dependency
|
101
|
-
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
102
102
|
none: false
|
103
103
|
requirements:
|
104
104
|
- - ">="
|
@@ -107,10 +107,10 @@ dependencies:
|
|
107
107
|
segments:
|
108
108
|
- 0
|
109
109
|
version: "0"
|
110
|
+
type: :development
|
110
111
|
name: rcov
|
112
|
+
version_requirements: *id006
|
111
113
|
prerelease: false
|
112
|
-
type: :development
|
113
|
-
requirement: *id006
|
114
114
|
description: Common pipeline tasks and libraries to be used for all components of the ProjectDX platform
|
115
115
|
email: devteam@renewfund.com
|
116
116
|
executables: []
|