capistrano-rails-console 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 93b831b584f2df911aca68f8838b65087614d2ae
4
- data.tar.gz: b41820dbd0f4495868a68570aaffde6d167a295a
3
+ metadata.gz: 50d8c679e2f48d5fbb32f8fc35ef351607f007f4
4
+ data.tar.gz: 373cfad2bf3f0d63ce2c322b0fa9ae1294068837
5
5
  SHA512:
6
- metadata.gz: 5f5e4d30c21ed8be816279a0fcb8ce52d566a9e5227d28864d98e1e0620662a97474536f22b5488f4e281253d287a06a1ceb9aafc2b032ce65158446ab98077b
7
- data.tar.gz: dee8c6a1eb6a215ecb1f36fc9e6d3d550b55a9d13ac29939f0e6674183e78a6519a243d4a5274ebbb3f03875c5611f3638fecdc6718135bd112f46b41af0577b
6
+ metadata.gz: a9978d793aec89b6c2d21d72ad83dc52055660303e3e09464e12e316f7459cdaa2412193a5923f95c5cb491f4a8239a4b25ff7ef014318a38a1ae4632e9b49b9
7
+ data.tar.gz: 6130b613bd573f892e7031de8f83cbf173d341bd664af58da65ea048d3564a0595e27561ec472befc1b7c47db1202ce0e2996442810a262c97c084851b910350
data/README.md CHANGED
@@ -6,8 +6,9 @@ Remote rails console for capistrano
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'capistrano', '~> 3.0.0'
10
- gem 'capistrano-rails-console'
9
+ ```ruby
10
+ gem 'capistrano-rails-console'
11
+ ```
11
12
 
12
13
  And then execute:
13
14
 
@@ -21,7 +22,9 @@ Or install it yourself as:
21
22
 
22
23
  Require in `Capfile` to use the default task:
23
24
 
24
- require 'capistrano/rails/console'
25
+ ```ruby
26
+ require 'capistrano/rails/console'
27
+ ```
25
28
 
26
29
  This will add a task `rails:console`:
27
30
 
@@ -34,3 +37,10 @@ This will add a task `rails:console`:
34
37
  3. Commit your changes (`git commit -am 'Add some feature'`)
35
38
  4. Push to the branch (`git push origin my-new-feature`)
36
39
  5. Create new Pull Request
40
+
41
+
42
+  
43
+
44
+ [![Gem Version](https://img.shields.io/gem/v/capistrano-rails-console.svg)](https://rubygems.org/gems/capistrano-rails-console)
45
+ [![Dependencies](https://img.shields.io/gemnasium/ydkn/capistrano-rails-console.svg)](https://gemnasium.com/ydkn/capistrano-rails-console)
46
+ [![Code Climate](https://img.shields.io/codeclimate/github/ydkn/capistrano-rails-console.svg)](https://codeclimate.com/github/ydkn/capistrano-rails-console)
@@ -23,7 +23,8 @@ namespace :rails do
23
23
  user_host = [host.user, host.hostname].compact.join('@')
24
24
  ssh_cmd = "ssh #{ssh_cmd_options_str} #{user_host} -p #{host.port || 22}"
25
25
 
26
- cmd = SSHKit::Command.new(:rails, "console #{fetch(:rails_env)}", host: host)
26
+ sandbox_arg = ENV.key?('sandbox') || ENV.key?('s') ? '-s' : ''
27
+ cmd = SSHKit::Command.new(:rails, "console #{fetch(:rails_env)} #{sandbox_arg}", host: host)
27
28
  SSHKit.config.output << cmd
28
29
 
29
30
  exec(%Q(#{ssh_cmd} -t "cd #{current_path} && (#{cmd.environment_string} #{cmd})"))
@@ -5,7 +5,7 @@ module Capistrano
5
5
  # Console
6
6
  module Console
7
7
  # gem version
8
- VERSION = '0.4.0'
8
+ VERSION = '0.5.0'
9
9
  end
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-rails-console
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Schwab
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-10 00:00:00.000000000 Z
11
+ date: 2015-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  version: '0'
111
111
  requirements: []
112
112
  rubyforge_project:
113
- rubygems_version: 2.4.5
113
+ rubygems_version: 2.4.6
114
114
  signing_key:
115
115
  specification_version: 4
116
116
  summary: Remote rails console for capistrano