girror 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.document CHANGED
@@ -2,4 +2,5 @@ lib/**/*.rb
2
2
  bin/*
3
3
  -
4
4
  features/**/*.feature
5
- LICENSE.txt
5
+ README.rdoc
6
+ LICENSE.md
data/Gemfile CHANGED
@@ -10,6 +10,8 @@ group :development do
10
10
  gem "bundler", "~> 1.0.0"
11
11
  gem "jeweler", "~> 1.5.1"
12
12
  gem "rcov", ">= 0"
13
+ gem "yard"
14
+ gem "bluecloth"
13
15
  end
14
16
 
15
17
  gem "net-sftp"
data/Gemfile.lock CHANGED
@@ -1,6 +1,7 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
+ bluecloth (2.0.9)
4
5
  git (1.2.5)
5
6
  highline (1.6.1)
6
7
  jeweler (1.5.1)
@@ -14,12 +15,14 @@ GEM
14
15
  rcov (0.9.9)
15
16
  shoulda (2.11.3)
16
17
  syslog-logger (1.6.4)
18
+ yard (0.6.4)
17
19
 
18
20
  PLATFORMS
19
21
  ruby
20
22
  x86-mingw32
21
23
 
22
24
  DEPENDENCIES
25
+ bluecloth
23
26
  bundler (~> 1.0.0)
24
27
  git
25
28
  highline
@@ -28,3 +31,4 @@ DEPENDENCIES
28
31
  rcov
29
32
  shoulda
30
33
  syslog-logger
34
+ yard
@@ -1,4 +1,5 @@
1
- == MIT license
1
+ MIT license
2
+ -----------
2
3
 
3
4
  Copyright (c) 2010-2011 Pavel Argentov
4
5
 
data/README.rdoc CHANGED
@@ -52,28 +52,45 @@ Command Line Usage:
52
52
  == Configuration file
53
53
 
54
54
  Some runtime options may be specified in _girror/config.rb file in local "mirror" directory.
55
+ SSH-cpecific tuning may also be done there.
55
56
  Here's the example with the tested options:
56
57
 
57
58
  === _girror/config.rb
59
+
58
60
  #
59
61
  # girror config for current mirror
60
62
  #
61
63
  module Config
62
-
64
+
63
65
  # Program options for the current instance
64
66
  OPTIONS = {
65
67
  # custom commit message
66
68
  :commit_msg => Proc.new {"State at #{Time.now}"},
67
-
69
+
68
70
  # local filename encoding
69
- :lenc => 'cp1251',
70
-
71
+ :lenc => 'koi8-r',
72
+
71
73
  # remote filename encoding
72
- :renc => 'koi8-r'
74
+ :renc => 'cp1251',
75
+
76
+ # some specific ssh options
77
+ # currently available are:
78
+ # - :keys
79
+ # - :compression
80
+ :ssh => {
81
+ # specific ssh secret key files are listed in this array
82
+ :keys => ['/home/paul/.ssh/id_dsa_somekey'],
83
+
84
+ # you may set this to true or one of algo settings
85
+ # (see docs for Net::SSH.start)
86
+ :compression => true
87
+ }
88
+
73
89
  }
74
-
90
+
75
91
  end
76
92
 
93
+
77
94
  == Usage example
78
95
 
79
96
  [paul@paul site]$ git init mirror
data/Rakefile CHANGED
@@ -1,4 +1,5 @@
1
1
  # encoding: utf-8
2
+ require 'yard'
2
3
  require 'rubygems'
3
4
  require 'bundler'
4
5
  begin
@@ -24,6 +25,8 @@ Jeweler::Tasks.new do |gem|
24
25
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
25
26
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
26
27
  # gem.add_development_dependency 'rspec', '> 1.2.3'
28
+ gem.add_development_dependency 'bluecloth'
29
+ gem.add_development_dependency 'yard'
27
30
  gem.add_runtime_dependency 'net-sftp'
28
31
  gem.add_runtime_dependency 'git'
29
32
  gem.add_runtime_dependency 'highline'
@@ -41,3 +44,5 @@ Rake::RDocTask.new do |rdoc|
41
44
  rdoc.rdoc_files.include('LICENSE*')
42
45
  rdoc.rdoc_files.include('lib/**/*.rb')
43
46
  end
47
+
48
+ YARD::Rake::YardocTask.new
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -1,4 +1,4 @@
1
- #
1
+ # -*- Ruby -*-
2
2
  # girror config for current mirror
3
3
  #
4
4
  module Config
@@ -9,10 +9,24 @@ module Config
9
9
  :commit_msg => Proc.new {"State at #{Time.now}"},
10
10
 
11
11
  # local filename encoding
12
- :lenc => 'cp1251',
12
+ :lenc => 'koi8-r',
13
13
 
14
14
  # remote filename encoding
15
- :renc => 'koi8-r'
15
+ :renc => 'cp1251',
16
+
17
+ # some specific ssh options
18
+ # currently available are:
19
+ # - :keys
20
+ # - :compression
21
+ :ssh => {
22
+ # specific ssh secret key files are listed in this array
23
+ :keys => ['/home/paul/.ssh/id_dsa_somekey'],
24
+
25
+ # you may set this to true or one of algo settings
26
+ # (see docs for Net::SSH.start)
27
+ :compression => true
28
+ }
29
+
16
30
  }
17
31
 
18
- end
32
+ end
data/girror.gemspec CHANGED
@@ -5,17 +5,17 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{girror}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Pavel Argentov"]
12
- s.date = %q{2010-12-31}
12
+ s.date = %q{2011-01-10}
13
13
  s.default_executable = %q{girror}
14
14
  s.description = %q{Retrieves remote directory via SFTP and stores it in local Git repository.}
15
15
  s.email = %q{argentoff@gmail.com}
16
16
  s.executables = ["girror"]
17
17
  s.extra_rdoc_files = [
18
- "LICENSE.txt",
18
+ "LICENSE.md",
19
19
  "README.rdoc"
20
20
  ]
21
21
  s.files = [
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  ".document",
24
24
  "Gemfile",
25
25
  "Gemfile.lock",
26
- "LICENSE.txt",
26
+ "LICENSE.md",
27
27
  "README.rdoc",
28
28
  "Rakefile",
29
29
  "TODO.md",
@@ -32,7 +32,8 @@ Gem::Specification.new do |s|
32
32
  "examples/_girror/config.rb",
33
33
  "gem_graph.png",
34
34
  "girror.gemspec",
35
- "lib/girror.rb"
35
+ "lib/girror.rb",
36
+ "profile.pdf"
36
37
  ]
37
38
  s.homepage = %q{http://github.com/argent-smith/girror}
38
39
  s.licenses = ["MIT"]
@@ -56,6 +57,10 @@ Gem::Specification.new do |s|
56
57
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
57
58
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
58
59
  s.add_development_dependency(%q<rcov>, [">= 0"])
60
+ s.add_development_dependency(%q<yard>, [">= 0"])
61
+ s.add_development_dependency(%q<bluecloth>, [">= 0"])
62
+ s.add_development_dependency(%q<bluecloth>, [">= 0"])
63
+ s.add_development_dependency(%q<yard>, [">= 0"])
59
64
  s.add_runtime_dependency(%q<net-sftp>, [">= 0"])
60
65
  s.add_runtime_dependency(%q<git>, [">= 0"])
61
66
  s.add_runtime_dependency(%q<highline>, [">= 0"])
@@ -69,6 +74,10 @@ Gem::Specification.new do |s|
69
74
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
75
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
71
76
  s.add_dependency(%q<rcov>, [">= 0"])
77
+ s.add_dependency(%q<yard>, [">= 0"])
78
+ s.add_dependency(%q<bluecloth>, [">= 0"])
79
+ s.add_dependency(%q<bluecloth>, [">= 0"])
80
+ s.add_dependency(%q<yard>, [">= 0"])
72
81
  s.add_dependency(%q<net-sftp>, [">= 0"])
73
82
  s.add_dependency(%q<git>, [">= 0"])
74
83
  s.add_dependency(%q<highline>, [">= 0"])
@@ -83,6 +92,10 @@ Gem::Specification.new do |s|
83
92
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
84
93
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
85
94
  s.add_dependency(%q<rcov>, [">= 0"])
95
+ s.add_dependency(%q<yard>, [">= 0"])
96
+ s.add_dependency(%q<bluecloth>, [">= 0"])
97
+ s.add_dependency(%q<bluecloth>, [">= 0"])
98
+ s.add_dependency(%q<yard>, [">= 0"])
86
99
  s.add_dependency(%q<net-sftp>, [">= 0"])
87
100
  s.add_dependency(%q<git>, [">= 0"])
88
101
  s.add_dependency(%q<highline>, [">= 0"])
data/lib/girror.rb CHANGED
@@ -114,7 +114,11 @@ module Girror
114
114
  @path = $6
115
115
 
116
116
  debug "Remote data specified as: login: #{@user}; pass: #{@pass.inspect}; host: #{@host}; path: #{@path}"
117
- Net::SFTP.start(@host, @user, :password => @pass) do |s|
117
+ Net::SFTP.start(@host, @user,
118
+ :password => @pass,
119
+ :keys => ops[:ssh][:keys],
120
+ :compression => ops[:ssh][:compression]
121
+ ) do |s|
118
122
  @sftp = s
119
123
  log "Connected to remote #{@host} as #{@user}"
120
124
 
data/profile.pdf ADDED
Binary file
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 1
9
- version: 0.0.1
8
+ - 2
9
+ version: 0.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Pavel Argentov
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-31 00:00:00 +03:00
17
+ date: 2011-01-10 00:00:00 +03:00
18
18
  default_executable: girror
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -126,7 +126,7 @@ dependencies:
126
126
  prerelease: false
127
127
  version_requirements: *id008
128
128
  - !ruby/object:Gem::Dependency
129
- name: net-sftp
129
+ name: yard
130
130
  requirement: &id009 !ruby/object:Gem::Requirement
131
131
  none: false
132
132
  requirements:
@@ -135,11 +135,11 @@ dependencies:
135
135
  segments:
136
136
  - 0
137
137
  version: "0"
138
- type: :runtime
138
+ type: :development
139
139
  prerelease: false
140
140
  version_requirements: *id009
141
141
  - !ruby/object:Gem::Dependency
142
- name: git
142
+ name: bluecloth
143
143
  requirement: &id010 !ruby/object:Gem::Requirement
144
144
  none: false
145
145
  requirements:
@@ -148,11 +148,11 @@ dependencies:
148
148
  segments:
149
149
  - 0
150
150
  version: "0"
151
- type: :runtime
151
+ type: :development
152
152
  prerelease: false
153
153
  version_requirements: *id010
154
154
  - !ruby/object:Gem::Dependency
155
- name: highline
155
+ name: bluecloth
156
156
  requirement: &id011 !ruby/object:Gem::Requirement
157
157
  none: false
158
158
  requirements:
@@ -161,11 +161,11 @@ dependencies:
161
161
  segments:
162
162
  - 0
163
163
  version: "0"
164
- type: :runtime
164
+ type: :development
165
165
  prerelease: false
166
166
  version_requirements: *id011
167
167
  - !ruby/object:Gem::Dependency
168
- name: syslog-logger
168
+ name: yard
169
169
  requirement: &id012 !ruby/object:Gem::Requirement
170
170
  none: false
171
171
  requirements:
@@ -174,9 +174,61 @@ dependencies:
174
174
  segments:
175
175
  - 0
176
176
  version: "0"
177
- type: :runtime
177
+ type: :development
178
178
  prerelease: false
179
179
  version_requirements: *id012
180
+ - !ruby/object:Gem::Dependency
181
+ name: net-sftp
182
+ requirement: &id013 !ruby/object:Gem::Requirement
183
+ none: false
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ segments:
188
+ - 0
189
+ version: "0"
190
+ type: :runtime
191
+ prerelease: false
192
+ version_requirements: *id013
193
+ - !ruby/object:Gem::Dependency
194
+ name: git
195
+ requirement: &id014 !ruby/object:Gem::Requirement
196
+ none: false
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ segments:
201
+ - 0
202
+ version: "0"
203
+ type: :runtime
204
+ prerelease: false
205
+ version_requirements: *id014
206
+ - !ruby/object:Gem::Dependency
207
+ name: highline
208
+ requirement: &id015 !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ">="
212
+ - !ruby/object:Gem::Version
213
+ segments:
214
+ - 0
215
+ version: "0"
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: *id015
219
+ - !ruby/object:Gem::Dependency
220
+ name: syslog-logger
221
+ requirement: &id016 !ruby/object:Gem::Requirement
222
+ none: false
223
+ requirements:
224
+ - - ">="
225
+ - !ruby/object:Gem::Version
226
+ segments:
227
+ - 0
228
+ version: "0"
229
+ type: :runtime
230
+ prerelease: false
231
+ version_requirements: *id016
180
232
  description: Retrieves remote directory via SFTP and stores it in local Git repository.
181
233
  email: argentoff@gmail.com
182
234
  executables:
@@ -184,14 +236,14 @@ executables:
184
236
  extensions: []
185
237
 
186
238
  extra_rdoc_files:
187
- - LICENSE.txt
239
+ - LICENSE.md
188
240
  - README.rdoc
189
241
  files:
190
242
  - .cvsignore
191
243
  - .document
192
244
  - Gemfile
193
245
  - Gemfile.lock
194
- - LICENSE.txt
246
+ - LICENSE.md
195
247
  - README.rdoc
196
248
  - Rakefile
197
249
  - TODO.md
@@ -201,6 +253,7 @@ files:
201
253
  - gem_graph.png
202
254
  - girror.gemspec
203
255
  - lib/girror.rb
256
+ - profile.pdf
204
257
  has_rdoc: true
205
258
  homepage: http://github.com/argent-smith/girror
206
259
  licenses:
@@ -215,7 +268,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
268
  requirements:
216
269
  - - ">="
217
270
  - !ruby/object:Gem::Version
218
- hash: 452461409
271
+ hash: -352667007
219
272
  segments:
220
273
  - 0
221
274
  version: "0"