eve 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/Manifest.txt +174 -0
- data/PostInstall.txt +6 -0
- data/README.rdoc +126 -0
- data/Rakefile +128 -0
- data/features/support/env.rb +1 -0
- data/lib/eve.rb +31 -0
- data/lib/eve/api.rb +247 -0
- data/lib/eve/api/connectivity.rb +39 -0
- data/lib/eve/api/request.rb +74 -0
- data/lib/eve/api/response.rb +100 -0
- data/lib/eve/api/response/inspection.rb +62 -0
- data/lib/eve/api/response/rowset.rb +56 -0
- data/lib/eve/api/response/rowsets.rb +42 -0
- data/lib/eve/api/response/wrap_object.rb +15 -0
- data/lib/eve/api/services.rb +20 -0
- data/lib/eve/api/services/account.rb +12 -0
- data/lib/eve/api/services/character.rb +96 -0
- data/lib/eve/api/services/corporation.rb +150 -0
- data/lib/eve/api/services/eve.rb +76 -0
- data/lib/eve/api/services/map.rb +45 -0
- data/lib/eve/api/services/misc.rb +24 -0
- data/lib/eve/api/services/server.rb +20 -0
- data/lib/eve/core_extensions.rb +3 -0
- data/lib/eve/core_extensions/hash.rb +51 -0
- data/lib/eve/core_extensions/string.rb +11 -0
- data/lib/eve/dependencies.rb +18 -0
- data/lib/eve/errors.rb +129 -0
- data/lib/eve/errors/authentication_errors.rb +33 -0
- data/lib/eve/errors/internal_errors.rb +64 -0
- data/lib/eve/errors/miscellaneous_errors.rb +19 -0
- data/lib/eve/errors/user_input_errors.rb +62 -0
- data/lib/eve/helpers.rb +12 -0
- data/lib/eve/helpers/javascript_helper.rb +198 -0
- data/lib/eve/helpers/view_helper.rb +13 -0
- data/lib/eve/trust.rb +88 -0
- data/lib/eve/trust/controller_helpers.rb +90 -0
- data/lib/eve/trust/igb_interface.rb +88 -0
- data/lib/eve/trust/mime_types.rb +4 -0
- data/script/console +10 -0
- data/script/console.cmd +1 -0
- data/script/destroy +14 -0
- data/script/destroy.cmd +1 -0
- data/script/generate +14 -0
- data/script/generate.cmd +1 -0
- data/spec/lib/eve/api/calls/account/characters_spec.rb +22 -0
- data/spec/lib/eve/api/calls/character/account_balance_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character/asset_list_spec.rb +23 -0
- data/spec/lib/eve/api/calls/character/character_sheet_spec.rb +51 -0
- data/spec/lib/eve/api/calls/character/fac_war_stats_spec.rb +31 -0
- data/spec/lib/eve/api/calls/character/industry_jobs_spec.rb +27 -0
- data/spec/lib/eve/api/calls/character/kill_log_spec.rb +27 -0
- data/spec/lib/eve/api/calls/character/mail_messages_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character/mailing_lists_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character/market_orders_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character/medals_spec.rb +24 -0
- data/spec/lib/eve/api/calls/character/research_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character/skill_in_training_spec.rb +44 -0
- data/spec/lib/eve/api/calls/character/skill_queue_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character/standings_spec.rb +26 -0
- data/spec/lib/eve/api/calls/character/wallet_journal_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character/wallet_transactions_spec.rb +21 -0
- data/spec/lib/eve/api/calls/character_portrait_spec.rb +17 -0
- data/spec/lib/eve/api/calls/corporation/account_balances_spec.rb +21 -0
- data/spec/lib/eve/api/calls/corporation/asset_list_spec.rb +25 -0
- data/spec/lib/eve/api/calls/corporation/container_log_spec.rb +23 -0
- data/spec/lib/eve/api/calls/corporation/corporation_sheet_spec.rb +36 -0
- data/spec/lib/eve/api/calls/corporation/fac_war_stats_spec.rb +23 -0
- data/spec/lib/eve/api/calls/corporation/industry_jobs_spec.rb +30 -0
- data/spec/lib/eve/api/calls/corporation/kill_log_spec.rb +27 -0
- data/spec/lib/eve/api/calls/corporation/market_orders_spec.rb +22 -0
- data/spec/lib/eve/api/calls/corporation/medals_spec.rb +21 -0
- data/spec/lib/eve/api/calls/corporation/member_medals_spec.rb +21 -0
- data/spec/lib/eve/api/calls/corporation/member_security_log_spec.rb +24 -0
- data/spec/lib/eve/api/calls/corporation/member_security_spec.rb +25 -0
- data/spec/lib/eve/api/calls/corporation/member_tracking_spec.rb +22 -0
- data/spec/lib/eve/api/calls/corporation/shareholders_spec.rb +23 -0
- data/spec/lib/eve/api/calls/corporation/standings_spec.rb +30 -0
- data/spec/lib/eve/api/calls/corporation/starbase_detail_spec.rb +32 -0
- data/spec/lib/eve/api/calls/corporation/starbase_list_spec.rb +22 -0
- data/spec/lib/eve/api/calls/corporation/titles_spec.rb +26 -0
- data/spec/lib/eve/api/calls/corporation/wallet_journal_spec.rb +22 -0
- data/spec/lib/eve/api/calls/corporation/wallet_transactions_spec.rb +22 -0
- data/spec/lib/eve/api/calls/empty_call_spec.rb +29 -0
- data/spec/lib/eve/api/calls/eve/alliance_list_spec.rb +26 -0
- data/spec/lib/eve/api/calls/eve/certificate_tree_spec.rb +18 -0
- data/spec/lib/eve/api/calls/eve/character_id_spec.rb +27 -0
- data/spec/lib/eve/api/calls/eve/conquerable_station_list_spec.rb +11 -0
- data/spec/lib/eve/api/calls/eve/error_list_spec.rb +21 -0
- data/spec/lib/eve/api/calls/eve/fac_war_stats_spec.rb +25 -0
- data/spec/lib/eve/api/calls/eve/fac_war_top_stats_spec.rb +54 -0
- data/spec/lib/eve/api/calls/eve/ref_types_spec.rb +11 -0
- data/spec/lib/eve/api/calls/eve/skill_tree_spec.rb +17 -0
- data/spec/lib/eve/api/calls/map/fac_war_systems_spec.rb +11 -0
- data/spec/lib/eve/api/calls/map/jumps_spec.rb +11 -0
- data/spec/lib/eve/api/calls/map/kills_spec.rb +15 -0
- data/spec/lib/eve/api/calls/map/sovereignty_spec.rb +11 -0
- data/spec/lib/eve/api/calls/server_status_spec.rb +24 -0
- data/spec/lib/eve/api/request_spec.rb +17 -0
- data/spec/lib/eve/api/response/error_spec.rb +13 -0
- data/spec/lib/eve/api/response/rowset_spec.rb +28 -0
- data/spec/lib/eve/api/response_spec.rb +79 -0
- data/spec/lib/eve/api_spec.rb +13 -0
- data/spec/lib/eve/core_extensions/hash_spec.rb +23 -0
- data/spec/lib/eve/core_extensions/string_spec.rb +8 -0
- data/spec/lib/eve/helpers/javascript_helper_spec.rb +80 -0
- data/spec/lib/eve/helpers/view_helper_spec.rb +12 -0
- data/spec/lib/eve/trust/controller_helpers_spec.rb +70 -0
- data/spec/lib/eve/trust/igb_interface_spec.rb +102 -0
- data/spec/rcov.opts +2 -0
- data/spec/readme_spec.rb +36 -0
- data/spec/sample_api_key.yml +20 -0
- data/spec/spec.opts +4 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/support/behaves_like_rowset.rb +50 -0
- data/spec/support/controllers/trust_controller.rb +7 -0
- data/spec/support/jpg/mock_portrait.jpg +0 -0
- data/spec/support/mock_api_helpers.rb +41 -0
- data/spec/support/xml/account/characters.xml +15 -0
- data/spec/support/xml/character/account_balance.xml +10 -0
- data/spec/support/xml/character/asset_list.xml +50 -0
- data/spec/support/xml/character/character_sheet.xml +65 -0
- data/spec/support/xml/character/fac_war_stats.xml +20 -0
- data/spec/support/xml/character/industry_jobs.xml +70 -0
- data/spec/support/xml/character/kill_log.xml +51 -0
- data/spec/support/xml/character/mail_messages.xml +12 -0
- data/spec/support/xml/character/mailing_lists.xml +12 -0
- data/spec/support/xml/character/market_orders.xml +11 -0
- data/spec/support/xml/character/medals.xml +13 -0
- data/spec/support/xml/character/research.xml +13 -0
- data/spec/support/xml/character/skill_in_training.xml +14 -0
- data/spec/support/xml/character/skill_not_in_training.xml +7 -0
- data/spec/support/xml/character/skill_queue.xml +11 -0
- data/spec/support/xml/character/standings.xml +32 -0
- data/spec/support/xml/character/wallet_journal.xml +39 -0
- data/spec/support/xml/character/wallet_transactions.xml +44 -0
- data/spec/support/xml/corporation/account_balance.xml +15 -0
- data/spec/support/xml/corporation/asset_list.xml +50 -0
- data/spec/support/xml/corporation/container_log.xml +32 -0
- data/spec/support/xml/corporation/fac_war_stats.xml +19 -0
- data/spec/support/xml/corporation/industry_jobs.xml +70 -0
- data/spec/support/xml/corporation/kill_log.xml +51 -0
- data/spec/support/xml/corporation/market_orders.xml +37 -0
- data/spec/support/xml/corporation/medals.xml +8 -0
- data/spec/support/xml/corporation/member_corporation_sheet.xml +51 -0
- data/spec/support/xml/corporation/member_medals.xml +10 -0
- data/spec/support/xml/corporation/member_security.xml +21 -0
- data/spec/support/xml/corporation/member_security_log.xml +55 -0
- data/spec/support/xml/corporation/member_tracking.xml +18 -0
- data/spec/support/xml/corporation/non_member_corporation_sheet.xml +30 -0
- data/spec/support/xml/corporation/shareholders.xml +11 -0
- data/spec/support/xml/corporation/standings.xml +33 -0
- data/spec/support/xml/corporation/starbase_detail.xml +33 -0
- data/spec/support/xml/corporation/starbase_list.xml +17 -0
- data/spec/support/xml/corporation/titles.xml +34 -0
- data/spec/support/xml/corporation/wallet_journal.xml +40 -0
- data/spec/support/xml/corporation/wallet_transactions.xml +12 -0
- data/spec/support/xml/errors/106.xml +5 -0
- data/spec/support/xml/errors/516.xml +5 -0
- data/spec/support/xml/eve/alliance_list.xml +22 -0
- data/spec/support/xml/eve/certificate_tree.xml +49 -0
- data/spec/support/xml/eve/character_id.xml +15 -0
- data/spec/support/xml/eve/conquerable_station_list.xml +24 -0
- data/spec/support/xml/eve/error_list.xml +78 -0
- data/spec/support/xml/eve/fac_war_stats.xml +31 -0
- data/spec/support/xml/eve/fac_war_top_stats.xml +238 -0
- data/spec/support/xml/eve/ref_types.xml +105 -0
- data/spec/support/xml/eve/skill_tree.xml +52 -0
- data/spec/support/xml/map/fac_war_systems.xml +180 -0
- data/spec/support/xml/map/jumps.xml +166 -0
- data/spec/support/xml/map/kills.xml +191 -0
- data/spec/support/xml/map/sovereignty.xml +20 -0
- data/spec/support/xml/rowset_with_mismatched_attributes.xml +6 -0
- data/spec/support/xml/server/server_status.xml +9 -0
- metadata +364 -0
data/History.txt
ADDED
data/Manifest.txt
ADDED
@@ -0,0 +1,174 @@
|
|
1
|
+
History.txt
|
2
|
+
Manifest.txt
|
3
|
+
PostInstall.txt
|
4
|
+
README.rdoc
|
5
|
+
Rakefile
|
6
|
+
features/support/env.rb
|
7
|
+
lib/eve.rb
|
8
|
+
lib/eve/api.rb
|
9
|
+
lib/eve/api/connectivity.rb
|
10
|
+
lib/eve/api/request.rb
|
11
|
+
lib/eve/api/response.rb
|
12
|
+
lib/eve/api/response/inspection.rb
|
13
|
+
lib/eve/api/response/rowset.rb
|
14
|
+
lib/eve/api/response/rowsets.rb
|
15
|
+
lib/eve/api/response/wrap_object.rb
|
16
|
+
lib/eve/api/services.rb
|
17
|
+
lib/eve/api/services/account.rb
|
18
|
+
lib/eve/api/services/character.rb
|
19
|
+
lib/eve/api/services/corporation.rb
|
20
|
+
lib/eve/api/services/eve.rb
|
21
|
+
lib/eve/api/services/map.rb
|
22
|
+
lib/eve/api/services/misc.rb
|
23
|
+
lib/eve/api/services/server.rb
|
24
|
+
lib/eve/core_extensions.rb
|
25
|
+
lib/eve/core_extensions/hash.rb
|
26
|
+
lib/eve/core_extensions/string.rb
|
27
|
+
lib/eve/dependencies.rb
|
28
|
+
lib/eve/errors.rb
|
29
|
+
lib/eve/errors/authentication_errors.rb
|
30
|
+
lib/eve/errors/internal_errors.rb
|
31
|
+
lib/eve/errors/miscellaneous_errors.rb
|
32
|
+
lib/eve/errors/user_input_errors.rb
|
33
|
+
lib/eve/helpers.rb
|
34
|
+
lib/eve/helpers/javascript_helper.rb
|
35
|
+
lib/eve/helpers/view_helper.rb
|
36
|
+
lib/eve/trust.rb
|
37
|
+
lib/eve/trust/controller_helpers.rb
|
38
|
+
lib/eve/trust/igb_interface.rb
|
39
|
+
lib/eve/trust/mime_types.rb
|
40
|
+
script/console
|
41
|
+
script/console.cmd
|
42
|
+
script/destroy
|
43
|
+
script/destroy.cmd
|
44
|
+
script/generate
|
45
|
+
script/generate.cmd
|
46
|
+
spec/lib/eve/api/calls/account/characters_spec.rb
|
47
|
+
spec/lib/eve/api/calls/character/account_balance_spec.rb
|
48
|
+
spec/lib/eve/api/calls/character/asset_list_spec.rb
|
49
|
+
spec/lib/eve/api/calls/character/character_sheet_spec.rb
|
50
|
+
spec/lib/eve/api/calls/character/fac_war_stats_spec.rb
|
51
|
+
spec/lib/eve/api/calls/character/industry_jobs_spec.rb
|
52
|
+
spec/lib/eve/api/calls/character/kill_log_spec.rb
|
53
|
+
spec/lib/eve/api/calls/character/mail_messages_spec.rb
|
54
|
+
spec/lib/eve/api/calls/character/mailing_lists_spec.rb
|
55
|
+
spec/lib/eve/api/calls/character/market_orders_spec.rb
|
56
|
+
spec/lib/eve/api/calls/character/medals_spec.rb
|
57
|
+
spec/lib/eve/api/calls/character/research_spec.rb
|
58
|
+
spec/lib/eve/api/calls/character/skill_in_training_spec.rb
|
59
|
+
spec/lib/eve/api/calls/character/skill_queue_spec.rb
|
60
|
+
spec/lib/eve/api/calls/character/standings_spec.rb
|
61
|
+
spec/lib/eve/api/calls/character/wallet_journal_spec.rb
|
62
|
+
spec/lib/eve/api/calls/character/wallet_transactions_spec.rb
|
63
|
+
spec/lib/eve/api/calls/character_portrait_spec.rb
|
64
|
+
spec/lib/eve/api/calls/corporation/account_balances_spec.rb
|
65
|
+
spec/lib/eve/api/calls/corporation/asset_list_spec.rb
|
66
|
+
spec/lib/eve/api/calls/corporation/container_log_spec.rb
|
67
|
+
spec/lib/eve/api/calls/corporation/corporation_sheet_spec.rb
|
68
|
+
spec/lib/eve/api/calls/corporation/fac_war_stats_spec.rb
|
69
|
+
spec/lib/eve/api/calls/corporation/industry_jobs_spec.rb
|
70
|
+
spec/lib/eve/api/calls/corporation/kill_log_spec.rb
|
71
|
+
spec/lib/eve/api/calls/corporation/market_orders_spec.rb
|
72
|
+
spec/lib/eve/api/calls/corporation/medals_spec.rb
|
73
|
+
spec/lib/eve/api/calls/corporation/member_medals_spec.rb
|
74
|
+
spec/lib/eve/api/calls/corporation/member_security_log_spec.rb
|
75
|
+
spec/lib/eve/api/calls/corporation/member_security_spec.rb
|
76
|
+
spec/lib/eve/api/calls/corporation/member_tracking_spec.rb
|
77
|
+
spec/lib/eve/api/calls/corporation/shareholders_spec.rb
|
78
|
+
spec/lib/eve/api/calls/corporation/standings_spec.rb
|
79
|
+
spec/lib/eve/api/calls/corporation/starbase_detail_spec.rb
|
80
|
+
spec/lib/eve/api/calls/corporation/starbase_list_spec.rb
|
81
|
+
spec/lib/eve/api/calls/corporation/titles_spec.rb
|
82
|
+
spec/lib/eve/api/calls/corporation/wallet_journal_spec.rb
|
83
|
+
spec/lib/eve/api/calls/corporation/wallet_transactions_spec.rb
|
84
|
+
spec/lib/eve/api/calls/empty_call_spec.rb
|
85
|
+
spec/lib/eve/api/calls/eve/alliance_list_spec.rb
|
86
|
+
spec/lib/eve/api/calls/eve/certificate_tree_spec.rb
|
87
|
+
spec/lib/eve/api/calls/eve/character_id_spec.rb
|
88
|
+
spec/lib/eve/api/calls/eve/conquerable_station_list_spec.rb
|
89
|
+
spec/lib/eve/api/calls/eve/error_list_spec.rb
|
90
|
+
spec/lib/eve/api/calls/eve/fac_war_stats_spec.rb
|
91
|
+
spec/lib/eve/api/calls/eve/fac_war_top_stats_spec.rb
|
92
|
+
spec/lib/eve/api/calls/eve/ref_types_spec.rb
|
93
|
+
spec/lib/eve/api/calls/eve/skill_tree_spec.rb
|
94
|
+
spec/lib/eve/api/calls/map/fac_war_systems_spec.rb
|
95
|
+
spec/lib/eve/api/calls/map/jumps_spec.rb
|
96
|
+
spec/lib/eve/api/calls/map/kills_spec.rb
|
97
|
+
spec/lib/eve/api/calls/map/sovereignty_spec.rb
|
98
|
+
spec/lib/eve/api/calls/server_status_spec.rb
|
99
|
+
spec/lib/eve/api/request_spec.rb
|
100
|
+
spec/lib/eve/api/response/error_spec.rb
|
101
|
+
spec/lib/eve/api/response/rowset_spec.rb
|
102
|
+
spec/lib/eve/api/response_spec.rb
|
103
|
+
spec/lib/eve/api_spec.rb
|
104
|
+
spec/lib/eve/core_extensions/hash_spec.rb
|
105
|
+
spec/lib/eve/core_extensions/string_spec.rb
|
106
|
+
spec/lib/eve/helpers/javascript_helper_spec.rb
|
107
|
+
spec/lib/eve/helpers/view_helper_spec.rb
|
108
|
+
spec/lib/eve/trust/controller_helpers_spec.rb
|
109
|
+
spec/lib/eve/trust/igb_interface_spec.rb
|
110
|
+
spec/rcov.opts
|
111
|
+
spec/readme_spec.rb
|
112
|
+
spec/sample_api_key.yml
|
113
|
+
spec/spec.opts
|
114
|
+
spec/spec_helper.rb
|
115
|
+
spec/support/behaves_like_rowset.rb
|
116
|
+
spec/support/controllers/trust_controller.rb
|
117
|
+
spec/support/jpg/mock_portrait.jpg
|
118
|
+
spec/support/mock_api_helpers.rb
|
119
|
+
spec/support/xml/account/characters.xml
|
120
|
+
spec/support/xml/character/account_balance.xml
|
121
|
+
spec/support/xml/character/asset_list.xml
|
122
|
+
spec/support/xml/character/character_sheet.xml
|
123
|
+
spec/support/xml/character/fac_war_stats.xml
|
124
|
+
spec/support/xml/character/industry_jobs.xml
|
125
|
+
spec/support/xml/character/kill_log.xml
|
126
|
+
spec/support/xml/character/mail_messages.xml
|
127
|
+
spec/support/xml/character/mailing_lists.xml
|
128
|
+
spec/support/xml/character/market_orders.xml
|
129
|
+
spec/support/xml/character/medals.xml
|
130
|
+
spec/support/xml/character/research.xml
|
131
|
+
spec/support/xml/character/skill_in_training.xml
|
132
|
+
spec/support/xml/character/skill_not_in_training.xml
|
133
|
+
spec/support/xml/character/skill_queue.xml
|
134
|
+
spec/support/xml/character/standings.xml
|
135
|
+
spec/support/xml/character/wallet_journal.xml
|
136
|
+
spec/support/xml/character/wallet_transactions.xml
|
137
|
+
spec/support/xml/corporation/account_balance.xml
|
138
|
+
spec/support/xml/corporation/asset_list.xml
|
139
|
+
spec/support/xml/corporation/container_log.xml
|
140
|
+
spec/support/xml/corporation/fac_war_stats.xml
|
141
|
+
spec/support/xml/corporation/industry_jobs.xml
|
142
|
+
spec/support/xml/corporation/kill_log.xml
|
143
|
+
spec/support/xml/corporation/market_orders.xml
|
144
|
+
spec/support/xml/corporation/medals.xml
|
145
|
+
spec/support/xml/corporation/member_corporation_sheet.xml
|
146
|
+
spec/support/xml/corporation/member_medals.xml
|
147
|
+
spec/support/xml/corporation/member_security.xml
|
148
|
+
spec/support/xml/corporation/member_security_log.xml
|
149
|
+
spec/support/xml/corporation/member_tracking.xml
|
150
|
+
spec/support/xml/corporation/non_member_corporation_sheet.xml
|
151
|
+
spec/support/xml/corporation/shareholders.xml
|
152
|
+
spec/support/xml/corporation/standings.xml
|
153
|
+
spec/support/xml/corporation/starbase_detail.xml
|
154
|
+
spec/support/xml/corporation/starbase_list.xml
|
155
|
+
spec/support/xml/corporation/titles.xml
|
156
|
+
spec/support/xml/corporation/wallet_journal.xml
|
157
|
+
spec/support/xml/corporation/wallet_transactions.xml
|
158
|
+
spec/support/xml/errors/106.xml
|
159
|
+
spec/support/xml/errors/516.xml
|
160
|
+
spec/support/xml/eve/alliance_list.xml
|
161
|
+
spec/support/xml/eve/certificate_tree.xml
|
162
|
+
spec/support/xml/eve/character_id.xml
|
163
|
+
spec/support/xml/eve/conquerable_station_list.xml
|
164
|
+
spec/support/xml/eve/error_list.xml
|
165
|
+
spec/support/xml/eve/fac_war_stats.xml
|
166
|
+
spec/support/xml/eve/fac_war_top_stats.xml
|
167
|
+
spec/support/xml/eve/ref_types.xml
|
168
|
+
spec/support/xml/eve/skill_tree.xml
|
169
|
+
spec/support/xml/map/fac_war_systems.xml
|
170
|
+
spec/support/xml/map/jumps.xml
|
171
|
+
spec/support/xml/map/kills.xml
|
172
|
+
spec/support/xml/map/sovereignty.xml
|
173
|
+
spec/support/xml/rowset_with_mismatched_attributes.xml
|
174
|
+
spec/support/xml/server/server_status.xml
|
data/PostInstall.txt
ADDED
data/README.rdoc
ADDED
@@ -0,0 +1,126 @@
|
|
1
|
+
= eve
|
2
|
+
|
3
|
+
* http://github.com/sinisterchipmunk/eve
|
4
|
+
|
5
|
+
== DESCRIPTION:
|
6
|
+
|
7
|
+
A Ruby library for interfacing with all aspects of the EVE Online MMO. It is designed for use within a Ruby on Rails
|
8
|
+
project, but does not require Rails as a dependency. That means there's nothing preventing you from writing a
|
9
|
+
stand-alone application or script using this library.
|
10
|
+
|
11
|
+
== QUICK START:
|
12
|
+
|
13
|
+
=== Including The Gem
|
14
|
+
In Rails:
|
15
|
+
config.gem 'eve'
|
16
|
+
In Pure Ruby:
|
17
|
+
require 'rubygems'
|
18
|
+
require 'eve'
|
19
|
+
|
20
|
+
=== Usage Example: Controller
|
21
|
+
class MyEveCompatibleController < ApplicationController
|
22
|
+
requires_trust # or, requires_trust "with a custom trust message: please click yes"
|
23
|
+
end
|
24
|
+
|
25
|
+
=== Usage Example: View Helpers
|
26
|
+
<%=link_to_evemail "Check Your Mail!"%>
|
27
|
+
|
28
|
+
<%if igb.trusted?%>
|
29
|
+
<p>Thanks for your trust! I see you're currently in <%=igb.solar_system_name%>.</p>
|
30
|
+
<p>Here's some information about our secret headquarters:</p>
|
31
|
+
<ul>
|
32
|
+
<li><%=link_to_route "Click For Directions", "Jita"%></li>
|
33
|
+
<li><%=link_to_map "Show On Map", "Jita"%></li>
|
34
|
+
</ul>
|
35
|
+
<%end%>
|
36
|
+
|
37
|
+
=== Usage Example: EVE API
|
38
|
+
# Get the current server status
|
39
|
+
api = Eve::API.new()
|
40
|
+
server_status = api.server_status
|
41
|
+
puts "Server reports status #{server_status.server_open ? "ONLINE" : "OFFLINE"}"
|
42
|
+
puts "\tCurrent time is #{server_status.current_time}"
|
43
|
+
puts "\t#{server_status.online_players} players currently online"
|
44
|
+
puts
|
45
|
+
#
|
46
|
+
# Get a list of characters
|
47
|
+
api = Eve::API.new(:user_id => $user_id, :api_key => $limited_api_key)
|
48
|
+
result = api.account.characters
|
49
|
+
puts "Choose a character:"
|
50
|
+
result.characters.each_with_index { |char, index| puts "\t#{index}: #{char.name} (#{char.character_id})" }
|
51
|
+
choice = gets.chomp.to_i
|
52
|
+
puts
|
53
|
+
#
|
54
|
+
# Get the current training queue. Need a full API key and a character ID for that.
|
55
|
+
api.set(:api_key => $full_api_key, :character_id => result.characters[choice].character_id)
|
56
|
+
result = api.character.skill_queue
|
57
|
+
result.skillqueue.each do |skill|
|
58
|
+
result.skillqueue.columns.each do |column|
|
59
|
+
print column.ljust(20), ":\t", skill[column], "\n"
|
60
|
+
end
|
61
|
+
puts
|
62
|
+
end
|
63
|
+
|
64
|
+
== DETAILS:
|
65
|
+
|
66
|
+
This package is divided into 3 major components, and are listed below. Click on any item to see more information and
|
67
|
+
usage examples.
|
68
|
+
|
69
|
+
* API libraries: Eve::API
|
70
|
+
* Handles interfacing with the EVE Online API. It allows you to easily query the server for various information about
|
71
|
+
the server status, a given player, or his/her in-game character.
|
72
|
+
* Eventually, this may be extended to incorporate other EVE-related APIs, such as the EVE-Central and EVE Metrics
|
73
|
+
APIs.
|
74
|
+
|
75
|
+
* Controller helpers: Eve::Trust
|
76
|
+
* There are several helper methods added to ApplicationController, and they are designed to facilitate interaction
|
77
|
+
with the in-game browser (IGB). In particular, these helpers allow you to establish trust with the client browser,
|
78
|
+
which will then provide more information about the player's current in-game status (such as his/her current
|
79
|
+
location).
|
80
|
+
* The controller helpers also automatically detect whether the client is, in fact, using the EVE IGB, or whether they
|
81
|
+
are using some other browser. If a view with the ".igb.erb" extension is found, the controller will render that view
|
82
|
+
by default for IGB clients. If the client is using some other browser, or a view with the ".igb.erb" extension is
|
83
|
+
not found, then the default view will be rendered instead.
|
84
|
+
* To take advantage of these helpers, your application must extend ApplicationController, which is a default in Ruby
|
85
|
+
on Rails.
|
86
|
+
|
87
|
+
* View helpers: Eve::Helpers::JavascriptHelper
|
88
|
+
* There are several helper methods added to ActionView, and they are designed to facilitate easy and intuitive
|
89
|
+
generation of proprietary IGB JavaScript calls.
|
90
|
+
* These helpers are automatically made accessible to all instances of ActionView::Base.
|
91
|
+
* To take advantage of these helpers, your application must make use of ActionView::Base, which is the default in Ruby
|
92
|
+
on Rails.
|
93
|
+
|
94
|
+
== REQUIREMENTS:
|
95
|
+
|
96
|
+
hpricot
|
97
|
+
activesupport
|
98
|
+
|
99
|
+
== INSTALL:
|
100
|
+
|
101
|
+
sudo gem install eve
|
102
|
+
|
103
|
+
== LICENSE:
|
104
|
+
|
105
|
+
(The MIT License)
|
106
|
+
|
107
|
+
Copyright (c) 2010 Colin MacKenzie IV
|
108
|
+
|
109
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
110
|
+
a copy of this software and associated documentation files (the
|
111
|
+
'Software'), to deal in the Software without restriction, including
|
112
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
113
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
114
|
+
permit persons to whom the Software is furnished to do so, subject to
|
115
|
+
the following conditions:
|
116
|
+
|
117
|
+
The above copyright notice and this permission notice shall be
|
118
|
+
included in all copies or substantial portions of the Software.
|
119
|
+
|
120
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
121
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
122
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
123
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
124
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
125
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
126
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,128 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
gem 'hoe', '>= 2.1.0'
|
3
|
+
require 'hoe'
|
4
|
+
require 'fileutils'
|
5
|
+
require './lib/eve'
|
6
|
+
|
7
|
+
def rcov_opts
|
8
|
+
IO.readlines("spec/rcov.opts").map {|l| l.chomp.split " "}.flatten
|
9
|
+
end
|
10
|
+
|
11
|
+
Hoe.plugin :newgem
|
12
|
+
# Hoe.plugin :website
|
13
|
+
# Hoe.plugin :cucumberfeatures
|
14
|
+
|
15
|
+
# Generate all the Rake tasks
|
16
|
+
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
17
|
+
$hoe = Hoe.spec 'eve' do
|
18
|
+
self.version = Eve::VERSION
|
19
|
+
#self.summary = Eve::VERSION::SUMMARY
|
20
|
+
self.description = "A Ruby library for interfacing with all aspects of the EVE Online MMO. It is designed for use "+
|
21
|
+
"within a Ruby on Rails project, but does not require Rails as a dependency. That means there is nothing "+
|
22
|
+
"preventing you from writing a stand-alone application or script using this library."
|
23
|
+
self.developer('Colin MacKenzie IV', 'sinisterchipmunk@gmail.com')
|
24
|
+
self.url = ('http://github.com/sinisterchipmunk/eve')
|
25
|
+
self.extra_deps << ["activesupport",">=2.3.5"] << ["hpricot",">=0.8.2"] << ["actionpack",">=2.3.5"]
|
26
|
+
self.extra_dev_deps << ["cucumber",">=0.6.2"] << ["rspec",">=1.3.0"] << ["rcov",">=0.9.8"]
|
27
|
+
self.rspec_options = ['--options', 'spec/spec.opts']
|
28
|
+
#self.history_file = 'History.rdoc'
|
29
|
+
self.readme_file = 'README.rdoc'
|
30
|
+
self.post_install_message = ""
|
31
|
+
end
|
32
|
+
|
33
|
+
remove_task :docs
|
34
|
+
|
35
|
+
Rake::RDocTask.new(:docs) do |rdoc|
|
36
|
+
files = ['README.rdoc', # 'LICENSE', 'CHANGELOG',
|
37
|
+
'lib/**/*.rb', 'doc/**/*.rdoc']#, 'spec/*.rb']
|
38
|
+
rdoc.rdoc_files.add(files)
|
39
|
+
rdoc.main = 'README.rdoc'
|
40
|
+
rdoc.title = 'EVE Documentation'
|
41
|
+
#rdoc.template = '/path/to/gems/allison-2.0/lib/allison'
|
42
|
+
rdoc.rdoc_dir = 'doc'
|
43
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
44
|
+
end
|
45
|
+
|
46
|
+
require 'newgem/tasks'
|
47
|
+
Dir['tasks/**/*.rake'].each { |t| load t }
|
48
|
+
|
49
|
+
task :cleanup_rcov_files do
|
50
|
+
rm_rf 'coverage.data'
|
51
|
+
end
|
52
|
+
|
53
|
+
|
54
|
+
if RUBY_VERSION =~ /^1.8/
|
55
|
+
task :default => [:cleanup_rcov_files, :features, :verify_rcov]
|
56
|
+
else
|
57
|
+
task :default => [:spec, :features]
|
58
|
+
end
|
59
|
+
|
60
|
+
namespace :spec do
|
61
|
+
desc "Run all specs with rcov"
|
62
|
+
Spec::Rake::SpecTask.new(:rcov) do |t|
|
63
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
64
|
+
t.spec_opts = ['--options', 'spec/spec.opts']
|
65
|
+
t.rcov = true
|
66
|
+
t.rcov_dir = 'coverage'
|
67
|
+
t.rcov_opts = rcov_opts
|
68
|
+
end
|
69
|
+
|
70
|
+
desc "Run files listed in spec/spec_files.txt"
|
71
|
+
Spec::Rake::SpecTask.new(:focus) do |t|
|
72
|
+
if File.exists?('spec/spec_files.txt')
|
73
|
+
t.spec_files = File.readlines('spec/spec_files.txt').collect{|f| f.chomp}
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
begin
|
79
|
+
require 'cucumber/rake/task'
|
80
|
+
desc "Run Cucumber features"
|
81
|
+
if RUBY_VERSION =~ /^1.8/
|
82
|
+
Cucumber::Rake::Task.new :features do |t|
|
83
|
+
t.rcov = true
|
84
|
+
t.rcov_opts = rcov_opts
|
85
|
+
t.cucumber_opts = %w{--format progress}
|
86
|
+
end
|
87
|
+
else
|
88
|
+
task :features do
|
89
|
+
sh 'cucumber --profile no_heckle'
|
90
|
+
end
|
91
|
+
end
|
92
|
+
rescue LoadError
|
93
|
+
puts "You need cucumber installed to run cucumber tasks"
|
94
|
+
end
|
95
|
+
|
96
|
+
def egrep(pattern)
|
97
|
+
Dir['**/*.rb'].each do |fn|
|
98
|
+
count = 0
|
99
|
+
open(fn) do |f|
|
100
|
+
while line = f.gets
|
101
|
+
count += 1
|
102
|
+
if line =~ pattern
|
103
|
+
puts "#{fn}:#{count}:#{line}"
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
desc "Look for TODO and FIXME tags in the code"
|
111
|
+
task :todo do
|
112
|
+
egrep /(FIXME|TODO|TBD)/
|
113
|
+
end
|
114
|
+
|
115
|
+
namespace :update do
|
116
|
+
desc "update the manifest"
|
117
|
+
task :manifest do
|
118
|
+
system %q[touch Manifest.txt; rake check_manifest | grep -v "(in " | patch]
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
task :clobber => :clobber_tmp
|
123
|
+
|
124
|
+
task :clobber_tmp do
|
125
|
+
cmd = %q[rm -r tmp]
|
126
|
+
puts cmd
|
127
|
+
system cmd if test ?d, 'tmp'
|
128
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'eve'
|
data/lib/eve.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
$:.unshift(File.dirname(__FILE__)) unless
|
2
|
+
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
|
+
|
4
|
+
require 'eve/dependencies'
|
5
|
+
require 'eve/core_extensions'
|
6
|
+
require 'eve/errors'
|
7
|
+
require 'eve/api'
|
8
|
+
require 'eve/trust'
|
9
|
+
require 'eve/helpers'
|
10
|
+
|
11
|
+
module Eve
|
12
|
+
VERSION = '1.0.0'
|
13
|
+
|
14
|
+
class << self
|
15
|
+
def cache_store
|
16
|
+
@cache_store ||= [:file_store, "tmp/eve.cache"]
|
17
|
+
end
|
18
|
+
|
19
|
+
def cache_store=(a)
|
20
|
+
@cache_store = [a].flatten
|
21
|
+
@cache = ActiveSupport::Cache.lookup_store(a) if @cache
|
22
|
+
end
|
23
|
+
|
24
|
+
def cache
|
25
|
+
return @cache if @cache
|
26
|
+
@cache = defined?(Rails) ? Rails.cache : ActiveSupport::Cache.lookup_store(*cache_store)
|
27
|
+
# @cache.logger = Logger.new($stdout) unless defined?(Rails)
|
28
|
+
@cache
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|