GithubHelp home page GithubHelp logo

Comments (10)

zimbatm avatar zimbatm commented on July 21, 2024

Go for it. We were talking about that the other day and I think it's a good idea. Let me know if you're hitting any blocker.

from pusher-js.

pl avatar pl commented on July 21, 2024

Hi Dirk,

Sounds good, I think it makes the code cleaner and as you said, the API is backwards compatible. I'll be happy to merge it into the next JS release.

from pusher-js.

dirkbonhomme avatar dirkbonhomme commented on July 21, 2024

I can't seem to figure out how to install all Ruby gems on my machine (OS X Mavericks). Any tips? What kind of configuration are you running it on?

Fetching additional metadata from http://rubygems.org/..
Using rake (0.9.2.2)
Using builder (3.2.2)
Using mime-types (2.0)
Using xml-simple (1.1.2)
Using aws-s3 (0.6.3)
Using timers (1.1.0)
Using celluloid (0.15.2)

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: invalid option -m  (-h will show valid options) (RuntimeError)

extconf failed, exit code 1

Not familiar with Ruby/gems so there might be an easy fix..

from pusher-js.

pl avatar pl commented on July 21, 2024

Hm, seems like a problem with building ffi, which is a native gem. I am getting a different error if I switch to the system version of Ruby.

Ruby bundled with OS X is a bit crap - I would recommend using rbenv (or rvm) to install it properly. Also, you should install gcc, because Apple decided to swap it for clang and it might cause some issues with native extensions. Here are some instructions on how to do that:

http://blog.zerosharp.com/installing-ruby-with-homebrew-and-rbenv-on-mac-os-x-mountain-lion/

from pusher-js.

pl avatar pl commented on July 21, 2024

I should document this and pusher-js should use one platform for building and testing - requiring Ruby and Node.js is a bit of a pain.

from pusher-js.

zimbatm avatar zimbatm commented on July 21, 2024

Another way is to install Homebrew and then brew install ruby. That would give you a most recent and probably fixed version of ruby.

from pusher-js.

dirkbonhomme avatar dirkbonhomme commented on July 21, 2024

Finally managed to install all Ruby related dependencies on a Vagrant box but now I can't install Karma. Guess it has to do with a Python mismatch that's required to compile one of its dependencies (Socket.io > ws).

You guys don't happen to have a pre-configured Vagrant box for running these tests? 😆

from pusher-js.

pl avatar pl commented on July 21, 2024

Hi Dirk,

I'm sorry this process is so painful - I never had these problems and it seems like I was the only one running tests since 2.0 ;)

Don't waste your time on Karma, just test it on Chrome or whatever browser you're using, run the code through jshint (will catch missing semicolons, extra commas, etc.) and that's enough for me :) I will do proper cross-platform testing before releasing the next stable version or release candidate.

from pusher-js.

dirkbonhomme avatar dirkbonhomme commented on July 21, 2024

Guess you have to be either experienced with Ruby / Python or have a lot of luck installing compatible versions :D

Anyway, I got bin/jasmine running and pushed the changes. Thanks for the tip.

from pusher-js.

pl avatar pl commented on July 21, 2024

Released in 2.2.0, closing. Thanks for the PR once again :)

from pusher-js.

Related Issues (20)

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.