moss_ruby 1.0.8 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/moss_ruby.rb +1 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 66a5d06f4c05993237b97c727e20090b90fffafc
|
4
|
+
data.tar.gz: 54080efb6f31bacb9e6e31c7b80425e2723148e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7bf9286ed32e74da05c5c832a6f1fa62ce253d8538a5dcd5b8e7ed2ef17f941f7c54c30ef705aacf655bb265f1cc935ad111b8790f3cbdf4f389315c91ad1712
|
7
|
+
data.tar.gz: 5d436e7473f5deb1cb9bd40e2ec2263bd995ae5ce200679f83c50691a0a42a1081e9b7189b4b1e6e01c24587eeca525026b3d80cb115b385ceecba7e4856ae5e
|
data/lib/moss_ruby.rb
CHANGED
@@ -66,21 +66,12 @@ class MossRuby
|
|
66
66
|
end
|
67
67
|
|
68
68
|
content = IO.read(filename)
|
69
|
-
size = content.length
|
69
|
+
size = content.bytes.length
|
70
70
|
|
71
71
|
if size > 0
|
72
72
|
moss_server.write "file #{id} #{@options[:language]} #{size} #{file}\n"
|
73
73
|
moss_server.write content
|
74
74
|
end
|
75
|
-
puts "File upload size #{filename} #{size}"
|
76
|
-
begin
|
77
|
-
line = moss_server.read_nonblock(100)
|
78
|
-
puts "--------------------------------------------"
|
79
|
-
puts " From MOSS: #{line}"
|
80
|
-
puts "--------------------------------------------"
|
81
|
-
rescue IO::WaitReadable
|
82
|
-
#expected
|
83
|
-
end
|
84
75
|
end
|
85
76
|
|
86
77
|
def check(files_dict, callback=nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moss_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Cain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Moss-ruby is an unofficial ruby gem for the Moss system for Detecting
|
14
14
|
Software Plagiarism (http://theory.stanford.edu/~aiken/moss/)
|