girror 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README.rdoc +1 -1
  2. data/VERSION +1 -1
  3. data/girror.gemspec +3 -4
  4. data/lib/girror.rb +4 -2
  5. metadata +134 -180
data/README.rdoc CHANGED
@@ -27,7 +27,7 @@ besides the ssh/sftp.
27
27
  == CLI reference
28
28
 
29
29
  === girror -h
30
- Girror cli tool, version 0.0.1.
30
+ Girror cli tool, version 0.0.4.
31
31
 
32
32
  Mirrors the remote sftp site and stores the changes in a local git repo.
33
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
data/girror.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{girror}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
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{2011-01-10}
12
+ s.date = %q{2011-04-23}
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}
@@ -38,14 +38,13 @@ Gem::Specification.new do |s|
38
38
  s.homepage = %q{http://github.com/argent-smith/girror}
39
39
  s.licenses = ["MIT"]
40
40
  s.require_paths = ["lib"]
41
- s.rubygems_version = %q{1.3.7}
41
+ s.rubygems_version = %q{1.6.2}
42
42
  s.summary = %q{Remote -> local directory 'mirror' using SFTP transport and Git storage.}
43
43
  s.test_files = [
44
44
  "examples/_girror/config.rb"
45
45
  ]
46
46
 
47
47
  if s.respond_to? :specification_version then
48
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
48
  s.specification_version = 3
50
49
 
51
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
data/lib/girror.rb CHANGED
@@ -41,7 +41,7 @@ require 'iconv'
41
41
  # This module encapsulates *girror*'s namespace.
42
42
  module Girror
43
43
  # Version of the library.
44
- VERSION = "0.0.3"
44
+ VERSION = "0.0.4"
45
45
 
46
46
  # Regexp to filter out 'technical' files which aren't normally a part of
47
47
  # the mirrored tree and therefore should be _ignored_.
@@ -243,7 +243,9 @@ module Girror
243
243
  # differentiate the lists; remove what's needed from local repo
244
244
  diff = llist - rlist
245
245
  diff.each do |n|
246
- n = File.join(lname, n)
246
+ # the string should be converted back to local encoding before any
247
+ # operations
248
+ n = Iconv.conv(@lenc, "utf-8", File.join(lname, n))
247
249
  log "Removing #{n}"
248
250
  @git.remove n, :recursive => true
249
251
  end
metadata CHANGED
@@ -1,244 +1,202 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: girror
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 3
9
- version: 0.0.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Pavel Argentov
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-01-10 00:00:00 +03:00
12
+ date: 2011-04-23 00:00:00.000000000 +04:00
18
13
  default_executable: girror
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: net-sftp
22
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &343032770 !ruby/object:Gem::Requirement
23
18
  none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
30
23
  type: :runtime
31
24
  prerelease: false
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
25
+ version_requirements: *343032770
26
+ - !ruby/object:Gem::Dependency
34
27
  name: git
35
- requirement: &id002 !ruby/object:Gem::Requirement
28
+ requirement: &343032350 !ruby/object:Gem::Requirement
36
29
  none: false
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 0
42
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
43
34
  type: :runtime
44
35
  prerelease: false
45
- version_requirements: *id002
46
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *343032350
37
+ - !ruby/object:Gem::Dependency
47
38
  name: highline
48
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ requirement: &343031990 !ruby/object:Gem::Requirement
49
40
  none: false
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- segments:
54
- - 0
55
- version: "0"
41
+ requirements:
42
+ - - ! '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
56
45
  type: :runtime
57
46
  prerelease: false
58
- version_requirements: *id003
59
- - !ruby/object:Gem::Dependency
47
+ version_requirements: *343031990
48
+ - !ruby/object:Gem::Dependency
60
49
  name: syslog-logger
61
- requirement: &id004 !ruby/object:Gem::Requirement
50
+ requirement: &342949640 !ruby/object:Gem::Requirement
62
51
  none: false
63
- requirements:
64
- - - ">="
65
- - !ruby/object:Gem::Version
66
- segments:
67
- - 0
68
- version: "0"
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '0'
69
56
  type: :runtime
70
57
  prerelease: false
71
- version_requirements: *id004
72
- - !ruby/object:Gem::Dependency
58
+ version_requirements: *342949640
59
+ - !ruby/object:Gem::Dependency
73
60
  name: shoulda
74
- requirement: &id005 !ruby/object:Gem::Requirement
61
+ requirement: &342949260 !ruby/object:Gem::Requirement
75
62
  none: false
76
- requirements:
77
- - - ">="
78
- - !ruby/object:Gem::Version
79
- segments:
80
- - 0
81
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
82
67
  type: :development
83
68
  prerelease: false
84
- version_requirements: *id005
85
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *342949260
70
+ - !ruby/object:Gem::Dependency
86
71
  name: bundler
87
- requirement: &id006 !ruby/object:Gem::Requirement
72
+ requirement: &342948950 !ruby/object:Gem::Requirement
88
73
  none: false
89
- requirements:
74
+ requirements:
90
75
  - - ~>
91
- - !ruby/object:Gem::Version
92
- segments:
93
- - 1
94
- - 0
95
- - 0
76
+ - !ruby/object:Gem::Version
96
77
  version: 1.0.0
97
78
  type: :development
98
79
  prerelease: false
99
- version_requirements: *id006
100
- - !ruby/object:Gem::Dependency
80
+ version_requirements: *342948950
81
+ - !ruby/object:Gem::Dependency
101
82
  name: jeweler
102
- requirement: &id007 !ruby/object:Gem::Requirement
83
+ requirement: &342948670 !ruby/object:Gem::Requirement
103
84
  none: false
104
- requirements:
85
+ requirements:
105
86
  - - ~>
106
- - !ruby/object:Gem::Version
107
- segments:
108
- - 1
109
- - 5
110
- - 1
87
+ - !ruby/object:Gem::Version
111
88
  version: 1.5.1
112
89
  type: :development
113
90
  prerelease: false
114
- version_requirements: *id007
115
- - !ruby/object:Gem::Dependency
91
+ version_requirements: *342948670
92
+ - !ruby/object:Gem::Dependency
116
93
  name: rcov
117
- requirement: &id008 !ruby/object:Gem::Requirement
94
+ requirement: &342948260 !ruby/object:Gem::Requirement
118
95
  none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- segments:
123
- - 0
124
- version: "0"
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
125
100
  type: :development
126
101
  prerelease: false
127
- version_requirements: *id008
128
- - !ruby/object:Gem::Dependency
102
+ version_requirements: *342948260
103
+ - !ruby/object:Gem::Dependency
129
104
  name: yard
130
- requirement: &id009 !ruby/object:Gem::Requirement
105
+ requirement: &342947900 !ruby/object:Gem::Requirement
131
106
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- segments:
136
- - 0
137
- version: "0"
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
138
111
  type: :development
139
112
  prerelease: false
140
- version_requirements: *id009
141
- - !ruby/object:Gem::Dependency
113
+ version_requirements: *342947900
114
+ - !ruby/object:Gem::Dependency
142
115
  name: bluecloth
143
- requirement: &id010 !ruby/object:Gem::Requirement
116
+ requirement: &342947540 !ruby/object:Gem::Requirement
144
117
  none: false
145
- requirements:
146
- - - ">="
147
- - !ruby/object:Gem::Version
148
- segments:
149
- - 0
150
- version: "0"
118
+ requirements:
119
+ - - ! '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
151
122
  type: :development
152
123
  prerelease: false
153
- version_requirements: *id010
154
- - !ruby/object:Gem::Dependency
124
+ version_requirements: *342947540
125
+ - !ruby/object:Gem::Dependency
155
126
  name: bluecloth
156
- requirement: &id011 !ruby/object:Gem::Requirement
127
+ requirement: &342947210 !ruby/object:Gem::Requirement
157
128
  none: false
158
- requirements:
159
- - - ">="
160
- - !ruby/object:Gem::Version
161
- segments:
162
- - 0
163
- version: "0"
129
+ requirements:
130
+ - - ! '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
164
133
  type: :development
165
134
  prerelease: false
166
- version_requirements: *id011
167
- - !ruby/object:Gem::Dependency
135
+ version_requirements: *342947210
136
+ - !ruby/object:Gem::Dependency
168
137
  name: yard
169
- requirement: &id012 !ruby/object:Gem::Requirement
138
+ requirement: &342946900 !ruby/object:Gem::Requirement
170
139
  none: false
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- segments:
175
- - 0
176
- version: "0"
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
177
144
  type: :development
178
145
  prerelease: false
179
- version_requirements: *id012
180
- - !ruby/object:Gem::Dependency
146
+ version_requirements: *342946900
147
+ - !ruby/object:Gem::Dependency
181
148
  name: net-sftp
182
- requirement: &id013 !ruby/object:Gem::Requirement
149
+ requirement: &342946650 !ruby/object:Gem::Requirement
183
150
  none: false
184
- requirements:
185
- - - ">="
186
- - !ruby/object:Gem::Version
187
- segments:
188
- - 0
189
- version: "0"
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
190
155
  type: :runtime
191
156
  prerelease: false
192
- version_requirements: *id013
193
- - !ruby/object:Gem::Dependency
157
+ version_requirements: *342946650
158
+ - !ruby/object:Gem::Dependency
194
159
  name: git
195
- requirement: &id014 !ruby/object:Gem::Requirement
160
+ requirement: &342946350 !ruby/object:Gem::Requirement
196
161
  none: false
197
- requirements:
198
- - - ">="
199
- - !ruby/object:Gem::Version
200
- segments:
201
- - 0
202
- version: "0"
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
203
166
  type: :runtime
204
167
  prerelease: false
205
- version_requirements: *id014
206
- - !ruby/object:Gem::Dependency
168
+ version_requirements: *342946350
169
+ - !ruby/object:Gem::Dependency
207
170
  name: highline
208
- requirement: &id015 !ruby/object:Gem::Requirement
171
+ requirement: &342946100 !ruby/object:Gem::Requirement
209
172
  none: false
210
- requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- segments:
214
- - 0
215
- version: "0"
173
+ requirements:
174
+ - - ! '>='
175
+ - !ruby/object:Gem::Version
176
+ version: '0'
216
177
  type: :runtime
217
178
  prerelease: false
218
- version_requirements: *id015
219
- - !ruby/object:Gem::Dependency
179
+ version_requirements: *342946100
180
+ - !ruby/object:Gem::Dependency
220
181
  name: syslog-logger
221
- requirement: &id016 !ruby/object:Gem::Requirement
182
+ requirement: &342945840 !ruby/object:Gem::Requirement
222
183
  none: false
223
- requirements:
224
- - - ">="
225
- - !ruby/object:Gem::Version
226
- segments:
227
- - 0
228
- version: "0"
184
+ requirements:
185
+ - - ! '>='
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
229
188
  type: :runtime
230
189
  prerelease: false
231
- version_requirements: *id016
190
+ version_requirements: *342945840
232
191
  description: Retrieves remote directory via SFTP and stores it in local Git repository.
233
192
  email: argentoff@gmail.com
234
- executables:
193
+ executables:
235
194
  - girror
236
195
  extensions: []
237
-
238
- extra_rdoc_files:
196
+ extra_rdoc_files:
239
197
  - LICENSE.md
240
198
  - README.rdoc
241
- files:
199
+ files:
242
200
  - .cvsignore
243
201
  - .document
244
202
  - Gemfile
@@ -256,36 +214,32 @@ files:
256
214
  - profile.pdf
257
215
  has_rdoc: true
258
216
  homepage: http://github.com/argent-smith/girror
259
- licenses:
217
+ licenses:
260
218
  - MIT
261
219
  post_install_message:
262
220
  rdoc_options: []
263
-
264
- require_paths:
221
+ require_paths:
265
222
  - lib
266
- required_ruby_version: !ruby/object:Gem::Requirement
223
+ required_ruby_version: !ruby/object:Gem::Requirement
267
224
  none: false
268
- requirements:
269
- - - ">="
270
- - !ruby/object:Gem::Version
271
- hash: -78938705
272
- segments:
225
+ requirements:
226
+ - - ! '>='
227
+ - !ruby/object:Gem::Version
228
+ version: '0'
229
+ segments:
273
230
  - 0
274
- version: "0"
275
- required_rubygems_version: !ruby/object:Gem::Requirement
231
+ hash: 136197517
232
+ required_rubygems_version: !ruby/object:Gem::Requirement
276
233
  none: false
277
- requirements:
278
- - - ">="
279
- - !ruby/object:Gem::Version
280
- segments:
281
- - 0
282
- version: "0"
234
+ requirements:
235
+ - - ! '>='
236
+ - !ruby/object:Gem::Version
237
+ version: '0'
283
238
  requirements: []
284
-
285
239
  rubyforge_project:
286
- rubygems_version: 1.3.7
240
+ rubygems_version: 1.6.2
287
241
  signing_key:
288
242
  specification_version: 3
289
243
  summary: Remote -> local directory 'mirror' using SFTP transport and Git storage.
290
- test_files:
244
+ test_files:
291
245
  - examples/_girror/config.rb