eve-api 0.0.1 → 0.0.5
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.
- data/History.txt +36 -0
- data/License.txt +19 -0
- data/Manifest.txt +21 -0
- data/README.txt +33 -0
- data/Rakefile +123 -0
- data/lib/eve-api.rb +3 -1
- data/lib/eve-api/eve-api.rb +51 -0
- data/lib/eve-api/transport.rb +9 -9
- data/lib/eve-api/version.rb +9 -0
- data/scripts/txt2html +67 -0
- data/setup.rb +1585 -0
- data/test/config.yml.dist +3 -0
- data/test/test_eve-api.rb +125 -0
- data/test/test_helper.rb +3 -0
- data/website/index.html +92 -0
- data/website/index.txt +38 -0
- data/website/javascripts/rounded_corners_lite.inc.js +285 -0
- data/website/stylesheets/screen.css +138 -0
- data/website/template.rhtml +48 -0
- metadata +33 -13
- data/README +0 -8
- data/tests/general.rb +0 -82
@@ -0,0 +1,138 @@
|
|
1
|
+
body {
|
2
|
+
background-color: #E1D1F1;
|
3
|
+
font-family: "Georgia", sans-serif;
|
4
|
+
font-size: 16px;
|
5
|
+
line-height: 1.6em;
|
6
|
+
padding: 1.6em 0 0 0;
|
7
|
+
color: #333;
|
8
|
+
}
|
9
|
+
h1, h2, h3, h4, h5, h6 {
|
10
|
+
color: #444;
|
11
|
+
}
|
12
|
+
h1 {
|
13
|
+
font-family: sans-serif;
|
14
|
+
font-weight: normal;
|
15
|
+
font-size: 4em;
|
16
|
+
line-height: 0.8em;
|
17
|
+
letter-spacing: -0.1ex;
|
18
|
+
margin: 5px;
|
19
|
+
}
|
20
|
+
li {
|
21
|
+
padding: 0;
|
22
|
+
margin: 0;
|
23
|
+
list-style-type: square;
|
24
|
+
}
|
25
|
+
a {
|
26
|
+
color: #5E5AFF;
|
27
|
+
background-color: #DAC;
|
28
|
+
font-weight: normal;
|
29
|
+
text-decoration: underline;
|
30
|
+
}
|
31
|
+
blockquote {
|
32
|
+
font-size: 90%;
|
33
|
+
font-style: italic;
|
34
|
+
border-left: 1px solid #111;
|
35
|
+
padding-left: 1em;
|
36
|
+
}
|
37
|
+
.caps {
|
38
|
+
font-size: 80%;
|
39
|
+
}
|
40
|
+
|
41
|
+
#main {
|
42
|
+
width: 45em;
|
43
|
+
padding: 0;
|
44
|
+
margin: 0 auto;
|
45
|
+
}
|
46
|
+
.coda {
|
47
|
+
text-align: right;
|
48
|
+
color: #77f;
|
49
|
+
font-size: smaller;
|
50
|
+
}
|
51
|
+
|
52
|
+
table {
|
53
|
+
font-size: 90%;
|
54
|
+
line-height: 1.4em;
|
55
|
+
color: #ff8;
|
56
|
+
background-color: #111;
|
57
|
+
padding: 2px 10px 2px 10px;
|
58
|
+
border-style: dashed;
|
59
|
+
}
|
60
|
+
|
61
|
+
th {
|
62
|
+
color: #fff;
|
63
|
+
}
|
64
|
+
|
65
|
+
td {
|
66
|
+
padding: 2px 10px 2px 10px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.success {
|
70
|
+
color: #0CC52B;
|
71
|
+
}
|
72
|
+
|
73
|
+
.failed {
|
74
|
+
color: #E90A1B;
|
75
|
+
}
|
76
|
+
|
77
|
+
.unknown {
|
78
|
+
color: #995000;
|
79
|
+
}
|
80
|
+
pre, code {
|
81
|
+
font-family: monospace;
|
82
|
+
font-size: 90%;
|
83
|
+
line-height: 1.4em;
|
84
|
+
color: #ff8;
|
85
|
+
background-color: #111;
|
86
|
+
padding: 2px 10px 2px 10px;
|
87
|
+
}
|
88
|
+
.comment { color: #aaa; font-style: italic; }
|
89
|
+
.keyword { color: #eff; font-weight: bold; }
|
90
|
+
.punct { color: #eee; font-weight: bold; }
|
91
|
+
.symbol { color: #0bb; }
|
92
|
+
.string { color: #6b4; }
|
93
|
+
.ident { color: #ff8; }
|
94
|
+
.constant { color: #66f; }
|
95
|
+
.regex { color: #ec6; }
|
96
|
+
.number { color: #F99; }
|
97
|
+
.expr { color: #227; }
|
98
|
+
|
99
|
+
#version {
|
100
|
+
float: right;
|
101
|
+
text-align: right;
|
102
|
+
font-family: sans-serif;
|
103
|
+
font-weight: normal;
|
104
|
+
background-color: #B3ABFF;
|
105
|
+
color: #141331;
|
106
|
+
padding: 15px 20px 10px 20px;
|
107
|
+
margin: 0 auto;
|
108
|
+
margin-top: 15px;
|
109
|
+
border: 3px solid #141331;
|
110
|
+
}
|
111
|
+
|
112
|
+
#version .numbers {
|
113
|
+
display: block;
|
114
|
+
font-size: 4em;
|
115
|
+
line-height: 0.8em;
|
116
|
+
letter-spacing: -0.1ex;
|
117
|
+
margin-bottom: 15px;
|
118
|
+
}
|
119
|
+
|
120
|
+
#version p {
|
121
|
+
text-decoration: none;
|
122
|
+
color: #141331;
|
123
|
+
background-color: #B3ABFF;
|
124
|
+
margin: 0;
|
125
|
+
padding: 0;
|
126
|
+
}
|
127
|
+
|
128
|
+
#version a {
|
129
|
+
text-decoration: none;
|
130
|
+
color: #141331;
|
131
|
+
background-color: #B3ABFF;
|
132
|
+
}
|
133
|
+
|
134
|
+
.clickable {
|
135
|
+
cursor: pointer;
|
136
|
+
cursor: hand;
|
137
|
+
}
|
138
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
<%= title %>
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
<style>
|
12
|
+
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript">
|
15
|
+
window.onload = function() {
|
16
|
+
settings = {
|
17
|
+
tl: { radius: 10 },
|
18
|
+
tr: { radius: 10 },
|
19
|
+
bl: { radius: 10 },
|
20
|
+
br: { radius: 10 },
|
21
|
+
antiAlias: true,
|
22
|
+
autoPad: true,
|
23
|
+
validTags: ["div"]
|
24
|
+
}
|
25
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
+
versionBox.applyCornersToAll();
|
27
|
+
}
|
28
|
+
</script>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="main">
|
32
|
+
|
33
|
+
<h1><%= title %></h1>
|
34
|
+
<div id="version" class="clickable" onclick='document.location = "<%= download %>"; return false'>
|
35
|
+
<p>Get Version</p>
|
36
|
+
<a href="<%= download %>" class="numbers"><%= version %></a>
|
37
|
+
</div>
|
38
|
+
<%= body %>
|
39
|
+
<p class="coda">
|
40
|
+
<a href="mailto:drnicwilliams@gmail.com">Dr Nic</a>, <%= modified.pretty %><br>
|
41
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
42
|
+
</p>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<!-- insert site tracking codes here, like Google Urchin -->
|
46
|
+
|
47
|
+
</body>
|
48
|
+
</html>
|
metadata
CHANGED
@@ -3,16 +3,16 @@ rubygems_version: 0.9.2
|
|
3
3
|
specification_version: 1
|
4
4
|
name: eve-api
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
7
|
-
date: 2007-06-
|
8
|
-
summary:
|
6
|
+
version: 0.0.5
|
7
|
+
date: 2007-06-26 00:00:00 -04:00
|
8
|
+
summary: EVE API Support
|
9
9
|
require_paths:
|
10
10
|
- lib
|
11
11
|
email: ddollar@gmail.com
|
12
|
-
homepage:
|
13
|
-
rubyforge_project:
|
14
|
-
description:
|
15
|
-
autorequire:
|
12
|
+
homepage: http://eve-api.rubyforge.org
|
13
|
+
rubyforge_project: eve-api
|
14
|
+
description: EVE API Support
|
15
|
+
autorequire:
|
16
16
|
default_executable:
|
17
17
|
bindir: bin
|
18
18
|
has_rdoc: true
|
@@ -29,19 +29,39 @@ post_install_message:
|
|
29
29
|
authors:
|
30
30
|
- David Dollar
|
31
31
|
files:
|
32
|
-
-
|
32
|
+
- History.txt
|
33
|
+
- License.txt
|
34
|
+
- Manifest.txt
|
35
|
+
- README.txt
|
36
|
+
- Rakefile
|
33
37
|
- lib/eve-api.rb
|
34
38
|
- lib/eve-api/common.rb
|
35
39
|
- lib/eve-api/eve-api.rb
|
36
40
|
- lib/eve-api/exceptions.rb
|
37
41
|
- lib/eve-api/transport.rb
|
38
|
-
-
|
42
|
+
- lib/eve-api/version.rb
|
43
|
+
- scripts/txt2html
|
44
|
+
- setup.rb
|
45
|
+
- test/config.yml.dist
|
46
|
+
- test/test_eve-api.rb
|
47
|
+
- test/test_helper.rb
|
48
|
+
- website/index.html
|
49
|
+
- website/index.txt
|
50
|
+
- website/javascripts/rounded_corners_lite.inc.js
|
51
|
+
- website/stylesheets/screen.css
|
52
|
+
- website/template.rhtml
|
39
53
|
test_files:
|
40
|
-
-
|
41
|
-
|
42
|
-
|
54
|
+
- test/test_eve-api.rb
|
55
|
+
- test/test_helper.rb
|
56
|
+
rdoc_options:
|
57
|
+
- --main
|
58
|
+
- README.txt
|
43
59
|
extra_rdoc_files:
|
44
|
-
-
|
60
|
+
- History.txt
|
61
|
+
- License.txt
|
62
|
+
- Manifest.txt
|
63
|
+
- README.txt
|
64
|
+
- website/index.txt
|
45
65
|
executables: []
|
46
66
|
|
47
67
|
extensions: []
|
data/README
DELETED
data/tests/general.rb
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
require 'eve-api'
|
2
|
-
require 'yaml'
|
3
|
-
|
4
|
-
include EveAPI
|
5
|
-
|
6
|
-
# create a file called "config.yml" in the tests dir that looks like:
|
7
|
-
#
|
8
|
-
# user_id: <EVE API User ID>
|
9
|
-
# api_key: <EVE API Key>
|
10
|
-
|
11
|
-
config = YAML::load_file('../tests/config.yml')
|
12
|
-
|
13
|
-
raise "config.yml missing attribute user_id" unless config.has_key?('user_id')
|
14
|
-
raise "config.yml missing attribute api_key" unless config.has_key?('api_key')
|
15
|
-
|
16
|
-
api = Transport::API.new(:id => config['user_id'], :api_key => config['api_key'])
|
17
|
-
api.characters.each do |char_id, character|
|
18
|
-
begin
|
19
|
-
pp api.member_tracking(char_id)
|
20
|
-
rescue Exceptions::CredentialsException => ex
|
21
|
-
puts "CREDENTIALS EXCEPTION: #{ex.message}"
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
api = API.new(:id => config['user_id'], :api_key => config['api_key'])
|
26
|
-
|
27
|
-
api = API.new
|
28
|
-
api << User.new(:id => config['user_id'], :api_key => config['api_key'])
|
29
|
-
|
30
|
-
api.users.each do |user|
|
31
|
-
user.characters.each do |character|
|
32
|
-
puts "CHARACTER: #{character.name}"
|
33
|
-
puts " SELF ACCOUNTS:"
|
34
|
-
character.accounts.each do |account|
|
35
|
-
begin
|
36
|
-
puts " ACCOUNT: #{account.key} [balance=#{account.balance}]"
|
37
|
-
puts " TRANSACTIONS: "
|
38
|
-
account.transactions.each do |transaction|
|
39
|
-
puts " TRANSACTION: #{transaction.id} [date=#{transaction.date.strftime("%Y-%m-%d %H:%m")}]"
|
40
|
-
end
|
41
|
-
puts " JOURNAL: "
|
42
|
-
account.journal.each do |entry|
|
43
|
-
puts " ENTRY: #{entry.id} [balance=#{entry.balance}]"
|
44
|
-
end
|
45
|
-
rescue Exceptions::InputException => ex
|
46
|
-
puts " INPUT ERROR: #{ex.message}"
|
47
|
-
end
|
48
|
-
end
|
49
|
-
begin
|
50
|
-
puts " CORP MEMBERS:"
|
51
|
-
character.corporation.members.each do |member|
|
52
|
-
puts " MEMBER: #{member.id} [name=#{member.name}]"
|
53
|
-
end
|
54
|
-
rescue Exceptions::CredentialsException => ex
|
55
|
-
print " CREDENTIALS EXCEPTION: #{ex.message}"
|
56
|
-
end
|
57
|
-
puts " CORP ACCOUNTS:"
|
58
|
-
begin
|
59
|
-
character.corporation.accounts.each do |account|
|
60
|
-
begin
|
61
|
-
puts " ACCOUNT: #{account.key} [balance=#{account.balance}]"
|
62
|
-
puts " TRANSACTIONS: "
|
63
|
-
account.transactions.each do |transaction|
|
64
|
-
puts " TRANSACTION: #{transaction.id} [date=#{transaction.date.strftime("%Y-%m-%d %H:%m")}]"
|
65
|
-
end
|
66
|
-
puts " JOURNAL: "
|
67
|
-
account.journal.each do |entry|
|
68
|
-
puts " ENTRY: #{entry.id} [balance=#{entry.balance}]"
|
69
|
-
end
|
70
|
-
rescue Exceptions::InputException => ex
|
71
|
-
puts " INPUT ERROR: #{ex.message}"
|
72
|
-
end
|
73
|
-
end
|
74
|
-
rescue Exceptions::CredentialsException => ex
|
75
|
-
puts " CREDENTIALS ERROR: #{ex.message}"
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|