Skip to content

Commit

Permalink
Fix Deprecated reference to SourceManager - #1
Browse files Browse the repository at this point in the history
  • Loading branch information
danf committed Jun 8, 2016
1 parent c06dad8 commit a086a65
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cocoapods_art.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
spec.description = %q{Enables you to use Artifactory as your spec repo, as well as a repository for your pods}
spec.summary = %q{Artifactory support for CocoaPods}
spec.homepage = 'https://github.com/JFrogDev/cocoapods-art'
spec.license = 'Apache License 2.0'
spec.license = 'Apache-2.0'

spec.files = Dir['lib/**/*.rb']
spec.files += Dir['[A-Z]*'] + Dir['test/**/*']
Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods_art.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
# The namespace of the CocoaPods Artifactory plugin.
#
module CocoaPodsArt
VERSION = '0.9.3'
VERSION = '0.9.4'
end
2 changes: 1 addition & 1 deletion lib/pod/command/repo_art/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def print_source(source)
# @return [Source] The list of the Artifactory sources.
#
def art_sources
SourcesManager.all.select do |source|
Pod::Config.instance.sources_manager.all.select do |source|
UTIL.art_repo?(source.repo)
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/pod/command/repo_art/update.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def hard_update(source, source_name, url)
# @param [String] name The name of the source.
#
def art_source_named(name)
specified_source = SourcesManager.aggregate.sources.find { |s| s.name == name }
specified_source = Pod::Config.instance.sources_manager.aggregate.sources.find { |s| s.name == name }
unless specified_source
raise Informative, "Unable to find the repo called `#{name}`."
end
Expand All @@ -116,7 +116,7 @@ def art_source_named(name)
# @return [Source] The list of the Artifactory sources.
#
def art_sources
SourcesManager.all.select do |source|
Pod::Config.instance.sources_manager.all.select do |source|
UTIL.art_repo?(source.repo)
end
end
Expand Down

0 comments on commit a086a65

Please sign in to comment.