hss 1.0.0 → 1.0.1

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: ef7192f6117b1cfc9c36a32dde07640ffb20e8e2
4
- data.tar.gz: e21c314b7da401c565c470e1c7a19cd424d31059
3
+ metadata.gz: 9dd6fe9513ef938a661f864f1b666180fca1900c
4
+ data.tar.gz: b8893ba888ce0d6ffb96259ba02e8d41f8d144aa
5
5
  SHA512:
6
- metadata.gz: 87294251d8b02cb42d1dca8f67bb8a3f8e5369cc973f168622c35037e648799465370e55fa201cc9a798e1ffcd08511aeeafffdec0c0981e11ff3d13c1a5d2a9
7
- data.tar.gz: f1abe05324cb72d399fc46a7a0b7076e5b035dadc51b42243eaff88e5b2347bcc6b38792e31e2a1c34d39af92f1c12ae582cbc0ee58175c1cdb1b8d0d5ec3cd0
6
+ metadata.gz: 0ccd01d5f12c20afe8e6c045d001d74f7f0b0918c510a24eff46c6300a990a040873b33edc7784f0de161d42626e195ba7d925c891207299b098b929283eb23a
7
+ data.tar.gz: f8c42d417a64b5374feaab330d913580e29fae8ac484999f9446f0da86d0e2991c0efd1e304dfca914cd17210fc2fc153372adc6398792a0e1f79ae99f60c6a7
@@ -1,3 +1,7 @@
1
+ # 1.0.1 / 2015-05-15
2
+
3
+ * [FEATURE] Support HSS_COMMAND for changing base command
4
+
1
5
  # 1.0.0 / 2015-01-19
2
6
 
3
7
  * [ENHANCEMENT] Stabilized API
data/README.md CHANGED
@@ -17,7 +17,7 @@ gem install hss
17
17
  ln -s /path/to/your/config.yml ~/.hss.yml
18
18
  ```
19
19
 
20
- ### SCP usage
20
+ ### SCP configuration
21
21
 
22
22
  This script can be used by SCP and other things that use SSH as a transport. To use it with SCP, just specify hss for the -S flag:
23
23
 
@@ -99,6 +99,10 @@ Hi akerl! You've successfully authenticated, but GitHub does not provide shell a
99
99
  Connection to github.com closed.
100
100
  ```
101
101
 
102
+ ## Changing the default command
103
+
104
+ By default, hss prepends "ssh " to the long command from your configuration file. If you're using something different (like mosh), you can set HSS_COMMAND in your environment to override that.
105
+
102
106
  ## Debugging
103
107
 
104
108
  If you want hss to print the command it would have run rather than executing it, you just need to set the HSS\_DEBUG environment variable to something:
data/bin/hss CHANGED
@@ -16,7 +16,8 @@ end
16
16
 
17
17
  short_host = ARGV.delete_at(ARGV.find_index { |x| x[0, 1] != '-' } || 0)
18
18
  args = ARGV.reduce('') { |a, e| a + " '" + e.gsub(/([$"])/, '\1') + "'" }
19
- command = ENV.include?('HSS_DEBUG') ? 'echo ssh' : 'ssh'
19
+ command = ENV['HSS_COMMAND'] || 'ssh'
20
+ command.prepend('echo ') if ENV['HSS_DEBUG']
20
21
 
21
22
  begin
22
23
  long_host = My_Handler.handle short_host
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
16
16
  s.test_files = `git ls-files spec/*`.split
17
17
  s.executables = ['hss']
18
18
 
19
- s.add_development_dependency 'rubocop', '~> 0.28.0'
19
+ s.add_development_dependency 'rubocop', '~> 0.31.0'
20
20
  s.add_development_dependency 'rake', '~> 10.4.0'
21
- s.add_development_dependency 'coveralls', '~> 0.7.1'
22
- s.add_development_dependency 'rspec', '~> 3.1.0'
21
+ s.add_development_dependency 'coveralls', '~> 0.8.0'
22
+ s.add_development_dependency 'rspec', '~> 3.2.0'
23
23
  s.add_development_dependency 'fuubar', '~> 2.0.0'
24
24
  end
@@ -1,5 +1,5 @@
1
1
  ##
2
2
  # Define the version
3
3
  module HSS
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
@@ -16,6 +16,11 @@ describe 'HSS script' do
16
16
  expect(`hss g`.strip).to eql 'ssh git@github.com'
17
17
  ENV.delete 'HSS_DEBUG'
18
18
  end
19
+ it 'support overriding the base command' do
20
+ ENV['HSS_COMMAND'] = 'echo'
21
+ expect(`hss g`.strip).to eql 'git@github.com'
22
+ ENV.delete 'HSS_COMMAND'
23
+ end
19
24
  it 'connects via SSH' do
20
25
  expect(`hss l echo 'hello \\"world\\"'`.strip).to eql "hello \"world\""
21
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hss
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Les Aker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-20 00:00:00.000000000 Z
11
+ date: 2015-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.28.0
19
+ version: 0.31.0
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.28.0
26
+ version: 0.31.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,28 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.7.1
47
+ version: 0.8.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.7.1
54
+ version: 0.8.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 3.1.0
61
+ version: 3.2.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 3.1.0
68
+ version: 3.2.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: fuubar
71
71
  requirement: !ruby/object:Gem::Requirement