eve-4 2.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.
- checksums.yaml +7 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +145 -0
- metadata +131 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c889693dc5c5936d45e0d211970ab184ae057eba
|
4
|
+
data.tar.gz: fcea0fbb7c71e8c0d93c234caca703837493fc4a
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8d131b0392384177dc3dd5febf3c36c953a65965a337eea0ab3d751b0261fb4b067641201f4ceb4c5bb63f79c21966f5520ef44cecab6bd38c909db00691460c
|
7
|
+
data.tar.gz: d603cac58bd9931dac0e02b294cd118f1a036192638fbaedcb22249c90286ca8cf4465e2c496c915092cf8e6791b6342970845c355488d2db28baaa3150c6db7
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2010 Colin MacKenzie IV
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
@@ -0,0 +1,145 @@
|
|
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 3:
|
15
|
+
|
16
|
+
gem 'eve'
|
17
|
+
|
18
|
+
In Rails 2:
|
19
|
+
|
20
|
+
# Please note that the Rails 2 version of this gem is no longer being maintained, so
|
21
|
+
# you will need to download a 1.x version of the gem.
|
22
|
+
config.gem 'eve', :version => "~> 1.0"
|
23
|
+
|
24
|
+
In Pure Ruby:
|
25
|
+
require 'rubygems'
|
26
|
+
require 'eve'
|
27
|
+
|
28
|
+
=== Usage Example: Controller
|
29
|
+
class MyEveCompatibleController < ApplicationController
|
30
|
+
requires_trust
|
31
|
+
end
|
32
|
+
|
33
|
+
Rails 3: This returns a blank page with a trust request. This behavior can be overridden with an initializer to provide custom trust request pages:
|
34
|
+
module Eve
|
35
|
+
module Trust
|
36
|
+
module ControllerHelpers
|
37
|
+
def require_trust(trust_message = self.class.trust_message)
|
38
|
+
if igb? && !igb.trusted?
|
39
|
+
render :text => "<center>Requires trust!</br><a href=\"#\" onclick=\"CCPEVE.requestTrust('http://#{request.host_with_port}/')\">give trust</a>", :layout => false
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
=== Usage Example: View Helpers
|
47
|
+
<%=link_to_evemail "Check Your Mail!"%>
|
48
|
+
|
49
|
+
<%if igb.trusted?%>
|
50
|
+
<p>Thanks for your trust! I see you're currently in <%=igb.solar_system_name%>.</p>
|
51
|
+
<p>Here's some information about our secret headquarters:</p>
|
52
|
+
<ul>
|
53
|
+
<li><%=link_to_route "Click For Directions", "Jita"%></li>
|
54
|
+
<li><%=link_to_map "Show On Map", "Jita"%></li>
|
55
|
+
</ul>
|
56
|
+
<%end%>
|
57
|
+
|
58
|
+
=== Usage Example: EVE API
|
59
|
+
# Get the current server status
|
60
|
+
api = Eve::API.new()
|
61
|
+
server_status = api.server_status
|
62
|
+
puts "Server reports status #{server_status.server_open ? "ONLINE" : "OFFLINE"}"
|
63
|
+
puts "\tCurrent time is #{server_status.current_time}"
|
64
|
+
puts "\t#{server_status.online_players} players currently online"
|
65
|
+
puts
|
66
|
+
#
|
67
|
+
# Get a list of characters
|
68
|
+
api = Eve::API.new(:user_id => $user_id, :api_key => $limited_api_key)
|
69
|
+
result = api.account.characters
|
70
|
+
puts "Choose a character:"
|
71
|
+
result.characters.each_with_index { |char, index| puts "\t#{index}: #{char.name} (#{char.character_id})" }
|
72
|
+
choice = gets.chomp.to_i
|
73
|
+
puts
|
74
|
+
#
|
75
|
+
# Get the current training queue. Need a full API key and a character ID for that.
|
76
|
+
api.set(:api_key => $full_api_key, :character_id => result.characters[choice].character_id)
|
77
|
+
result = api.character.skill_queue
|
78
|
+
result.skillqueue.each do |skill|
|
79
|
+
result.skillqueue.columns.each do |column|
|
80
|
+
print column.ljust(20), ":\t", skill[column], "\n"
|
81
|
+
end
|
82
|
+
puts
|
83
|
+
end
|
84
|
+
|
85
|
+
== DETAILS:
|
86
|
+
|
87
|
+
This package is divided into 3 major components, and are listed below. Click on any item to see more information and
|
88
|
+
usage examples.
|
89
|
+
|
90
|
+
* API libraries: Eve::API
|
91
|
+
* Handles interfacing with the EVE Online API. It allows you to easily query the server for various information about
|
92
|
+
the server status, a given player, or his/her in-game character.
|
93
|
+
* Eventually, this may be extended to incorporate other EVE-related APIs, such as the EVE-Central and EVE Metrics
|
94
|
+
APIs.
|
95
|
+
|
96
|
+
* Controller helpers: Eve::Trust
|
97
|
+
* There are several helper methods added to ActionController::Base, and they are designed to facilitate interaction
|
98
|
+
with the in-game browser (IGB). In particular, these helpers allow you to establish trust with the client browser,
|
99
|
+
which will then provide more information about the player's current in-game status (such as his/her current
|
100
|
+
location).
|
101
|
+
* The controller helpers also automatically detect whether the client is, in fact, using the EVE IGB, or whether they
|
102
|
+
are using some other browser. If a view with the ".igb.erb" extension is found, the controller will render that view
|
103
|
+
by default for IGB clients. If the client is using some other browser, or a view with the ".igb.erb" extension is
|
104
|
+
not found, then the default view will be rendered instead.
|
105
|
+
|
106
|
+
* View helpers: Eve::Helpers::JavascriptHelper
|
107
|
+
* There are several helper methods added to ActionView, and they are designed to facilitate easy and intuitive
|
108
|
+
generation of proprietary IGB JavaScript calls.
|
109
|
+
* These helpers are automatically made accessible to all instances of ActionView::Base.
|
110
|
+
* To take advantage of these helpers, your application must make use of ActionView::Base, which is the default in Ruby
|
111
|
+
on Rails.
|
112
|
+
|
113
|
+
== REQUIREMENTS:
|
114
|
+
|
115
|
+
hpricot
|
116
|
+
activesupport
|
117
|
+
|
118
|
+
== INSTALL:
|
119
|
+
|
120
|
+
sudo gem install eve
|
121
|
+
|
122
|
+
== LICENSE:
|
123
|
+
|
124
|
+
(The MIT License)
|
125
|
+
|
126
|
+
Copyright (c) 2010 Colin MacKenzie IV
|
127
|
+
|
128
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
129
|
+
a copy of this software and associated documentation files (the
|
130
|
+
'Software'), to deal in the Software without restriction, including
|
131
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
132
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
133
|
+
permit persons to whom the Software is furnished to do so, subject to
|
134
|
+
the following conditions:
|
135
|
+
|
136
|
+
The above copyright notice and this permission notice shall be
|
137
|
+
included in all copies or substantial portions of the Software.
|
138
|
+
|
139
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
140
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
141
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
142
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
143
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
144
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
145
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: eve-4
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Colin MacKenzie IV
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2012-02-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: sc-core-ext
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '>='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: eve updated for rails 4
|
98
|
+
email: sinisterchipmunk@gmail.com
|
99
|
+
executables: []
|
100
|
+
extensions: []
|
101
|
+
extra_rdoc_files:
|
102
|
+
- LICENSE.txt
|
103
|
+
- README.rdoc
|
104
|
+
files:
|
105
|
+
- LICENSE.txt
|
106
|
+
- README.rdoc
|
107
|
+
homepage: http://thoughtsincomputation.com
|
108
|
+
licenses:
|
109
|
+
- MIT
|
110
|
+
metadata: {}
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - '>='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.0.5
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: A Ruby library for interfacing with all aspects of the EVE Online MMO.
|
131
|
+
test_files: []
|