ardb 0.17.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -4,3 +4,8 @@ gemspec
4
4
 
5
5
  gem 'rake'
6
6
  gem 'pry'
7
+
8
+ platform :rbx do
9
+ gem 'rubysl'
10
+ end
11
+
@@ -15,6 +15,7 @@ class Ardb::Runner
15
15
  end
16
16
 
17
17
  def run
18
+ $LOAD_PATH.push(Dir.pwd) unless $LOAD_PATH.include?(Dir.pwd)
18
19
  Ardb.init(false) # don't establish a connection
19
20
 
20
21
  case @cmd_name
@@ -1,3 +1,3 @@
1
1
  module Ardb
2
- VERSION = "0.17.0"
2
+ VERSION = "0.18.0"
3
3
  end
@@ -52,6 +52,12 @@ class Ardb::Runner
52
52
  ActiveRecord::Base.logger = default_ar_logger
53
53
  end
54
54
 
55
+ should "add the working directory to the load paths" do
56
+ $LOAD_PATH.delete(Dir.pwd)
57
+ subject.run
58
+ assert_includes Dir.pwd, $LOAD_PATH
59
+ end
60
+
55
61
  should "complain about unknown cmds" do
56
62
  runner = Ardb::Runner.new(['unknown'], {})
57
63
  assert_raises(UnknownCmdError) { runner.run }
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: 91
4
+ hash: 87
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 17
8
+ - 18
9
9
  - 0
10
- version: 0.17.0
10
+ version: 0.18.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: 2014-01-09 00:00:00 Z
19
+ date: 2014-02-18 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement