Commit 8412b230 authored by Fabio Pelosin's avatar Fabio Pelosin

[WIP] Remove Octokit dep

parent a1b61b06
......@@ -32,8 +32,6 @@ s.files = Dir["lib/**/*.rb"] + %w{ bin/pod bin/sandbox-pod README.md LICENSE CHA
s.add_runtime_dependency 'cocoapods-downloader', '~> 0.1.1'
s.add_runtime_dependency 'xcodeproj', '~> 0.6.0'
s.add_runtime_dependency 'faraday', '~> 0.8.1'
s.add_runtime_dependency 'octokit', '~> 1.7'
s.add_runtime_dependency 'colored', '~> 1.2'
s.add_runtime_dependency 'escape', '~> 0.0.4'
s.add_runtime_dependency 'json', '~> 1.8.0'
......
......@@ -21,7 +21,6 @@ module Pod
#-------------------------------------------------------------------------#
describe "create subcommand" do
extend SpecHelper::Github
extend SpecHelper::TemporaryRepos
it "creates a new podspec stub file" do
......@@ -121,14 +120,13 @@ module Pod
end
# @todo VCR is required in CocoaPods only for this test.
#
# it "lints a remote podspec" do
# Dir.chdir(fixture('spec-repos') + 'master/JSONKit/1.4/') do
# cmd = command('spec', 'lint', '--quick', '--only-errors', '--silent', 'https://github.com/CocoaPods/Specs/raw/master/A2DynamicDelegate/2.0.1/A2DynamicDelegate.podspec')
# # VCR.use_cassette('linter', :record => :new_episodes) { }
# lambda { cmd.run }.should.not.raise
# end
# end
xit "lints a remote podspec" do
Dir.chdir(fixture('spec-repos') + 'master/JSONKit/1.4/') do
cmd = command('spec', 'lint', '--quick', '--only-errors', '--silent', 'https://github.com/CocoaPods/Specs/raw/master/A2DynamicDelegate/2.0.1/A2DynamicDelegate.podspec')
# VCR.use_cassette('linter', :record => :new_episodes) { }
lambda { cmd.run }.should.not.raise
end
end
before do
text = (fixture('spec-repos') + 'master/JSONKit/1.4/JSONKit.podspec').read
......
......@@ -22,8 +22,9 @@ module Pod
end
it "presents the stats of a specification set" do
repo = { "forks"=>42, "watchers"=>318, "pushed_at"=>"2011-01-26T19:06:43Z" }
Octokit.expects(:repo).with("robbiehanson/CocoaLumberjack").returns(repo)
Specification::Set::Presenter.any_instance.expects(:github_last_activity).returns('more than a year ago')
Specification::Set::Presenter.any_instance.expects(:github_watchers).returns('318')
Specification::Set::Presenter.any_instance.expects(:github_forks).returns('42')
UI.pod(@set, :stats)
output = UI.output
output.should.include? 'Author: Robbie Hanson'
......
This diff is collapsed.
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