fortniteapi 0.0.5 → 0.0.7

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/fortniteapi/api.rb +3 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4453e8efbcccc54d1c91ccd249250a5f5dba2915d6193a65755cfb530495f430
4
- data.tar.gz: da1b275cd6dc8c5211e892f37be565c7d2e9915780665e3d1f07f54ab93e03f7
3
+ metadata.gz: 62a6991c2fda2616a8d6e5a9c8388e3379799a9c757b03d7473573b3b9bb8714
4
+ data.tar.gz: 571e3a0030fa7e5ee5816d19ace61b33b48f844342112264064783ed05dceea1
5
5
  SHA512:
6
- metadata.gz: 1cb64d1de3984cc429203f2cedff57ebdf4ae0a480790c4c2e18dcbbe2b78b5827375337005d64d76b22c63d9964b704dad96610b77c568cb396c0a9c4ba1d01
7
- data.tar.gz: dfd5755d6143c43a3f09749b2cf3ec2b8b925e9a2c61bb50bb35f2f74af6e8566eb232c0fb43b5b692f7e50c16828eac9c34b81336c0cc299a47f2d53247d2f3
6
+ metadata.gz: 86c226d70a95af3371bf6f6786f27e5266098d3bcaa6c937e2c47744c4523c4b9fb28bef48f00164ce933eb985deb865c8e5903aded19a63233c7d2ef33a52b3
7
+ data.tar.gz: 8ddfab84bf0eb5310c3a534836440c90524ac7f6559773ba3afc5e7130735508eb6686ca9631de6d3489aaa473bb154a0d05e2f505311a111f42131ffd1202f1
@@ -11,6 +11,9 @@ class FortniteAPI
11
11
  def initialize(apikey=nil)
12
12
  @apikey = apikey
13
13
  @headers = {"x-api-key" => @apikey}
14
+
15
+ if @apikey == nil:
16
+ warn('FortniteAPI.apikey.warn: Next monday (Dec. 9th) at 8 PM (UTC) every endpoint will require an API-Key, you can get one at: fortnite-api.com.')
14
17
  end
15
18
 
16
19
  def search_cosmetic(searchQuery, tag='name', language='en', searchLanguage='en')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fortniteapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - xMistt