Skip to content

Commit c07fe03

Browse files
committed
Fix #8
1 parent 6e61e6c commit c07fe03

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

Gemfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
cocoapods-dependency (0.1.0)
4+
cocoapods-dependency (0.1.1)
55
cocoapods (~> 1.5)
66

77
GEM
@@ -39,7 +39,7 @@ GEM
3939
fuzzy_match (~> 2.0.4)
4040
nap (~> 1.0)
4141
cocoapods-deintegrate (1.0.2)
42-
cocoapods-downloader (1.2.1)
42+
cocoapods-downloader (1.2.2)
4343
cocoapods-plugins (1.0.0)
4444
nap
4545
cocoapods-search (1.0.0)
@@ -84,7 +84,7 @@ GEM
8484
diff-lcs (>= 1.2.0, < 2.0)
8585
rspec-support (~> 3.7.0)
8686
rspec-support (3.7.1)
87-
ruby-macho (1.2.0)
87+
ruby-macho (1.3.1)
8888
simplecov (0.16.1)
8989
docile (~> 1.1)
9090
json (>= 1.8, < 3)
@@ -97,7 +97,7 @@ GEM
9797
tins (1.16.3)
9898
tzinfo (1.2.5)
9999
thread_safe (~> 0.1)
100-
xcodeproj (1.6.0)
100+
xcodeproj (1.7.0)
101101
CFPropertyList (>= 2.3.3, < 4.0)
102102
atomos (~> 0.1.3)
103103
claide (>= 1.0.2, < 2.0)

lib/cocoapods-dependency/analyze.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,13 @@ def self.podfile_dependencies(podfile)
4040
end
4141

4242
def self.analyze_with_podfile(_podfile_dir_path, podfile, lockfile = nil)
43+
if _podfile_dir_path
44+
sandbox = _podfile_dir_path + '/Pods'
45+
else
46+
sandbox = Dir.pwd + '/Pods'
47+
end
4348
analyzer = Pod::Installer::Analyzer.new(
44-
Pod::Sandbox.new(Dir.mktmpdir),
49+
Pod::Sandbox.new(sandbox),
4550
podfile,
4651
lockfile
4752
)

lib/cocoapods-dependency/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# :nocov:
22
module CocoapodsDependency
3-
VERSION = "0.1.0"
3+
VERSION = '0.1.1'
44
end

0 commit comments

Comments
 (0)