eve 1.0.2 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +43 -0
- data/Gemfile +17 -0
- data/Gemfile.lock +109 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +24 -3
- data/Rakefile +26 -117
- data/eve.gemspec +35 -0
- data/lib/eve.rb +5 -10
- data/lib/eve/api.rb +3 -1
- data/lib/eve/api/response/inspection.rb +1 -1
- data/lib/eve/api/response/rowsets.rb +1 -1
- data/lib/eve/dependencies.rb +42 -12
- data/lib/eve/deprecation.rb +3 -0
- data/lib/eve/javascript_helper.rb +196 -0
- data/lib/eve/trust.rb +1 -2
- data/lib/eve/trust/controller_helpers.rb +62 -66
- data/lib/eve/trust/igb_interface.rb +14 -10
- data/lib/eve/version.rb +8 -0
- data/spec/controllers/controller_helpers_spec.rb +91 -0
- data/spec/{lib/eve/helpers → helpers}/javascript_helper_spec.rb +2 -2
- data/spec/helpers/view_helper_spec.rb +7 -0
- data/spec/lib/eve/api/calls/eve/character_id_spec.rb +8 -8
- data/spec/lib/eve/api/calls/server_status_spec.rb +4 -0
- data/spec/lib/eve/api/request_spec.rb +1 -0
- data/spec/lib/eve/trust/igb_interface_spec.rb +5 -5
- data/spec/spec_helper.rb +42 -1
- data/spec/support/controllers/trust_controller.rb +18 -1
- data/spec/support/mock_api_helpers.rb +6 -1
- data/spec/support/views/trust/html_and_igb.html.erb +1 -0
- data/spec/support/views/trust/html_and_igb.igb.erb +1 -0
- data/spec/support/views/trust/html_only.html.erb +1 -0
- data/spec/support/views/trust/igb_only.igb.erb +1 -0
- metadata +226 -169
- data/Manifest.txt +0 -174
- data/PostInstall.txt +0 -6
- data/features/support/env.rb +0 -1
- data/lib/eve/core_extensions.rb +0 -3
- data/lib/eve/core_extensions/hash.rb +0 -51
- data/lib/eve/core_extensions/string.rb +0 -11
- data/lib/eve/helpers.rb +0 -12
- data/lib/eve/helpers/javascript_helper.rb +0 -198
- data/lib/eve/helpers/view_helper.rb +0 -13
- data/script/console +0 -10
- data/script/console.cmd +0 -1
- data/script/destroy +0 -14
- data/script/destroy.cmd +0 -1
- data/script/generate +0 -14
- data/script/generate.cmd +0 -1
- data/spec/lib/eve/helpers/view_helper_spec.rb +0 -12
- data/spec/lib/eve/trust/controller_helpers_spec.rb +0 -70
@@ -1,7 +1,6 @@
|
|
1
1
|
module Eve
|
2
2
|
module Trust
|
3
3
|
class IgbInterface
|
4
|
-
extend ActiveSupport::Memoizable
|
5
4
|
attr_reader :request
|
6
5
|
delegate :headers, :to => :request
|
7
6
|
|
@@ -72,17 +71,22 @@ module Eve
|
|
72
71
|
end
|
73
72
|
|
74
73
|
private
|
74
|
+
def memoized_igb_variables(method_name = nil)
|
75
|
+
@memoized_igb_variables ||= {}
|
76
|
+
@memoized_igb_variables[method_name] ||= {}
|
77
|
+
end
|
78
|
+
|
75
79
|
def igb_variable_get(method_name, warning = nil)
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
80
|
+
memoized_igb_variables(method_name)[warning] ||= begin
|
81
|
+
return_value = (
|
82
|
+
v = headers["HTTP_EVE_#{method_name.to_s.camelize.upcase}"] || nil
|
83
|
+
v = (YAML::load(v) rescue v) unless v.nil?
|
84
|
+
v
|
85
|
+
)
|
86
|
+
warn warning if return_value.nil? && warning
|
87
|
+
return_value
|
88
|
+
end
|
83
89
|
end
|
84
|
-
|
85
|
-
memoize :igb_variable_get
|
86
90
|
end
|
87
91
|
end
|
88
92
|
end
|
data/lib/eve/version.rb
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# TrustController is our test controller.
|
4
|
+
describe TrustController do
|
5
|
+
render_views
|
6
|
+
|
7
|
+
it "should not consider the helper methods to be actions" do
|
8
|
+
TrustController.action_methods.sort.should == %w(html_and_igb html_only igb_only index no_templates)
|
9
|
+
end
|
10
|
+
|
11
|
+
context "from the IGB" do
|
12
|
+
before do
|
13
|
+
request.user_agent = "eve-minibrowser"
|
14
|
+
end
|
15
|
+
|
16
|
+
context "without trust" do
|
17
|
+
it "should require trust" do
|
18
|
+
get :index
|
19
|
+
response.headers['Eve.trustme'].should_not be_blank
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
context "with trust" do
|
24
|
+
# um, we've already established trust: is there anything else in the controller that needs testing?
|
25
|
+
end
|
26
|
+
|
27
|
+
context "and only an IGB template exists" do
|
28
|
+
it "responds with an IGB-specific page" do
|
29
|
+
get :igb_only
|
30
|
+
response.body.should == "IGB Only"
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
context "and IGB and HTML templates exist" do
|
35
|
+
it "responds with an IGB page" do
|
36
|
+
get :html_and_igb
|
37
|
+
response.body.should == "HTML and IGB (IGB)"
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
context "and only an HTML template exists" do
|
42
|
+
it "does not respond with an IGB-specific page" do
|
43
|
+
get :html_only
|
44
|
+
response.body.should == "HTML Only"
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
context "and no templates exist" do
|
49
|
+
it "raises a template error" do
|
50
|
+
proc { get :no_templates }.should raise_error(ActionView::MissingTemplate)
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
context "from any other browser" do
|
56
|
+
before :each do
|
57
|
+
request.user_agent = 'Mozilla/5.001 (windows; U; NT4.0; en-US; rv:1.0) Gecko/25250101'
|
58
|
+
end
|
59
|
+
|
60
|
+
it "should not require trust" do
|
61
|
+
get :index
|
62
|
+
response.headers['Eve.trustme'].should be_blank
|
63
|
+
end
|
64
|
+
|
65
|
+
context "and only an IGB template exists" do
|
66
|
+
it "raises a template error" do
|
67
|
+
proc { get :igb_only }.should raise_error(ActionView::MissingTemplate)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
context "and IGB and HTML templates exist" do
|
72
|
+
it "responds with an IGB page" do
|
73
|
+
get :html_and_igb
|
74
|
+
response.body.should == "HTML and IGB (HTML)"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
context "and only an HTML template exists" do
|
79
|
+
it "does not respond with an IGB-specific page" do
|
80
|
+
get :html_only
|
81
|
+
response.body.should == "HTML Only"
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
context "and no templates exist" do
|
86
|
+
it "raises a template error" do
|
87
|
+
proc { get :no_templates }.should raise_error(ActionView::MissingTemplate)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
|
-
describe Eve::
|
3
|
+
describe Eve::JavascriptHelper do
|
4
4
|
subject { ActionView::Base.new }
|
5
5
|
|
6
6
|
it "should link to mailing list" do
|
@@ -11,7 +11,7 @@ describe Eve::Helpers::JavascriptHelper do
|
|
11
11
|
subject.link_to_channel("link", '1').should == '<a href="#" onclick="CCPEVE.joinChannel("1"); return false;">link</a>'
|
12
12
|
end
|
13
13
|
|
14
|
-
it "should link to
|
14
|
+
it "should link to waypoint" do
|
15
15
|
subject.link_to_waypoint("link", '1').should == '<a href="#" onclick="CCPEVE.addWaypoint("1"); return false;">link</a>'
|
16
16
|
end
|
17
17
|
|
@@ -2,23 +2,23 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe Eve::API::Services::Eve do
|
4
4
|
context "#character_id" do
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
expected_hash = { "Jolia Darkstrider" => 661196469 , # characters
|
6
|
+
"Murdock Jern" => 291344707 , # characters
|
7
|
+
"Frogs of Armageddon" => 1722047601, # corporations
|
8
|
+
"Gears of Progress" => 1196707484, # corporations
|
9
|
+
"Band of Brothers" => 394979878 , # alliances
|
10
|
+
"The Dead Rabbits" => 1796285504 } # alliances
|
11
11
|
|
12
12
|
subject do
|
13
13
|
mock_service('xml/eve/character_id.xml')
|
14
|
-
Eve::API.new.eve.character_id(
|
14
|
+
Eve::API.new.eve.character_id(*expected_hash.keys)
|
15
15
|
end
|
16
16
|
|
17
17
|
it "should return a hash" do
|
18
18
|
subject.should be_kind_of(Hash)
|
19
19
|
end
|
20
20
|
|
21
|
-
|
21
|
+
expected_hash.each do |name, id|
|
22
22
|
it "should include #{name}'s ID" do
|
23
23
|
subject[name].should == id
|
24
24
|
end
|
@@ -8,15 +8,19 @@ describe Eve::API do
|
|
8
8
|
it "should respond to current_time" do
|
9
9
|
@result.should respond_to(:current_time)
|
10
10
|
end
|
11
|
+
|
11
12
|
it "should respond to api_version" do
|
12
13
|
@result.should respond_to(:api_version)
|
13
14
|
end
|
15
|
+
|
14
16
|
it "should respond to server_open" do
|
15
17
|
@result.should respond_to(:server_open)
|
16
18
|
end
|
19
|
+
|
17
20
|
it "should respond to online_players" do
|
18
21
|
@result.should respond_to(:online_players)
|
19
22
|
end
|
23
|
+
|
20
24
|
it "should respond to cached_until" do
|
21
25
|
@result.should respond_to(:cached_until)
|
22
26
|
end
|
@@ -4,6 +4,7 @@ describe Eve::API::Request do
|
|
4
4
|
subject { Eve::API::Request.new('server', 'server_status') }
|
5
5
|
|
6
6
|
it "should dispatch and return a Response" do
|
7
|
+
Net::HTTP.should_receive(:post_form).once.and_return(mock_http_response(subject.namespace, subject.service))
|
7
8
|
response = subject.dispatch
|
8
9
|
response.should be_a(Eve::API::Response)
|
9
10
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
require 'spec_helper'
|
2
2
|
|
3
3
|
describe Eve::Trust::IgbInterface do
|
4
|
-
|
4
|
+
igb_headers = {
|
5
5
|
'HTTP_USER_AGENT' => 'eve-minibrowser',
|
6
6
|
'HTTP_EVE_TRUSTED' => 'yes',
|
7
7
|
'HTTP_EVE_SERVERIP' => '1.2.3.4',
|
@@ -18,7 +18,7 @@ describe Eve::Trust::IgbInterface do
|
|
18
18
|
'HTTP_EVE_STATIONID' => '1234',
|
19
19
|
'HTTP_EVE_CORPROLE' => '0'
|
20
20
|
}
|
21
|
-
|
21
|
+
igb_requested_headers = {
|
22
22
|
'HTTP_EVE_MILITIANAME' => 'militia name',
|
23
23
|
'HTTP_EVE_MILITIAID' => '1234567',
|
24
24
|
'HTTP_EVE_REGIONID' => '1929',
|
@@ -29,7 +29,7 @@ describe Eve::Trust::IgbInterface do
|
|
29
29
|
'HTTP_EVE_VALIDATION_STRING' => 'abcdefghijklmnopqrstuvwxyz'
|
30
30
|
}
|
31
31
|
|
32
|
-
subject { Eve::Trust::IgbInterface.new(
|
32
|
+
subject { Eve::Trust::IgbInterface.new(ActionDispatch::Request.new(@rack_env)) }
|
33
33
|
|
34
34
|
shared_examples_for "any igb with trust" do
|
35
35
|
it "should be trusted" do
|
@@ -87,14 +87,14 @@ describe Eve::Trust::IgbInterface do
|
|
87
87
|
context "with trust" do
|
88
88
|
it_should_behave_like "any igb with trust"
|
89
89
|
before(:all) do
|
90
|
-
@rack_env = Rack::MockRequest.env_for("/").merge('REQUEST_URI' => '').merge(
|
90
|
+
@rack_env = Rack::MockRequest.env_for("/").merge('REQUEST_URI' => '').merge(igb_headers)
|
91
91
|
end
|
92
92
|
|
93
93
|
context "after requests are implemented" do
|
94
94
|
it_should_behave_like "any igb with trust"
|
95
95
|
|
96
96
|
before(:all) do
|
97
|
-
@rack_env = Rack::MockRequest.env_for("/").merge('REQUEST_URI' => '').merge(
|
97
|
+
@rack_env = Rack::MockRequest.env_for("/").merge('REQUEST_URI' => '').merge(igb_headers).merge(igb_requested_headers)
|
98
98
|
end
|
99
99
|
|
100
100
|
it "should load the additional data" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,4 +1,45 @@
|
|
1
|
-
|
1
|
+
begin
|
2
|
+
require 'rubygems'
|
3
|
+
require 'bundler'
|
4
|
+
Bundler.setup
|
5
|
+
rescue LoadError
|
6
|
+
puts " *** You don't seem to have Bundler installed. ***"
|
7
|
+
puts " Please run the following command:"
|
8
|
+
puts
|
9
|
+
puts " gem install bundler"
|
10
|
+
exit
|
11
|
+
end
|
12
|
+
|
13
|
+
require File.join(File.dirname(__FILE__), '../lib/eve')
|
14
|
+
require 'rails'
|
15
|
+
##require "active_record/railtie"
|
16
|
+
require "action_controller/railtie"
|
17
|
+
##require "action_mailer/railtie"
|
18
|
+
##require "active_resource/railtie"
|
19
|
+
require "rails/test_unit/railtie"
|
20
|
+
#require 'rails/all'
|
21
|
+
require 'rspec/rails'
|
22
|
+
|
23
|
+
# set up Rails3 mock application
|
24
|
+
module Eve
|
25
|
+
class MockRailsApplication < Rails::Application
|
26
|
+
config.encoding = 'utf-8'
|
27
|
+
config.filter_parameters += [:password]
|
28
|
+
config.active_support.deprecation = :log
|
29
|
+
config.paths['app/views'] = "spec/support/views"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
# Initialize Rails3 mock application
|
34
|
+
Eve::MockRailsApplication.initialize!
|
35
|
+
|
36
|
+
# Set up routing - this is necessary to match params hashes to their controllers/actions,
|
37
|
+
# and must come AFTER the app is initialized. If app is initialized, routes are cleared.
|
38
|
+
Eve::MockRailsApplication.routes.draw { match ':controller(/:action(/:id(.:format)))' }
|
39
|
+
|
40
|
+
RSpec.configure do |config|
|
41
|
+
config.before { FileUtils.rm_rf Rails.root.join('tmp') }
|
42
|
+
end
|
2
43
|
|
3
44
|
# Set to false to disable mock web service responses. Real requests will be used
|
4
45
|
# whenever Eve.cache does not suffice. The API information above must be real and
|
@@ -1,7 +1,24 @@
|
|
1
1
|
class TrustController < ActionController::Base
|
2
|
-
|
2
|
+
prefers_trust
|
3
|
+
#requires_trust
|
3
4
|
|
4
5
|
def index
|
5
6
|
render :nothing => true
|
6
7
|
end
|
8
|
+
|
9
|
+
def no_templates
|
10
|
+
|
11
|
+
end
|
12
|
+
|
13
|
+
def igb_only
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
def html_only
|
18
|
+
|
19
|
+
end
|
20
|
+
|
21
|
+
def html_and_igb
|
22
|
+
|
23
|
+
end
|
7
24
|
end
|
@@ -30,12 +30,17 @@ module MockAPIHelpers
|
|
30
30
|
end
|
31
31
|
if options[:service] && eve_api(options).respond_to?(base)
|
32
32
|
eve_api(options).send(base).send(options[:service], *(options[:args] || []))
|
33
|
+
# If having trouble with mock services, this may be of some help, but it alters how the API can be
|
34
|
+
# interacted with (most notably for spec/lib/eve/api/calls/server_status_spec.rb) so it should be
|
35
|
+
# disabled when no issues are showing up.
|
36
|
+
# elsif options[:service]
|
37
|
+
# raise "Service '#{options[:service]}' specified but API doesn't respond to '#{base}'"
|
33
38
|
else
|
34
39
|
eve_api(options)
|
35
40
|
end
|
36
41
|
end
|
37
42
|
end
|
38
43
|
|
39
|
-
|
44
|
+
RSpec.configure do |config|
|
40
45
|
config.include(MockAPIHelpers)
|
41
46
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
HTML and IGB (HTML)
|
@@ -0,0 +1 @@
|
|
1
|
+
HTML and IGB (IGB)
|
@@ -0,0 +1 @@
|
|
1
|
+
HTML Only
|
@@ -0,0 +1 @@
|
|
1
|
+
IGB Only
|
metadata
CHANGED
@@ -1,152 +1,90 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: eve
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
version: 1.0.2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.1
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Colin MacKenzie IV
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
name: activesupport
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 2
|
29
|
-
- 3
|
30
|
-
- 5
|
31
|
-
version: 2.3.5
|
32
|
-
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-15 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
35
15
|
name: hpricot
|
36
|
-
|
37
|
-
|
38
|
-
requirements:
|
39
|
-
- -
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
segments:
|
42
|
-
- 0
|
43
|
-
- 8
|
44
|
-
- 2
|
16
|
+
requirement: &2151803740 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - =
|
20
|
+
- !ruby/object:Gem::Version
|
45
21
|
version: 0.8.2
|
46
22
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: actionpack
|
50
23
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
version:
|
24
|
+
version_requirements: *2151803740
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: activesupport
|
27
|
+
requirement: &2151798200 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ~>
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3.2'
|
60
33
|
type: :runtime
|
61
|
-
version_requirements: *id003
|
62
|
-
- !ruby/object:Gem::Dependency
|
63
|
-
name: rubyforge
|
64
|
-
prerelease: false
|
65
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
66
|
-
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
segments:
|
70
|
-
- 2
|
71
|
-
- 0
|
72
|
-
- 4
|
73
|
-
version: 2.0.4
|
74
|
-
type: :development
|
75
|
-
version_requirements: *id004
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: cucumber
|
78
34
|
prerelease: false
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
version: 0
|
35
|
+
version_requirements: *2151798200
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rails
|
38
|
+
requirement: &2152012780 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
88
44
|
type: :development
|
89
|
-
version_requirements: *id005
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: rspec
|
92
45
|
prerelease: false
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
version: 1.
|
46
|
+
version_requirements: *2152012780
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: rspec-rails
|
49
|
+
requirement: &2152044220 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.1.0
|
102
55
|
type: :development
|
103
|
-
version_requirements: *id006
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: rcov
|
106
56
|
prerelease: false
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
version: 0.
|
57
|
+
version_requirements: *2152044220
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: bundler
|
60
|
+
requirement: &2152070280 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
62
|
+
requirements:
|
63
|
+
- - ~>
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.0.0
|
116
66
|
type: :development
|
117
|
-
version_requirements: *id007
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: hoe
|
120
67
|
prerelease: false
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
- 6
|
128
|
-
- 0
|
129
|
-
version: 2.6.0
|
130
|
-
type: :development
|
131
|
-
version_requirements: *id008
|
132
|
-
description: A Ruby library for interfacing with all aspects of the EVE Online MMO. It is designed for use within a Ruby on Rails project, but does not require Rails as a dependency. That means there is nothing preventing you from writing a stand-alone application or script using this library.
|
133
|
-
email:
|
134
|
-
- sinisterchipmunk@gmail.com
|
68
|
+
version_requirements: *2152070280
|
69
|
+
description: A Ruby library for interfacing with all aspects of the EVE Online MMO.
|
70
|
+
It is designed for use within a Ruby on Rails project, but does not require Rails
|
71
|
+
as a dependency. That means there is nothing preventing you from writing a stand-alone
|
72
|
+
application or script using this library.
|
73
|
+
email: sinisterchipmunk@gmail.com
|
135
74
|
executables: []
|
136
|
-
|
137
75
|
extensions: []
|
138
|
-
|
139
|
-
|
140
|
-
-
|
141
|
-
|
142
|
-
-
|
143
|
-
|
76
|
+
extra_rdoc_files:
|
77
|
+
- LICENSE.txt
|
78
|
+
- README.rdoc
|
79
|
+
files:
|
80
|
+
- .gitignore
|
81
|
+
- Gemfile
|
82
|
+
- Gemfile.lock
|
144
83
|
- History.txt
|
145
|
-
-
|
146
|
-
- PostInstall.txt
|
84
|
+
- LICENSE.txt
|
147
85
|
- README.rdoc
|
148
86
|
- Rakefile
|
149
|
-
-
|
87
|
+
- eve.gemspec
|
150
88
|
- lib/eve.rb
|
151
89
|
- lib/eve/api.rb
|
152
90
|
- lib/eve/api/connectivity.rb
|
@@ -164,28 +102,22 @@ files:
|
|
164
102
|
- lib/eve/api/services/map.rb
|
165
103
|
- lib/eve/api/services/misc.rb
|
166
104
|
- lib/eve/api/services/server.rb
|
167
|
-
- lib/eve/core_extensions.rb
|
168
|
-
- lib/eve/core_extensions/hash.rb
|
169
|
-
- lib/eve/core_extensions/string.rb
|
170
105
|
- lib/eve/dependencies.rb
|
106
|
+
- lib/eve/deprecation.rb
|
171
107
|
- lib/eve/errors.rb
|
172
108
|
- lib/eve/errors/authentication_errors.rb
|
173
109
|
- lib/eve/errors/internal_errors.rb
|
174
110
|
- lib/eve/errors/miscellaneous_errors.rb
|
175
111
|
- lib/eve/errors/user_input_errors.rb
|
176
|
-
- lib/eve/
|
177
|
-
- lib/eve/helpers/javascript_helper.rb
|
178
|
-
- lib/eve/helpers/view_helper.rb
|
112
|
+
- lib/eve/javascript_helper.rb
|
179
113
|
- lib/eve/trust.rb
|
180
114
|
- lib/eve/trust/controller_helpers.rb
|
181
115
|
- lib/eve/trust/igb_interface.rb
|
182
116
|
- lib/eve/trust/mime_types.rb
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
187
|
-
- script/generate
|
188
|
-
- script/generate.cmd
|
117
|
+
- lib/eve/version.rb
|
118
|
+
- spec/controllers/controller_helpers_spec.rb
|
119
|
+
- spec/helpers/javascript_helper_spec.rb
|
120
|
+
- spec/helpers/view_helper_spec.rb
|
189
121
|
- spec/lib/eve/api/calls/account/characters_spec.rb
|
190
122
|
- spec/lib/eve/api/calls/character/account_balance_spec.rb
|
191
123
|
- spec/lib/eve/api/calls/character/asset_list_spec.rb
|
@@ -246,9 +178,6 @@ files:
|
|
246
178
|
- spec/lib/eve/api_spec.rb
|
247
179
|
- spec/lib/eve/core_extensions/hash_spec.rb
|
248
180
|
- spec/lib/eve/core_extensions/string_spec.rb
|
249
|
-
- spec/lib/eve/helpers/javascript_helper_spec.rb
|
250
|
-
- spec/lib/eve/helpers/view_helper_spec.rb
|
251
|
-
- spec/lib/eve/trust/controller_helpers_spec.rb
|
252
181
|
- spec/lib/eve/trust/igb_interface_spec.rb
|
253
182
|
- spec/rcov.opts
|
254
183
|
- spec/readme_spec.rb
|
@@ -259,6 +188,10 @@ files:
|
|
259
188
|
- spec/support/controllers/trust_controller.rb
|
260
189
|
- spec/support/jpg/mock_portrait.jpg
|
261
190
|
- spec/support/mock_api_helpers.rb
|
191
|
+
- spec/support/views/trust/html_and_igb.html.erb
|
192
|
+
- spec/support/views/trust/html_and_igb.igb.erb
|
193
|
+
- spec/support/views/trust/html_only.html.erb
|
194
|
+
- spec/support/views/trust/igb_only.igb.erb
|
262
195
|
- spec/support/xml/account/characters.xml
|
263
196
|
- spec/support/xml/character/account_balance.xml
|
264
197
|
- spec/support/xml/character/asset_list.xml
|
@@ -315,36 +248,160 @@ files:
|
|
315
248
|
- spec/support/xml/map/sovereignty.xml
|
316
249
|
- spec/support/xml/rowset_with_mismatched_attributes.xml
|
317
250
|
- spec/support/xml/server/server_status.xml
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
- --main
|
325
|
-
- README.rdoc
|
326
|
-
require_paths:
|
251
|
+
homepage: http://thoughtsincomputation.com
|
252
|
+
licenses:
|
253
|
+
- MIT
|
254
|
+
post_install_message:
|
255
|
+
rdoc_options: []
|
256
|
+
require_paths:
|
327
257
|
- lib
|
328
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
336
|
-
requirements:
|
337
|
-
- - ">="
|
338
|
-
- !ruby/object:Gem::Version
|
339
|
-
segments:
|
258
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
259
|
+
none: false
|
260
|
+
requirements:
|
261
|
+
- - ! '>='
|
262
|
+
- !ruby/object:Gem::Version
|
263
|
+
version: '0'
|
264
|
+
segments:
|
340
265
|
- 0
|
341
|
-
|
266
|
+
hash: -3036876205426772087
|
267
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
268
|
+
none: false
|
269
|
+
requirements:
|
270
|
+
- - ! '>='
|
271
|
+
- !ruby/object:Gem::Version
|
272
|
+
version: '0'
|
342
273
|
requirements: []
|
343
|
-
|
344
|
-
|
345
|
-
rubygems_version: 1.3.6
|
274
|
+
rubyforge_project:
|
275
|
+
rubygems_version: 1.8.10
|
346
276
|
signing_key:
|
347
277
|
specification_version: 3
|
348
|
-
summary: A Ruby library for interfacing with all aspects of the EVE Online MMO
|
349
|
-
test_files:
|
350
|
-
|
278
|
+
summary: A Ruby library for interfacing with all aspects of the EVE Online MMO.
|
279
|
+
test_files:
|
280
|
+
- spec/controllers/controller_helpers_spec.rb
|
281
|
+
- spec/helpers/javascript_helper_spec.rb
|
282
|
+
- spec/helpers/view_helper_spec.rb
|
283
|
+
- spec/lib/eve/api/calls/account/characters_spec.rb
|
284
|
+
- spec/lib/eve/api/calls/character/account_balance_spec.rb
|
285
|
+
- spec/lib/eve/api/calls/character/asset_list_spec.rb
|
286
|
+
- spec/lib/eve/api/calls/character/character_sheet_spec.rb
|
287
|
+
- spec/lib/eve/api/calls/character/fac_war_stats_spec.rb
|
288
|
+
- spec/lib/eve/api/calls/character/industry_jobs_spec.rb
|
289
|
+
- spec/lib/eve/api/calls/character/kill_log_spec.rb
|
290
|
+
- spec/lib/eve/api/calls/character/mail_messages_spec.rb
|
291
|
+
- spec/lib/eve/api/calls/character/mailing_lists_spec.rb
|
292
|
+
- spec/lib/eve/api/calls/character/market_orders_spec.rb
|
293
|
+
- spec/lib/eve/api/calls/character/medals_spec.rb
|
294
|
+
- spec/lib/eve/api/calls/character/research_spec.rb
|
295
|
+
- spec/lib/eve/api/calls/character/skill_in_training_spec.rb
|
296
|
+
- spec/lib/eve/api/calls/character/skill_queue_spec.rb
|
297
|
+
- spec/lib/eve/api/calls/character/standings_spec.rb
|
298
|
+
- spec/lib/eve/api/calls/character/wallet_journal_spec.rb
|
299
|
+
- spec/lib/eve/api/calls/character/wallet_transactions_spec.rb
|
300
|
+
- spec/lib/eve/api/calls/character_portrait_spec.rb
|
301
|
+
- spec/lib/eve/api/calls/corporation/account_balances_spec.rb
|
302
|
+
- spec/lib/eve/api/calls/corporation/asset_list_spec.rb
|
303
|
+
- spec/lib/eve/api/calls/corporation/container_log_spec.rb
|
304
|
+
- spec/lib/eve/api/calls/corporation/corporation_sheet_spec.rb
|
305
|
+
- spec/lib/eve/api/calls/corporation/fac_war_stats_spec.rb
|
306
|
+
- spec/lib/eve/api/calls/corporation/industry_jobs_spec.rb
|
307
|
+
- spec/lib/eve/api/calls/corporation/kill_log_spec.rb
|
308
|
+
- spec/lib/eve/api/calls/corporation/market_orders_spec.rb
|
309
|
+
- spec/lib/eve/api/calls/corporation/medals_spec.rb
|
310
|
+
- spec/lib/eve/api/calls/corporation/member_medals_spec.rb
|
311
|
+
- spec/lib/eve/api/calls/corporation/member_security_log_spec.rb
|
312
|
+
- spec/lib/eve/api/calls/corporation/member_security_spec.rb
|
313
|
+
- spec/lib/eve/api/calls/corporation/member_tracking_spec.rb
|
314
|
+
- spec/lib/eve/api/calls/corporation/shareholders_spec.rb
|
315
|
+
- spec/lib/eve/api/calls/corporation/standings_spec.rb
|
316
|
+
- spec/lib/eve/api/calls/corporation/starbase_detail_spec.rb
|
317
|
+
- spec/lib/eve/api/calls/corporation/starbase_list_spec.rb
|
318
|
+
- spec/lib/eve/api/calls/corporation/titles_spec.rb
|
319
|
+
- spec/lib/eve/api/calls/corporation/wallet_journal_spec.rb
|
320
|
+
- spec/lib/eve/api/calls/corporation/wallet_transactions_spec.rb
|
321
|
+
- spec/lib/eve/api/calls/empty_call_spec.rb
|
322
|
+
- spec/lib/eve/api/calls/eve/alliance_list_spec.rb
|
323
|
+
- spec/lib/eve/api/calls/eve/certificate_tree_spec.rb
|
324
|
+
- spec/lib/eve/api/calls/eve/character_id_spec.rb
|
325
|
+
- spec/lib/eve/api/calls/eve/conquerable_station_list_spec.rb
|
326
|
+
- spec/lib/eve/api/calls/eve/error_list_spec.rb
|
327
|
+
- spec/lib/eve/api/calls/eve/fac_war_stats_spec.rb
|
328
|
+
- spec/lib/eve/api/calls/eve/fac_war_top_stats_spec.rb
|
329
|
+
- spec/lib/eve/api/calls/eve/ref_types_spec.rb
|
330
|
+
- spec/lib/eve/api/calls/eve/skill_tree_spec.rb
|
331
|
+
- spec/lib/eve/api/calls/map/fac_war_systems_spec.rb
|
332
|
+
- spec/lib/eve/api/calls/map/jumps_spec.rb
|
333
|
+
- spec/lib/eve/api/calls/map/kills_spec.rb
|
334
|
+
- spec/lib/eve/api/calls/map/sovereignty_spec.rb
|
335
|
+
- spec/lib/eve/api/calls/server_status_spec.rb
|
336
|
+
- spec/lib/eve/api/request_spec.rb
|
337
|
+
- spec/lib/eve/api/response/error_spec.rb
|
338
|
+
- spec/lib/eve/api/response/rowset_spec.rb
|
339
|
+
- spec/lib/eve/api/response_spec.rb
|
340
|
+
- spec/lib/eve/api_spec.rb
|
341
|
+
- spec/lib/eve/core_extensions/hash_spec.rb
|
342
|
+
- spec/lib/eve/core_extensions/string_spec.rb
|
343
|
+
- spec/lib/eve/trust/igb_interface_spec.rb
|
344
|
+
- spec/support/behaves_like_rowset.rb
|
345
|
+
- spec/support/controllers/trust_controller.rb
|
346
|
+
- spec/support/jpg/mock_portrait.jpg
|
347
|
+
- spec/support/mock_api_helpers.rb
|
348
|
+
- spec/support/views/trust/html_and_igb.html.erb
|
349
|
+
- spec/support/views/trust/html_and_igb.igb.erb
|
350
|
+
- spec/support/views/trust/html_only.html.erb
|
351
|
+
- spec/support/views/trust/igb_only.igb.erb
|
352
|
+
- spec/support/xml/account/characters.xml
|
353
|
+
- spec/support/xml/character/account_balance.xml
|
354
|
+
- spec/support/xml/character/asset_list.xml
|
355
|
+
- spec/support/xml/character/character_sheet.xml
|
356
|
+
- spec/support/xml/character/fac_war_stats.xml
|
357
|
+
- spec/support/xml/character/industry_jobs.xml
|
358
|
+
- spec/support/xml/character/kill_log.xml
|
359
|
+
- spec/support/xml/character/mail_messages.xml
|
360
|
+
- spec/support/xml/character/mailing_lists.xml
|
361
|
+
- spec/support/xml/character/market_orders.xml
|
362
|
+
- spec/support/xml/character/medals.xml
|
363
|
+
- spec/support/xml/character/research.xml
|
364
|
+
- spec/support/xml/character/skill_in_training.xml
|
365
|
+
- spec/support/xml/character/skill_not_in_training.xml
|
366
|
+
- spec/support/xml/character/skill_queue.xml
|
367
|
+
- spec/support/xml/character/standings.xml
|
368
|
+
- spec/support/xml/character/wallet_journal.xml
|
369
|
+
- spec/support/xml/character/wallet_transactions.xml
|
370
|
+
- spec/support/xml/corporation/account_balance.xml
|
371
|
+
- spec/support/xml/corporation/asset_list.xml
|
372
|
+
- spec/support/xml/corporation/container_log.xml
|
373
|
+
- spec/support/xml/corporation/fac_war_stats.xml
|
374
|
+
- spec/support/xml/corporation/industry_jobs.xml
|
375
|
+
- spec/support/xml/corporation/kill_log.xml
|
376
|
+
- spec/support/xml/corporation/market_orders.xml
|
377
|
+
- spec/support/xml/corporation/medals.xml
|
378
|
+
- spec/support/xml/corporation/member_corporation_sheet.xml
|
379
|
+
- spec/support/xml/corporation/member_medals.xml
|
380
|
+
- spec/support/xml/corporation/member_security.xml
|
381
|
+
- spec/support/xml/corporation/member_security_log.xml
|
382
|
+
- spec/support/xml/corporation/member_tracking.xml
|
383
|
+
- spec/support/xml/corporation/non_member_corporation_sheet.xml
|
384
|
+
- spec/support/xml/corporation/shareholders.xml
|
385
|
+
- spec/support/xml/corporation/standings.xml
|
386
|
+
- spec/support/xml/corporation/starbase_detail.xml
|
387
|
+
- spec/support/xml/corporation/starbase_list.xml
|
388
|
+
- spec/support/xml/corporation/titles.xml
|
389
|
+
- spec/support/xml/corporation/wallet_journal.xml
|
390
|
+
- spec/support/xml/corporation/wallet_transactions.xml
|
391
|
+
- spec/support/xml/errors/106.xml
|
392
|
+
- spec/support/xml/errors/516.xml
|
393
|
+
- spec/support/xml/eve/alliance_list.xml
|
394
|
+
- spec/support/xml/eve/certificate_tree.xml
|
395
|
+
- spec/support/xml/eve/character_id.xml
|
396
|
+
- spec/support/xml/eve/conquerable_station_list.xml
|
397
|
+
- spec/support/xml/eve/error_list.xml
|
398
|
+
- spec/support/xml/eve/fac_war_stats.xml
|
399
|
+
- spec/support/xml/eve/fac_war_top_stats.xml
|
400
|
+
- spec/support/xml/eve/ref_types.xml
|
401
|
+
- spec/support/xml/eve/skill_tree.xml
|
402
|
+
- spec/support/xml/map/fac_war_systems.xml
|
403
|
+
- spec/support/xml/map/jumps.xml
|
404
|
+
- spec/support/xml/map/kills.xml
|
405
|
+
- spec/support/xml/map/sovereignty.xml
|
406
|
+
- spec/support/xml/rowset_with_mismatched_attributes.xml
|
407
|
+
- spec/support/xml/server/server_status.xml
|