ssh-allow 0.6.0

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.
@@ -0,0 +1,12 @@
1
+ require 'ssh/allow'
2
+ require 'rspec'
3
+
4
+ support_path = File.expand_path(File.dirname(__FILE__) + "/support/**/*.rb")
5
+
6
+ Dir[support_path].each {|f| require f}
7
+
8
+ RSpec.configure do |config|
9
+ config.mock_with :rspec
10
+
11
+ config.include RuleSetHelpers
12
+ end
File without changes
@@ -0,0 +1,17 @@
1
+ module CLIHelpers
2
+
3
+ def show_stdout
4
+ @puts = true
5
+ @announce_stdout = true
6
+ end
7
+
8
+ def show_stderr
9
+ @puts = true
10
+ @announce_stderr = true
11
+ end
12
+
13
+ def ssh_command(cmd)
14
+ ENV['SSH_REMOTE_COMMAND'] = cmd
15
+ end
16
+
17
+ end
@@ -0,0 +1,12 @@
1
+ module RuleSetHelpers
2
+ def sample_rules
3
+ %(
4
+ allow!('foo') do
5
+ puts 'foo'
6
+ end
7
+ allow!('bar') do
8
+ puts 'bar'
9
+ end
10
+ ).gsub(/^ {4}/, '')
11
+ end
12
+ end
@@ -0,0 +1,30 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "ssh/allow/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "ssh-allow"
7
+ s.version = SSH::Allow::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Brian V. Hughes"]
10
+ s.email = ["brianvh@dartmouth.edu"]
11
+ s.homepage = %(https://github.com/brianvh/ssh-allow/)
12
+ s.summary = %(#{s.name}-#{s.version})
13
+ s.description = %(Command-line binary and mini-DSL for configuring the commands an
14
+ SSH key-authenticated remote SSH connection is allowed to run.)
15
+
16
+ s.rubyforge_project = "ssh-allow"
17
+
18
+ s.files = `git ls-files`.split("\n")
19
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+
23
+ s.add_dependency 'thor', '~> 0.14.6'
24
+ s.add_dependency 'polyglot', '~> 0.3.1'
25
+ s.add_dependency 'treetop', '~> 1.4.9'
26
+
27
+ s.add_development_dependency 'bundler', '~> 1.0.10'
28
+ s.add_development_dependency 'rspec', '~> 2.5.0'
29
+ s.add_development_dependency 'aruba', '~> 0.3.5'
30
+ end
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ssh-allow
3
+ version: !ruby/object:Gem::Version
4
+ hash: 7
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 6
9
+ - 0
10
+ version: 0.6.0
11
+ platform: ruby
12
+ authors:
13
+ - Brian V. Hughes
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-04-22 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: thor
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ~>
27
+ - !ruby/object:Gem::Version
28
+ hash: 43
29
+ segments:
30
+ - 0
31
+ - 14
32
+ - 6
33
+ version: 0.14.6
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
37
+ name: polyglot
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ~>
43
+ - !ruby/object:Gem::Version
44
+ hash: 17
45
+ segments:
46
+ - 0
47
+ - 3
48
+ - 1
49
+ version: 0.3.1
50
+ type: :runtime
51
+ version_requirements: *id002
52
+ - !ruby/object:Gem::Dependency
53
+ name: treetop
54
+ prerelease: false
55
+ requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ hash: 21
61
+ segments:
62
+ - 1
63
+ - 4
64
+ - 9
65
+ version: 1.4.9
66
+ type: :runtime
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: bundler
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ hash: 3
77
+ segments:
78
+ - 1
79
+ - 0
80
+ - 10
81
+ version: 1.0.10
82
+ type: :development
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ name: rspec
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ~>
91
+ - !ruby/object:Gem::Version
92
+ hash: 27
93
+ segments:
94
+ - 2
95
+ - 5
96
+ - 0
97
+ version: 2.5.0
98
+ type: :development
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
101
+ name: aruba
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ~>
107
+ - !ruby/object:Gem::Version
108
+ hash: 25
109
+ segments:
110
+ - 0
111
+ - 3
112
+ - 5
113
+ version: 0.3.5
114
+ type: :development
115
+ version_requirements: *id006
116
+ description: |-
117
+ Command-line binary and mini-DSL for configuring the commands an
118
+ SSH key-authenticated remote SSH connection is allowed to run.
119
+ email:
120
+ - brianvh@dartmouth.edu
121
+ executables:
122
+ - ssh-allow
123
+ extensions: []
124
+
125
+ extra_rdoc_files: []
126
+
127
+ files:
128
+ - .gitignore
129
+ - .rspec
130
+ - Gemfile
131
+ - LICENSE.md
132
+ - README.md
133
+ - Rakefile
134
+ - bin/ssh-allow
135
+ - lib/ssh/allow.rb
136
+ - lib/ssh/allow/cli.rb
137
+ - lib/ssh/allow/command.rb
138
+ - lib/ssh/allow/command_line.treetop
139
+ - lib/ssh/allow/rule.rb
140
+ - lib/ssh/allow/rule_set.rb
141
+ - lib/ssh/allow/version.rb
142
+ - spec/acceptance/acceptance_helper.rb
143
+ - spec/acceptance/cli_spec.rb
144
+ - spec/command_line_spec.rb
145
+ - spec/command_spec.rb
146
+ - spec/rule_set_spec.rb
147
+ - spec/rule_spec.rb
148
+ - spec/spec_helper.rb
149
+ - spec/support/.gitkeep
150
+ - spec/support/cli_helpers.rb
151
+ - spec/support/rule_set_helpers.rb
152
+ - ssh-allow.gemspec
153
+ homepage: https://github.com/brianvh/ssh-allow/
154
+ licenses: []
155
+
156
+ post_install_message:
157
+ rdoc_options: []
158
+
159
+ require_paths:
160
+ - lib
161
+ required_ruby_version: !ruby/object:Gem::Requirement
162
+ none: false
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ hash: 3
167
+ segments:
168
+ - 0
169
+ version: "0"
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ">="
174
+ - !ruby/object:Gem::Version
175
+ hash: 3
176
+ segments:
177
+ - 0
178
+ version: "0"
179
+ requirements: []
180
+
181
+ rubyforge_project: ssh-allow
182
+ rubygems_version: 1.7.2
183
+ signing_key:
184
+ specification_version: 3
185
+ summary: ssh-allow-0.6.0
186
+ test_files:
187
+ - spec/acceptance/acceptance_helper.rb
188
+ - spec/acceptance/cli_spec.rb
189
+ - spec/command_line_spec.rb
190
+ - spec/command_spec.rb
191
+ - spec/rule_set_spec.rb
192
+ - spec/rule_spec.rb
193
+ - spec/spec_helper.rb
194
+ - spec/support/.gitkeep
195
+ - spec/support/cli_helpers.rb
196
+ - spec/support/rule_set_helpers.rb