garner 0.4.1 → 0.4.2

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/lib/garner/config.rb CHANGED
@@ -111,7 +111,7 @@ module Garner
111
111
  #
112
112
  # @return [String] The newly set caller_root.
113
113
  def caller_root=(caller_root)
114
- settings[:caller_root] = caller_root
114
+ settings[:caller_root] = caller_root && caller_root.to_s
115
115
  end
116
116
 
117
117
  # Reset the configuration options to the defaults.
@@ -18,7 +18,7 @@ module Garner
18
18
  # @return [String] The default root path.
19
19
  def self.default_root
20
20
  if defined?(::Rails) && ::Rails.respond_to?(:root)
21
- ::Rails.root
21
+ ::Rails.root.realpath.to_s
22
22
  else
23
23
  # Try to use the nearest ancestor directory containing a Gemfile.
24
24
  requiring_caller = send(:caller).detect do |line|
@@ -1,3 +1,3 @@
1
1
  module Garner
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-28 00:00:00.000000000 Z
13
+ date: 2013-06-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rack
@@ -400,7 +400,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
400
400
  version: '0'
401
401
  segments:
402
402
  - 0
403
- hash: 1915990174138923704
403
+ hash: -3941759339278993047
404
404
  required_rubygems_version: !ruby/object:Gem::Requirement
405
405
  none: false
406
406
  requirements: