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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/moss_ruby.rb +1 -10
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: de73a58e506ce9d6bd301468837e0015172bd9e8
4
- data.tar.gz: 6a42a22ed34ef12ee88520f98679b3b05c67ba72
3
+ metadata.gz: 66a5d06f4c05993237b97c727e20090b90fffafc
4
+ data.tar.gz: 54080efb6f31bacb9e6e31c7b80425e2723148e5
5
5
  SHA512:
6
- metadata.gz: 542d17634cb116fee0856d008be17594256d0f5440f776284a94ca93ffaa655fdf2279bd65019142aeff1610373b8f6091644f789f6e6f0a74adc83535ea4a11
7
- data.tar.gz: 0f72cea79daa7112c91f094c12d28ba27a2b2bf73f2ca7fe0a601db04717d21e47b793ebd8a7608253048fda4ec69103a1adbe0bd562a3daa2183fd3710c72cc
6
+ metadata.gz: 7bf9286ed32e74da05c5c832a6f1fa62ce253d8538a5dcd5b8e7ed2ef17f941f7c54c30ef705aacf655bb265f1cc935ad111b8790f3cbdf4f389315c91ad1712
7
+ data.tar.gz: 5d436e7473f5deb1cb9bd40e2ec2263bd995ae5ce200679f83c50691a0a42a1081e9b7189b4b1e6e01c24587eeca525026b3d80cb115b385ceecba7e4856ae5e
@@ -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.8
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-26 00:00:00.000000000 Z
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/)