eveapi 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +8 -8
  2. data/.document +0 -4
  3. data/.gitignore +2 -0
  4. data/.yardopts +1 -0
  5. data/CONTRIBUTING.md +31 -0
  6. data/README.md +90 -56
  7. data/Rakefile +5 -41
  8. data/gemspec.yml +1 -1
  9. data/lib/eveapi.rb +17 -31
  10. data/lib/eveapi/alliance.rb +21 -8
  11. data/lib/eveapi/character.rb +44 -14
  12. data/lib/eveapi/client.rb +141 -15
  13. data/lib/eveapi/crest.rb +24 -10
  14. data/lib/eveapi/request.rb +5 -0
  15. data/lib/eveapi/util.rb +60 -3
  16. data/lib/eveapi/version.rb +1 -1
  17. data/spec/cassettes/EVEApi/EVEApi_Alliance/expect_Alliance_corporations_to_be_an_Array.yml +194 -206
  18. data/spec/cassettes/EVEApi/EVEApi_Alliance/expect_Alliance_find_to_fill_short_name_and_name_values.yml +25 -31
  19. data/spec/cassettes/EVEApi/EVEApi_Alliance/expect_Alliance_info_to_be_a_Hash.yml +195 -207
  20. data/spec/cassettes/EVEApi/EVEApi_Alliance/expect_Alliance_new_with_id_argument_to_create_an_Alliance.yml +18 -18
  21. data/spec/cassettes/EVEApi/EVEApi_Alliance/expect_Alliance_to_h_to_be_a_Hash.yml +192 -204
  22. data/spec/cassettes/EVEApi/EVEApi_Character/expect_Character_new_args_to_create_a_Character.yml +28 -28
  23. data/spec/cassettes/EVEApi/EVEApi_Character/expect_a_Character_account_balance_to_return_a_Hash.yml +32 -32
  24. data/spec/cassettes/EVEApi/{EVEApi_Client/calling_api_method_account_characters.yml → EVEApi_Character/raises_ArgumentError_on_non-existing_instance_variable.yml} +54 -23
  25. data/spec/cassettes/EVEApi/{EVEApi_Client/calling_api_method_char_wallet_journal.yml → EVEApi_Character/sets_Client_instance_variable_if_method_argument_key_matches_name.yml} +85 -23
  26. data/spec/cassettes/EVEApi/EVEApi_Client/{calling_api_method_account_account_status.yml → calling_api_method_account_status.yml} +22 -22
  27. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_api_methods.yml +288 -0
  28. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_call_list.yml +288 -0
  29. data/spec/cassettes/EVEApi/EVEApi_Client/{calling_api_method_char_notifications.yml → calling_api_method_characters.yml} +58 -24
  30. data/spec/cassettes/EVEApi/EVEApi_Client/{calling_api_method_account_api_key_info.yml → calling_api_method_key_info.yml} +23 -23
  31. data/spec/cassettes/EVEApi/EVEApi_Client/{calling_api_method_server_server_status.yml → calling_api_method_server_status.yml} +23 -23
  32. data/spec/cassettes/EVEApi/EVEApi_Client/expect_Client_characters_to_handle_mutiple_characters_differently.yml +18 -18
  33. data/spec/cassettes/EVEApi/EVEApi_Client/expect_Client_charcaters_to_succeed.yml +18 -18
  34. data/spec/cassettes/EVEApi/EVEApi_Client/expect_Client_connection_to_be_an_Excon_Connection.yml +18 -18
  35. data/spec/cassettes/EVEApi/EVEApi_Client/expect_Client_new_to_succeed.yml +18 -18
  36. data/spec/cassettes/EVEApi/EVEApi_Client/expect_Client_params_to_return_an_empty_hash_when_on_no_param.yml +18 -18
  37. data/spec/cassettes/EVEApi/EVEApi_Client/{expect_check_path_to_return_a_non-empty_String_for_a_muti-part_name.yml → expect_Symbol_to_path_to_return_a_String_for_a_muti-part_name.yml} +18 -18
  38. data/spec/cassettes/EVEApi/EVEApi_Client/{expect_check_path_to_return_an_empty_String_for_a_one_part_name.yml → expect_Symbol_to_path_to_return_an_empty_String_for_a_one_part_name.yml} +18 -18
  39. data/spec/cassettes/EVEApi/EVEApi_Client/expect_api_methods_to_return_an_Array_of_method_symobls.yml +23 -23
  40. data/spec/cassettes/EVEApi/EVEApi_Client/expect_calling_a_non-existing_API_method_to_fail.yml +21 -21
  41. data/spec/cassettes/EVEApi/EVEApi_Client/expect_calling_an_existing_API_method_to_succeed.yml +23 -23
  42. data/spec/cassettes/EVEApi/EVEApi_Crest/expect_Crest_alliances_to_be_an_Array.yml +192 -204
  43. data/spec/cassettes/EVEApi/EVEApi_Crest/expect_Crest_new_to_succeed.yml +18 -18
  44. data/spec/cassettes/EVEApi/EVEApi_Crest/expect_Crest_types_to_be_an_Array.yml +25972 -0
  45. data/spec/cassettes/EVEApi/EVEApi_Crest/expect_details_to_return_Hash_when_called_on_Hash_with_href_key.yml +26023 -0
  46. data/spec/cassettes/EVEApi/EVEApi_Request/expect_there_to_be_a_EVEApi_Request_class.yml +18 -18
  47. data/spec/eve_api_spec.rb +19 -5
  48. metadata +31 -41
  49. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_account_balance.yml +0 -160
  50. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_asset_list.yml +0 -207
  51. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_character_sheet.yml +0 -207
  52. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_contact_list.yml +0 -175
  53. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_contact_notifications.yml +0 -159
  54. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_contracts.yml +0 -159
  55. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_industry_jobs.yml +0 -159
  56. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_mail_messages.yml +0 -159
  57. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_mailing_lists.yml +0 -159
  58. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_market_orders.yml +0 -159
  59. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_medals.yml +0 -160
  60. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_research.yml +0 -159
  61. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_skill_in_training.yml +0 -159
  62. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_skill_queue.yml +0 -159
  63. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_standings.yml +0 -173
  64. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_upcoming_calendar_events.yml +0 -169
  65. data/spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_wallet_transactions.yml +0 -159
@@ -19,20 +19,20 @@ http_interactions:
19
19
  Access-Control-Allow-Origin:
20
20
  - "*"
21
21
  Date:
22
- - Sat, 12 Sep 2015 08:52:26 GMT
22
+ - Sun, 13 Sep 2015 20:34:55 GMT
23
23
  body:
24
24
  encoding: UTF-8
25
25
  string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
26
- \ <currentTime>2015-09-12 08:52:26</currentTime>\r\n <result>\r\n <rowset
26
+ \ <currentTime>2015-09-13 20:34:55</currentTime>\r\n <result>\r\n <rowset
27
27
  name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
28
28
  \ <row name=\"Blondie Blond\" characterID=\"93051887\" corporationName=\"Carl
29
29
  Malus Corporation\" corporationID=\"98279136\" allianceID=\"0\" allianceName=\"\"
30
30
  factionID=\"0\" factionName=\"\" />\r\n <row name=\"Adrian Dent\" characterID=\"810699209\"
31
31
  corporationName=\"Caldari Provisions\" corporationID=\"1000009\" allianceID=\"0\"
32
32
  allianceName=\"\" factionID=\"0\" factionName=\"\" />\r\n </rowset>\r\n
33
- \ </result>\r\n <cachedUntil>2015-09-12 09:48:16</cachedUntil>\r\n</eveapi>"
33
+ \ </result>\r\n <cachedUntil>2015-09-13 21:19:27</cachedUntil>\r\n</eveapi>"
34
34
  http_version:
35
- recorded_at: Sat, 12 Sep 2015 08:52:26 GMT
35
+ recorded_at: Sun, 13 Sep 2015 20:34:51 GMT
36
36
  - request:
37
37
  method: get
38
38
  uri: https://api.eveonline.com/account/Characters.xml.aspx?keyID=4669404&vCode=hushhush
@@ -52,20 +52,20 @@ http_interactions:
52
52
  Access-Control-Allow-Origin:
53
53
  - "*"
54
54
  Date:
55
- - Sat, 12 Sep 2015 08:52:26 GMT
55
+ - Sun, 13 Sep 2015 20:34:55 GMT
56
56
  body:
57
57
  encoding: UTF-8
58
58
  string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
59
- \ <currentTime>2015-09-12 08:52:26</currentTime>\r\n <result>\r\n <rowset
59
+ \ <currentTime>2015-09-13 20:34:56</currentTime>\r\n <result>\r\n <rowset
60
60
  name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
61
61
  \ <row name=\"Blondie Blond\" characterID=\"93051887\" corporationName=\"Carl
62
62
  Malus Corporation\" corporationID=\"98279136\" allianceID=\"0\" allianceName=\"\"
63
63
  factionID=\"0\" factionName=\"\" />\r\n <row name=\"Adrian Dent\" characterID=\"810699209\"
64
64
  corporationName=\"Caldari Provisions\" corporationID=\"1000009\" allianceID=\"0\"
65
65
  allianceName=\"\" factionID=\"0\" factionName=\"\" />\r\n </rowset>\r\n
66
- \ </result>\r\n <cachedUntil>2015-09-12 09:48:16</cachedUntil>\r\n</eveapi>"
66
+ \ </result>\r\n <cachedUntil>2015-09-13 21:19:27</cachedUntil>\r\n</eveapi>"
67
67
  http_version:
68
- recorded_at: Sat, 12 Sep 2015 08:52:27 GMT
68
+ recorded_at: Sun, 13 Sep 2015 20:34:51 GMT
69
69
  - request:
70
70
  method: get
71
71
  uri: https://api.eveonline.com/account/Characters.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
@@ -85,18 +85,18 @@ http_interactions:
85
85
  Access-Control-Allow-Origin:
86
86
  - "*"
87
87
  Date:
88
- - Sat, 12 Sep 2015 08:52:26 GMT
88
+ - Sun, 13 Sep 2015 20:34:55 GMT
89
89
  body:
90
90
  encoding: UTF-8
91
91
  string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
92
- \ <currentTime>2015-09-12 08:52:27</currentTime>\r\n <result>\r\n <rowset
92
+ \ <currentTime>2015-09-13 20:34:56</currentTime>\r\n <result>\r\n <rowset
93
93
  name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
94
94
  \ <row name=\"Quint Slade\" characterID=\"95512059\" corporationName=\"Imperial
95
95
  Academy\" corporationID=\"1000166\" allianceID=\"0\" allianceName=\"\" factionID=\"0\"
96
- factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-12
97
- 09:48:16</cachedUntil>\r\n</eveapi>"
96
+ factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-13
97
+ 21:23:58</cachedUntil>\r\n</eveapi>"
98
98
  http_version:
99
- recorded_at: Sat, 12 Sep 2015 08:52:27 GMT
99
+ recorded_at: Sun, 13 Sep 2015 20:34:51 GMT
100
100
  - request:
101
101
  method: get
102
102
  uri: https://api.eveonline.com/account/Characters.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
@@ -116,16 +116,16 @@ http_interactions:
116
116
  Access-Control-Allow-Origin:
117
117
  - "*"
118
118
  Date:
119
- - Sat, 12 Sep 2015 08:52:27 GMT
119
+ - Sun, 13 Sep 2015 20:34:55 GMT
120
120
  body:
121
121
  encoding: UTF-8
122
122
  string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
123
- \ <currentTime>2015-09-12 08:52:27</currentTime>\r\n <result>\r\n <rowset
123
+ \ <currentTime>2015-09-13 20:34:56</currentTime>\r\n <result>\r\n <rowset
124
124
  name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
125
125
  \ <row name=\"Quint Slade\" characterID=\"95512059\" corporationName=\"Imperial
126
126
  Academy\" corporationID=\"1000166\" allianceID=\"0\" allianceName=\"\" factionID=\"0\"
127
- factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-12
128
- 09:48:16</cachedUntil>\r\n</eveapi>"
127
+ factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-13
128
+ 21:23:58</cachedUntil>\r\n</eveapi>"
129
129
  http_version:
130
- recorded_at: Sat, 12 Sep 2015 08:52:27 GMT
130
+ recorded_at: Sun, 13 Sep 2015 20:34:51 GMT
131
131
  recorded_with: VCR 2.9.3
@@ -17,13 +17,13 @@ describe EVEApi, :vcr do
17
17
  expect(client.connection).to be_a(Excon::Connection)
18
18
  end
19
19
 
20
- it 'expect check_path to return an empty String for a one part name' do
21
- expect(client.check_path('name')).to eq('')
20
+ it 'expect Symbol#to_path to return an empty String for a one part name' do
21
+ expect(:name.to_path).to eq('')
22
22
  end
23
23
 
24
- it 'expect check_path to return a non-empty String for a muti-part name' do
25
- expect(client.check_path('name_name')).to be_a(String)
26
- expect(client.check_path('name_name')).not_to be_empty
24
+ it 'expect Symbol#to_path to return a String for a muti-part name' do
25
+ expect(:name_name.to_path).to be_a(String)
26
+ expect(:name_name.to_path).not_to be_empty
27
27
  end
28
28
 
29
29
  it 'expect Client#params to return an empty hash when on no param' do
@@ -74,6 +74,14 @@ describe EVEApi, :vcr do
74
74
  it 'expect Crest#alliances to be an Array' do
75
75
  expect(crest.alliances).to be_an(Array)
76
76
  end
77
+
78
+ it 'expect Crest#types to be an Array' do
79
+ expect(crest.types).to be_an(Array)
80
+ end
81
+
82
+ it 'expect details to return Hash when called on Hash with :href key' do
83
+ expect(crest.types.first.details).to be_a(Hash)
84
+ end
77
85
  end
78
86
 
79
87
  describe Alliance do
@@ -113,5 +121,11 @@ describe EVEApi, :vcr do
113
121
  it 'expect a Character#account_balance to return a Hash' do
114
122
  expect(character.account_balance).to be_a(Hash)
115
123
  end
124
+ it 'sets Client instance variable if method argument key matches name' do
125
+ expect { character.wallet_journal(row_count: 1) }.not_to raise_error
126
+ end
127
+ it 'raises ArgumentError on non-existing instance variable' do
128
+ expect { character.wallet_journal(a: 1) }.to raise_error(ArgumentError)
129
+ end
116
130
  end
117
131
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eveapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Ladachowski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-12 00:00:00.000000000 Z
11
+ date: 2015-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
110
  version: '10.0'
111
- - !ruby/object:Gem::Dependency
112
- name: rdoc
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ~>
116
- - !ruby/object:Gem::Version
117
- version: '4.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - ~>
123
- - !ruby/object:Gem::Version
124
- version: '4.0'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: rspec
127
113
  requirement: !ruby/object:Gem::Requirement
@@ -192,11 +178,26 @@ dependencies:
192
178
  - - ~>
193
179
  - !ruby/object:Gem::Version
194
180
  version: '1.6'
181
+ - !ruby/object:Gem::Dependency
182
+ name: yard
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ~>
186
+ - !ruby/object:Gem::Version
187
+ version: '0.8'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ~>
193
+ - !ruby/object:Gem::Version
194
+ version: '0.8'
195
195
  description: ruby API Client for the space based MMO EVEOnline
196
196
  email: adam@saiden.pl
197
197
  executables: []
198
198
  extensions: []
199
199
  extra_rdoc_files:
200
+ - CONTRIBUTING.md
200
201
  - ChangeLog.md
201
202
  - LICENSE.txt
202
203
  - README.md
@@ -207,6 +208,8 @@ files:
207
208
  - .rspec
208
209
  - .rubocop.yml
209
210
  - .travis.yml
211
+ - .yardopts
212
+ - CONTRIBUTING.md
210
213
  - ChangeLog.md
211
214
  - Gemfile
212
215
  - LICENSE.txt
@@ -231,41 +234,28 @@ files:
231
234
  - spec/cassettes/EVEApi/EVEApi_Alliance/expect_Alliance_to_h_to_be_a_Hash.yml
232
235
  - spec/cassettes/EVEApi/EVEApi_Character/expect_Character_new_args_to_create_a_Character.yml
233
236
  - spec/cassettes/EVEApi/EVEApi_Character/expect_a_Character_account_balance_to_return_a_Hash.yml
234
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_account_account_status.yml
235
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_account_api_key_info.yml
236
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_account_characters.yml
237
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_account_balance.yml
238
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_asset_list.yml
239
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_character_sheet.yml
240
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_contact_list.yml
241
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_contact_notifications.yml
242
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_contracts.yml
243
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_industry_jobs.yml
244
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_mail_messages.yml
245
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_mailing_lists.yml
246
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_market_orders.yml
247
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_medals.yml
248
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_notifications.yml
249
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_research.yml
250
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_skill_in_training.yml
251
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_skill_queue.yml
252
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_standings.yml
253
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_upcoming_calendar_events.yml
254
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_wallet_journal.yml
255
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_char_wallet_transactions.yml
256
- - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_server_server_status.yml
237
+ - spec/cassettes/EVEApi/EVEApi_Character/raises_ArgumentError_on_non-existing_instance_variable.yml
238
+ - spec/cassettes/EVEApi/EVEApi_Character/sets_Client_instance_variable_if_method_argument_key_matches_name.yml
239
+ - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_account_status.yml
240
+ - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_api_methods.yml
241
+ - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_call_list.yml
242
+ - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_characters.yml
243
+ - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_key_info.yml
244
+ - spec/cassettes/EVEApi/EVEApi_Client/calling_api_method_server_status.yml
257
245
  - spec/cassettes/EVEApi/EVEApi_Client/expect_Client_characters_to_handle_mutiple_characters_differently.yml
258
246
  - spec/cassettes/EVEApi/EVEApi_Client/expect_Client_charcaters_to_succeed.yml
259
247
  - spec/cassettes/EVEApi/EVEApi_Client/expect_Client_connection_to_be_an_Excon_Connection.yml
260
248
  - spec/cassettes/EVEApi/EVEApi_Client/expect_Client_new_to_succeed.yml
261
249
  - spec/cassettes/EVEApi/EVEApi_Client/expect_Client_params_to_return_an_empty_hash_when_on_no_param.yml
250
+ - spec/cassettes/EVEApi/EVEApi_Client/expect_Symbol_to_path_to_return_a_String_for_a_muti-part_name.yml
251
+ - spec/cassettes/EVEApi/EVEApi_Client/expect_Symbol_to_path_to_return_an_empty_String_for_a_one_part_name.yml
262
252
  - spec/cassettes/EVEApi/EVEApi_Client/expect_api_methods_to_return_an_Array_of_method_symobls.yml
263
253
  - spec/cassettes/EVEApi/EVEApi_Client/expect_calling_a_non-existing_API_method_to_fail.yml
264
254
  - spec/cassettes/EVEApi/EVEApi_Client/expect_calling_an_existing_API_method_to_succeed.yml
265
- - spec/cassettes/EVEApi/EVEApi_Client/expect_check_path_to_return_a_non-empty_String_for_a_muti-part_name.yml
266
- - spec/cassettes/EVEApi/EVEApi_Client/expect_check_path_to_return_an_empty_String_for_a_one_part_name.yml
267
255
  - spec/cassettes/EVEApi/EVEApi_Crest/expect_Crest_alliances_to_be_an_Array.yml
268
256
  - spec/cassettes/EVEApi/EVEApi_Crest/expect_Crest_new_to_succeed.yml
257
+ - spec/cassettes/EVEApi/EVEApi_Crest/expect_Crest_types_to_be_an_Array.yml
258
+ - spec/cassettes/EVEApi/EVEApi_Crest/expect_details_to_return_Hash_when_called_on_Hash_with_href_key.yml
269
259
  - spec/cassettes/EVEApi/EVEApi_Request/expect_there_to_be_a_EVEApi_Request_class.yml
270
260
  - spec/eve_api_spec.rb
271
261
  - spec/spec_helper.rb
@@ -1,160 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.eveonline.com/account/Characters.xml.aspx?keyID=4669404&vCode=hushhush
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - excon/0.45.4
12
- response:
13
- status:
14
- code: 200
15
- message: ''
16
- headers:
17
- Content-Type:
18
- - application/xml; charset=utf-8
19
- Access-Control-Allow-Origin:
20
- - "*"
21
- Date:
22
- - Sat, 12 Sep 2015 08:52:23 GMT
23
- body:
24
- encoding: UTF-8
25
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
26
- \ <currentTime>2015-09-12 08:52:24</currentTime>\r\n <result>\r\n <rowset
27
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
28
- \ <row name=\"Blondie Blond\" characterID=\"93051887\" corporationName=\"Carl
29
- Malus Corporation\" corporationID=\"98279136\" allianceID=\"0\" allianceName=\"\"
30
- factionID=\"0\" factionName=\"\" />\r\n <row name=\"Adrian Dent\" characterID=\"810699209\"
31
- corporationName=\"Caldari Provisions\" corporationID=\"1000009\" allianceID=\"0\"
32
- allianceName=\"\" factionID=\"0\" factionName=\"\" />\r\n </rowset>\r\n
33
- \ </result>\r\n <cachedUntil>2015-09-12 09:48:16</cachedUntil>\r\n</eveapi>"
34
- http_version:
35
- recorded_at: Sat, 12 Sep 2015 08:52:24 GMT
36
- - request:
37
- method: get
38
- uri: https://api.eveonline.com/account/Characters.xml.aspx?keyID=4669404&vCode=hushhush
39
- body:
40
- encoding: US-ASCII
41
- string: ''
42
- headers:
43
- User-Agent:
44
- - excon/0.45.4
45
- response:
46
- status:
47
- code: 200
48
- message: ''
49
- headers:
50
- Content-Type:
51
- - application/xml; charset=utf-8
52
- Access-Control-Allow-Origin:
53
- - "*"
54
- Date:
55
- - Sat, 12 Sep 2015 08:52:24 GMT
56
- body:
57
- encoding: UTF-8
58
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
59
- \ <currentTime>2015-09-12 08:52:24</currentTime>\r\n <result>\r\n <rowset
60
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
61
- \ <row name=\"Blondie Blond\" characterID=\"93051887\" corporationName=\"Carl
62
- Malus Corporation\" corporationID=\"98279136\" allianceID=\"0\" allianceName=\"\"
63
- factionID=\"0\" factionName=\"\" />\r\n <row name=\"Adrian Dent\" characterID=\"810699209\"
64
- corporationName=\"Caldari Provisions\" corporationID=\"1000009\" allianceID=\"0\"
65
- allianceName=\"\" factionID=\"0\" factionName=\"\" />\r\n </rowset>\r\n
66
- \ </result>\r\n <cachedUntil>2015-09-12 09:48:16</cachedUntil>\r\n</eveapi>"
67
- http_version:
68
- recorded_at: Sat, 12 Sep 2015 08:52:24 GMT
69
- - request:
70
- method: get
71
- uri: https://api.eveonline.com/account/Characters.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
72
- body:
73
- encoding: US-ASCII
74
- string: ''
75
- headers:
76
- User-Agent:
77
- - excon/0.45.4
78
- response:
79
- status:
80
- code: 200
81
- message: ''
82
- headers:
83
- Content-Type:
84
- - application/xml; charset=utf-8
85
- Access-Control-Allow-Origin:
86
- - "*"
87
- Date:
88
- - Sat, 12 Sep 2015 08:52:24 GMT
89
- body:
90
- encoding: UTF-8
91
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
92
- \ <currentTime>2015-09-12 08:52:25</currentTime>\r\n <result>\r\n <rowset
93
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
94
- \ <row name=\"Quint Slade\" characterID=\"95512059\" corporationName=\"Imperial
95
- Academy\" corporationID=\"1000166\" allianceID=\"0\" allianceName=\"\" factionID=\"0\"
96
- factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-12
97
- 09:48:16</cachedUntil>\r\n</eveapi>"
98
- http_version:
99
- recorded_at: Sat, 12 Sep 2015 08:52:25 GMT
100
- - request:
101
- method: get
102
- uri: https://api.eveonline.com/account/Characters.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
103
- body:
104
- encoding: US-ASCII
105
- string: ''
106
- headers:
107
- User-Agent:
108
- - excon/0.45.4
109
- response:
110
- status:
111
- code: 200
112
- message: ''
113
- headers:
114
- Content-Type:
115
- - application/xml; charset=utf-8
116
- Access-Control-Allow-Origin:
117
- - "*"
118
- Date:
119
- - Sat, 12 Sep 2015 08:52:24 GMT
120
- body:
121
- encoding: UTF-8
122
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
123
- \ <currentTime>2015-09-12 08:52:25</currentTime>\r\n <result>\r\n <rowset
124
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
125
- \ <row name=\"Quint Slade\" characterID=\"95512059\" corporationName=\"Imperial
126
- Academy\" corporationID=\"1000166\" allianceID=\"0\" allianceName=\"\" factionID=\"0\"
127
- factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-12
128
- 09:48:16</cachedUntil>\r\n</eveapi>"
129
- http_version:
130
- recorded_at: Sat, 12 Sep 2015 08:52:25 GMT
131
- - request:
132
- method: get
133
- uri: https://api.eveonline.com/char/AccountBalance.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
134
- body:
135
- encoding: US-ASCII
136
- string: ''
137
- headers:
138
- User-Agent:
139
- - excon/0.45.4
140
- response:
141
- status:
142
- code: 200
143
- message: ''
144
- headers:
145
- Content-Type:
146
- - application/xml; charset=utf-8
147
- Access-Control-Allow-Origin:
148
- - "*"
149
- Date:
150
- - Sat, 12 Sep 2015 08:52:24 GMT
151
- body:
152
- encoding: UTF-8
153
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
154
- \ <currentTime>2015-09-12 08:52:25</currentTime>\r\n <result>\r\n <rowset
155
- name=\"accounts\" key=\"accountID\" columns=\"accountID,accountKey,balance\">\r\n
156
- \ <row accountID=\"69081883\" accountKey=\"1000\" balance=\"0.01\" />\r\n
157
- \ </rowset>\r\n </result>\r\n <cachedUntil>2015-09-12 09:06:59</cachedUntil>\r\n</eveapi>"
158
- http_version:
159
- recorded_at: Sat, 12 Sep 2015 08:52:25 GMT
160
- recorded_with: VCR 2.9.3
@@ -1,207 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://api.eveonline.com/account/Characters.xml.aspx?keyID=4669404&vCode=hushhush
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- User-Agent:
11
- - excon/0.45.4
12
- response:
13
- status:
14
- code: 200
15
- message: ''
16
- headers:
17
- Content-Type:
18
- - application/xml; charset=utf-8
19
- Access-Control-Allow-Origin:
20
- - "*"
21
- Date:
22
- - Sat, 12 Sep 2015 08:52:22 GMT
23
- body:
24
- encoding: UTF-8
25
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
26
- \ <currentTime>2015-09-12 08:52:23</currentTime>\r\n <result>\r\n <rowset
27
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
28
- \ <row name=\"Blondie Blond\" characterID=\"93051887\" corporationName=\"Carl
29
- Malus Corporation\" corporationID=\"98279136\" allianceID=\"0\" allianceName=\"\"
30
- factionID=\"0\" factionName=\"\" />\r\n <row name=\"Adrian Dent\" characterID=\"810699209\"
31
- corporationName=\"Caldari Provisions\" corporationID=\"1000009\" allianceID=\"0\"
32
- allianceName=\"\" factionID=\"0\" factionName=\"\" />\r\n </rowset>\r\n
33
- \ </result>\r\n <cachedUntil>2015-09-12 09:48:16</cachedUntil>\r\n</eveapi>"
34
- http_version:
35
- recorded_at: Sat, 12 Sep 2015 08:52:23 GMT
36
- - request:
37
- method: get
38
- uri: https://api.eveonline.com/account/Characters.xml.aspx?keyID=4669404&vCode=hushhush
39
- body:
40
- encoding: US-ASCII
41
- string: ''
42
- headers:
43
- User-Agent:
44
- - excon/0.45.4
45
- response:
46
- status:
47
- code: 200
48
- message: ''
49
- headers:
50
- Content-Type:
51
- - application/xml; charset=utf-8
52
- Access-Control-Allow-Origin:
53
- - "*"
54
- Date:
55
- - Sat, 12 Sep 2015 08:52:23 GMT
56
- body:
57
- encoding: UTF-8
58
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
59
- \ <currentTime>2015-09-12 08:52:23</currentTime>\r\n <result>\r\n <rowset
60
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
61
- \ <row name=\"Blondie Blond\" characterID=\"93051887\" corporationName=\"Carl
62
- Malus Corporation\" corporationID=\"98279136\" allianceID=\"0\" allianceName=\"\"
63
- factionID=\"0\" factionName=\"\" />\r\n <row name=\"Adrian Dent\" characterID=\"810699209\"
64
- corporationName=\"Caldari Provisions\" corporationID=\"1000009\" allianceID=\"0\"
65
- allianceName=\"\" factionID=\"0\" factionName=\"\" />\r\n </rowset>\r\n
66
- \ </result>\r\n <cachedUntil>2015-09-12 09:48:16</cachedUntil>\r\n</eveapi>"
67
- http_version:
68
- recorded_at: Sat, 12 Sep 2015 08:52:23 GMT
69
- - request:
70
- method: get
71
- uri: https://api.eveonline.com/account/Characters.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
72
- body:
73
- encoding: US-ASCII
74
- string: ''
75
- headers:
76
- User-Agent:
77
- - excon/0.45.4
78
- response:
79
- status:
80
- code: 200
81
- message: ''
82
- headers:
83
- Content-Type:
84
- - application/xml; charset=utf-8
85
- Access-Control-Allow-Origin:
86
- - "*"
87
- Date:
88
- - Sat, 12 Sep 2015 08:52:23 GMT
89
- body:
90
- encoding: UTF-8
91
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
92
- \ <currentTime>2015-09-12 08:52:23</currentTime>\r\n <result>\r\n <rowset
93
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
94
- \ <row name=\"Quint Slade\" characterID=\"95512059\" corporationName=\"Imperial
95
- Academy\" corporationID=\"1000166\" allianceID=\"0\" allianceName=\"\" factionID=\"0\"
96
- factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-12
97
- 09:48:16</cachedUntil>\r\n</eveapi>"
98
- http_version:
99
- recorded_at: Sat, 12 Sep 2015 08:52:23 GMT
100
- - request:
101
- method: get
102
- uri: https://api.eveonline.com/account/Characters.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
103
- body:
104
- encoding: US-ASCII
105
- string: ''
106
- headers:
107
- User-Agent:
108
- - excon/0.45.4
109
- response:
110
- status:
111
- code: 200
112
- message: ''
113
- headers:
114
- Content-Type:
115
- - application/xml; charset=utf-8
116
- Access-Control-Allow-Origin:
117
- - "*"
118
- Date:
119
- - Sat, 12 Sep 2015 08:52:23 GMT
120
- body:
121
- encoding: UTF-8
122
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
123
- \ <currentTime>2015-09-12 08:52:24</currentTime>\r\n <result>\r\n <rowset
124
- name=\"characters\" key=\"characterID\" columns=\"name,characterID,corporationName,corporationID,allianceID,allianceName,factionID,factionName\">\r\n
125
- \ <row name=\"Quint Slade\" characterID=\"95512059\" corporationName=\"Imperial
126
- Academy\" corporationID=\"1000166\" allianceID=\"0\" allianceName=\"\" factionID=\"0\"
127
- factionName=\"\" />\r\n </rowset>\r\n </result>\r\n <cachedUntil>2015-09-12
128
- 09:48:16</cachedUntil>\r\n</eveapi>"
129
- http_version:
130
- recorded_at: Sat, 12 Sep 2015 08:52:24 GMT
131
- - request:
132
- method: get
133
- uri: https://api.eveonline.com/char/AssetList.xml.aspx?characterID=95512059&keyID=4278167&vCode=supersecretstuff
134
- body:
135
- encoding: US-ASCII
136
- string: ''
137
- headers:
138
- User-Agent:
139
- - excon/0.45.4
140
- response:
141
- status:
142
- code: 200
143
- message: ''
144
- headers:
145
- Content-Type:
146
- - application/xml; charset=utf-8
147
- Access-Control-Allow-Origin:
148
- - "*"
149
- Date:
150
- - Sat, 12 Sep 2015 08:52:23 GMT
151
- body:
152
- encoding: UTF-8
153
- string: "<?xml version='1.0' encoding='UTF-8'?>\r\n<eveapi version=\"2\">\r\n
154
- \ <currentTime>2015-09-12 08:52:24</currentTime>\r\n <result>\r\n <rowset
155
- name=\"assets\" key=\"itemID\" columns=\"itemID,locationID,typeID,quantity,flag,singleton\">\r\n
156
- \ <row itemID=\"1017893173936\" locationID=\"60003760\" typeID=\"596\"
157
- quantity=\"1\" flag=\"4\" singleton=\"1\" rawQuantity=\"-1\">\r\n <rowset
158
- name=\"contents\" key=\"itemID\" columns=\"itemID,typeID,quantity,flag,singleton\">\r\n
159
- \ <row itemID=\"1017893173939\" typeID=\"3634\" quantity=\"1\" flag=\"27\"
160
- singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017893173941\"
161
- typeID=\"3651\" quantity=\"1\" flag=\"28\" singleton=\"1\" rawQuantity=\"-1\"
162
- />\r\n <row itemID=\"1017893173946\" typeID=\"34\" quantity=\"1\"
163
- flag=\"5\" singleton=\"0\" />\r\n </rowset>\r\n </row>\r\n <row
164
- itemID=\"1017900774635\" locationID=\"60003760\" typeID=\"6675\" quantity=\"1\"
165
- flag=\"4\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017900807256\"
166
- locationID=\"60003760\" typeID=\"5971\" quantity=\"1\" flag=\"4\" singleton=\"1\"
167
- rawQuantity=\"-1\" />\r\n <row itemID=\"1017900827015\" locationID=\"60003760\"
168
- typeID=\"6003\" quantity=\"1\" flag=\"4\" singleton=\"1\" rawQuantity=\"-1\"
169
- />\r\n <row itemID=\"1017901004593\" locationID=\"60003760\" typeID=\"5846\"
170
- quantity=\"1\" flag=\"4\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row
171
- itemID=\"1017901005820\" locationID=\"60003760\" typeID=\"5846\" quantity=\"1\"
172
- flag=\"4\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017901005984\"
173
- locationID=\"60003760\" typeID=\"5846\" quantity=\"1\" flag=\"4\" singleton=\"1\"
174
- rawQuantity=\"-1\" />\r\n <row itemID=\"1017901024861\" locationID=\"60003760\"
175
- typeID=\"5846\" quantity=\"1\" flag=\"4\" singleton=\"1\" rawQuantity=\"-1\"
176
- />\r\n <row itemID=\"1017901031215\" locationID=\"60003760\" typeID=\"521\"
177
- quantity=\"1\" flag=\"4\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row
178
- itemID=\"1017901077522\" locationID=\"60003760\" typeID=\"11265\" quantity=\"1\"
179
- flag=\"4\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017900764533\"
180
- locationID=\"60006883\" typeID=\"17703\" quantity=\"1\" flag=\"4\" singleton=\"1\"
181
- rawQuantity=\"-1\">\r\n <rowset name=\"contents\" key=\"itemID\" columns=\"itemID,typeID,quantity,flag,singleton\">\r\n
182
- \ <row itemID=\"1017900776273\" typeID=\"6675\" quantity=\"1\" flag=\"27\"
183
- singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017900776448\"
184
- typeID=\"6675\" quantity=\"1\" flag=\"28\" singleton=\"1\" rawQuantity=\"-1\"
185
- />\r\n <row itemID=\"1017900796881\" typeID=\"23071\" quantity=\"1\"
186
- flag=\"28\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017900799567\"
187
- typeID=\"23071\" quantity=\"1\" flag=\"27\" singleton=\"1\" rawQuantity=\"-1\"
188
- />\r\n <row itemID=\"1017901011912\" typeID=\"14069\" quantity=\"1\"
189
- flag=\"15\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017901020401\"
190
- typeID=\"31370\" quantity=\"1\" flag=\"92\" singleton=\"1\" rawQuantity=\"-1\"
191
- />\r\n <row itemID=\"1017901020818\" typeID=\"31370\" quantity=\"1\"
192
- flag=\"93\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017901037323\"
193
- typeID=\"17526\" quantity=\"1\" flag=\"20\" singleton=\"1\" rawQuantity=\"-1\"
194
- />\r\n <row itemID=\"1017901043104\" typeID=\"26929\" quantity=\"1\"
195
- flag=\"94\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017901508301\"
196
- typeID=\"23900\" quantity=\"1\" flag=\"14\" singleton=\"1\" rawQuantity=\"-1\"
197
- />\r\n <row itemID=\"1017901509937\" typeID=\"23900\" quantity=\"1\"
198
- flag=\"11\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017901510157\"
199
- typeID=\"23900\" quantity=\"1\" flag=\"12\" singleton=\"1\" rawQuantity=\"-1\"
200
- />\r\n <row itemID=\"1017901510330\" typeID=\"23900\" quantity=\"1\"
201
- flag=\"13\" singleton=\"1\" rawQuantity=\"-1\" />\r\n <row itemID=\"1017929872073\"
202
- typeID=\"14124\" quantity=\"1\" flag=\"19\" singleton=\"1\" rawQuantity=\"-1\"
203
- />\r\n </rowset>\r\n </row>\r\n </rowset>\r\n </result>\r\n
204
- \ <cachedUntil>2015-09-12 14:52:24</cachedUntil>\r\n</eveapi>"
205
- http_version:
206
- recorded_at: Sat, 12 Sep 2015 08:52:24 GMT
207
- recorded_with: VCR 2.9.3