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