hem 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/lib/hem/paths.rb +4 -1
- data/lib/hem/plugins.rb +2 -11
- data/lib/hem/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f764801c437a78d0186b4c5b634af0c71ed7565c
|
|
4
|
+
data.tar.gz: 824894ad4866d571d1a583808fa0d4ae8f333295
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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') ]
|
|
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