wowapi 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f40906e45284a1fa4b162688bc7b8c56d6b30eee
4
- data.tar.gz: 59b75311856e31fc1d3786210795cdb00d53f8a5
3
+ metadata.gz: c432c51ab4d82a585641b6ce2fa96a70e3915de3
4
+ data.tar.gz: fac33e813e34ce46630f25076b705ee70e02eb90
5
5
  SHA512:
6
- metadata.gz: 2e969fb9c44416d079d25c443d616c172ec29f35c296139a0a490fc9022a970474d964ee5870fcb75a8e7cbabb5edf6e2a2e14fa894a5574c3600eea40d962ac
7
- data.tar.gz: 7beb47805b96e9b348d4688ca53b471e20a56b8eed55cc04f4a5f6e2624c16e54f6ef9f9bf07aa8b8b7d74e18b57ae43db882949257a22812cc2f1dca00b2719
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
- - "irc.freenode.org#wowapi"
18
+ - "chat.freenode.net#wowapi"
@@ -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
- @raw.to_json
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
@@ -1,4 +1,4 @@
1
1
  class Wowapi
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.6'
3
3
  end
4
4
 
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
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-19 00:00:00.000000000 Z
11
+ date: 2016-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry