armory_api 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,6 +1,19 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ coverage
6
+ InstalledFiles
7
+ lib/bundler/man
8
+ pkg
9
+ rdoc
10
+ spec/reports
11
+ test/tmp
12
+ test/version_tmp
13
+ tmp
1
14
  Gemfile.lock
15
+
16
+ # YARD artifacts
2
17
  .yardoc
3
- coverage/*
4
- doc/*
5
- .bundle
6
- *.gem
18
+ _yardoc
19
+ doc/
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ matrix:
3
+ allow_failures:
4
+ - rvm: ruby-head
5
+ rvm:
6
+ - 1.9.2
7
+ - 1.9.3
8
+ - ruby-head
@@ -0,0 +1,26 @@
1
+ Copyright (c) 2012, Francesco Ceccon
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright
9
+ notice, this list of conditions and the following disclaimer.
10
+ 2. Redistributions in binary form must reproduce the above
11
+ copyright notice, this list of conditions and the following
12
+ disclaimer in the documentation and/or other materials provided
13
+ with the distribution.
14
+
15
+
16
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.md CHANGED
@@ -1,4 +1,25 @@
1
1
  ArmoryApi
2
2
  =========
3
3
 
4
- A Ruby Gem for the World of Warcraft API.
4
+ Ruby wrapper for the official World of Warcraft REST APIs.
5
+
6
+ Installation
7
+ ------------
8
+
9
+ Usage
10
+ -----
11
+
12
+ Documentation
13
+ -------------
14
+
15
+ Acknowledgements
16
+ ----------------
17
+
18
+ ArmoryApi was largely inspired by [sferik's twitter](https://github.com/sferik/twitter)
19
+ gem.
20
+
21
+ Copyright
22
+ ---------
23
+
24
+ Copyright © 2012 Francesco Ceccon.
25
+ See LICENSE.txt for details.
@@ -0,0 +1,10 @@
1
+ require 'uri'
2
+
3
+ module ArmoryApi
4
+ module API
5
+
6
+ def character(realm, name, options={})
7
+ get("/api/wow/character/#{realm}/#{URI.escape(name)}")
8
+ end
9
+ end
10
+ end
@@ -1,7 +1,9 @@
1
1
  require 'faraday'
2
2
  require 'uri'
3
3
 
4
+ require 'armory_api/client/achievement'
4
5
  require 'armory_api/client/character'
6
+ require 'armory_api/client/item'
5
7
 
6
8
  module ArmoryApi
7
9
  class Client
@@ -23,7 +25,9 @@ module ArmoryApi
23
25
  request(:get, path, params, options)
24
26
  end
25
27
 
28
+ include ArmoryApi::Client::Achievement
26
29
  include ArmoryApi::Client::Character
30
+ include ArmoryApi::Client::Item
27
31
  private
28
32
  def endpoint
29
33
  "http://#{@region}.battle.net"
@@ -0,0 +1,14 @@
1
+ module ArmoryApi
2
+ class Client
3
+ module Achievement
4
+
5
+ # Retrieves the achievement `id` from the Armory
6
+ #
7
+ # @param [Integer] id the achievement id
8
+ # @return [Hash] the achievement
9
+ def achievement(id)
10
+ get("/api/wow/achievement/#{id}")
11
+ end
12
+ end
13
+ end
14
+ end
@@ -1,3 +1,5 @@
1
+ require 'uri'
2
+
1
3
  module ArmoryApi
2
4
  class Client
3
5
  module Character
@@ -8,6 +10,7 @@ module ArmoryApi
8
10
  # @param [String] realm
9
11
  # @param [Array] fields optional fields, a list can be found on the
10
12
  # [official page](http://blizzard.github.com/api-wow-docs/#character-profile-api)
13
+ # @return [Hash] the character hash
11
14
  def character(name, realm=nil, fields=[])
12
15
  if realm.class == Array
13
16
  fields = realm
@@ -17,7 +20,7 @@ module ArmoryApi
17
20
  raise ArmoryApi::RealmNotFound if realm.nil?
18
21
  fields ||= []
19
22
  params = { fields: fields.join(',') } unless fields.empty?
20
- get("/api/wow/character/#{realm}/#{name}", params)
23
+ get("/api/wow/character/#{realm}/#{URI.escape(name)}", params)
21
24
  end
22
25
  end
23
26
  end
@@ -0,0 +1,28 @@
1
+ module ArmoryApi
2
+ class Client
3
+ module Item
4
+
5
+ # Retrieve an item
6
+ #
7
+ # @param [Integer] id the item id
8
+ # @return [Hash] the item
9
+ def item(id)
10
+ get("/api/wow/item/#{id}")
11
+ end
12
+
13
+ # Retrieve an item set.
14
+ # If full is set to true ArmoryApi will retrieve each item of the set.
15
+ #
16
+ # @param [Integer] id the set id
17
+ # @param [Boolean] full also retrieve each item of the set
18
+ # @return [Hash] the item set
19
+ def item_set(id, full=false)
20
+ res = get("/api/wow/item/set/#{id}")
21
+ if full
22
+ res.items.map! {|i| item(i)}
23
+ end
24
+ res
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,41 @@
1
+ require 'armory_api/default'
2
+
3
+ module ArmoryApi
4
+ module Configurable
5
+ attr_writer :region, :locale
6
+ attr_accessor :region, :locale, :endpoint, :connection_options, :middleware
7
+
8
+ class << self
9
+
10
+ def keys
11
+ @keys ||= [
12
+ :region,
13
+ :locale,
14
+ :connection_options,
15
+ :middleware
16
+ ]
17
+ end
18
+ end
19
+
20
+ def configure
21
+ yield self
22
+ self
23
+ end
24
+
25
+ def reset!
26
+ ArmoryApi::Configurable.keys.each do |k|
27
+ instance_variable_set(:"@#{k}", ArmoryApi::Default.options[k])
28
+ end
29
+ self
30
+ end
31
+ alias setup reset!
32
+
33
+ def endpoint
34
+ if region == 'cn'
35
+ "www.battlenet.com.cn"
36
+ else
37
+ "http://#{region}.battle.net"
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,45 @@
1
+ require 'faraday'
2
+ require 'armory_api/version'
3
+
4
+ module ArmoryApi
5
+ module Default
6
+ REGION = 'us' unless defined? REGION
7
+ LOCALE = 'en_US' unless defined? LOCALE
8
+ CONNECTION_OPTIONS = {
9
+ headers: {
10
+ user_agent: "ArmoryApi Ruby Gem (#{ArmoryApi::Version})"
11
+ },
12
+ raw: true,
13
+ timeout: 10
14
+ } unless defined? CONNECTION_OPTIONS
15
+ MIDDLEWARE = Faraday::Builder.new(
16
+ &Proc.new do |builder|
17
+ builder.adapter Faraday.default_adapter
18
+ end
19
+ )
20
+
21
+ class << self
22
+
23
+ # @return [Hash]
24
+ def options
25
+ Hash[ArmoryApi::Configurable.keys.each.map{|k| [k, send(k)]}]
26
+ end
27
+
28
+ def region
29
+ REGION
30
+ end
31
+
32
+ def locale
33
+ LOCALE
34
+ end
35
+
36
+ def connection_options
37
+ CONNECTION_OPTIONS
38
+ end
39
+
40
+ def middleware
41
+ MIDDLEWARE
42
+ end
43
+ end
44
+ end
45
+ end
@@ -1,3 +1,3 @@
1
1
  module ArmoryApi
2
- VERSION = "0.1.0" unless defined?(ArmoryApi::VERSION)
2
+ VERSION = "0.1.1" unless defined?(ArmoryApi::VERSION)
3
3
  end
@@ -0,0 +1,16 @@
1
+ require 'helper'
2
+
3
+ describe ArmoryApi::Client::Achievement do
4
+ describe ".achievement" do
5
+ before do
6
+ @client = ArmoryApi::Client.new
7
+ end
8
+
9
+ it "returns the specified achievement" do
10
+ stub_request(:get, 'http://us.battle.net/api/wow/achievement/2144')
11
+ .to_return(body: fixture('achievement/achievement.json'))
12
+ achievement = @client.achievement(2144)
13
+ expect(achievement.id).to eq 2144
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,4 @@
1
+ # encoding: utf-8
1
2
  require 'helper'
2
3
 
3
4
  describe ArmoryApi::Client::Character do
@@ -46,5 +47,14 @@ describe ArmoryApi::Client::Character do
46
47
  expect(char.feed).to be_an Array
47
48
  end
48
49
  end
50
+
51
+ context "with a name rich name" do
52
+ it "works" do
53
+ stub_request(:get, 'http://us.battle.net/api/wow/character/realm/Nor%C3%B0ri')
54
+ .to_return(body: fixture('character/character.json'))
55
+ char = ArmoryApi.character('Norðri', 'realm')
56
+ expect(char.name).not_to be_nil
57
+ end
58
+ end
49
59
  end
50
60
  end
@@ -0,0 +1,43 @@
1
+ require 'helper'
2
+
3
+ describe ArmoryApi::Client::Item do
4
+ before do
5
+ @client = ArmoryApi::Client.new
6
+ end
7
+
8
+ describe ".item" do
9
+ it "returns the item" do
10
+ stub_request(:get, 'http://us.battle.net/api/wow/item/18803')
11
+ .to_return(body: fixture('item/item.json'))
12
+ item = @client.item(18803)
13
+ expect(item.id).to eq 18803
14
+ end
15
+ end
16
+
17
+ describe ".item_set" do
18
+ context "with full set to true" do
19
+ it "returns the set with each item informations" do
20
+ stub_request(:get, 'http://us.battle.net/api/wow/item/set/1060')
21
+ .to_return(body: fixture('item/item-set.json'))
22
+ 5.times do
23
+ stub_request(:get, /http:\/\/us.battle.net\/api\/wow\/item\/\d*$/)
24
+ .to_return(body: fixture('item/item.json'))
25
+ end
26
+ set = @client.item_set(1060, true)
27
+ expect(set.id).to eq 1060
28
+ set.items.each do |item|
29
+ expect(item).to be_a Hash
30
+ end
31
+ end
32
+ end
33
+
34
+ context "without full set to true" do
35
+ it "returns the set" do
36
+ stub_request(:get, 'http://us.battle.net/api/wow/item/set/1060')
37
+ .to_return(body: fixture('item/item-set.json'))
38
+ set = @client.item_set(1060)
39
+ expect(set.id).to eq 1060
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,68 @@
1
+ {
2
+ "accountWide": true,
3
+ "criteria": [
4
+ {
5
+ "description": "To Honor One's Elders",
6
+ "id": 7553,
7
+ "max": 1,
8
+ "orderIndex": 0
9
+ },
10
+ {
11
+ "description": "Fool For Love",
12
+ "id": 7561,
13
+ "max": 1,
14
+ "orderIndex": 1
15
+ },
16
+ {
17
+ "description": "Noble Gardener",
18
+ "id": 9880,
19
+ "max": 1,
20
+ "orderIndex": 2
21
+ },
22
+ {
23
+ "description": "For The Children",
24
+ "id": 7555,
25
+ "max": 1,
26
+ "orderIndex": 3
27
+ },
28
+ {
29
+ "description": "The Flame Warden/Keeper",
30
+ "id": 0,
31
+ "max": 1,
32
+ "orderIndex": 4
33
+ },
34
+ {
35
+ "description": "Brewmaster",
36
+ "id": 7564,
37
+ "max": 1,
38
+ "orderIndex": 5
39
+ },
40
+ {
41
+ "description": "Hallowed Be Thy Name",
42
+ "id": 7558,
43
+ "max": 1,
44
+ "orderIndex": 6
45
+ },
46
+ {
47
+ "description": "Merrymaker",
48
+ "id": 7566,
49
+ "max": 1,
50
+ "orderIndex": 7
51
+ }
52
+ ],
53
+ "description": "Complete the world events achievements listed below.",
54
+ "icon": "achievement_bg_masterofallbgs",
55
+ "id": 2144,
56
+ "points": 50,
57
+ "reward": "Rewards: Violet Proto-Drake",
58
+ "rewardItems": [
59
+ {
60
+ "icon": "ability_mount_drake_proto",
61
+ "id": 44177,
62
+ "name": "Reins of the Violet Proto-Drake",
63
+ "quality": 4,
64
+ "tooltipParams": {}
65
+ }
66
+ ],
67
+ "title": "What a Long, Strange Trip It's Been"
68
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "id": 1060,
3
+ "items": [
4
+ 76749,
5
+ 76750,
6
+ 76751,
7
+ 76752,
8
+ 76753
9
+ ],
10
+ "name": "Deep Earth Vestments",
11
+ "setBonuses": [
12
+ {
13
+ "description": "After using Innervate, the mana cost of your healing spells is reduced by 25% for 15 sec.",
14
+ "threshold": 2
15
+ },
16
+ {
17
+ "description": "Your Rejuvenation and Regrowth spells have a 10% chance to Timeslip and have double the normal duration.",
18
+ "threshold": 4
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "armor": 0,
3
+ "baseArmor": 0,
4
+ "bonusStats": [
5
+ {
6
+ "amount": 15,
7
+ "reforged": false,
8
+ "stat": 51
9
+ },
10
+ {
11
+ "amount": 24,
12
+ "reforged": false,
13
+ "stat": 5
14
+ },
15
+ {
16
+ "amount": 22,
17
+ "reforged": false,
18
+ "stat": 6
19
+ },
20
+ {
21
+ "amount": 25,
22
+ "reforged": false,
23
+ "stat": 7
24
+ }
25
+ ],
26
+ "buyPrice": 474384,
27
+ "containerSlots": 0,
28
+ "description": "Property of Finkle Einhorn, Grandmaster Adventurer",
29
+ "disenchantingSkillRank": 225,
30
+ "displayInfoId": 31265,
31
+ "equippable": true,
32
+ "hasSockets": false,
33
+ "icon": "inv_gizmo_02",
34
+ "id": 18803,
35
+ "inventoryType": 17,
36
+ "isAuctionable": false,
37
+ "itemBind": 1,
38
+ "itemClass": 2,
39
+ "itemLevel": 70,
40
+ "itemSource": {
41
+ "sourceId": 179703,
42
+ "sourceType": "GAME_OBJECT_DROP"
43
+ },
44
+ "itemSpells": [],
45
+ "itemSubClass": 5,
46
+ "maxCount": 0,
47
+ "maxDurability": 120,
48
+ "minFactionId": 0,
49
+ "minReputation": 0,
50
+ "name": "Finkle's Lava Dredger",
51
+ "quality": 4,
52
+ "requiredLevel": 60,
53
+ "requiredSkill": 0,
54
+ "requiredSkillRank": 0,
55
+ "sellPrice": 94876,
56
+ "stackable": 1,
57
+ "weaponInfo": {
58
+ "damage": {
59
+ "max": 239,
60
+ "min": 159
61
+ },
62
+ "dps": 68.62069,
63
+ "weaponSpeed": 2.9
64
+ }
65
+ }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: armory_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-19 00:00:00.000000000 Z
12
+ date: 2013-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
16
- requirement: &14270420 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,15 @@ dependencies:
21
21
  version: '0.8'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *14270420
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '0.8'
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: faraday_middleware
27
- requirement: &14269700 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0.8'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *14269700
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '0.8'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: hashie
38
- requirement: &14269100 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '1.2'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *14269100
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '1.2'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: multi_json
49
- requirement: &14268540 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '1.3'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *14268540
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: '1.3'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: json
60
- requirement: &14268040 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
@@ -65,10 +85,15 @@ dependencies:
65
85
  version: '1.7'
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *14268040
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: '1.7'
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: rake
71
- requirement: &14267620 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
@@ -76,10 +101,15 @@ dependencies:
76
101
  version: '0'
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *14267620
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: rspec
82
- requirement: &14267060 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ! '>='
@@ -87,10 +117,15 @@ dependencies:
87
117
  version: '0'
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *14267060
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: webmock
93
- requirement: &14266500 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ! '>='
@@ -98,10 +133,15 @@ dependencies:
98
133
  version: '0'
99
134
  type: :development
100
135
  prerelease: false
101
- version_requirements: *14266500
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
102
142
  - !ruby/object:Gem::Dependency
103
143
  name: simplecov
104
- requirement: &14264940 !ruby/object:Gem::Requirement
144
+ requirement: !ruby/object:Gem::Requirement
105
145
  none: false
106
146
  requirements:
107
147
  - - ! '>='
@@ -109,10 +149,15 @@ dependencies:
109
149
  version: '0'
110
150
  type: :development
111
151
  prerelease: false
112
- version_requirements: *14264940
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
113
158
  - !ruby/object:Gem::Dependency
114
159
  name: yard
115
- requirement: &14263780 !ruby/object:Gem::Requirement
160
+ requirement: !ruby/object:Gem::Requirement
116
161
  none: false
117
162
  requirements:
118
163
  - - ! '>='
@@ -120,7 +165,12 @@ dependencies:
120
165
  version: '0'
121
166
  type: :development
122
167
  prerelease: false
123
- version_requirements: *14263780
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
124
174
  description: Wrapper for the World of Warcraft API
125
175
  email:
126
176
  - francesco@ceccon.me
@@ -130,23 +180,35 @@ extra_rdoc_files: []
130
180
  files:
131
181
  - .gitignore
132
182
  - .rspec
183
+ - .travis.yml
133
184
  - Gemfile
185
+ - LICENSE.txt
134
186
  - README.md
135
187
  - Rakefile
136
188
  - armory_api.gemspec
137
189
  - lib/armory_api.rb
190
+ - lib/armory_api/api.rb
138
191
  - lib/armory_api/client.rb
192
+ - lib/armory_api/client/achievement.rb
139
193
  - lib/armory_api/client/character.rb
194
+ - lib/armory_api/client/item.rb
195
+ - lib/armory_api/configurable.rb
140
196
  - lib/armory_api/configuration.rb
197
+ - lib/armory_api/default.rb
141
198
  - lib/armory_api/error.rb
142
199
  - lib/armory_api/version.rb
143
200
  - lib/faraday/response/raise_armory_api_error.rb
201
+ - spec/armory_api/client/achievement_spec.rb
144
202
  - spec/armory_api/client/character_spec.rb
203
+ - spec/armory_api/client/item_spec.rb
145
204
  - spec/armory_api/client_spec.rb
146
205
  - spec/armory_api_spec.rb
147
206
  - spec/faraday/response_spec.rb
207
+ - spec/fixtures/achievement/achievement.json
148
208
  - spec/fixtures/character/character-feed.json
149
209
  - spec/fixtures/character/character.json
210
+ - spec/fixtures/item/item-set.json
211
+ - spec/fixtures/item/item.json
150
212
  - spec/helper.rb
151
213
  homepage: https://github.com/fracek/armory_api
152
214
  licenses: []
@@ -168,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
230
  version: '0'
169
231
  requirements: []
170
232
  rubyforge_project:
171
- rubygems_version: 1.8.10
233
+ rubygems_version: 1.8.24
172
234
  signing_key:
173
235
  specification_version: 3
174
236
  summary: Wrapper for the World of Warcraft API