Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Remove yajl parser, bombs on some machines

  • Loading branch information...
commit a63baef22446b29a32a377272cb1f532397c1466 1 parent 3b38d61
Tung Nguyen authored May 17, 2013
4  cap_reserve.gemspec
@@ -6,7 +6,7 @@ $:.unshift lib unless $:.include?(lib)
6 6
 
7 7
 Gem::Specification.new do |s|
8 8
   s.name        = "cap_reserve"
9  
-  s.version     = '0.1.8'
  9
+  s.version     = '0.1.9'
10 10
   s.platform    = Gem::Platform::RUBY
11 11
   s.authors     = [ "Winton Welsh" ]
12 12
   s.email       = [ "mail@wintoni.us" ]
@@ -20,6 +20,4 @@ Gem::Specification.new do |s|
20 20
   s.test_files = `cd #{root} && git ls-files -- {features,test,spec}/*`.split("\n")
21 21
 
22 22
   s.add_development_dependency "rspec", "~> 1.0"
23  
-
24  
-  s.add_dependency "yajl-ruby", "= 1.0.0"
25 23
 end
6  lib/cap_reserve.rb
... ...
@@ -1,8 +1,6 @@
1  
-gem 'yajl-ruby', '= 1.0.0'
2  
-
3 1
 require 'open-uri'
4 2
 require 'uri'
5  
-require 'yajl'
  3
+require 'json'
6 4
 
7 5
 $:.unshift File.dirname(__FILE__)
8 6
 
@@ -49,7 +47,7 @@ def yellow
49 47
       params.chop! # trailing &
50 48
 
51 49
       json = open("#{full_url}?#{params}").read
52  
-      Yajl::Parser.parse(json)
  50
+      JSON.parse(json)
53 51
     end
54 52
 
55 53
     desc "Reserve environment using RESERVE=minutes"

0 notes on commit a63baef

Please sign in to comment.
Something went wrong with that request. Please try again.