Commit 11fda7c0 authored by Fabio Pelosin's avatar Fabio Pelosin

[Pod::Command::Spec] removed old requirements and require ocktokit only if github is used

parent d5549274
# encoding: utf-8
require 'net/https'
require 'uri'
require 'octokit'
require 'json'
module Pod
class Command
class Spec < Command
......@@ -47,6 +42,7 @@ module Pod
def create
if repo_id_match = (@url || @name_or_url).match(/github.com\/([^\/\.]*\/[^\/\.]*)\.*/)
require 'octokit'
repo_id = repo_id_match[1]
data = github_data_for_template(repo_id)
data[:name] = @name_or_url if @url
......
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