vault-tools 0.3.4 → 0.3.5

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.
@@ -0,0 +1,25 @@
1
+ desc "Pull db/structure.sql from payments HEAD"
2
+ task :pull_payments do
3
+ steps = []
4
+ steps << 'cd contrib/'
5
+ if File.exists?('contrib/payments')
6
+ steps << 'rm -rf payments'
7
+ end
8
+ steps << 'git clone -n git@github.com:heroku/payments --depth 1'
9
+ steps << 'cd payments'
10
+ steps << 'git checkout HEAD db/development_structure.sql'
11
+ # make sure we don't submodule it
12
+ steps << 'rm -rf .git'
13
+ sh steps.join(' && ')
14
+ end
15
+
16
+ desc "Drop and create vault-usage-test, payments-test and shushu-test databases"
17
+ task :create_payments_db => [:drop_payments_db, :pull_payments] do
18
+ sh 'createdb payments-test'
19
+ sh 'psql payments-test -f contrib/payments/db/development_structure.sql'
20
+ end
21
+
22
+ desc "Drop the vault-usage-test, payments-test and shushu-test databases"
23
+ task :drop_payments_db do
24
+ sh 'dropdb payments-test || true'
25
+ end
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Tools
3
- VERSION = '0.3.4'
3
+ VERSION = '0.3.5'
4
4
  end
5
5
  end
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.3.4
4
+ version: 0.3.5
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: 2013-03-09 00:00:00.000000000 Z
13
+ date: 2013-04-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: scrolls
@@ -114,6 +114,7 @@ files:
114
114
  - lib/vault-tools/core_db_tasks.rb
115
115
  - lib/vault-tools/hid.rb
116
116
  - lib/vault-tools/log.rb
117
+ - lib/vault-tools/payments_db_tasks.rb
117
118
  - lib/vault-tools/pipeline.rb
118
119
  - lib/vault-tools/product.rb
119
120
  - lib/vault-tools/sinatra_helpers/html_serializer.rb
@@ -145,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
145
146
  version: '0'
146
147
  segments:
147
148
  - 0
148
- hash: -1998156247547436760
149
+ hash: 3708663680564618333
149
150
  required_rubygems_version: !ruby/object:Gem::Requirement
150
151
  none: false
151
152
  requirements:
@@ -154,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
155
  version: '0'
155
156
  segments:
156
157
  - 0
157
- hash: -1998156247547436760
158
+ hash: 3708663680564618333
158
159
  requirements: []
159
160
  rubyforge_project:
160
161
  rubygems_version: 1.8.23