playoverwatch-scraper 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ba4b5008c58bd07896e5443795e32044734d99233e7d2ffa76747f3d098de95
4
- data.tar.gz: 1f8a0fa7d81a5527ff146153269e34903a2733d528dd9aee1bd8c5b050ee1b38
3
+ metadata.gz: e4ad598a9c405c28a8629efb8c21b939c598de5d0b183831a55a8a19b3b09172
4
+ data.tar.gz: d5dcd6de00f4cfc0a89299ca18a179dd98f9065949d1de0cf328bd1b59a886f2
5
5
  SHA512:
6
- metadata.gz: 6d887e89c72c7a94d3eea83617e71e7e79614402d043019cdef86f5ababe8d99195f11cd4494f57d2bd9d1b72ac7211b64776a2ddfcba28dcdb1e24c25fdb9e0
7
- data.tar.gz: 4972ea7ff6bf8e7a162e5ee1d59cf193762f07c52ee08726bf507d6de644dc38ba246e115ded1acbcfa9a82cd37ea00ced70705655447c6b54d93c473db7f3ee
6
+ metadata.gz: 53247fb412ff248ac165efcaa004bbe0908b331b89089155499550c164dc9eb1556caa6dca640c488224996df0fd63b497eec58465b71414a7173b8e42380d93
7
+ data.tar.gz: fc14820b44490c6040a24a675e93029c3530c26f2cd509ca82224a279c4b7a6815b5c207ab5f4296db48e82087092b3a983f6485d6b9f9c1eded6d4cf465fb64
data/.travis.yml CHANGED
@@ -8,3 +8,4 @@ deploy:
8
8
  api_key: $RUBYGEMS_API_KEY
9
9
  on:
10
10
  tags: true
11
+ all_branches: true
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- playoverwatch-scraper (0.1.0)
4
+ playoverwatch-scraper (0.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # playoverwatch-scraper
2
- [RubyDocs](https://www.rubydoc.info/github/bottleneckco/playoverwatch-scraper/master)
3
2
  [![Build Status](https://travis-ci.org/bottleneckco/playoverwatch-scraper.svg?branch=master)](https://travis-ci.org/bottleneckco/playoverwatch-scraper)
3
+ [![Gem Version](https://badge.fury.io/rb/playoverwatch-scraper.svg)](https://badge.fury.io/rb/playoverwatch-scraper)
4
4
 
5
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/playoverwatch/scraper`. To experiment with that code, run `bin/console` for an interactive prompt.
5
+ Retrieve player statistics from their profiles on [the Overwatch website](playoverwatch.com).
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,6 +22,8 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
+ [RubyDocs](https://www.rubydoc.info/github/bottleneckco/playoverwatch-scraper/master)
26
+
25
27
  ```ruby
26
28
  scraper = PlayOverwatch::Scraper.new('Someone-1234')
27
29
 
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'playoverwatch/scraper'
4
+ require 'json'
5
+
6
+ scraper = PlayOverwatch::Scraper.new(ARGV[0])
7
+ data = {
8
+ :player_icon => scraper.player_icon,
9
+ :player_level => scraper.player_level,
10
+ :endorsement_level => scraper.endorsement_level,
11
+ :sr => scraper.sr,
12
+ :main_qp => scraper.main_qp,
13
+ :main_comp => scraper.main_comp
14
+ }
15
+
16
+ puts JSON.pretty_generate(data)
@@ -1,3 +1,3 @@
1
1
  module PlayOverwatch
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playoverwatch-scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Duncan Leo
@@ -55,7 +55,8 @@ dependencies:
55
55
  description: Scraper library for playoverwatch.com
56
56
  email:
57
57
  - duncanleo97@gmail.com
58
- executables: []
58
+ executables:
59
+ - playoverwatch-scraper
59
60
  extensions: []
60
61
  extra_rdoc_files: []
61
62
  files:
@@ -70,6 +71,7 @@ files:
70
71
  - Rakefile
71
72
  - bin/console
72
73
  - bin/setup
74
+ - exe/playoverwatch-scraper
73
75
  - lib/playoverwatch.rb
74
76
  - lib/playoverwatch/ranks.json
75
77
  - lib/playoverwatch/scraper.rb