hw_checker 1.3.45 → 1.3.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/hw_checker +6 -2
- data/lib/hw_checker/directory_exist_error.rb +3 -0
- data/lib/hw_checker/file_scan.rb +2 -2
- data/lib/hw_checker.rb +1 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzQ1YmJlODY0MzJhMjAxNmZjZDIwNDRiMWRiOGY4MWU5NTlhMTk1MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OWNiNmMzNjM5NTkyNjM0YjQ0MTM0YWI2ODA3NTRiZjBhMDMzZGM3ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWQzZWYzMmIxMWVlMTRmNmY2NTcwNzEwZTk3Yzc3YTg2NzcwMmI2N2QwZTcw
|
10
|
+
MmQxNDFlYjMxMjE3YzlmYmJiNDk4ZTI0N2Q0MzAwYTUxNzA4ZjhkZWMxZTJi
|
11
|
+
YWFjMWM4NmQ3ZWE1NmE2ZGU3YWJjNTdmNTI5N2Y0YjZlYWIyOTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWM3OTQ3Mzc5ZDVjNTkyNzc3MTQyMDYxMjk4MzlhMmY2MTgyMTIzMWE2MzIx
|
14
|
+
ZDMxMDEyMmMyZWVjMWU4OWI5OGFkODlhZjUxYTRjY2I1MDA3M2JjYjE1ZjY0
|
15
|
+
YzE0NGFjYjdmNzc2ZDU4YzkxNDJiMWI0ZGY0Yjk1NWMzYmM4MmE=
|
data/bin/hw_checker
CHANGED
@@ -2,6 +2,10 @@
|
|
2
2
|
|
3
3
|
require 'hw_checker'
|
4
4
|
|
5
|
-
|
6
|
-
HomeWorkChecker::
|
5
|
+
begin
|
6
|
+
HomeWorkChecker::FileScan.new(ARGV[0], '/tmp').each do |name, type|
|
7
|
+
HomeWorkChecker::Base.start(ARGV[0], '/tmp', name, type)
|
8
|
+
end
|
9
|
+
rescue HomeWorkChecker::DirectoryExistError => error
|
10
|
+
puts error.message, error.backtrace
|
7
11
|
end
|
data/lib/hw_checker/file_scan.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
module HomeWorkChecker
|
2
2
|
class FileScan
|
3
3
|
def initialize(work_path, tmp_path = '/tmp')
|
4
|
-
raise "Directory #{work_path} does not exist" unless Dir::exist?(work_path)
|
5
|
-
raise "Directory #{tmp_path} does not exist" unless Dir::exist?(tmp_path)
|
4
|
+
raise DirectoryExistError, "Directory #{work_path} does not exist" unless Dir::exist?(work_path)
|
5
|
+
raise DirectoryExistError, "Directory #{tmp_path} does not exist" unless Dir::exist?(tmp_path)
|
6
6
|
@work_path, @tmp_path, @files = work_path, tmp_path, []
|
7
7
|
Dir.foreach(@work_path) do |p|
|
8
8
|
if File.file?("#{@work_path}/#{p}") && FILE_TYPES.include?(File.extname p) && !exist_xml?(p)
|
data/lib/hw_checker.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hw_checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.46
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lv-LAMP-085
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.7.2
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.7.2
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: nokogiri
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -64,6 +64,7 @@ files:
|
|
64
64
|
- lib/hw_checker/file_scan.rb
|
65
65
|
- lib/hw_checker/unarchive.rb
|
66
66
|
- lib/hw_checker/python_stat.rb
|
67
|
+
- lib/hw_checker/directory_exist_error.rb
|
67
68
|
- lib/hw_checker/test_run_stat.rb
|
68
69
|
- lib/hw_checker/zip.rb
|
69
70
|
- lib/hw_checker/ruby_stat.rb
|