ardb 0.22.1 → 0.23.0

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.
data/Gemfile CHANGED
@@ -4,5 +4,7 @@ gemspec
4
4
 
5
5
  gem 'rake'
6
6
  gem 'pry', "~> 0.9.0"
7
+
8
+ # Lock down gem versions because they require a newer version of ruby
7
9
  gem 'i18n', "< 0.7"
8
10
 
@@ -23,6 +23,6 @@ Gem::Specification.new do |gem|
23
23
  gem.add_dependency('activerecord', ["~> 3.2"])
24
24
  gem.add_dependency('activesupport', ["~> 3.2"])
25
25
  gem.add_dependency('ns-options', ["~> 1.1"])
26
- gem.add_dependency('scmd', ["~> 2.3"])
26
+ gem.add_dependency('scmd', ["~> 3.0"])
27
27
 
28
28
  end
@@ -59,14 +59,14 @@ class Ardb::Adapter
59
59
  def load_sql_schema
60
60
  require 'scmd'
61
61
  cmd_str = "psql -f \"#{self.sql_schema_path}\" #{self.database}"
62
- cmd = Scmd.new(cmd_str, env_var_hash).tap(&:run)
62
+ cmd = Scmd.new(cmd_str, :env => env_var_hash).tap(&:run)
63
63
  raise 'Error loading database' unless cmd.success?
64
64
  end
65
65
 
66
66
  def dump_sql_schema
67
67
  require 'scmd'
68
68
  cmd_str = "pg_dump -i -s -x -O -f \"#{self.sql_schema_path}\" #{self.database}"
69
- cmd = Scmd.new(cmd_str, env_var_hash).tap(&:run)
69
+ cmd = Scmd.new(cmd_str, :env => env_var_hash).tap(&:run)
70
70
  raise 'Error dumping database' unless cmd.success?
71
71
  end
72
72
 
@@ -1,3 +1,3 @@
1
1
  module Ardb
2
- VERSION = "0.22.1"
2
+ VERSION = "0.23.0"
3
3
  end
@@ -54,7 +54,7 @@ class Ardb::Adapter::Postgresql
54
54
  setup do
55
55
  cmd_str = "psql -f \"#{@adapter.sql_schema_path}\" #{@adapter.database}"
56
56
  @cmd_spy = CmdSpy.new
57
- Assert.stub(Scmd, :new).with(cmd_str, @env){ @cmd_spy }
57
+ Assert.stub(Scmd, :new).with(cmd_str, :env => @env){ @cmd_spy }
58
58
  end
59
59
 
60
60
  should "run a command for loading a SQL schema using `load_sql_schema`" do
@@ -69,7 +69,7 @@ class Ardb::Adapter::Postgresql
69
69
  cmd_str = "pg_dump -i -s -x -O -f " \
70
70
  "\"#{@adapter.sql_schema_path}\" #{@adapter.database}"
71
71
  @cmd_spy = CmdSpy.new
72
- Assert.stub(Scmd, :new).with(cmd_str, @env){ @cmd_spy }
72
+ Assert.stub(Scmd, :new).with(cmd_str, :env => @env){ @cmd_spy }
73
73
  end
74
74
 
75
75
  should "run a command for dumping a SQL schema using `dump_sql_schema`" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ardb
3
3
  version: !ruby/object:Gem::Version
4
- hash: 69
4
+ hash: 67
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 22
9
- - 1
10
- version: 0.22.1
8
+ - 23
9
+ - 0
10
+ version: 0.23.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2015-09-08 00:00:00 Z
19
+ date: 2015-10-13 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  requirement: &id001 !ruby/object:Gem::Requirement
@@ -84,11 +84,11 @@ dependencies:
84
84
  requirements:
85
85
  - - ~>
86
86
  - !ruby/object:Gem::Version
87
- hash: 5
87
+ hash: 7
88
88
  segments:
89
- - 2
90
89
  - 3
91
- version: "2.3"
90
+ - 0
91
+ version: "3.0"
92
92
  type: :runtime
93
93
  name: scmd
94
94
  version_requirements: *id005
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  requirements: []
193
193
 
194
194
  rubyforge_project:
195
- rubygems_version: 1.8.29
195
+ rubygems_version: 1.8.25
196
196
  signing_key:
197
197
  specification_version: 3
198
198
  summary: Activerecord database tools.