Skip to content

Commit

Permalink
Add multi-json to restore compatibility in Ruby 1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed May 30, 2013
1 parent 56a40a7 commit 039058e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cocoapods-core.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency 'activesupport', '~> 3.2.13'
s.add_runtime_dependency 'rake', '~> 10.0.0' # TEMPORARY SUPPORT
s.add_runtime_dependency 'nap', "~> 0.5.1"
s.add_runtime_dependency "multi_json", "~> 1.7.4"

s.add_development_dependency 'bacon', '~> 1.1'

Expand Down
2 changes: 1 addition & 1 deletion lib/cocoapods-core/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module GitHub
#
def self.fetch_github_repo_data(url)
require 'rest'
require 'json'
require 'multi_json'
if repo_id = url[/github.com\/([^\/\.]*\/[^\/\.]*)\.*/, 1]
url = "https://api.github.com/repos/#{repo_id}"
response = REST.get(url)
Expand Down

0 comments on commit 039058e

Please sign in to comment.