gem install rb-readline
# Gemfile
gem 'rb-readline'
| require 'rubygems' | |
| require 'em-websockets' | |
| EventMachine.run { | |
| EventMachine::WebSocket.start(:host => "0.0.0.0", :port => 8080) do |ws| | |
| ws.onopen { | |
| puts "WebSocket connection open" | |
| # publish message to the client |
| class UserController | |
| before_filter :current_user | |
| def profile | |
| # here you can access current_user object returned by before_filter | |
| end | |
| private |
| == 1.8.23 / 2012-04-19 | |
| This release increases the security used when RubyGems is talking to | |
| an https server. If you use a custom RubyGems server over SSL, this | |
| release will cause RubyGems to no longer connect unless your SSL cert | |
| is globally valid. | |
| You can configure SSL certificate usage in RubyGems through the | |
| :ssl_ca_cert and :ssl_verify_mode options in ~/.gemrc and /etc/gemrc. | |
| The recommended way is to set :ssl_ca_cert to the CA certificate for |
| Fetching: bundler-1.1.3.gem ( 18%)ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) | |
| too many connection resets (http://cachefly.mirrors.rubygems.org/gems/bundler-1.1.3.gem) |
| http://www.lukeredpath.co.uk/blog/developing-a-rails-model-using-bdd-and-rspec-part-1.html | |
| http://www.typeoneerror.com/articles/post/tutorial-rails-with-rspec-spork-and-guard-from-scratch | |
| http://pure-rspec-rubynation.heroku.com/ | |
| http://www.rubyinside.com/how-to-rails-3-and-rspec-2-4336.html | |
| https://github.com/felipecsl/saasquatch.git | |
| http://www.jasongrimes.org/2011/06/free-clouds-setting-up-wordpress-on-a-free-amazon-ec2-instance/ |
| #! /bin/bash | |
| ### BEGIN INIT INFO | |
| # Provides: gitlab | |
| # Required-Start: $local_fs $remote_fs $network $syslog redis-server | |
| # Required-Stop: $local_fs $remote_fs $network $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: GitLab git repository management | |
| # Description: GitLab git repository management | |
| ### END INIT INFO |