covetous 0.0.1

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.
@@ -0,0 +1,210 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://us.battle.net/api/d3/data/item/CkMIz4LU4AoSBwgEFX35Tl0dLWYPvh194Mt2Ha3H5XEdElz0_B2H9XtuIgsIARWFQgMAGAAgCjAJOLYEQABIAVAOYPkEGPrl99QLUAZYAA
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers: {}
10
+ response:
11
+ status:
12
+ code: 200
13
+ message: OK
14
+ headers:
15
+ Date:
16
+ - Mon, 17 Sep 2012 14:44:26 GMT
17
+ Server:
18
+ - Apache
19
+ X-Frame-Options:
20
+ - SAMEORIGIN
21
+ Last-Modified:
22
+ - Thu, 16 Aug 2012 06:38:40 GMT
23
+ Content-Language:
24
+ - en-US
25
+ Vary:
26
+ - Accept-Encoding
27
+ Transfer-Encoding:
28
+ - chunked
29
+ Content-Type:
30
+ - application/json;charset=UTF-8
31
+ body:
32
+ encoding: US-ASCII
33
+ string: ! '{
34
+
35
+ "id" : "Helm_206",
36
+
37
+ "name" : "Lord Defiance",
38
+
39
+ "icon" : "helm_206_witchdoctor_male",
40
+
41
+ "displayColor" : "yellow",
42
+
43
+ "tooltipParams" : "item/CkMIz4LU4AoSBwgEFX35Tl0dLWYPvh194Mt2Ha3H5XEdElz0_B2H9XtuIgsIARWFQgMAGAAgCjAJOLYEQABIAVAOYPkEGPrl99QLUAZYAA",
44
+
45
+ "requiredLevel" : 60,
46
+
47
+ "itemLevel" : 63,
48
+
49
+ "bonusAffixes" : 0,
50
+
51
+ "typeName" : "Rare Helm",
52
+
53
+ "type" : {
54
+
55
+ "id" : "GenericHelm",
56
+
57
+ "twoHanded" : false
58
+
59
+ },
60
+
61
+ "armor" : {
62
+
63
+ "min" : 453.0,
64
+
65
+ "max" : 453.0
66
+
67
+ },
68
+
69
+ "attributes" : [ "+186 Intelligence", "+12% Life", "+18% Extra Gold from Monsters",
70
+ "Regenerates 75 Life per Second", "Reduces resource cost of Firebats by 5
71
+ Mana. (Witch Doctor Only)" ],
72
+
73
+ "attributesRaw" : {
74
+
75
+ "Armor_Item" : {
76
+
77
+ "min" : 453.5,
78
+
79
+ "max" : 453.5
80
+
81
+ },
82
+
83
+ "Intelligence_Item" : {
84
+
85
+ "min" : 186.0,
86
+
87
+ "max" : 186.0
88
+
89
+ },
90
+
91
+ "Durability_Cur" : {
92
+
93
+ "min" : 566.0,
94
+
95
+ "max" : 566.0
96
+
97
+ },
98
+
99
+ "Power_Resource_Reduction#Witchdoctor_Firebats" : {
100
+
101
+ "min" : 5.0,
102
+
103
+ "max" : 5.0
104
+
105
+ },
106
+
107
+ "Hitpoints_Max_Percent_Bonus_Item" : {
108
+
109
+ "min" : 0.12,
110
+
111
+ "max" : 0.12
112
+
113
+ },
114
+
115
+ "Durability_Max" : {
116
+
117
+ "min" : 633.0,
118
+
119
+ "max" : 633.0
120
+
121
+ },
122
+
123
+ "Hitpoints_Regen_Per_Second" : {
124
+
125
+ "min" : 75.0,
126
+
127
+ "max" : 75.0
128
+
129
+ },
130
+
131
+ "Gold_Find" : {
132
+
133
+ "min" : 0.18,
134
+
135
+ "max" : 0.18
136
+
137
+ }
138
+
139
+ },
140
+
141
+ "socketEffects" : [ ],
142
+
143
+ "salvage" : [ {
144
+
145
+ "chance" : 1.0,
146
+
147
+ "item" : {
148
+
149
+ "id" : "Crafting_Tier_04B",
150
+
151
+ "name" : "Exquisite Essence",
152
+
153
+ "icon" : "crafting_tier_04b_demonhunter_male",
154
+
155
+ "displayColor" : "blue",
156
+
157
+ "tooltipParams" : "item/exquisite-essence"
158
+
159
+ },
160
+
161
+ "quantity" : 1
162
+
163
+ }, {
164
+
165
+ "chance" : 1.0,
166
+
167
+ "item" : {
168
+
169
+ "id" : "Crafting_Tier_04C",
170
+
171
+ "name" : "Iridescent Tear",
172
+
173
+ "icon" : "crafting_tier_04c_demonhunter_male",
174
+
175
+ "displayColor" : "yellow",
176
+
177
+ "tooltipParams" : "item/iridescent-tear"
178
+
179
+ },
180
+
181
+ "quantity" : 1
182
+
183
+ }, {
184
+
185
+ "chance" : 0.0010,
186
+
187
+ "item" : {
188
+
189
+ "id" : "Crafting_Tier_04D",
190
+
191
+ "name" : "Fiery Brimstone",
192
+
193
+ "icon" : "crafting_tier_04d_demonhunter_male",
194
+
195
+ "displayColor" : "orange",
196
+
197
+ "tooltipParams" : "item/fiery-brimstone"
198
+
199
+ },
200
+
201
+ "quantity" : 1
202
+
203
+ } ],
204
+
205
+ "gems" : [ ]
206
+
207
+ }'
208
+ http_version:
209
+ recorded_at: Mon, 17 Sep 2012 14:44:26 GMT
210
+ recorded_with: VCR 2.2.5
@@ -0,0 +1,16 @@
1
+ require 'simplecov'
2
+ SimpleCov.start
3
+
4
+ require_relative '../lib/covetous'
5
+
6
+ require 'minitest/spec'
7
+ require 'minitest/autorun'
8
+ require 'webmock/minitest'
9
+ require 'vcr'
10
+ require 'pry'
11
+
12
+ #VCR config
13
+ VCR.configure do |c|
14
+ c.cassette_library_dir = 'spec/fixtures/covetous_cassettes'
15
+ c.hook_into :webmock
16
+ end
metadata ADDED
@@ -0,0 +1,201 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: covetous
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Eumir Gaspar
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-09-17 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: httparty
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - '='
36
+ - !ruby/object:Gem::Version
37
+ version: 3.2.8
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - '='
44
+ - !ruby/object:Gem::Version
45
+ version: 3.2.8
46
+ - !ruby/object:Gem::Dependency
47
+ name: minitest
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: webmock
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: vcr
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: pry
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :development
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ - !ruby/object:Gem::Dependency
111
+ name: simplecov
112
+ requirement: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ description: A Ruby wrapper for the Diablo 3 Web API
127
+ email:
128
+ - eumir@aelogica.com
129
+ executables: []
130
+ extensions: []
131
+ extra_rdoc_files: []
132
+ files:
133
+ - .gitignore
134
+ - Gemfile
135
+ - LICENSE.txt
136
+ - README.md
137
+ - Rakefile
138
+ - covetous.gemspec
139
+ - lib/covetous.rb
140
+ - lib/covetous/data.rb
141
+ - lib/covetous/data/artisan.rb
142
+ - lib/covetous/data/follower.rb
143
+ - lib/covetous/data/item.rb
144
+ - lib/covetous/profile.rb
145
+ - lib/covetous/profile/career.rb
146
+ - lib/covetous/profile/hero.rb
147
+ - lib/covetous/shen.rb
148
+ - lib/covetous/version.rb
149
+ - spec/covetous/info/artisan_spec.rb
150
+ - spec/covetous/info/follower_spec.rb
151
+ - spec/covetous/info/item_spec.rb
152
+ - spec/covetous/profile/career_spec.rb
153
+ - spec/covetous/profile/hero_spec.rb
154
+ - spec/fixtures/covetous_cassettes/artisan_data.yml
155
+ - spec/fixtures/covetous_cassettes/career_profile.yml
156
+ - spec/fixtures/covetous_cassettes/follower_data.yml
157
+ - spec/fixtures/covetous_cassettes/hero_profile.yml
158
+ - spec/fixtures/covetous_cassettes/item_data.yml
159
+ - spec/spec_helper.rb
160
+ homepage: http://corroded.github.com/covetous
161
+ licenses: []
162
+ post_install_message:
163
+ rdoc_options: []
164
+ require_paths:
165
+ - lib
166
+ required_ruby_version: !ruby/object:Gem::Requirement
167
+ none: false
168
+ requirements:
169
+ - - ! '>='
170
+ - !ruby/object:Gem::Version
171
+ version: '0'
172
+ segments:
173
+ - 0
174
+ hash: -2287701591544486779
175
+ required_rubygems_version: !ruby/object:Gem::Requirement
176
+ none: false
177
+ requirements:
178
+ - - ! '>='
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ segments:
182
+ - 0
183
+ hash: -2287701591544486779
184
+ requirements: []
185
+ rubyforge_project:
186
+ rubygems_version: 1.8.23
187
+ signing_key:
188
+ specification_version: 3
189
+ summary: A Ruby wrapper for the Diablo 3 Web API
190
+ test_files:
191
+ - spec/covetous/info/artisan_spec.rb
192
+ - spec/covetous/info/follower_spec.rb
193
+ - spec/covetous/info/item_spec.rb
194
+ - spec/covetous/profile/career_spec.rb
195
+ - spec/covetous/profile/hero_spec.rb
196
+ - spec/fixtures/covetous_cassettes/artisan_data.yml
197
+ - spec/fixtures/covetous_cassettes/career_profile.yml
198
+ - spec/fixtures/covetous_cassettes/follower_data.yml
199
+ - spec/fixtures/covetous_cassettes/hero_profile.yml
200
+ - spec/fixtures/covetous_cassettes/item_data.yml
201
+ - spec/spec_helper.rb