Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

a realtime chat application for developers

branch: master

Merge pull request #179 from mallowlabs/id/179

Searching for regexp meta character failed
latest commit e7ff9e17de
Ryo SUETSUGU suer authored April 06, 2014
Octocat-spinner-32 app Fixed: end pattern with unmatched parenthesis: /(/i refs #179 April 06, 2014
Octocat-spinner-32 config add test setting for werker February 21, 2014
Octocat-spinner-32 lib Added: async service calling with EM.defer refs #178 April 03, 2014
Octocat-spinner-32 log log/はあったほうがrailsっぽいよねー refs #957 January 08, 2012
Octocat-spinner-32 misc bleis-hooksをmiscに移動 refs #957 January 08, 2012
Octocat-spinner-32 plugins Added: exception handling refs #178 April 03, 2014
Octocat-spinner-32 public Wrote: robots.txt refs #1326 September 19, 2012
Octocat-spinner-32 qunit modify test to check the number of appended messages January 16, 2014
Octocat-spinner-32 script initialize: jquery, haml, rspec January 16, 2011
Octocat-spinner-32 socky Sockyをデフォルト設定にした #846 November 20, 2011
Octocat-spinner-32 spec Fixed: end pattern with unmatched parenthesis: /(/i refs #179 April 06, 2014
Octocat-spinner-32 tmp Fixed: .gitkeep locations refs #957 January 07, 2012
Octocat-spinner-32 .gitignore add rake task for qunit testing refs #1434 March 17, 2013
Octocat-spinner-32 .rspec 基本的なspecを追加 refs #213 January 16, 2011
Octocat-spinner-32 .travis.yml Changed: encrypt webhook url February 22, 2014
Octocat-spinner-32 Gemfile Fixed: bundle install failure on jruby refs #178 April 03, 2014
Octocat-spinner-32 Gemfile.lock Fixed: bundle install failure on jruby refs #178 April 03, 2014
Octocat-spinner-32 Guardfile replace autotest to guard refs #866 November 25, 2011
Octocat-spinner-32 LICENSE Added: license file refs #500 March 27, 2011
Octocat-spinner-32 Procfile Added: heroku related files refs #1261 August 23, 2012
Octocat-spinner-32 README.markdown add badge of wercker February 21, 2014
Octocat-spinner-32 Rakefile Fixed: rake default task runs both spec and spec:all refs #57 April 15, 2013
Octocat-spinner-32 config.ru initialize: jquery, haml, rspec January 16, 2011
Octocat-spinner-32 wercker.yml Revert "add phatomjs" February 21, 2014
README.markdown

AsakusaSatellite

Build Status Code Climate Coverage Status wercker status

Overview

AsakusaSatellite is a realtime chat application for Developers.

Authors

  • @suer
  • @mallowlabs
  • @mzp
  • @shimomura1004
  • @banjun

Requirement

  • Ruby 1.8.7 / 1.9.3 / 2.0.0 / 2.1.0 or JRuby 1.7.1
  • RubyGems 1.4.2 or later
  • Bundler 1.0.7 or later
  • MongoDB 1.8.1 or later

Install

Install dependencies:

$ bundle install --path .bundle --without development test

Precompile assets:

$ bundle exec rake assets:precompile RAILS_ENV=production

If you upgrade AS from 0.7.0 or older, execute following:

$ curl https://raw.github.com/gist/2792357/asakusasatellite_migration_for_v0.7.0 | mongo <db_name>

Excecute mongodb and socky:

$ mongod --dbpath <dir_name>
$ bundle exec thin -R socky/config.ru -p3002 -t0 start

Run AsakusaSatellite:

$ bundle exec rails s -e production

and access to http://localhost:3000/

For JRuby user

How to deploy

$ bundle exec rake assets:precompile
$ bundle exec warble

limitation

  • Don't use socky on JRuby. use keima or pusher
  • Don't use newrelic

For developers

Install for Developer

$ cp misc/bleis-hooks/* .git/hooks

Test

You need test db to run tests.

$ mongod --dbpath <test_dir_name>

individual testing

$ bundle exec rspec spec/{controller,model}/$(name)_spec.rb

test all

$ bundle exec rake

run with rcov

$ bundle exec rake spec:rcov

auto testing

$ bundle exec guard start

JavaScript testing

Requirement: phantomjs 1.5+

$ bundle exec rake qunit

Generate Plugin Template

generate filter

$ rails g as_filter test

edit filies

  • plugins/as_test_filter/lib/test_filter.rb
  • plugins/as_test_filter/spec/lib/test_filter_spec.rb

edit config/filters.yml

- name: test_filter

generate viewhook

$ rails g as_viewhook test

edit files

  • plugins/as_test/lib/test.rb
  • plugins/as_test/spec/lib/test_spec.rb

Thanks

Very cute icons

Several icons is created by Mark James and distributed at mini icons - famfamfam.com.

Cool sound

Cool sound is created by On-Jin. Do not redestribute the sound file.

Redmine logo

Redmine Logo is Copyright (C) 2009 Martin Herr and is licensed under ThereCreative Commons Attribution-Share Alike 2.5 Generic license.

See http://creativecommons.org/licenses/by-sa/2.5/ for more details.

Something went wrong with that request. Please try again.