eve-gate 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +117 -0
- data/Rakefile +2 -0
- data/eve-gate.gemspec +28 -0
- data/lib/eve.rb +5 -0
- data/lib/eve/api.rb +11 -0
- data/lib/eve/api/account_status.rb +26 -0
- data/lib/eve/api/api_key_info.rb +27 -0
- data/lib/eve/api/characters.rb +35 -0
- data/lib/eve/api/client.rb +10 -0
- data/lib/eve/api/client/crest.rb +121 -0
- data/lib/eve/api/client/xml.rb +39 -0
- data/lib/eve/api/resource.rb +19 -0
- data/lib/eve/api/version.rb +5 -0
- data/lib/support/string.rb +9 -0
- data/notes.json +43 -0
- data/spec/spec_helper.rb +89 -0
- metadata +151 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4726933a8962e1327a83808fbffbfd9c9d7c692d
|
4
|
+
data.tar.gz: af181e5cdf44aaaa60bde383bf6f523c5c5975e9
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4b0d5a939f26289f3d4de3a3f6d7f1cf8357c0d479104cf46922de91294ba89bdc146b70b7c40fa4627bc8e0f0385a5057ffdf63ec3d3de0792d2d73356c44a5
|
7
|
+
data.tar.gz: d6996ac471a2c1b2ec78a3fa5f897295e4b30447c4db78d497beec3946e07256d0dee7b161b113867278db4133a51102125a155f1172904d09d944f2c36d9928
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
eve-api
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.1.5
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Nathan Wise
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,117 @@
|
|
1
|
+
# Eve::Api
|
2
|
+
|
3
|
+
Ruby gem that includes support for both XML and CREST EVE APIs.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'eve-api'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install eve-api
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Work In Progress
|
24
|
+
|
25
|
+
TODO
|
26
|
+
* Character
|
27
|
+
* Account Balance
|
28
|
+
* Asset List
|
29
|
+
* Calendar Event Attendees
|
30
|
+
* Character Sheet
|
31
|
+
* Contact List
|
32
|
+
* Contact Notifications
|
33
|
+
* Contracts
|
34
|
+
* Contract Items
|
35
|
+
* Contract Bids
|
36
|
+
* Factional Warfare Stats
|
37
|
+
* Industry Jobs
|
38
|
+
* Kill Log
|
39
|
+
* Locations
|
40
|
+
* Mail Bodies
|
41
|
+
* Mailing Lists
|
42
|
+
* Mail Messages
|
43
|
+
* Market Orders
|
44
|
+
* Medals
|
45
|
+
* Notifications
|
46
|
+
* Notification Texts
|
47
|
+
* Research
|
48
|
+
* Skill in Training
|
49
|
+
* Skill Queue
|
50
|
+
* Standings
|
51
|
+
* Upcoming Calendar Events
|
52
|
+
* Wallet Journal
|
53
|
+
|
54
|
+
* Corporation
|
55
|
+
* Account Balances
|
56
|
+
* Asset List
|
57
|
+
* Contact List
|
58
|
+
* Container Log
|
59
|
+
* Contracts
|
60
|
+
* Contract Items
|
61
|
+
* Contract Bids
|
62
|
+
* Corporation Sheet
|
63
|
+
* Factional Warfare Stats
|
64
|
+
* Industry Jobs
|
65
|
+
* Kill Log
|
66
|
+
* Locations
|
67
|
+
* Market Orders
|
68
|
+
* Medals
|
69
|
+
* Member Medals
|
70
|
+
* Member Security
|
71
|
+
* Member Security Log
|
72
|
+
* Member Tracking
|
73
|
+
* Outpost List
|
74
|
+
* Outpost Service Detail
|
75
|
+
* Shareholders
|
76
|
+
* Standings
|
77
|
+
* StarbaseDetail Details
|
78
|
+
* Starbase List
|
79
|
+
* Titles
|
80
|
+
* Wallet Journal
|
81
|
+
* Wallet Transactions
|
82
|
+
|
83
|
+
* EVE
|
84
|
+
* Alliance List
|
85
|
+
* Certificate Tree
|
86
|
+
* Character Affiliation
|
87
|
+
* Character ID
|
88
|
+
* Conquerable Station List
|
89
|
+
* Error List
|
90
|
+
* Factional Warfare Stats
|
91
|
+
* Factional Warfare Top 100 Stats
|
92
|
+
* RefTypes List
|
93
|
+
* Skill Tree
|
94
|
+
* Type Name
|
95
|
+
|
96
|
+
* Map
|
97
|
+
* Factional Warfare Systems
|
98
|
+
* Jumps
|
99
|
+
* Kills
|
100
|
+
* Sovereignty
|
101
|
+
* Sovereignty Status
|
102
|
+
|
103
|
+
* Misc
|
104
|
+
* Image
|
105
|
+
* Old Portraits
|
106
|
+
|
107
|
+
* Server
|
108
|
+
* Server Status
|
109
|
+
|
110
|
+
|
111
|
+
## Contributing
|
112
|
+
|
113
|
+
1. Fork it ( https://github.com/[my-github-username]/eve-api/fork )
|
114
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
115
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
116
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
117
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/eve-gate.gemspec
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'eve/api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "eve-gate"
|
8
|
+
spec.version = Eve::Api::VERSION
|
9
|
+
spec.authors = ["Nathan Wise"]
|
10
|
+
spec.email = ["nathanwise@gmail.com"]
|
11
|
+
spec.summary = %q{Ruby gem for EVE Online API}
|
12
|
+
spec.description = %q{Ruby gem for EVE Online API XML & CREST}
|
13
|
+
spec.homepage = "http://github.com/nwise/eve-gate"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").delete_if{ |f| (f.index(/eve-gate-\d+.\d+.\d+.gem/) == 0) or (f.index(/eve-gate\.gemset/))}
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
spec.add_development_dependency "rspec", "~> 3.1"
|
24
|
+
spec.add_development_dependency "pry", "~> 0.10"
|
25
|
+
|
26
|
+
spec.add_runtime_dependency "httparty", "~> 0.13"
|
27
|
+
spec.add_runtime_dependency "nokogiri", "~> 1.6"
|
28
|
+
end
|
data/lib/eve.rb
ADDED
data/lib/eve/api.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
module Eve
|
2
|
+
module Api
|
3
|
+
|
4
|
+
class AccountStatus < Eve::Api::Resource
|
5
|
+
|
6
|
+
attr_reader :paid_until, :create_date, :logon_count, :logon_minutes
|
7
|
+
|
8
|
+
def self.endpoint
|
9
|
+
"account/AccountStatus.xml.aspx"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.client
|
13
|
+
@@xml_client
|
14
|
+
end
|
15
|
+
|
16
|
+
def initialize(opts={})
|
17
|
+
@paid_until = opts["paidUntil"]
|
18
|
+
@create_date = opts["createDate"]
|
19
|
+
@logon_count = opts["logonCount"]
|
20
|
+
@logon_minutes = opts["logonMinutes"]
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Eve
|
2
|
+
module Api
|
3
|
+
|
4
|
+
class ApiKeyInfo < Eve::Api::Resource
|
5
|
+
|
6
|
+
attr_reader :access_mask, :type, :expires, :characters
|
7
|
+
|
8
|
+
def self.endpoint
|
9
|
+
"account/APIKeyInfo.xml.aspx"
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.client
|
13
|
+
@@xml_client
|
14
|
+
end
|
15
|
+
|
16
|
+
def initialize(opts={})
|
17
|
+
@access_mask = opts["key"]["accessMask"]
|
18
|
+
@type = opts["key"]["type"]
|
19
|
+
@expires = opts["key"]["expires"]
|
20
|
+
@characters = Characters.new("rowset" => opts["key"]["rowset"])
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Eve
|
2
|
+
module Api
|
3
|
+
|
4
|
+
class Characters < Eve::Api::Resource
|
5
|
+
|
6
|
+
Character = Struct.new(:name, :character_id, :corporation_name, :corporation_id, :alliance_id, :alliance_name, :faction_id, :faction_name)
|
7
|
+
|
8
|
+
attr_reader :characters
|
9
|
+
|
10
|
+
def self.endpoint
|
11
|
+
"account/Characters.xml.aspx"
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.client
|
15
|
+
@@xml_client
|
16
|
+
end
|
17
|
+
|
18
|
+
def initialize(opts={})
|
19
|
+
@characters = opts["rowset"]["row"].map do |r|
|
20
|
+
Character.new(r["name"],
|
21
|
+
r["characterID"],
|
22
|
+
r["corporationName"],
|
23
|
+
r["corporationID"],
|
24
|
+
r["allianceID"],
|
25
|
+
r["allianceName"],
|
26
|
+
r["factionID"],
|
27
|
+
r["factionName"])
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
@@ -0,0 +1,121 @@
|
|
1
|
+
module Eve
|
2
|
+
module Api
|
3
|
+
module Client
|
4
|
+
class Crest
|
5
|
+
attr_reader :parsed_crest_response, :crest_response
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@crest_root_url = "http://public-crest.eveonline.com"
|
9
|
+
@crest_response = HTTParty.get(@crest_root_url)
|
10
|
+
@parsed_crest_response= JSON.parse(@crest_response.body)
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
def motd
|
15
|
+
motd_hash = @parsed_crest_response["motd"]
|
16
|
+
OpenStruct.new(
|
17
|
+
dust: HTTParty.get(motd_hash["dust"]["href"]),
|
18
|
+
eve: HTTParty.get(motd_hash["eve"]["href"]),
|
19
|
+
server: HTTParty.get(motd_hash["server"]["href"])
|
20
|
+
)
|
21
|
+
end
|
22
|
+
|
23
|
+
def server_name
|
24
|
+
parsed_crest_response["serverName"]
|
25
|
+
end
|
26
|
+
|
27
|
+
# Unsupported
|
28
|
+
def corporation_roles
|
29
|
+
JSON.parse(HTTParty.get(parsed_crest_response["corporationRoles"]["href"]))
|
30
|
+
end
|
31
|
+
|
32
|
+
# Unsupported
|
33
|
+
def channels
|
34
|
+
JSON.parse(HTTParty.get(parsed_crest_response["channels"]["href"]))
|
35
|
+
end
|
36
|
+
|
37
|
+
# Unsupported
|
38
|
+
def corporations
|
39
|
+
JSON.parse(HTTParty.get(parsed_crest_response["corporations"]["href"]))
|
40
|
+
end
|
41
|
+
|
42
|
+
def alliances
|
43
|
+
JSON.parse(HTTParty.get(parsed_crest_response["alliances"]["href"]))
|
44
|
+
end
|
45
|
+
|
46
|
+
def auth_endpoint
|
47
|
+
HTTParty.get(parsed_crest_response["authEndpoint"]["href"])
|
48
|
+
end
|
49
|
+
# Unsupported
|
50
|
+
def battle_theatres
|
51
|
+
JSON.parse(HTTParty.get(parsed_crest_response["battleTheatres"]["href"]))
|
52
|
+
end
|
53
|
+
|
54
|
+
def market_prices
|
55
|
+
JSON.parse(HTTParty.get(parsed_crest_response["marketPrices"]["href"]))
|
56
|
+
end
|
57
|
+
|
58
|
+
# Unsupported
|
59
|
+
def item_types
|
60
|
+
JSON.parse(HTTParty.get(parsed_crest_response["itemTypes"]["href"]))
|
61
|
+
end
|
62
|
+
|
63
|
+
def types(id)
|
64
|
+
url = "#{@crest_root_url}/types/#{id}/"
|
65
|
+
puts url
|
66
|
+
JSON.parse(HTTParty.get(url))
|
67
|
+
end
|
68
|
+
|
69
|
+
# Unsupported
|
70
|
+
def decode
|
71
|
+
JSON.parse(HTTParty.get(parsed_crest_response["decode"]["href"]))
|
72
|
+
end
|
73
|
+
|
74
|
+
# Unsupported
|
75
|
+
def bloodlines
|
76
|
+
JSON.parse(HTTParty.get(parsed_crest_response["bloodlines"]["href"]))
|
77
|
+
end
|
78
|
+
|
79
|
+
def tournaments
|
80
|
+
JSON.parse(HTTParty.get(parsed_crest_response["tournaments"]["href"]))
|
81
|
+
end
|
82
|
+
|
83
|
+
# Unsupported
|
84
|
+
def map
|
85
|
+
JSON.parse(HTTParty.get(parsed_crest_response["map"]["href"]))
|
86
|
+
end
|
87
|
+
|
88
|
+
#Need Auth
|
89
|
+
def virtual_good_store
|
90
|
+
JSON.parse(HTTParty.get(parsed_crest_response["virtualGoodStore"]["href"]))
|
91
|
+
end
|
92
|
+
|
93
|
+
def wars
|
94
|
+
JSON.parse(HTTParty.get(parsed_crest_response["wars"]["href"]))
|
95
|
+
end
|
96
|
+
|
97
|
+
def incursions
|
98
|
+
JSON.parse(HTTParty.get(parsed_crest_response["incursions"]["href"]))
|
99
|
+
end
|
100
|
+
|
101
|
+
# Unsupported
|
102
|
+
def races
|
103
|
+
JSON.parse(HTTParty.get(parsed_crest_response["races"]["href"]))
|
104
|
+
end
|
105
|
+
|
106
|
+
def time
|
107
|
+
JSON.parse(HTTParty.get(parsed_crest_response["time"]["href"]))
|
108
|
+
end
|
109
|
+
|
110
|
+
def market_types
|
111
|
+
JSON.parse(HTTParty.get(parsed_crest_response["marketTypes"]["href"]))
|
112
|
+
end
|
113
|
+
|
114
|
+
def server_name
|
115
|
+
parsed_crest_response["serverName"]
|
116
|
+
end
|
117
|
+
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
module Eve
|
2
|
+
module Api
|
3
|
+
module Client
|
4
|
+
|
5
|
+
class Xml
|
6
|
+
|
7
|
+
ROOT_URL = "https://api.eveonline.com/"
|
8
|
+
KEY_ID = '658484'
|
9
|
+
VERIFICATION_CODE = 'f3WATUqyLracdwYacEYjYCP5xr7qMao4SMOWy9tnH9jqAsvRSTZJu9iyCdqmVyyH'
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
key_id = KEY_ID
|
13
|
+
verification_code = VERIFICATION_CODE
|
14
|
+
@creds = { keyID: key_id, vcode: verification_code }
|
15
|
+
end
|
16
|
+
|
17
|
+
def get(url)
|
18
|
+
url_string = "#{Xml::ROOT_URL}#{url}?#{encoded_params}"
|
19
|
+
puts "GET: #{url_string}"
|
20
|
+
response = HTTParty.get(url_string)
|
21
|
+
|
22
|
+
begin
|
23
|
+
response["eveapi"]["result"]
|
24
|
+
rescue
|
25
|
+
raise "Could not process Response"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
private
|
30
|
+
|
31
|
+
def encoded_params
|
32
|
+
@encoded_creds ||= URI.encode_www_form(@creds)
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
36
|
+
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Eve
|
2
|
+
module Api
|
3
|
+
class Resource
|
4
|
+
|
5
|
+
@@xml_client = Eve::Api::Client::Xml.new
|
6
|
+
@@crest_client = Eve::Api::Client::Crest.new
|
7
|
+
|
8
|
+
def self.get(opts={})
|
9
|
+
response = self.client.get(self.endpoint)
|
10
|
+
self.new(response)
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.endpoint
|
14
|
+
raise "#{self.class.name}#endpoint not yet implemented"
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
data/notes.json
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
{"motd"=>
|
2
|
+
{
|
3
|
+
"dust"=>{"href"=>"http://newsfeed.eveonline.com/articles/71"},
|
4
|
+
"eve"=>{"href"=>"http://client.eveonline.com/motd/"},
|
5
|
+
"server"=>{"href"=>"http://client.eveonline.com/motd/"}
|
6
|
+
},
|
7
|
+
"crestEndpoint"=>{"href"=>"http://public-crest.eveonline.com/"},
|
8
|
+
"corporationRoles"=>{"href"=>"http://public-crest.eveonline.com/corporations/roles/"},
|
9
|
+
"channels"=>{"href"=>"http://public-crest.eveonline.com/chat/channels/"},
|
10
|
+
"corporations"=>{"href"=>"http://public-crest.eveonline.com/corporations/"},
|
11
|
+
"alliances"=>{"href"=>"http://public-crest.eveonline.com/alliances/"},
|
12
|
+
"authEndpoint"=>{"href"=>"https://login-tq.eveonline.com/oauth/token/"},
|
13
|
+
"battleTheatres"=>{"href"=>"http://public-crest.eveonline.com/battles/theatres/"},
|
14
|
+
"marketPrices"=>{"href"=>"http://public-crest.eveonline.com/market/prices/"},
|
15
|
+
"itemTypes"=>{"href"=>"http://public-crest.eveonline.com/types/"},
|
16
|
+
"decode"=>{"href"=>"http://public-crest.eveonline.com/decode/"},
|
17
|
+
"bloodlines"=>{"href"=>"http://public-crest.eveonline.com/bloodlines/"},
|
18
|
+
"tournaments"=>{"href"=>"http://public-crest.eveonline.com/tournaments/"},
|
19
|
+
"map"=>{"href"=>"http://public-crest.eveonline.com/map/"},
|
20
|
+
"virtualGoodStore"=>{"href"=>"https://vgs-tq.eveonline.com/"},
|
21
|
+
"serverVersion"=>"EVE-TRANQUILITY 8.49.846443.846462",
|
22
|
+
"wars"=>{"href"=>"http://public-crest.eveonline.com/wars/"},
|
23
|
+
"incursions"=>{"href"=>"http://public-crest.eveonline.com/incursions/"},
|
24
|
+
"races"=>{"href"=>"http://public-crest.eveonline.com/races/"},
|
25
|
+
"serviceStatus"=>{"dust"=>"online", "eve"=>"online", "server"=>"online"},
|
26
|
+
"userCounts"=>{"dust"=>3517, "dust_str"=>"3517", "eve"=>41017, "eve_str"=>"41017"},
|
27
|
+
"industry"=>
|
28
|
+
{
|
29
|
+
"facilities"=>{"href"=>"http://public-crest.eveonline.com/industry/facilities/"},
|
30
|
+
"specialities"=>{"href"=>"http://public-crest.eveonline.com/industry/specialities/"},
|
31
|
+
"teamsInAuction"=>{"href"=>"http://public-crest.eveonline.com/industry/teams/auction/"},
|
32
|
+
"systems"=>{"href"=>"http://public-crest.eveonline.com/industry/systems/"},
|
33
|
+
"teams"=>{"href"=>"http://public-crest.eveonline.com/industry/teams/"}
|
34
|
+
},
|
35
|
+
"clients"=>
|
36
|
+
{
|
37
|
+
"dust"=>{"href"=>"http://public-crest.eveonline.com/roots/dust/"},
|
38
|
+
"eve"=>{"href"=>"http://public-crest.eveonline.com/roots/eve/"}
|
39
|
+
},
|
40
|
+
"time"=>{"href"=>"http://public-crest.eveonline.com/time/"},
|
41
|
+
"marketTypes"=>{"href"=>"http://public-crest.eveonline.com/market/types/"},
|
42
|
+
"serverName"=>"TRANQUILITY"
|
43
|
+
}
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
4
|
+
# file to always be loaded, without a need to explicitly require it in any files.
|
5
|
+
#
|
6
|
+
# Given that it is always loaded, you are encouraged to keep this file as
|
7
|
+
# light-weight as possible. Requiring heavyweight dependencies from this file
|
8
|
+
# will add to the boot time of your test suite on EVERY test run, even for an
|
9
|
+
# individual file that may not need all of that loaded. Instead, consider making
|
10
|
+
# a separate helper file that requires the additional dependencies and performs
|
11
|
+
# the additional setup, and require it from the spec files that actually need it.
|
12
|
+
#
|
13
|
+
# The `.rspec` file also contains a few flags that are not defaults but that
|
14
|
+
# users commonly want.
|
15
|
+
#
|
16
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
17
|
+
RSpec.configure do |config|
|
18
|
+
# rspec-expectations config goes here. You can use an alternate
|
19
|
+
# assertion/expectation library such as wrong or the stdlib/minitest
|
20
|
+
# assertions if you prefer.
|
21
|
+
config.expect_with :rspec do |expectations|
|
22
|
+
# This option will default to `true` in RSpec 4. It makes the `description`
|
23
|
+
# and `failure_message` of custom matchers include text for helper methods
|
24
|
+
# defined using `chain`, e.g.:
|
25
|
+
# be_bigger_than(2).and_smaller_than(4).description
|
26
|
+
# # => "be bigger than 2 and smaller than 4"
|
27
|
+
# ...rather than:
|
28
|
+
# # => "be bigger than 2"
|
29
|
+
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
30
|
+
end
|
31
|
+
|
32
|
+
# rspec-mocks config goes here. You can use an alternate test double
|
33
|
+
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
34
|
+
config.mock_with :rspec do |mocks|
|
35
|
+
# Prevents you from mocking or stubbing a method that does not exist on
|
36
|
+
# a real object. This is generally recommended, and will default to
|
37
|
+
# `true` in RSpec 4.
|
38
|
+
mocks.verify_partial_doubles = true
|
39
|
+
end
|
40
|
+
|
41
|
+
# The settings below are suggested to provide a good initial experience
|
42
|
+
# with RSpec, but feel free to customize to your heart's content.
|
43
|
+
=begin
|
44
|
+
# These two settings work together to allow you to limit a spec run
|
45
|
+
# to individual examples or groups you care about by tagging them with
|
46
|
+
# `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
47
|
+
# get run.
|
48
|
+
config.filter_run :focus
|
49
|
+
config.run_all_when_everything_filtered = true
|
50
|
+
|
51
|
+
# Limits the available syntax to the non-monkey patched syntax that is recommended.
|
52
|
+
# For more details, see:
|
53
|
+
# - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
54
|
+
# - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
55
|
+
# - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
56
|
+
config.disable_monkey_patching!
|
57
|
+
|
58
|
+
# This setting enables warnings. It's recommended, but in some cases may
|
59
|
+
# be too noisy due to issues in dependencies.
|
60
|
+
config.warnings = true
|
61
|
+
|
62
|
+
# Many RSpec users commonly either run the entire suite or an individual
|
63
|
+
# file, and it's useful to allow more verbose output when running an
|
64
|
+
# individual spec file.
|
65
|
+
if config.files_to_run.one?
|
66
|
+
# Use the documentation formatter for detailed output,
|
67
|
+
# unless a formatter has already been configured
|
68
|
+
# (e.g. via a command-line flag).
|
69
|
+
config.default_formatter = 'doc'
|
70
|
+
end
|
71
|
+
|
72
|
+
# Print the 10 slowest examples and example groups at the
|
73
|
+
# end of the spec run, to help surface which specs are running
|
74
|
+
# particularly slow.
|
75
|
+
config.profile_examples = 10
|
76
|
+
|
77
|
+
# Run specs in random order to surface order dependencies. If you find an
|
78
|
+
# order dependency and want to debug it, you can fix the order by providing
|
79
|
+
# the seed, which is printed after each run.
|
80
|
+
# --seed 1234
|
81
|
+
config.order = :random
|
82
|
+
|
83
|
+
# Seed global randomization in this process using the `--seed` CLI option.
|
84
|
+
# Setting this allows you to use `--seed` to deterministically reproduce
|
85
|
+
# test failures related to randomization by passing the same `--seed` value
|
86
|
+
# as the one that triggered the failure.
|
87
|
+
Kernel.srand config.seed
|
88
|
+
=end
|
89
|
+
end
|
metadata
ADDED
@@ -0,0 +1,151 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: eve-gate
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nathan Wise
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.1'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.10'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: httparty
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0.13'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0.13'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: nokogiri
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.6'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.6'
|
97
|
+
description: Ruby gem for EVE Online API XML & CREST
|
98
|
+
email:
|
99
|
+
- nathanwise@gmail.com
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".ruby-gemset"
|
107
|
+
- ".ruby-version"
|
108
|
+
- Gemfile
|
109
|
+
- LICENSE.txt
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- eve-gate.gemspec
|
113
|
+
- lib/eve.rb
|
114
|
+
- lib/eve/api.rb
|
115
|
+
- lib/eve/api/account_status.rb
|
116
|
+
- lib/eve/api/api_key_info.rb
|
117
|
+
- lib/eve/api/characters.rb
|
118
|
+
- lib/eve/api/client.rb
|
119
|
+
- lib/eve/api/client/crest.rb
|
120
|
+
- lib/eve/api/client/xml.rb
|
121
|
+
- lib/eve/api/resource.rb
|
122
|
+
- lib/eve/api/version.rb
|
123
|
+
- lib/support/string.rb
|
124
|
+
- notes.json
|
125
|
+
- spec/spec_helper.rb
|
126
|
+
homepage: http://github.com/nwise/eve-gate
|
127
|
+
licenses:
|
128
|
+
- MIT
|
129
|
+
metadata: {}
|
130
|
+
post_install_message:
|
131
|
+
rdoc_options: []
|
132
|
+
require_paths:
|
133
|
+
- lib
|
134
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
requirements: []
|
145
|
+
rubyforge_project:
|
146
|
+
rubygems_version: 2.4.3
|
147
|
+
signing_key:
|
148
|
+
specification_version: 4
|
149
|
+
summary: Ruby gem for EVE Online API
|
150
|
+
test_files:
|
151
|
+
- spec/spec_helper.rb
|