gorp 0.26.1 → 0.26.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.
Files changed (4) hide show
  1. data/gorp.gemspec +1 -1
  2. data/lib/gorp/env.rb +4 -0
  3. data/lib/version.rb +1 -1
  4. metadata +3 -3
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{gorp}
5
- s.version = "0.26.1"
5
+ s.version = "0.26.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Sam Ruby"]
@@ -36,6 +36,7 @@ unless ENV['GORP_RAILS']
36
36
  gemfile = "#{$BASE}/Gemfile" if File.exist? "#{$BASE}/Gemfile"
37
37
  gemfile = "#{$WORK}/Gemfile" if File.exist? "#{$WORK}/Gemfile"
38
38
  if gemfile
39
+ libs = ENV['RUBYLIB'].to_s.split(File::PATH_SEPARATOR)
39
40
  open(gemfile) do |file|
40
41
  pattern = /^gem\s+['"](\w+)['"],\s*:path\s*=>\s*['"](.*?)['"]/
41
42
  file.read.scan(pattern).each do |name,path|
@@ -43,9 +44,12 @@ unless ENV['GORP_RAILS']
43
44
  ENV['GORP_RAILS'] ||= path
44
45
  else
45
46
  $: << "#{path}/lib"
47
+ libs << "#{path}/lib"
46
48
  end
47
49
  end
48
50
  end
51
+ ENV['RUBYLIB'] = libs.join(File::PATH_SEPARATOR)
52
+ ENV.delete 'BUNDLE_GEMFILE'
49
53
  end
50
54
  end
51
55
 
@@ -2,7 +2,7 @@ module Gorp
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 26
5
- TINY = 1
5
+ TINY = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gorp
3
3
  version: !ruby/object:Gem::Version
4
- hash: 117
4
+ hash: 115
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 26
9
- - 1
10
- version: 0.26.1
9
+ - 2
10
+ version: 0.26.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sam Ruby