lib/dryrun/android_project.rb in dryrun-1.1.3 vs lib/dryrun/android_project.rb in dryrun-1.1.4
- old
+ new
@@ -80,11 +80,11 @@
def find_modules
return [] unless valid?
content = File.open(@settings_gradle_path, 'rb').read
modules = content.scan(/'([^']*)'/)
- modules.each {|replacement| replacement.first.tr!(':', '/')}
+ modules.each {|replacement| replacement.first.tr!(':', '')}
end
def execute_command(command)
Dir.chdir @base_path
@@ -110,11 +110,11 @@
File.exist?('gradle/wrapper/gradle-wrapper.properties') &&
File.exist?('gradle/wrapper/gradle-wrapper.jar')
end
def sample_project
- if @custom_module && @modules.any? {|m| m.first == "/#{@custom_module}"}
- @path_to_sample = File.join(@base_path, "/#{@custom_module}")
+ if @custom_module && @modules.any? {|m| m.first == "#{@custom_module}"}
+ @path_to_sample = File.join(@base_path, "#{@custom_module}")
return @path_to_sample
else
@modules.each do |child|
full_path = File.join(@base_path, child.first)
@path_to_sample = full_path