lib/cocoapods-readonly/toggle_readonly.rb in cocoapods-readonly-1.0.0 vs lib/cocoapods-readonly/toggle_readonly.rb in cocoapods-readonly-1.0.1
- old
+ new
@@ -3,10 +3,10 @@
def _set_permissions(permissions)
installer = installer_rep
for pod in installer.pods
# if the pod is actually in Pods/, and not a :path linked pod
if pod.root.parent == installer.sandbox_root
- for file in pod.source_files
+ for file in Dir.glob(pod.root + '**/*').reject { |f| File.directory?(f) }
File.chmod(permissions, file)
end
end
end
end
\ No newline at end of file