Commit 502de5a5 authored by Marin Usalj's avatar Marin Usalj

made namespacing safer

parent 5e81227e
...@@ -56,7 +56,7 @@ module Pod ...@@ -56,7 +56,7 @@ module Pod
def self.report_error(exception) def self.report_error(exception)
if exception.is_a?(Interrupt) if exception.is_a?(Interrupt)
puts "[!] Cancelled".red puts "[!] Cancelled".red
Config.instance.verbose? ? raise : exit(1) Pod::Config.instance.verbose? ? raise : exit(1)
else else
if ENV['COCOA_PODS_ENV'] != 'development' if ENV['COCOA_PODS_ENV'] != 'development'
puts UI::ErrorReport.report(exception) puts UI::ErrorReport.report(exception)
......
...@@ -48,7 +48,7 @@ module Pod ...@@ -48,7 +48,7 @@ module Pod
dates, groups = {}, {} dates, groups = {}, {}
days.each {|d| dates[d] = Time.now - 60 * 60 * 24 * d} days.each {|d| dates[d] = Time.now - 60 * 60 * 24 * d}
sets = SourcesManager.all_sets sets = SourcesManager.all_sets
statistics_provider = Config.instance.spec_statistics_provider statistics_provider = Pod::Config.instance.spec_statistics_provider
creation_dates = statistics_provider.creation_dates(sets) creation_dates = statistics_provider.creation_dates(sets)
sets.each do |set| sets.each do |set|
......
...@@ -43,7 +43,7 @@ module Pod ...@@ -43,7 +43,7 @@ module Pod
sets.reject!{ |set| !set.specification.available_platforms.map(&:name).include?(:osx) } sets.reject!{ |set| !set.specification.available_platforms.map(&:name).include?(:osx) }
end end
statistics_provider = Config.instance.spec_statistics_provider statistics_provider = Pod::Config.instance.spec_statistics_provider
sets.each do |set| sets.each do |set|
begin begin
if @stats if @stats
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment