hem 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f00e9f984cfc0962397a24b9bdf60183723a957
4
- data.tar.gz: c7d3b06d842443da2b534f83fb751b7b2ae89858
3
+ metadata.gz: f764801c437a78d0186b4c5b634af0c71ed7565c
4
+ data.tar.gz: 824894ad4866d571d1a583808fa0d4ae8f333295
5
5
  SHA512:
6
- metadata.gz: 41f8b0a2edda8503154da2fde23b87ee507c0da76f6b5d737b874ae242bb55cccdcb4b66a18ef31138619ae643155a17dea1769c327ed3b4a07b29b115dace99
7
- data.tar.gz: ad3771fc35f6a0e76495904e1205d6afda03bfb79bfa2acc1d3c1890a53eb0d547da22948683cdd9e39b056647eef3f1057d505b8fa53bada45ab2a2c6fd2539
6
+ metadata.gz: 994361f227e85f0d8a5c1311dd7a842e325b2b278815978a32a92f9b5a6e940dae1e51cba29a84aa35cfb017db6d9e75a68ee19610e76701823b39ab6d7616f2
7
+ data.tar.gz: 114d008a8a15e7d960db1fae784376b32eb9f47e7572af59aff020c7dca7c6cfa0cedee949168b072326121f2d55eebc29f2cbea8d1603c1962a28477080deef
data/lib/hem/paths.rb CHANGED
@@ -3,9 +3,12 @@ module Hem
3
3
  attr_accessor :project_path
4
4
 
5
5
  def config_path
6
- [ File.join(ENV['HOME'], '.hem'), File.join(ENV['HOME'], '.hobo') ].each do |path|
6
+ config_paths = [ File.join(ENV['HOME'], '.hem'), File.join(ENV['HOME'], '.hobo') ]
7
+ config_paths.each do |path|
7
8
  return path if File.exists? File.join(path, 'config.yaml')
8
9
  end
10
+
11
+ return config_paths.first
9
12
  end
10
13
 
11
14
  def seed_cache_path
data/lib/hem/plugins.rb CHANGED
@@ -20,17 +20,6 @@ module Hem
20
20
  @root
21
21
  end
22
22
 
23
- # ensure Bundler doesn't get it's settings from the project
24
- def Bundler.settings
25
- return @settings if defined?(@settings)
26
- @settings = Bundler::Settings.new
27
- end
28
-
29
- # ensure Bundler doesn't use a project's cache
30
- def Bundler.app_cache
31
- Bundler.rubygems.gem_cache.first
32
- end
33
-
34
23
  Bundler.root path
35
24
  @builder = Class.new(Bundler::Dsl) do
36
25
  define_method(:gemfile_root) do
@@ -65,6 +54,8 @@ module Hem
65
54
  rescue Bundler::GemNotFound, Bundler::VersionConflict, Bundler::GitError
66
55
  missing_specs = true
67
56
  end
57
+ # clear the definition after the check, so install/upgrade re-evaluates
58
+ @definition = nil
68
59
  return !missing_specs
69
60
  end
70
61
 
data/lib/hem/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Hem
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
 
4
4
  class << self
5
5
  def require_version *requirements
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hem
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Simons