capistrano-websocket-rails 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -16
- data/lib/capistrano/tasks/websocket-rails.rake +1 -1
- data/lib/capistrano/websocket-rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fadcc0d4c6901f44da4dc7b48909b4294bb260a
|
4
|
+
data.tar.gz: 8fbeae605aee44ef1fd320b8d926eef835f426db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9490fff58e806189b4100b4fbbb5ea29554c007f3193c73d7aff47d088e97142e0864c747caa76baf8b56d127dade16d23844f27361e889b431b1675dee25688
|
7
|
+
data.tar.gz: 829457aaed0398b27019c212039247a7be6b20b55e206b323840ab6aad0be14d6af94482c3cc150ae534b7baf47794243fbc73cd6efa0fb40b990bf29cbc3134
|
data/README.md
CHANGED
@@ -1,41 +1,43 @@
|
|
1
|
-
# Capistrano::
|
1
|
+
# Capistrano::WebsocketRails
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
WebsocketRails integration for Capistrano
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem 'capistrano-websocket-rails'
|
10
|
+
gem 'capistrano-websocket-rails', group: :development
|
13
11
|
```
|
14
12
|
|
15
13
|
And then execute:
|
16
14
|
|
17
15
|
$ bundle
|
18
16
|
|
19
|
-
Or install it yourself as:
|
20
|
-
|
21
|
-
$ gem install capistrano-websocket-rails
|
22
|
-
|
23
17
|
## Usage
|
24
18
|
|
25
|
-
|
19
|
+
Add the following to your Capfile.
|
26
20
|
|
27
|
-
|
21
|
+
```ruby
|
22
|
+
require 'capistrano/websocket-rails'
|
23
|
+
```
|
28
24
|
|
29
|
-
|
25
|
+
Configurable options, shown here with defaults:
|
30
26
|
|
31
|
-
|
27
|
+
```ruby
|
28
|
+
:websocket_rails_pid => current_path.join('tmp', 'pids', 'websocket_rails.pid')
|
29
|
+
:websocket_rails_env => fetch(:rack_env, fetch(:rails_env, fetch(:stage)))
|
30
|
+
:websocket_rails_role => :app
|
31
|
+
```
|
32
32
|
|
33
33
|
## Contributing
|
34
34
|
|
35
|
-
|
36
|
-
|
35
|
+
1. Fork it
|
36
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
37
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
38
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
39
|
+
5. Create new Pull Request
|
37
40
|
|
38
41
|
## License
|
39
42
|
|
40
43
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
@@ -1,5 +1,5 @@
|
|
1
1
|
namespace :load do
|
2
|
-
set :websocket_rails_pid, -> {
|
2
|
+
set :websocket_rails_pid, -> { shared_path.join 'tmp', 'pids', 'websocket_rails.pid' }
|
3
3
|
set :websocket_rails_env, -> { fetch :rack_env, fetch(:rails_env, fetch(:stage)) }
|
4
4
|
set :websocket_rails_role, -> { :app }
|
5
5
|
end
|