Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
Released in 2.2.0, closing. Thanks for the PR once again :)
from pusher-js.
Related Issues (20)
- TypeError: Object(...) is not a function at Object.randomInt HOT 10
- PWA HOT 1
- Constant connection state changes when using other than ws transports HOT 3
- Not actuall stats HOT 6
- Pusher-JS doesnt play well with NextJS 14 : Uncaught SyntaxError: Unexpected token ':' HOT 2
- Providing Custom Handler, Internal Endpoint Still Calls
- Pusher client is not binding correctly on presence channels but on public ones yes HOT 2
- Pusher websocket URL triggering events and sending data HOT 1
- This is a test.
- testing
- PageSpeed Insights Failed: net::ERR_NAME_NOT_RESOLVED HOT 1
- Feature - Attach additional params in `subscribe` method for channel auth
- test123
- test bracatinga
- test samambaia
- test araucaria
- test pinus grandis
- test hortencia
- test hoverboat
- await pusher.get() returning unresolved promise
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pusher-js.