hearthstone_json 0.0.7 → 0.1.0

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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/hearthstone_json.rb +5 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTE3NzBjOThlNjIzMmFlYTQwNDdhMDZmMzA2MDI5NWRjNTdkODRiOQ==
4
+ MTRjZDU5NTg0ZDJmOTIwN2ViZDhhZGZiYWI4NjU3YWY1YjRhNzcwMw==
5
5
  data.tar.gz: !binary |-
6
- MmNkNjkxOTNhZGViODIzOWM0NjI5NWMzYjA0MDcxNjk3YTU1NjRlYg==
6
+ MmUzNmNkMGQzMGYxMDA2Zjg5NWY2ZTljZWVkYzI5ZTFhYjliYjM2OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZmI3YzFiMmYzN2YzNzRiN2ZlMDI3M2U5MTMwZDZkOGRmNTEyMWIwZGQ1YTMz
10
- MzU1ZmQyMTNiYjc0Nzc4N2JhNDViOTA0YmZkMjg5ODE3ODY2YzdhYmMzZjYx
11
- ZjgyZDdlN2EyMjZjNzIwMTA0ZmMzOGJhOWU4ZjFiOWY0NDFlMjg=
9
+ MDk4MGUyZmM0MGNmMzY2NTAyZTJiYWVkNWI5NDVlOTE2MzQ2MTY2OTRhYmIz
10
+ YTg0Yjc2MjhhMDMzOTQyNTY4MWI2YzA4NzE1ODUwNGE1M2RmOTE2OWU3NjAw
11
+ ODcyMTcyZDg1NDQxMGFiOGEyZjEzMGEwOGVlNjgxMmUxN2M5YjM=
12
12
  data.tar.gz: !binary |-
13
- MmRkMzI1YWYzMThiYzJjY2RkNzY1Njc4YTFiZGEwOGY5OThjYTNjM2VmNzI5
14
- NjNlZWJkZjZhMWRjZTYwZjZmZGUyNTEzZjA3YWM3MTZkMDU2NWNlNmMxMjVi
15
- NTQ3YmQwNGZiZmU1YWZkYTBmZjU3YWQ2Y2QzZDk0ZThjYzgyMTY=
13
+ MDU2MWYzYzQ0NWNhMzVhN2FhZGQ5MDgzMGVlNzY2YTZhNzNhM2I1N2E3YjE0
14
+ ZmJiMzJlZmJiZWI3YWIzNmVjMGI3MTZjZGVmYmRiMzI2MWYwMDY0ZDhlZThm
15
+ Zjk0MDAzOTE4MzAxMGIyNDMxOWVhNGI1MDI1YTU0ZGVmOTYzNTU=
@@ -24,6 +24,11 @@ class HearthstoneJSON
24
24
  get_json('/cardbacks.json', options)
25
25
  end
26
26
 
27
+ def cards(include_uncollectible = false, options = {})
28
+ return get_json('/cards.json', options) if include_uncollectible
29
+ get_json('/cards.collectible.json', options)
30
+ end
31
+
27
32
  private
28
33
 
29
34
  attr_accessor :locale
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hearthstone_json
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Hanna
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-27 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem for easily getting up to date info from hearthstonejson.com
14
14
  email: tinnvec@gmail.com