content_server 1.7.1 → 1.7.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9a63eee2309b1dd4c6ef0be4cff6bfda6595f0b0
4
- data.tar.gz: 5071dac6c7413718c60db1ea71c0f3cefe70f6c4
3
+ metadata.gz: 0a288112dbf913248ae14dab2ab1fa643974dda1
4
+ data.tar.gz: d8316b22760a0462a0f6250c5e17f78a924af61e
5
5
  SHA512:
6
- metadata.gz: 36fff7c2a300f6928dc6eec4af451e477ef78e2d703729c895c7329ef56fa8992444150abbbef1cc731d3ea176961b1c415e1a7f0966873f8317d1b93c08d653
7
- data.tar.gz: bd23efe8a7e65e0411718dd873915918a0e31b9141707f544dde6e2eb6ce45d3bb13f81f3ca3d18fc9bb293d01cb56669b4f638d24c95ef96ca1e55a031e371e
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}.\nLine:#{instance_line}")
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
@@ -1,3 +1,3 @@
1
1
  module ContentServer
2
- VERSION = "1.7.1"
2
+ VERSION = "1.7.2"
3
3
  end
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.1
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-05-29 00:00:00.000000000 Z
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: 1.6.2
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: 1.6.2
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