content_server 1.7.1 → 1.7.2
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.
- checksums.yaml +4 -4
- data/bin/fix_content_data +31 -0
- data/lib/content_data/content_data.rb +1 -1
- data/lib/content_server/version.rb +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a288112dbf913248ae14dab2ab1fa643974dda1
|
4
|
+
data.tar.gz: d8316b22760a0462a0f6250c5e17f78a924af61e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fa5f8092cd8593d6cc6601ffa3316f2beb8857f2a747ba08e330703126643b739c27796ec08185443c1ae57a2698cb961bdc39473c93241d32d902b9fa75948
|
7
|
+
data.tar.gz: ee91201c9e3d320ab9e561f203fbc54bccb42f36db36180fdd4cfb720321ee4ccc6514f859d6d0dec84d577834a815849ed74b695d8bd690732f0a287f259bf7
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'content_data/content_data'
|
4
|
+
require 'params'
|
5
|
+
|
6
|
+
usage = <<END
|
7
|
+
Get two file names, one is source content data, other is destination,
|
8
|
+
and a delimiter that separates fields in the source content data file
|
9
|
+
(optional, default is ',').
|
10
|
+
Converts source content data old format to new format and writes it
|
11
|
+
to the destination file.
|
12
|
+
Usage:
|
13
|
+
#{$PROGRAM_NAME} old.cd fixed.cd
|
14
|
+
is equivalent to
|
15
|
+
#{$PROGRAM_NAME} old.cd fixed.cd ','
|
16
|
+
END
|
17
|
+
|
18
|
+
unless ARGV.length >= 2
|
19
|
+
puts usage
|
20
|
+
exit
|
21
|
+
end
|
22
|
+
|
23
|
+
Params.init
|
24
|
+
|
25
|
+
cd = ContentData::ContentData.new
|
26
|
+
if ARGV.length > 2
|
27
|
+
cd.from_file_old(ARGV[0], ARGV[2])
|
28
|
+
else
|
29
|
+
cd.from_file_old(ARGV[0])
|
30
|
+
end
|
31
|
+
cd.to_file(ARGV[1])
|
@@ -361,7 +361,7 @@ module ContentData
|
|
361
361
|
elsif number_of_instances > 0
|
362
362
|
if (6 != row.length)
|
363
363
|
raise("Parse error of content data file:#{filename} line ##{$.}\n" +
|
364
|
-
"Expected to read 6 fields ('<' separated) but got #{row.length}
|
364
|
+
"Expected to read 6 fields ('<' separated) but got #{row.length}.")
|
365
365
|
end
|
366
366
|
add_instance(row[0], #checksum
|
367
367
|
row[1].to_i, # size
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: content_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- BBFS Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: algorithms
|
@@ -84,22 +84,23 @@ dependencies:
|
|
84
84
|
name: thin
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: '0'
|
97
97
|
description: Monitor and Index a directory and back it up to backup server.
|
98
98
|
email: bbfsdev@gmail.com
|
99
99
|
executables:
|
100
100
|
- content_server
|
101
101
|
- backup_server
|
102
102
|
- file_utils
|
103
|
+
- fix_content_data
|
103
104
|
- testing_server
|
104
105
|
- testing_memory
|
105
106
|
extensions:
|
@@ -109,6 +110,7 @@ files:
|
|
109
110
|
- bin/backup_server
|
110
111
|
- bin/content_server
|
111
112
|
- bin/file_utils
|
113
|
+
- bin/fix_content_data
|
112
114
|
- bin/testing_memory
|
113
115
|
- bin/testing_server
|
114
116
|
- ext/run_in_background/mkrf_conf.rb
|