Git Product home page Git Product logo

multipass's People

Contributors

chen1i avatar courtenay avatar miyucy avatar technoweenie avatar tmm1 avatar wpzero avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

multipass's Issues

"ezcrypto" gem dependency missing

After intalling "entp-multipass" gem, it still doesn't work because it's missing the "ezcrypto" library. You should probably list "jamescook-ezcrypto" as gem dependency.

broken on ruby 1.9

diff --git a/lib/multipass.rb b/lib/multipass.rb
index e17e4d3..9c4681b 100644
--- a/lib/multipass.rb
+++ b/lib/multipass.rb
@@ -85,7 +85,7 @@ class MultiPass
     # Force everything coming out of json into a Time object if it isn't already
     # with YAJL, it parses dates for us (ugh)
     if options.has_key?(:expires) && options[:expires].is_a?(String)
-      options[:expires] = Time.parse(options[:expires])
+      options[:expires] = options[:expires].empty?? Time.now.utc : Time.parse(options[:expires])
     end

     if options[:expires].nil? || Time.now.utc > options[:expires]
>> RUBY_DESCRIPTION
=> "ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-darwin11.4.0]"
>> require 'time'
=> true
>> Time.parse('')
=> Wed Aug 01 14:55:17 -0700 2012
>> RUBY_DESCRIPTION
=> "ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-darwin11.4.0]"
>> require 'time'
=> true
>> Time.parse('')
ArgumentError: no time information in ""
    from .rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/time.rb:267:in `parse'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.