vault-tools 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vault-tools/core_db_tasks.rb +4 -0
- data/lib/vault-tools/version.rb +1 -1
- metadata +4 -4
@@ -15,6 +15,7 @@ task :pull_core_schema do
|
|
15
15
|
steps << 'git clone -n git@github.com:heroku/api core --depth 1'
|
16
16
|
steps << 'cd core'
|
17
17
|
steps << 'git checkout HEAD db/structure.sql'
|
18
|
+
steps << 'git checkout HEAD db/analytics_grants.sql'
|
18
19
|
# make sure we don't submodule it
|
19
20
|
steps << 'rm -rf .git'
|
20
21
|
sh steps.join(' && ')
|
@@ -23,7 +24,10 @@ end
|
|
23
24
|
desc "Drop and recreate the core-test database"
|
24
25
|
task :create_core_db => [:drop_core_db] do
|
25
26
|
sh 'createdb core-test'
|
27
|
+
sh 'psql core-test -c "DROP ROLE IF EXISTS analytics;"'
|
28
|
+
sh 'psql core-test -c "CREATE ROLE analytics ENCRYPTED PASSWORD \'password\' LOGIN;"'
|
26
29
|
sh 'psql core-test -f contrib/core/db/structure.sql'
|
30
|
+
sh 'psql core-test -f contrib/core/db/analytics_grants.sql'
|
27
31
|
end
|
28
32
|
|
29
33
|
desc "Drop the core-test database"
|
data/lib/vault-tools/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-
|
13
|
+
date: 2014-02-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: scrolls
|
@@ -239,7 +239,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
239
239
|
version: '0'
|
240
240
|
segments:
|
241
241
|
- 0
|
242
|
-
hash:
|
242
|
+
hash: -2685262836805814128
|
243
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
244
244
|
none: false
|
245
245
|
requirements:
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
version: '0'
|
249
249
|
segments:
|
250
250
|
- 0
|
251
|
-
hash:
|
251
|
+
hash: -2685262836805814128
|
252
252
|
requirements: []
|
253
253
|
rubyforge_project:
|
254
254
|
rubygems_version: 1.8.23
|