hss 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rubocop.yml +2 -0
- data/.travis.yml +1 -1
- data/Rakefile +3 -3
- data/bin/hss +1 -1
- data/lib/helpers/command.rb +0 -1
- data/lib/helpers/default.rb +0 -1
- data/lib/helpers/expand.rb +0 -1
- data/lib/helpers/external.rb +0 -1
- data/lib/helpers/shortcut.rb +0 -1
- data/lib/hss.rb +2 -5
- data/lib/version.rb +1 -2
- data/spec/hss_spec.rb +1 -1
- data/spec/test/good_helpers/default.rb +0 -1
- data/spec/test/good_helpers/shortcut.rb +0 -1
- metadata +3 -31
- data/Gemfile.lock +0 -69
- data/vendor/cache/ast-1.1.0.gem +0 -0
- data/vendor/cache/coveralls-0.7.0.gem +0 -0
- data/vendor/cache/diff-lcs-1.2.5.gem +0 -0
- data/vendor/cache/docile-1.1.1.gem +0 -0
- data/vendor/cache/fuubar-1.3.2.gem +0 -0
- data/vendor/cache/hashr-0.0.22.gem +0 -0
- data/vendor/cache/mime-types-2.0.gem +0 -0
- data/vendor/cache/multi_json-1.8.2.gem +0 -0
- data/vendor/cache/parser-2.1.1.gem +0 -0
- data/vendor/cache/powerpack-0.0.9.gem +0 -0
- data/vendor/cache/rainbow-1.1.4.gem +0 -0
- data/vendor/cache/rake-10.1.1.gem +0 -0
- data/vendor/cache/rest-client-1.6.7.gem +0 -0
- data/vendor/cache/rspec-2.14.1.gem +0 -0
- data/vendor/cache/rspec-core-2.14.7.gem +0 -0
- data/vendor/cache/rspec-expectations-2.14.4.gem +0 -0
- data/vendor/cache/rspec-mocks-2.14.4.gem +0 -0
- data/vendor/cache/rubocop-0.16.0.gem +0 -0
- data/vendor/cache/ruby-progressbar-1.3.2.gem +0 -0
- data/vendor/cache/simplecov-0.8.2.gem +0 -0
- data/vendor/cache/simplecov-html-0.8.0.gem +0 -0
- data/vendor/cache/slop-3.4.7.gem +0 -0
- data/vendor/cache/term-ansicolor-1.2.2.gem +0 -0
- data/vendor/cache/thor-0.18.1.gem +0 -0
- data/vendor/cache/tins-0.13.1.gem +0 -0
- data/vendor/cache/travis-lint-1.7.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3581eeed1ac365b90cffbdbfe549635ed110864
|
4
|
+
data.tar.gz: 57f02e1a14a2bba09e5e5dbb2471173dba77136b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45354b0f2d9d9cf8f52ccb8dc88499b40641f64e540d30a94a4edeb2d7e133e8c742a669a5a770593d5d06df87dd3d46d5942e15fc3286259ec1d52a7b101936
|
7
|
+
data.tar.gz: f944b7dbf95e7087d668649ff0cff6d974d67dfb808cd9c7e39c054232218c5552331c7cd115b2a7868884b38d81ae43b15477028e81c9802652d907afe01d82
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
data/Rakefile
CHANGED
@@ -18,8 +18,8 @@ end
|
|
18
18
|
|
19
19
|
desc 'Run travis-lint on .travis.yml'
|
20
20
|
task :travislint do
|
21
|
-
|
21
|
+
print 'There may be an issue with your .travis.yml' unless system('travis-lint')
|
22
22
|
end
|
23
23
|
|
24
|
-
task default
|
25
|
-
task release
|
24
|
+
task :default => [:spec, :travislint, :rubocop, :build, :install]
|
25
|
+
task :release => [:bundle]
|
data/bin/hss
CHANGED
data/lib/helpers/command.rb
CHANGED
data/lib/helpers/default.rb
CHANGED
data/lib/helpers/expand.rb
CHANGED
data/lib/helpers/external.rb
CHANGED
data/lib/helpers/shortcut.rb
CHANGED
data/lib/hss.rb
CHANGED
@@ -4,7 +4,6 @@ require 'version'
|
|
4
4
|
|
5
5
|
##
|
6
6
|
# HSS module provides a helper for SSH shortcuts
|
7
|
-
|
8
7
|
module HSS
|
9
8
|
DEFAULT_CONFIG = '~/.hss.yml'
|
10
9
|
DEFAULT_LIBRARY = Pathname.new(__FILE__).realpath.split[0].to_s + '/helpers'
|
@@ -20,14 +19,13 @@ module HSS
|
|
20
19
|
|
21
20
|
##
|
22
21
|
# Handlers load configurations and control their use
|
23
|
-
|
24
22
|
class Handler
|
25
23
|
attr_reader :patterns, :config, :helpers
|
26
24
|
|
27
25
|
## Make a new handler with a config and parser
|
28
26
|
|
29
27
|
def initialize(params = {})
|
30
|
-
params = { config
|
28
|
+
params = { :config => params } if params.is_a? String
|
31
29
|
load_config(params[:config])
|
32
30
|
@helpers = []
|
33
31
|
load_helpers(params[:helpers])
|
@@ -63,7 +61,7 @@ module HSS
|
|
63
61
|
|
64
62
|
def load_helpers(helper_path = nil)
|
65
63
|
helper_path ||= HSS::DEFAULT_LIBRARY
|
66
|
-
helper_path = File.
|
64
|
+
helper_path = File.expand_path(helper_path)
|
67
65
|
Dir.glob(helper_path + '/*').each do |helper|
|
68
66
|
begin
|
69
67
|
require helper
|
@@ -77,7 +75,6 @@ module HSS
|
|
77
75
|
|
78
76
|
##
|
79
77
|
# Parser objects exist as containers for helper methods
|
80
|
-
|
81
78
|
class Parser
|
82
79
|
##
|
83
80
|
# The config is scoped here so it is available to helpers
|
data/lib/version.rb
CHANGED
data/spec/hss_spec.rb
CHANGED
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: 0.2.
|
4
|
+
version: 0.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Les Aker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -120,7 +120,6 @@ files:
|
|
120
120
|
- ".rubocop.yml"
|
121
121
|
- ".travis.yml"
|
122
122
|
- Gemfile
|
123
|
-
- Gemfile.lock
|
124
123
|
- LICENSE
|
125
124
|
- README.md
|
126
125
|
- Rakefile
|
@@ -148,32 +147,6 @@ files:
|
|
148
147
|
- spec/test/good_helpers/shortcut.rb
|
149
148
|
- spec/test/incomplete.yml
|
150
149
|
- spec/test/invalid.yml
|
151
|
-
- vendor/cache/ast-1.1.0.gem
|
152
|
-
- vendor/cache/coveralls-0.7.0.gem
|
153
|
-
- vendor/cache/diff-lcs-1.2.5.gem
|
154
|
-
- vendor/cache/docile-1.1.1.gem
|
155
|
-
- vendor/cache/fuubar-1.3.2.gem
|
156
|
-
- vendor/cache/hashr-0.0.22.gem
|
157
|
-
- vendor/cache/mime-types-2.0.gem
|
158
|
-
- vendor/cache/multi_json-1.8.2.gem
|
159
|
-
- vendor/cache/parser-2.1.1.gem
|
160
|
-
- vendor/cache/powerpack-0.0.9.gem
|
161
|
-
- vendor/cache/rainbow-1.1.4.gem
|
162
|
-
- vendor/cache/rake-10.1.1.gem
|
163
|
-
- vendor/cache/rest-client-1.6.7.gem
|
164
|
-
- vendor/cache/rspec-2.14.1.gem
|
165
|
-
- vendor/cache/rspec-core-2.14.7.gem
|
166
|
-
- vendor/cache/rspec-expectations-2.14.4.gem
|
167
|
-
- vendor/cache/rspec-mocks-2.14.4.gem
|
168
|
-
- vendor/cache/rubocop-0.16.0.gem
|
169
|
-
- vendor/cache/ruby-progressbar-1.3.2.gem
|
170
|
-
- vendor/cache/simplecov-0.8.2.gem
|
171
|
-
- vendor/cache/simplecov-html-0.8.0.gem
|
172
|
-
- vendor/cache/slop-3.4.7.gem
|
173
|
-
- vendor/cache/term-ansicolor-1.2.2.gem
|
174
|
-
- vendor/cache/thor-0.18.1.gem
|
175
|
-
- vendor/cache/tins-0.13.1.gem
|
176
|
-
- vendor/cache/travis-lint-1.7.0.gem
|
177
150
|
homepage: https://github.com/akerl/hss
|
178
151
|
licenses:
|
179
152
|
- MIT
|
@@ -194,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
194
167
|
version: '0'
|
195
168
|
requirements: []
|
196
169
|
rubyforge_project:
|
197
|
-
rubygems_version: 2.0.
|
170
|
+
rubygems_version: 2.0.14
|
198
171
|
signing_key:
|
199
172
|
specification_version: 4
|
200
173
|
summary: SSH helper
|
@@ -214,4 +187,3 @@ test_files:
|
|
214
187
|
- spec/test/good_helpers/shortcut.rb
|
215
188
|
- spec/test/incomplete.yml
|
216
189
|
- spec/test/invalid.yml
|
217
|
-
has_rdoc:
|
data/Gemfile.lock
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
hss (0.2.8)
|
5
|
-
|
6
|
-
GEM
|
7
|
-
remote: https://rubygems.org/
|
8
|
-
specs:
|
9
|
-
ast (1.1.0)
|
10
|
-
coveralls (0.7.0)
|
11
|
-
multi_json (~> 1.3)
|
12
|
-
rest-client
|
13
|
-
simplecov (>= 0.7)
|
14
|
-
term-ansicolor
|
15
|
-
thor
|
16
|
-
diff-lcs (1.2.5)
|
17
|
-
docile (1.1.1)
|
18
|
-
fuubar (1.3.2)
|
19
|
-
rspec (>= 2.14.0, < 3.1.0)
|
20
|
-
ruby-progressbar (~> 1.3)
|
21
|
-
hashr (0.0.22)
|
22
|
-
mime-types (2.0)
|
23
|
-
multi_json (1.8.2)
|
24
|
-
parser (2.1.1)
|
25
|
-
ast (~> 1.1)
|
26
|
-
slop (~> 3.4, >= 3.4.5)
|
27
|
-
powerpack (0.0.9)
|
28
|
-
rainbow (1.1.4)
|
29
|
-
rake (10.1.1)
|
30
|
-
rest-client (1.6.7)
|
31
|
-
mime-types (>= 1.16)
|
32
|
-
rspec (2.14.1)
|
33
|
-
rspec-core (~> 2.14.0)
|
34
|
-
rspec-expectations (~> 2.14.0)
|
35
|
-
rspec-mocks (~> 2.14.0)
|
36
|
-
rspec-core (2.14.7)
|
37
|
-
rspec-expectations (2.14.4)
|
38
|
-
diff-lcs (>= 1.1.3, < 2.0)
|
39
|
-
rspec-mocks (2.14.4)
|
40
|
-
rubocop (0.16.0)
|
41
|
-
parser (~> 2.1)
|
42
|
-
powerpack (~> 0.0.6)
|
43
|
-
rainbow (>= 1.1.4)
|
44
|
-
ruby-progressbar (1.3.2)
|
45
|
-
simplecov (0.8.2)
|
46
|
-
docile (~> 1.1.0)
|
47
|
-
multi_json
|
48
|
-
simplecov-html (~> 0.8.0)
|
49
|
-
simplecov-html (0.8.0)
|
50
|
-
slop (3.4.7)
|
51
|
-
term-ansicolor (1.2.2)
|
52
|
-
tins (~> 0.8)
|
53
|
-
thor (0.18.1)
|
54
|
-
tins (0.13.1)
|
55
|
-
travis-lint (1.7.0)
|
56
|
-
hashr (~> 0.0.22)
|
57
|
-
|
58
|
-
PLATFORMS
|
59
|
-
ruby
|
60
|
-
|
61
|
-
DEPENDENCIES
|
62
|
-
coveralls
|
63
|
-
fuubar
|
64
|
-
hss!
|
65
|
-
parser
|
66
|
-
rake
|
67
|
-
rspec
|
68
|
-
rubocop
|
69
|
-
travis-lint
|
data/vendor/cache/ast-1.1.0.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/cache/slop-3.4.7.gem
DELETED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|