vault-tools 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,32 @@
1
+ # Rake tasks for Analytics DB
2
+ #
3
+ # include in Rakefile via:
4
+ #
5
+ # require 'vault-tools/analytics_db_tasks'
6
+
7
+ desc "Pull db/vault-analytics.sql from api HEAD"
8
+ task :pull_analytics do
9
+ steps = []
10
+ steps << 'mkdir -p contrib/'
11
+ steps << 'cd contrib/'
12
+ if File.exists?('contrib/vault-analytics')
13
+ steps << 'rm -rf vault-analytics'
14
+ end
15
+ steps << 'git clone -n git@github.com:heroku/vault-analytics --depth 1'
16
+ steps << 'cd vault-analytics'
17
+ steps << 'git checkout HEAD db/vault-analytics.sql'
18
+ # make sure we don't submodule it
19
+ steps << 'rm -rf .git'
20
+ sh steps.join(' && ')
21
+ end
22
+
23
+ desc "Drop and recreate the vault-analytics-test database"
24
+ task :create_analytics_db => [:drop_analytics_db, :pull_analytics] do
25
+ sh 'createdb vault-analytics-test'
26
+ sh 'psql vault-analytics-test -f contrib/vault-analytics/db/vault-analytics.sql'
27
+ end
28
+
29
+ desc "Drop the vault-analytics-test database"
30
+ task :drop_analytics_db do
31
+ sh 'dropdb vault-analytics-test || true'
32
+ end
@@ -0,0 +1,32 @@
1
+ # Rake tasks for Usage DB
2
+ #
3
+ # include in Rakefile via:
4
+ #
5
+ # require 'vault-tools/usage_db_tasks'
6
+
7
+ desc "Pull db/vault-usage.sql from api HEAD"
8
+ task :pull_usage do
9
+ steps = []
10
+ steps << 'mkdir -p contrib/'
11
+ steps << 'cd contrib/'
12
+ if File.exists?('contrib/vault-usage')
13
+ steps << 'rm -rf vault-usage'
14
+ end
15
+ steps << 'git clone -n git@github.com:heroku/vault-usage --depth 1'
16
+ steps << 'cd vault-usage'
17
+ steps << 'git checkout HEAD db/vault-usage.sql'
18
+ # make sure we don't submodule it
19
+ steps << 'rm -rf .git'
20
+ sh steps.join(' && ')
21
+ end
22
+
23
+ desc "Drop and recreate the vault-usage-test database"
24
+ task :create_usage_db => [:drop_usage_db, :pull_usage] do
25
+ sh 'createdb vault-usage-test'
26
+ sh 'psql vault-usage-test -f contrib/vault-usage/db/vault-usage.sql'
27
+ end
28
+
29
+ desc "Drop the vault-usage-test database"
30
+ task :drop_usage_db do
31
+ sh 'dropdb vault-usage-test || true'
32
+ end
@@ -1,5 +1,5 @@
1
1
  module Vault
2
2
  module Tools
3
- VERSION = '0.4.5'
3
+ VERSION = '0.4.6'
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.4.5
4
+ version: 0.4.6
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-12-02 00:00:00.000000000 Z
13
+ date: 2013-12-10 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: scrolls
@@ -142,6 +142,7 @@ files:
142
142
  - README.md
143
143
  - Rakefile
144
144
  - lib/vault-tools.rb
145
+ - lib/vault-tools/analytics_db_tasks.rb
145
146
  - lib/vault-tools/app.rb
146
147
  - lib/vault-tools/config.rb
147
148
  - lib/vault-tools/core_db_tasks.rb
@@ -153,6 +154,7 @@ files:
153
154
  - lib/vault-tools/sinatra_helpers/html_serializer.rb
154
155
  - lib/vault-tools/text_processor.rb
155
156
  - lib/vault-tools/time.rb
157
+ - lib/vault-tools/usage_db_tasks.rb
156
158
  - lib/vault-tools/user.rb
157
159
  - lib/vault-tools/version.rb
158
160
  - lib/vault-tools/web.rb
@@ -183,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
183
185
  version: '0'
184
186
  segments:
185
187
  - 0
186
- hash: 353103338422282718
188
+ hash: -4115367332515730407
187
189
  required_rubygems_version: !ruby/object:Gem::Requirement
188
190
  none: false
189
191
  requirements:
@@ -192,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
194
  version: '0'
193
195
  segments:
194
196
  - 0
195
- hash: 353103338422282718
197
+ hash: -4115367332515730407
196
198
  requirements: []
197
199
  rubyforge_project:
198
200
  rubygems_version: 1.8.23