Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Guard #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ spec/reports
test/tmp
test/version_tmp
tmp
# Compiled js
spec/javascripts/generated/*.js
spec/javascripts/helpers/*.js
src
# vim files
.swp
17 changes: 12 additions & 5 deletions Guardfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
default_pattern = [%r{.*.coffee$}]

guard 'coffeescript', :input => 'assets/javascripts', :output => 'src/'
guard 'coffeescript', :input => 'spec/javascripts/websocket_rails', :output => 'spec/javascripts/generated'
guard 'coffeescript', :input => 'spec/javascripts/helpers', :output => 'spec/javascripts/helpers'
options = [
{ input: 'assets/javascripts', output: 'src/', patterns: default_pattern },
{ input: 'spec/javascripts/websocket_rails', output: 'spec/javascripts/generated', patterns: default_pattern },
{ input: 'spec/javascripts/helpers', patterns: default_pattern }
]

options.each do |option|
guard :coffeescript, option do
watch(option[:patterns])
end
end
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,7 @@ instructions.
1. Fork it ( http://github.com/<my-github-username>/websocket-rails-js/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
4. Compile coffee into js for tests ( bundle exec guard ; all )
4.1 Run jasmine tests ( rake jasmine )
5. Push to the branch (`git push origin my-new-feature`)
6. Create new Pull Request
71 changes: 0 additions & 71 deletions src/websocket_rails/abstract_connection.js

This file was deleted.

133 changes: 0 additions & 133 deletions src/websocket_rails/channel.js

This file was deleted.

91 changes: 0 additions & 91 deletions src/websocket_rails/connection.js

This file was deleted.

Loading