heroku_super_backup 0.0.1.rc → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module HerokuSuperBackup
2
- VERSION = "0.0.1.rc"
2
+ VERSION = "0.0.1"
3
3
  end
@@ -43,8 +43,8 @@ module HerokuSuperBackup
43
43
  @bucket_name = credential[:bucket_name] || raise(HerokuSuperBackup::Errors::NotFound.new("Please provide a 'bucket_name' on the CLOUD_CREDENTIALS variable."))
44
44
  @backup_path = credential[:backup_path] || "db"
45
45
  @provider = credential[:provider] || raise(HerokuSuperBackup::Errors::NotFound.new("Please provide a 'provider' on the CLOUD_CREDENTIALS variable."))
46
- @key1 = credential[:key1] || raise(HerokuSuperBackup::Errors::NotFound.new("Please provide a 'HCB_KEY1' on the CLOUD_CREDENTIALS variable."))
47
- @key2 = credential[:key2] || raise(HerokuSuperBackup::Errors::NotFound.new("Please provide a 'HCB_KEY2' CLOUD_CREDENTIALS variable."))
46
+ @key1 = credential[:key1] || raise(HerokuSuperBackup::Errors::NotFound.new("Please provide a 'HCB_KEY1' config variable."))
47
+ @key2 = credential[:key2] || raise(HerokuSuperBackup::Errors::NotFound.new("Please provide a 'HCB_KEY2' config variable."))
48
48
 
49
49
  b = client.get_backups.last
50
50
  raise HerokuSuperBackup::Errors::NoBackups.new("You don't have any pgbackups. Please run heroku pgbackups:capture first.") unless b
@@ -101,8 +101,8 @@ module HerokuSuperBackup
101
101
 
102
102
  log "heroku:backup complete"
103
103
  end
104
- rescue Exception => e
105
- raise HerokuSuperBackup::Errors::NotFound.new(e.message)
104
+ rescue
105
+ raise HerokuSuperBackup::Errors::NotFound.new("CLOUD_CREDENTIALS not found. Please make sure you have set the initializers.")
106
106
  end
107
107
  end
108
108
 
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_super_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.rc
5
- prerelease: 6
4
+ version: 0.0.1
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - RedGuava
@@ -14,7 +14,7 @@ date: 2012-02-10 00:00:00.000000000Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog
17
- requirement: &70238977778720 !ruby/object:Gem::Requirement
17
+ requirement: &70124686621240 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 0.7.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70238977778720
25
+ version_requirements: *70124686621240
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: heroku
28
- requirement: &70238977778220 !ruby/object:Gem::Requirement
28
+ requirement: &70124686620740 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: 2.1.4
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70238977778220
36
+ version_requirements: *70124686620740
37
37
  description: PG backups into the cloud with fog
38
38
  email:
39
39
  - info@redguava.com.au
@@ -68,9 +68,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  none: false
70
70
  requirements:
71
- - - ! '>'
71
+ - - ! '>='
72
72
  - !ruby/object:Gem::Version
73
- version: 1.3.1
73
+ version: '0'
74
74
  requirements: []
75
75
  rubyforge_project: heroku_super_backup
76
76
  rubygems_version: 1.8.10