plagiarism-checker 2.0.0 → 2.1.0

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: a856007784b1580e5c8ca554fc9a22ad847f854e
4
- data.tar.gz: 7b3342e7458536584f404273815d4407c01fc31a
3
+ metadata.gz: fc69af416df5c9fdcb6d97788f556ad594c301bb
4
+ data.tar.gz: 92d7e25795452ed9a1241fdedd10e47e3c99b502
5
5
  SHA512:
6
- metadata.gz: 9262172bde5a793f4edf4cbe615520c5a23737cfd410fc364aaca2ed3da7cdee1c916b656133e240151e1a090ff7c47992d0654c8260f4b21c2ab80597ae1bbd
7
- data.tar.gz: b082d51155d016a2a223f784ccdf80b928eb9c8803a62c9da020f7128d0ec663d68a9a348b1cf298c49bbb23baf692b1afcbc1922ee7a83f7a3f54c9f8650ae2
6
+ metadata.gz: d4bd6b1e0658ee937925892c82b8fe988826f63e84879bca2a4d353889204cb218eede696765db27b4566fc4eac1837d89c60086ecd6aafa78dee07b72a32daa
7
+ data.tar.gz: 6b1d88d3a9aa67ff33567156d8da0c21b7da34b96bdc1be983094166cf64ea2517d2af3fa8a868e569be96da3752a9c22af89a6e1ff48cd496a522158a8c21ac
@@ -1,58 +1,60 @@
1
1
  module CopyleaksApi
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}"
2
+ module Models
3
+ class ResultRecord
4
+ def initialize(response)
5
+ @URL = response['URL']
6
+ @Percents = response['Percents']
7
+ @NumberOfCopiedWords = response['NumberOfCopiedWords']
8
+ @CachedVersion = response['CachedVersion']
9
+ @Title = response['Title']
10
+ @Introduction = response['Introduction']
11
+ @ComparisonReport = response['ComparisonReport']
12
+ @EmbededComparison = response['EmbededComparison']
13
+ end
14
+
15
+ def get_url
16
+ @URL
17
+ end
18
+
19
+ def get_percents
20
+ @Percents
21
+ end
22
+
23
+ def get_number_of_copied_words
24
+ @NumberOfCopiedWords
25
+ end
26
+
27
+ def get_cached_version
28
+ @CachedVersion
29
+ end
30
+
31
+ def get_title
32
+ @Title
33
+ end
34
+
35
+ def get_introduction
36
+ @Introduction
37
+ end
38
+
39
+ def get_comparison_report
40
+ @ComparisonReport
41
+ end
42
+
43
+ def get_embeded_comparison
44
+ @EmbededComparison
45
+ end
46
+
47
+ def to_s
48
+ puts "----------------------------------------------------------------"
49
+ puts "Title: #{@Title}"
50
+ puts "Introduction: #{@Introduction}"
51
+ puts "Url: #{@URL}"
52
+ puts "Percents: #{@Percents}%"
53
+ puts "NumberOfCopiedWords: #{@NumberOfCopiedWords}"
54
+ puts "CachedVersion: #{@CachedVersion}"
55
+ puts "ComparisonReport: #{@ComparisonReport}"
56
+ puts "EmbededComparison: #{@EmbededComparison}"
57
+ end
56
58
  end
57
59
  end
58
60
  end
@@ -1,3 +1,3 @@
1
1
  module CopyleaksApi
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plagiarism-checker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Copyleaks ltd