plagiarism-checker 2.1.1 → 2.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/copyleaks_api/Models/ResultRecord.rb +56 -58
- data/lib/copyleaks_api/version.rb +1 -1
- 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: 48873f605441c7f95df8bf4804dc695c5121c3a6
|
4
|
+
data.tar.gz: 56031d400ae5b91ebb5c5f842a6ffbd1068447ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82a812427956e5a54fc92f9dc2d07cb87e445aa7ef8838cb6877b4453c44c271b474953780a047b7cc7c9d456130bf85dfe803dc625779b222c0a5f476f3c31d
|
7
|
+
data.tar.gz: b79112bee5ced3b420e473be482bb48b71228039b65224ddb439672c0224d8cd12dce4fa0cbca7b876a39aaac0c909c9c6ba6858fa64999165fa18b8697168f7
|
@@ -1,60 +1,58 @@
|
|
1
1
|
module CopyleaksApi
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
end
|
59
|
-
end
|
2
|
+
class ResultRecord
|
3
|
+
def initialize(response)
|
4
|
+
@URL = response['URL']
|
5
|
+
@Percents = response['Percents']
|
6
|
+
@NumberOfCopiedWords = response['NumberOfCopiedWords']
|
7
|
+
@CachedVersion = response['CachedVersion']
|
8
|
+
@Title = response['Title']
|
9
|
+
@Introduction = response['Introduction']
|
10
|
+
@ComparisonReport = response['ComparisonReport']
|
11
|
+
@EmbededComparison = response['EmbededComparison']
|
12
|
+
end
|
13
|
+
|
14
|
+
def get_url
|
15
|
+
@URL
|
16
|
+
end
|
17
|
+
|
18
|
+
def get_percents
|
19
|
+
@Percents
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_number_of_copied_words
|
23
|
+
@NumberOfCopiedWords
|
24
|
+
end
|
25
|
+
|
26
|
+
def get_cached_version
|
27
|
+
@CachedVersion
|
28
|
+
end
|
29
|
+
|
30
|
+
def get_title
|
31
|
+
@Title
|
32
|
+
end
|
33
|
+
|
34
|
+
def get_introduction
|
35
|
+
@Introduction
|
36
|
+
end
|
37
|
+
|
38
|
+
def get_comparison_report
|
39
|
+
@ComparisonReport
|
40
|
+
end
|
41
|
+
|
42
|
+
def get_embeded_comparison
|
43
|
+
@EmbededComparison
|
44
|
+
end
|
45
|
+
|
46
|
+
def to_s
|
47
|
+
puts "----------------------------------------------------------------"
|
48
|
+
puts "Title: #{@Title}"
|
49
|
+
puts "Introduction: #{@Introduction}"
|
50
|
+
puts "Url: #{@URL}"
|
51
|
+
puts "Percents: #{@Percents}%"
|
52
|
+
puts "NumberOfCopiedWords: #{@NumberOfCopiedWords}"
|
53
|
+
puts "CachedVersion: #{@CachedVersion}"
|
54
|
+
puts "ComparisonReport: #{@ComparisonReport}"
|
55
|
+
puts "EmbededComparison: #{@EmbededComparison}"
|
56
|
+
end
|
57
|
+
end
|
60
58
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plagiarism-checker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Copyleaks ltd
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-08-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: webmock
|