BoardGameGem 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: fd2716f98cb159dceafa40e497ea2c136a350b0c
4
- data.tar.gz: 8ca5832e33b4349ada2fb45dd7595399a1313eb6
3
+ metadata.gz: 6088b77d174526172a32299b9a2844fec8c63562
4
+ data.tar.gz: 9b5b1af1199cc41a53c0bccfcdb0a78893107ecb
5
5
  SHA512:
6
- metadata.gz: 189dc9d13945f687032579b88348f04ac9f71b12a87256b89a034c3b2e0a94fc9cca6c9717e04eca7dcd41062191dd9eac0f368517c4562c6d4c1cbd8d678054
7
- data.tar.gz: 4ba570b9613b072813cb238ae4e77f89cc14b94911c608b49a246467c4d8cb1eba073f92b24fecbcadf43f4a3fe51f6a71ce185bb822cd002c52152b3baff805
6
+ metadata.gz: b6e26cfb4c2564f854ea5ef3f772cca890989962dca5bea88eed9eeb769a0780668e966e945394f7679323c4da3f6871f76349e3d3a07504bf3535f9b2904cb4
7
+ data.tar.gz: a0481eafd9837e5800a73f2e182675f1c80f62a57f592a676fb17240db60655d6267fdaee47ce88d1df6a7f5f5c6c6d7c03bd467514ba1707eaf64af9da014eb
data/lib/boardgamegem.rb CHANGED
@@ -38,7 +38,7 @@ module BoardGameGem
38
38
  options[:query] = query
39
39
  xml = BoardGameGem.request_xml("search", options)
40
40
  return {
41
- :total => xml.css("items")["total"].to_i,
41
+ :total => xml.at_css("items")["total"].to_i,
42
42
  :items => xml.css("item").map { |x| BGGSearchResult.new(x) }
43
43
  }
44
44
  end
@@ -1,3 +1,3 @@
1
1
  module BoardGameGem
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/test.rb ADDED
@@ -0,0 +1,3 @@
1
+ require_relative 'lib/BoardGameGem'
2
+
3
+ p BoardGameGem.search("suburb")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: BoardGameGem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jake Roussel
@@ -63,6 +63,7 @@ files:
63
63
  - lib/bgg_user.rb
64
64
  - lib/boardgamegem.rb
65
65
  - lib/boardgamegem/version.rb
66
+ - test.rb
66
67
  homepage: http://www.github.com/acceptableice/boardgamegem
67
68
  licenses:
68
69
  - MIT