lib/cocoapods_plugin.rb in cocoapods-stats-1.0.0.beta.3 vs lib/cocoapods_plugin.rb in cocoapods-stats-1.0.0.beta.4

- old
+ new

@@ -18,10 +18,15 @@ require 'cocoapods_stats/sender' validator = OptOutValidator.new next unless validator.validates? - master_source = Pod::SourcesManager.master.first + sources_manager = if defined?(Pod::SourcesManager) + Pod::SourcesManager + else + Pod::Config.instance.sources_manager + end + master_source = sources_manager.master.first validator = SpecsRepoValidator.new next unless validator.validates?(master_source) Pod::UI.titled_section 'Sending stats' do master_pods = Set.new(master_source.pods)