Skip to content

Commit 8fbca8b

Browse files
committed
Add a rails engine so the client can be available through the asset pipeline.
1 parent 09a6c37 commit 8fbca8b

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

Diff for: lib/websocket-rails-js.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "websocket_rails/js/engine"

Diff for: lib/websocket_rails/js/engine.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module WebsocketRails
2+
module Js
3+
4+
class Engine < ::Rails::Engine
5+
end
6+
7+
end
8+
end

Diff for: websocket-rails-js.gemspec

+6-4
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,20 @@ require 'websocket_rails/js/version'
66
Gem::Specification.new do |spec|
77
spec.name = "websocket-rails-js"
88
spec.version = WebsocketRails::Js::VERSION
9-
spec.authors = ["Dan Knox"]
9+
spec.authors = ["Dan Knox", "Rory Low"]
1010
spec.email = ["dknox@threedotloft.com"]
11-
spec.summary = %q{TODO: Write a short summary. Required.}
12-
spec.description = %q{TODO: Write a longer description. Optional.}
13-
spec.homepage = ""
11+
spec.summary = %q{JavaScript client for websocket-rails.}
12+
spec.description = %q{JavaScript client for websocket-rails.}
13+
spec.homepage = "http://websocket-rails.github.io"
1414
spec.license = "MIT"
1515

1616
spec.files = `git ls-files -z`.split("\x0")
1717
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
1818
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
1919
spec.require_paths = ["lib"]
2020

21+
spec.add_runtime_dependency "rails"
22+
2123
spec.add_development_dependency "bundler", "~> 1.5"
2224
spec.add_development_dependency "rake"
2325
end

0 commit comments

Comments
 (0)