ogs_katacheck 0.1.0 → 0.1.5

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
  SHA256:
3
- metadata.gz: 1aab2ad84305b247e1322ca044945c54f70b791018335241fad5dd84dd366334
4
- data.tar.gz: d27f633ba9711c8919dbd31a3804894223d8abe580fe038b4fada757f0c74690
3
+ metadata.gz: c92d299392ca4458d86bcc62e2caaff21685c32a5e3e879068eb8f5c940a894b
4
+ data.tar.gz: 273ef4d65160c92bedc574a98b27c091de761147ccb2e9f60a4be96ae6cf294e
5
5
  SHA512:
6
- metadata.gz: 319fb6ca517da68aa5b239df2d2549104f2e3908fdcc2c3e022d635806db2f1b0db7967494b623f43f8b25d86803718bcee0df27a1bf9996dd5889875963472f
7
- data.tar.gz: af2912f11d6146ded07656e729540a565ad06313131b3442aa67a553cb968139447d2d56e1ac621270655c58f421ed17c0bb66682b88be3574cddb46d19feb3d
6
+ metadata.gz: fbdf7d43f212e20bfb0972717548625b0e57c26f52e951ce1c64ffb2a99ad8dcc5bd6f70070cdc3416f30acf273a2cd85b9436ec773f7e84c919b2258c768eb6
7
+ data.tar.gz: 977f1cd671e47706fd97af56f5520bdd1a9165ca468f35768f221be84d658a21a0a54817a03d47acbaedf04782856e43b473b7ad57fc9f515bd1c4daf1caaf0f
data/.gitignore CHANGED
@@ -6,3 +6,4 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ .DS_Store
@@ -1,4 +1,19 @@
1
1
  # Change Log
2
2
 
3
3
  ### 0.1.0
4
- - Added ability to check games against OGS full reviews.
4
+ - Added ability to check games against OGS full reviews.
5
+
6
+ ### 0.1.1
7
+ - add `ogs-katacheck` executable
8
+
9
+ ### 0.1.2
10
+ - add `katacheck` executable
11
+
12
+ ### 0.1.3
13
+ - bug fix
14
+
15
+ ### 0.1.4
16
+ - bug fix
17
+
18
+ ### 0.1.5
19
+ - bug fix
@@ -0,0 +1,26 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ogs_katacheck (0.1.5)
5
+ faraday
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ faraday (1.1.0)
11
+ multipart-post (>= 1.2, < 3)
12
+ ruby2_keywords
13
+ multipart-post (2.1.1)
14
+ rake (12.3.0)
15
+ ruby2_keywords (0.0.2)
16
+
17
+ PLATFORMS
18
+ ruby
19
+
20
+ DEPENDENCIES
21
+ faraday
22
+ ogs_katacheck!
23
+ rake (~> 12.0)
24
+
25
+ BUNDLED WITH
26
+ 2.1.4
data/README.md CHANGED
@@ -6,7 +6,7 @@ It pulls game information from the OGS API and checks the user submitted moves a
6
6
 
7
7
  ## Installation
8
8
 
9
- You will need to have Ruby installed on your machine to run this CLI. If you are using a Mac, this is already done for you. If on a Windows machine you can install it by following [these instructions](https://stackify.com/install-ruby-on-windows-everything-you-need-to-get-going/).
9
+ **You will need to have Ruby installed on your machine to run this CLI.** If you are using a Mac, this should already be done for you. If on a Windows machine you can install it by following [these instructions](https://stackify.com/install-ruby-on-windows-everything-you-need-to-get-going/). You can verify that everything is installed properly by running `ruby -v` and `gem -v`, you should see versions for both after running these commands.
10
10
 
11
11
  To install this Gem, open a terminal and run:
12
12
 
@@ -18,12 +18,20 @@ After installing OGS KataCheck, you can run it by opening a terminal and typing:
18
18
 
19
19
  $ ogs-katacheck
20
20
 
21
+ or
22
+
23
+ $ katacheck
24
+
21
25
  You will be asked to enter a game ID. This can be simply copied and pasted from OGS.
22
26
 
23
27
  You will then be presented with a list of available OGS AI reviews. **Only full reviews** are useable with this tool. If you do not see a full review in the list, open the game in OGS and run a full review. Once the server has completed the review, re-run the tool.
24
28
 
29
+ ![Review Selection](https://github.com/RubyMineshaft/ogs_katacheck/blob/main/images/reviews.png)
30
+
25
31
  The tool will output the number of user submitted moves that match the top 4 moves suggested by the AI in the review. Obviously, `tier 1` and `tier 2` moves are most important to look at, but the overall percentages can also be helpful.
26
32
 
33
+ ![Output Example](https://github.com/RubyMineshaft/ogs_katacheck/blob/main/images/output.png)
34
+
27
35
  ***Note:** A high percentage match in a game does not necessarily mean the user is cheating, but high percentage matches across many games will certainly warrant further investigation.*
28
36
 
29
37
  ## Development
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'ogs_katacheck'
4
+
5
+ OGSKataCheck::CLI.new.call
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require './lib/ogs_katacheck'
3
+ require 'ogs_katacheck'
4
4
 
5
5
  OGSKataCheck::CLI.new.call
Binary file
Binary file
@@ -1,4 +1,3 @@
1
- require 'pry'
2
1
  require 'faraday'
3
2
  require 'json'
4
3
  require_relative "./ogs_katacheck/version"
@@ -1,3 +1,3 @@
1
1
  module OGSKataCheck
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.5"
3
3
  end
@@ -22,7 +22,8 @@ Gem::Specification.new do |spec|
22
22
  spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23
23
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24
24
  end
25
- spec.bindir = "exe"
26
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
25
+ spec.add_runtime_dependency "faraday"
26
+ spec.bindir = "bin"
27
+ spec.executables = ["ogs-katacheck", "katacheck"]
27
28
  spec.require_paths = ["lib"]
28
29
  end
metadata CHANGED
@@ -1,31 +1,52 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ogs_katacheck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - RubyMineshaft
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-22 00:00:00.000000000 Z
12
- dependencies: []
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: faraday
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  description: This CLI gem is written for OGS team members in order to aid in investigating
14
28
  suspicions of botting.
15
29
  email:
16
30
  - rubymineshaft@online-go.com
17
- executables: []
31
+ executables:
32
+ - ogs-katacheck
33
+ - katacheck
18
34
  extensions: []
19
35
  extra_rdoc_files: []
20
36
  files:
37
+ - ".DS_Store"
21
38
  - ".gitignore"
22
39
  - CHANGELOG.md
23
40
  - Gemfile
41
+ - Gemfile.lock
24
42
  - README.md
25
43
  - Rakefile
26
44
  - bin/console
45
+ - bin/katacheck
27
46
  - bin/ogs-katacheck
28
47
  - bin/setup
48
+ - images/output.png
49
+ - images/reviews.png
29
50
  - lib/ogs_katacheck.rb
30
51
  - lib/ogs_katacheck/cli.rb
31
52
  - lib/ogs_katacheck/full_review.rb