zool 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -5,11 +5,7 @@ Cucumber::Rake::Task.new do |t|
5
5
  t.cucumber_opts = "--format progress"
6
6
  end
7
7
 
8
- task :default do
9
- %w(spec cucumber).each do |task|
10
- Rake::Task[task].invoke
11
- end
12
- end
8
+ task :default => :test
13
9
 
14
10
  desc "Run all specs"
15
11
  Spec::Rake::SpecTask.new('spec') do |t|
@@ -25,7 +21,7 @@ begin
25
21
  s.email = "paukul@gmail.com"
26
22
  s.homepage = "http://github.com/paukul/zool"
27
23
  s.authors = ["Pascal Friederich"]
28
- s.version = ["0.1.3"]
24
+ s.version = ["0.1.4"]
29
25
  s.files.exclude 'vendor', 'spec', 'features', '.gitignore', 'Gemfile'
30
26
  s.test_files.include 'features/**/*'
31
27
  s.test_files.exclude 'features/tmp'
data/Readme.md CHANGED
@@ -97,7 +97,10 @@ Developing
97
97
  Bundler
98
98
  -------
99
99
 
100
- To get a working development/testing setup you can use bundler to fetch all the dependencies. Just `gem install bundler` and `gem bundle` in the checkout directory afterwards. Be sure to use the executables (rake, cucumber, ...) from the bundler_bin directory instead your regular versions.
100
+ To get a working development/testing setup you can use bundler to
101
+ fetch all the dependencies. Just `gem install bundler` and `bundle
102
+ install` in the checkout directory afterwards. Be sure to use the
103
+ bundle exec command to invoke stuff like rake / cucumber (`bundle exec rake`).
101
104
 
102
105
  Running the tests
103
106
  -----------------
data/bin/zool CHANGED
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rubygems'
3
+ require 'fileutils'
3
4
  require 'zool'
4
5
  require 'optparse'
5
6
  require 'highline'
@@ -1,5 +1,5 @@
1
1
  $:.unshift(File.expand_path(File.dirname(__FILE__) + '/../..'))
2
-
2
+ require 'rubygems'
3
3
  require 'spec'
4
4
  require 'lib/zool'
5
5
 
data/lib/zool.rb CHANGED
@@ -1,10 +1,6 @@
1
1
  $:.unshift File.dirname(__FILE__)
2
- begin
3
- require File.expand_path(File.dirname(__FILE__) + '/../vendor/gems/environment')
4
- rescue LoadError
5
- # seems to be the gem version
6
- end
7
2
 
3
+ require 'rubygems'
8
4
  require 'treetop'
9
5
  require 'py_config_parser/py_config_parser'
10
6
  require 'zool/server'
@@ -21,4 +17,4 @@ module Zool
21
17
  Logger.new('zool.log')
22
18
  end
23
19
  end
24
- end
20
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'lib/zool'
2
3
  require 'spec'
3
4
  require 'fakefs'
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ hash: 19
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 1
9
+ - 4
10
+ version: 0.1.4
5
11
  platform: ruby
6
12
  authors:
7
13
  - Pascal Friederich
@@ -9,169 +15,264 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-01-27 00:00:00 +01:00
18
+ date: 2010-08-06 00:00:00 +02:00
13
19
  default_executable: zool
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: net-scp
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 19
30
+ segments:
31
+ - 1
32
+ - 0
33
+ - 2
23
34
  version: 1.0.2
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: net-ssh
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
45
+ hash: 45
46
+ segments:
47
+ - 2
48
+ - 0
49
+ - 17
33
50
  version: 2.0.17
34
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
35
53
  - !ruby/object:Gem::Dependency
36
54
  name: treetop
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
40
58
  requirements:
41
59
  - - ">="
42
60
  - !ruby/object:Gem::Version
61
+ hash: 1
62
+ segments:
63
+ - 1
64
+ - 4
65
+ - 3
43
66
  version: 1.4.3
44
- version:
67
+ type: :runtime
68
+ version_requirements: *id003
45
69
  - !ruby/object:Gem::Dependency
46
70
  name: highline
47
- type: :runtime
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
71
+ prerelease: false
72
+ requirement: &id004 !ruby/object:Gem::Requirement
73
+ none: false
50
74
  requirements:
51
75
  - - ">="
52
76
  - !ruby/object:Gem::Version
77
+ hash: 1
78
+ segments:
79
+ - 1
80
+ - 5
81
+ - 1
53
82
  version: 1.5.1
54
- version:
83
+ type: :runtime
84
+ version_requirements: *id004
55
85
  - !ruby/object:Gem::Dependency
56
86
  name: builder
57
- type: :development
58
- version_requirement:
59
- version_requirements: !ruby/object:Gem::Requirement
87
+ prerelease: false
88
+ requirement: &id005 !ruby/object:Gem::Requirement
89
+ none: false
60
90
  requirements:
61
91
  - - ">="
62
92
  - !ruby/object:Gem::Version
93
+ hash: 15
94
+ segments:
95
+ - 2
96
+ - 1
97
+ - 2
63
98
  version: 2.1.2
64
- version:
99
+ type: :development
100
+ version_requirements: *id005
65
101
  - !ruby/object:Gem::Dependency
66
102
  name: columnize
67
- type: :development
68
- version_requirement:
69
- version_requirements: !ruby/object:Gem::Requirement
103
+ prerelease: false
104
+ requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
70
106
  requirements:
71
107
  - - ">="
72
108
  - !ruby/object:Gem::Version
109
+ hash: 17
110
+ segments:
111
+ - 0
112
+ - 3
113
+ - 1
73
114
  version: 0.3.1
74
- version:
115
+ type: :development
116
+ version_requirements: *id006
75
117
  - !ruby/object:Gem::Dependency
76
118
  name: cucumber
77
- type: :development
78
- version_requirement:
79
- version_requirements: !ruby/object:Gem::Requirement
119
+ prerelease: false
120
+ requirement: &id007 !ruby/object:Gem::Requirement
121
+ none: false
80
122
  requirements:
81
123
  - - ">="
82
124
  - !ruby/object:Gem::Version
125
+ hash: 13
126
+ segments:
127
+ - 0
128
+ - 5
129
+ - 3
83
130
  version: 0.5.3
84
- version:
131
+ type: :development
132
+ version_requirements: *id007
85
133
  - !ruby/object:Gem::Dependency
86
134
  name: diff-lcs
87
- type: :development
88
- version_requirement:
89
- version_requirements: !ruby/object:Gem::Requirement
135
+ prerelease: false
136
+ requirement: &id008 !ruby/object:Gem::Requirement
137
+ none: false
90
138
  requirements:
91
139
  - - ">="
92
140
  - !ruby/object:Gem::Version
141
+ hash: 23
142
+ segments:
143
+ - 1
144
+ - 1
145
+ - 2
93
146
  version: 1.1.2
94
- version:
147
+ type: :development
148
+ version_requirements: *id008
95
149
  - !ruby/object:Gem::Dependency
96
150
  name: fakefs
97
- type: :development
98
- version_requirement:
99
- version_requirements: !ruby/object:Gem::Requirement
151
+ prerelease: false
152
+ requirement: &id009 !ruby/object:Gem::Requirement
153
+ none: false
100
154
  requirements:
101
155
  - - ">="
102
156
  - !ruby/object:Gem::Version
157
+ hash: 21
158
+ segments:
159
+ - 0
160
+ - 2
161
+ - 1
103
162
  version: 0.2.1
104
- version:
163
+ type: :development
164
+ version_requirements: *id009
105
165
  - !ruby/object:Gem::Dependency
106
166
  name: json_pure
107
- type: :development
108
- version_requirement:
109
- version_requirements: !ruby/object:Gem::Requirement
167
+ prerelease: false
168
+ requirement: &id010 !ruby/object:Gem::Requirement
169
+ none: false
110
170
  requirements:
111
171
  - - ">="
112
172
  - !ruby/object:Gem::Version
173
+ hash: 31
174
+ segments:
175
+ - 1
176
+ - 2
177
+ - 0
113
178
  version: 1.2.0
114
- version:
179
+ type: :development
180
+ version_requirements: *id010
115
181
  - !ruby/object:Gem::Dependency
116
182
  name: linecache
117
- type: :development
118
- version_requirement:
119
- version_requirements: !ruby/object:Gem::Requirement
183
+ prerelease: false
184
+ requirement: &id011 !ruby/object:Gem::Requirement
185
+ none: false
120
186
  requirements:
121
187
  - - ">="
122
188
  - !ruby/object:Gem::Version
189
+ hash: 93
190
+ segments:
191
+ - 0
192
+ - 43
123
193
  version: "0.43"
124
- version:
194
+ type: :development
195
+ version_requirements: *id011
125
196
  - !ruby/object:Gem::Dependency
126
197
  name: rake
127
- type: :development
128
- version_requirement:
129
- version_requirements: !ruby/object:Gem::Requirement
198
+ prerelease: false
199
+ requirement: &id012 !ruby/object:Gem::Requirement
200
+ none: false
130
201
  requirements:
131
202
  - - ">="
132
203
  - !ruby/object:Gem::Version
204
+ hash: 49
205
+ segments:
206
+ - 0
207
+ - 8
208
+ - 7
133
209
  version: 0.8.7
134
- version:
210
+ type: :development
211
+ version_requirements: *id012
135
212
  - !ruby/object:Gem::Dependency
136
213
  name: rspec
137
- type: :development
138
- version_requirement:
139
- version_requirements: !ruby/object:Gem::Requirement
214
+ prerelease: false
215
+ requirement: &id013 !ruby/object:Gem::Requirement
216
+ none: false
140
217
  requirements:
141
218
  - - ">="
142
219
  - !ruby/object:Gem::Version
220
+ hash: 13
221
+ segments:
222
+ - 1
223
+ - 2
224
+ - 9
143
225
  version: 1.2.9
144
- version:
226
+ type: :development
227
+ version_requirements: *id013
145
228
  - !ruby/object:Gem::Dependency
146
229
  name: ruby-debug
147
- type: :development
148
- version_requirement:
149
- version_requirements: !ruby/object:Gem::Requirement
230
+ prerelease: false
231
+ requirement: &id014 !ruby/object:Gem::Requirement
232
+ none: false
150
233
  requirements:
151
234
  - - ">="
152
235
  - !ruby/object:Gem::Version
236
+ hash: 49
237
+ segments:
238
+ - 0
239
+ - 10
240
+ - 3
153
241
  version: 0.10.3
154
- version:
242
+ type: :development
243
+ version_requirements: *id014
155
244
  - !ruby/object:Gem::Dependency
156
245
  name: ruby-debug-base
157
- type: :development
158
- version_requirement:
159
- version_requirements: !ruby/object:Gem::Requirement
246
+ prerelease: false
247
+ requirement: &id015 !ruby/object:Gem::Requirement
248
+ none: false
160
249
  requirements:
161
250
  - - ">="
162
251
  - !ruby/object:Gem::Version
252
+ hash: 49
253
+ segments:
254
+ - 0
255
+ - 10
256
+ - 3
163
257
  version: 0.10.3
164
- version:
258
+ type: :development
259
+ version_requirements: *id015
165
260
  - !ruby/object:Gem::Dependency
166
261
  name: term-ansicolor
167
- type: :development
168
- version_requirement:
169
- version_requirements: !ruby/object:Gem::Requirement
262
+ prerelease: false
263
+ requirement: &id016 !ruby/object:Gem::Requirement
264
+ none: false
170
265
  requirements:
171
266
  - - ">="
172
267
  - !ruby/object:Gem::Version
268
+ hash: 31
269
+ segments:
270
+ - 1
271
+ - 0
272
+ - 4
173
273
  version: 1.0.4
174
- version:
274
+ type: :development
275
+ version_requirements: *id016
175
276
  description: Zool allows you to manage authorized_keys files on servers. It comes with a command-line client 'zool'. The configuration can be done in a pyconfig/gitosis like configuration file. See README.md for further details
176
277
  email: paukul@gmail.com
177
278
  executables:
@@ -191,6 +292,18 @@ files:
191
292
  - lib/zool/key_file_writer.rb
192
293
  - lib/zool/server.rb
193
294
  - lib/zool/server_pool.rb
295
+ - spec/py_config_parser_spec.rb
296
+ - spec/spec_helper.rb
297
+ - spec/zool/configuration_spec.rb
298
+ - spec/zool/key_file_writer_spec.rb
299
+ - spec/zool/server_pool_spec.rb
300
+ - spec/zool/server_spec.rb
301
+ - spec/zool.rb
302
+ - features/config_parser.feature
303
+ - features/fetching_ssh_keys.feature
304
+ - features/step_definitions/ssh_keys_steps.rb
305
+ - features/store_ssh_keys.feature
306
+ - features/support/env.rb
194
307
  has_rdoc: true
195
308
  homepage: http://github.com/paukul/zool
196
309
  licenses: []
@@ -201,21 +314,27 @@ rdoc_options:
201
314
  require_paths:
202
315
  - lib
203
316
  required_ruby_version: !ruby/object:Gem::Requirement
317
+ none: false
204
318
  requirements:
205
319
  - - ">="
206
320
  - !ruby/object:Gem::Version
321
+ hash: 3
322
+ segments:
323
+ - 0
207
324
  version: "0"
208
- version:
209
325
  required_rubygems_version: !ruby/object:Gem::Requirement
326
+ none: false
210
327
  requirements:
211
328
  - - ">="
212
329
  - !ruby/object:Gem::Version
330
+ hash: 3
331
+ segments:
332
+ - 0
213
333
  version: "0"
214
- version:
215
334
  requirements: []
216
335
 
217
336
  rubyforge_project:
218
- rubygems_version: 1.3.5
337
+ rubygems_version: 1.3.7
219
338
  signing_key:
220
339
  specification_version: 3
221
340
  summary: Library and command-line client to manage authorized_keys files