db_backups 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03d67719b676adf5b7c222a923acdeadf2dd507e
4
- data.tar.gz: fefa9bb02d8b2d1fd92fea9032b7ea1110515a55
3
+ metadata.gz: b8d7579f62b5d40e73c071e4052901aa9bf87264
4
+ data.tar.gz: 8862446550adb30fbddedec039500b5f373de7de
5
5
  SHA512:
6
- metadata.gz: 7f8aad12b52cad29f1690675086147d2c351b3385fe98d929768fd43007e5dafea73cdf1c3bdc7258ccb32f9a3345dad68f5d708e63c839663424e1683dbdfc2
7
- data.tar.gz: 48e33ffdc605913a2e4fbfbb4177d5f4c6caf942642e5222cc0d660558409e07a71f890caa38327c0481f0f91dba6c0e8a9226e92fe82ec3e34f4f692d49aab9
6
+ metadata.gz: 9bf444e4a79e19504669b621edd447b07b208eb8ec00fbeb4d73451f02dc63082a410ad1197158e81b0f8a2617d0cf52f403d90435fddc1a6514d5050a029058
7
+ data.tar.gz: 07f9faec4be081e530b6f19faaf8b2c82f3b370b4cd71e142c7394bed805c4096a53921a14fb0b0bd583e7de0652ce0a07f036295b3d147c840eb7b4b5e12f33
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # db_backups Changelog
2
+
3
+ ## (unreleased) [![Gem Version](https://badge.fury.io/rb/db_backups.png)](http://badge.fury.io/rb/db_backups)
4
+
5
+ ## 0.0.11 (Jul 23, 2013)
6
+
7
+ * Add CHANGELOG
8
+ * Update gemspec
9
+ * Allow to work in capstrano-like deployments
data/bin/db_backups CHANGED
@@ -88,13 +88,16 @@ class DbBackups::CLI < Optitron::CLI
88
88
  end
89
89
  end
90
90
 
91
- def pwd
92
- @pwd ||= `basename $(pwd)`.strip
91
+ def app_dir
92
+ @app_dir ||= begin
93
+ pwd = `basename $(pwd)`.strip
94
+ pwd = `basename $(cd ..; pwd)`.strip if pwd == 'current'
95
+ end
93
96
  end
94
97
 
95
98
  def app
96
99
  # TODO - fix the yuk :(
97
- @app ||= pwd == 'travel_management_platform' ? 'tmp' : pwd
100
+ @app ||= app_dir == 'travel_management_platform' ? 'tmp' : app_dir
98
101
  end
99
102
 
100
103
  def environment
data/db_backups.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |gem|
20
20
  gem.require_paths = ["lib"]
21
21
 
22
22
  gem.add_dependency 'optitron', '>= 0.3'
23
- gem.add_dependency 'fog'
23
+ gem.add_dependency 'fog', '>= 1.14'
24
24
  gem.add_dependency 'terminal-table'
25
25
 
26
26
  gem.add_dependency 'pry'
@@ -1,3 +1,3 @@
1
1
  module DbBackups
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: db_backups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-06-24 00:00:00.000000000 Z
11
+ date: 2013-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: optitron
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '1.14'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '1.14'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: terminal-table
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -75,6 +75,7 @@ extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
77
  - .gitignore
78
+ - CHANGELOG.md
78
79
  - Gemfile
79
80
  - README.md
80
81
  - Rakefile