wowapi 0.1.4 → 0.1.6
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 +4 -4
- data/.travis.yml +4 -1
- data/lib/wowapi/response_data.rb +6 -3
- data/lib/wowapi/version.rb +1 -1
- 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: c432c51ab4d82a585641b6ce2fa96a70e3915de3
|
4
|
+
data.tar.gz: fac33e813e34ce46630f25076b705ee70e02eb90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d609bb22f3b8b1fb4c80090a482b77867852e10f60c6d28c720b47623255ea596d3e34fad7603171e5bfdf90131ad4d2a8b9ee7e97e905abc5a516e89cddfb37
|
7
|
+
data.tar.gz: e9032d3b1611a37f2f6993a6159e1a8979673472c6ebd7a3848a5a7247bb190af7659f7e755b717d2e3aebe49baaffe49c643da782c6307cdeaf870758e5c3f2
|
data/.travis.yml
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
3
|
- 2.0.0
|
4
|
+
- 2.2.0
|
4
5
|
- 2.2.3
|
5
6
|
- 2.3.0
|
7
|
+
- 2.3.1
|
8
|
+
- jruby
|
6
9
|
script:
|
7
10
|
- bundle install
|
8
11
|
- gem build wowapi.gemspec
|
@@ -12,4 +15,4 @@ notifications:
|
|
12
15
|
on_success: change
|
13
16
|
on_failure: always
|
14
17
|
channels:
|
15
|
-
- "
|
18
|
+
- "chat.freenode.net#wowapi"
|
data/lib/wowapi/response_data.rb
CHANGED
@@ -14,13 +14,12 @@ class Wowapi
|
|
14
14
|
unless data.is_a?(Hash)
|
15
15
|
raise ArgumentError, 'Data has to be passed as a Hash object.'
|
16
16
|
end
|
17
|
-
@raw = data # Assign raw data to @raw instance variable
|
18
17
|
super
|
19
18
|
end
|
20
19
|
|
21
20
|
# Return raw data (retrieved by Blizzard servers)
|
22
|
-
def to_json
|
23
|
-
|
21
|
+
def to_json(*options)
|
22
|
+
as_json(*options).to_json(*options)
|
24
23
|
end
|
25
24
|
|
26
25
|
# Create a object of suitable class e.g.:
|
@@ -29,5 +28,9 @@ class Wowapi
|
|
29
28
|
def from_json(data)
|
30
29
|
self.class.new(JSON.parse(data))
|
31
30
|
end
|
31
|
+
|
32
|
+
def as_json(options={})
|
33
|
+
@table
|
34
|
+
end
|
32
35
|
end
|
33
36
|
end
|
data/lib/wowapi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wowapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jan Matusz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|