db2fog 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/HISTORY +2 -0
  2. data/lib/db2fog.rb +1 -5
  3. metadata +4 -5
data/HISTORY CHANGED
@@ -1,3 +1,5 @@
1
+ v0.5.1 (29th August 2011)
2
+ - relax fog dependency to allow higher versions
1
3
  v0.5.0 (6th August 2011)
2
4
  - initial postgresql support
3
5
  - removed the statistics rake task
data/lib/db2fog.rb CHANGED
@@ -63,11 +63,6 @@ class DB2Fog
63
63
  "most-recent-dump-#{db_credentials[:database]}.txt"
64
64
  end
65
65
 
66
- def run(command)
67
- result = system(command)
68
- raise("error, process exited with status #{$?.exitstatus}") unless result
69
- end
70
-
71
66
  def db_credentials
72
67
  ActiveRecord::Base.connection.instance_eval { @config } # Dodgy!
73
68
  end
@@ -108,6 +103,7 @@ class DB2Fog
108
103
  cmd += " -u #{@credentials[:username]} " unless @credentials[:username].nil?
109
104
  cmd += " -p'#{@credentials[:password]}'" unless @credentials[:password].nil?
110
105
  cmd += " -h '#{@credentials[:host]}'" unless @credentials[:host].nil?
106
+ cmd += " --default-character-set=#{@credentials[:encoding]}" unless @credentials[:encoding].nil?
111
107
  cmd += " #{@credentials[:database]}"
112
108
  end
113
109
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 0
9
- version: 0.5.0
8
+ - 1
9
+ version: 0.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - James Healy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-07 00:00:00 +10:00
17
+ date: 2011-08-29 00:00:00 +10:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -56,8 +56,7 @@ dependencies:
56
56
  segments:
57
57
  - 0
58
58
  - 9
59
- - 0
60
- version: 0.9.0
59
+ version: "0.9"
61
60
  type: :runtime
62
61
  version_requirements: *id003
63
62
  - !ruby/object:Gem::Dependency