barnesandnoble 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/barnesandnoble/response.rb +4 -0
- data/lib/barnesandnoble/version.rb +1 -1
- data/test/test_barnesandnoble.rb +10 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4991de82e91c44e37e5d91313334fe9dd421944
|
4
|
+
data.tar.gz: 5db04af870e29db42b7cb005ced205bd7d198ced
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5339753b11efab7306d4138d1eeee5dd02caf848a18685c2c4d25c866531d89dbe147bbd6ab6a4e86516452a608a59f4bbf3811efe6ba315db32e38d237a6366
|
7
|
+
data.tar.gz: 48958577590bfb177a74f37d2cf5d35ab01e0991d40633e3249b0126e656e969282f75fe208634ff72cef88e93ee2c942d4f073ac6bb6f36d7ac1f53722a3b5b
|
data/test/test_barnesandnoble.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'minitest/autorun'
|
2
2
|
require 'minitest/pride'
|
3
3
|
require 'pry'
|
4
|
+
|
4
5
|
require_relative '../lib/barnesandnoble'
|
5
6
|
|
6
7
|
class TestBarnesAndNoble < Minitest::Unit::TestCase
|
@@ -58,4 +59,13 @@ class TestBarnesAndNoble < Minitest::Unit::TestCase
|
|
58
59
|
|
59
60
|
refute_empty res.to_h
|
60
61
|
end
|
62
|
+
|
63
|
+
def test_handles_unicode_characters
|
64
|
+
res = @req.get('ProductLookup', {
|
65
|
+
'ProductCode' => 'Book',
|
66
|
+
'Ean' => '0942299663'
|
67
|
+
})
|
68
|
+
|
69
|
+
assert_equal 'La Jetée', res.to_h['ProductLookupResponse']['ProductLookupResult']['Product']['Titles']['Title']['title']
|
70
|
+
end
|
61
71
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: barnesandnoble
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Diego Marquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: multi_xml
|