Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Commit

Permalink
rest of app
Browse files Browse the repository at this point in the history
  • Loading branch information
lisa committed Aug 28, 2008
1 parent 2b6d794 commit 58bd1ad
Show file tree
Hide file tree
Showing 120 changed files with 5,438 additions and 0 deletions.
155 changes: 155 additions & 0 deletions ChangeLog
@@ -0,0 +1,155 @@
Revision 61: 2008-01-13
Please see http://revetrac.crudvision.com/log/trunk?action=stop_on_copy&rev=61&stop_rev=40&mode=stop_on_copy&verbose=on
for ChangeLog

Revision 41: 2007-12-19
Add support for the nesting of Corporation under Alliance in
Reve::API#alliances
Added missing tests

Revisions 31-37: December 2007
Add support for version 2 API stuff.

Revision 30: 2007-11-15
Added initial support for the API version 2 CorporationSheet method.

Revision 29: 2007-09-19
Removed rolldocs.rake and just put the documentation building into the
Rakefile. To build docs just use `rake doc`.
Added some rescue statements the internal Reve::API#check_exception to try
and handle problems when some things aren't found in the XML document.

Revision 28: 2007-09-09
Fixed typos that made the library, uh, not work.

Revision 27: 2007-09-08 21:29:07 +0100 (Sat, 08 Sep 2007)
Added preliminary support for the ConqurableStation API, see
Reve::Clases::ConqurableStation class.
Migrated subversion to a traditional trunk directory for my sanity. Expect
future releases to also be in the tags directory.

Revision 21: 2007-08-28 02:45 (Tue, 28 Augu 2007)
Changed all methods to require a Hash of parameters. Please refer to the
documentation <http://docs.crudvision.com/reve/> for new method signatures,
especially Reve::API main documentation.
Add a protected method 'compute_hash' which every other public method calls,
using this new Hash parameter system, to construct a hash to represent the
call uniquely. The result of this method should be suitable to store in a
database so it can be used in conjunction with the cached_until variable.
This hash is computed after each call and is available through the
last_hash instance variable (like cached_until)
Updated the test suite for these changes

Revision 20: 2007-08-22 23:36:00 +0100 (Wed, 22 Aug 2007)
Added this ChangeLog

Revision 19: 2007-08-22 23:33:57 +0100 (Wed, 22 Aug 2007)
docs in svn removed. Roll docs with rake -f rolldocs.rake doc

Revision 18: 2007-08-21 09:19:16 +0100 (Tue, 21 Aug 2007)
Add Reve::API.cached_until. Users of Reve PLEASE obey this setting! It will
be set (overwritten) after each call and should be copied somewhere before
another call is made.
Change tester.rb to print the cached_until response for each test call.
Change Reve::API#postfields to take a hash of post fields and change each
Reve::API method accordingly.

Revision 17: 2007-08-16 23:07:00 +0100 (Thu, 16 Aug 2007)
RDoc update

Revision 16: 2007-08-16 23:04:56 +0100 (Thu, 16 Aug 2007)
Add preliminary support for Reve::API#starbases and Reve::API#starbase_fuel
Modify Reve::API#postfields to allow for item_id for Reve::API#starbase_fuel
Add Reve::Classes::Starbase and Reve::Classes::StarbaseFuel
Add new exceptions: Reve::Exceptions::VersionMismatchException,
Reve::Exceptions::InvalidItemIDProvided,
Reve::Exceptions::MustBeDirectorOrCEO,
Reve::Exceptions::StarbaseDetailFetchFailure,
Reve::Exceptions::EveDatabaseConnectionFailure

Revision 15: 2007-08-16 21:23:08 +0100 (Thu, 16 Aug 2007)
Add Reve::Exceptions::VersionEscalationException

Revision 14: 2007-08-15 21:58:20 +0100 (Wed, 15 Aug 2007)
Fix badxml xml file to actually break it
Fix class attributes in Reve::API (wallet transactions) to point to the right
place
Add a warning to Reve::Exceptions#raise_it for
Reve::Exceptions::SecurityLevelNotHighEnough to warn the user that maybe
they don't have the full API key

Revision 13: 2007-08-14 22:36:50 +0100 (Tue, 14 Aug 2007)
Global attempts to fix when to_time can be nil
Add a check in Reve::Classes::WalletTransaction#new to check for the presence
of character_id in the return data before trying to use it

Revision 12: 2007-08-14 21:10:26 +0100 (Tue, 14 Aug 2007)
Add a test for malformed XML input
Subclass Reve::Classes::WalletTransaction for Personal and Corporate
wallet transactions ('transactionFor' in the XML) as per
http://myeve.eve-online.com/ingameboard.asp?a=topic&threadID=575626&page=1#1
Removed characterID and characterName attributes frm WalletTransaction as
per the above link

Revision 11: 2007-08-10 22:13:46 +0100 (Fri, 10 Aug 2007)
Add alliances test xml for test suite

Revision 10: 2007-08-10 22:12:59 +0100 (Fri, 10 Aug 2007)
Add a test suite
Add Reve::Exceptions::WebsiteOffline
Reve::Classes::WalletBalance.account_key now works
Reve::Classes::CharacterSheet.skill_in_training is boolean (and now works)
Reve::Classes::SkillTree.description now works


Revision 9: 2007-08-07 07:22:42 +0100 (Tue, 07 Aug 2007)
Add Reve::Exceptions::EveDatabaseOffline for when the Eve DB is offline

Revision 8: 2007-08-01 22:30:57 +0100 (Wed, 01 Aug 2007)
First tarball release
Remove Curl dependency in favour of Ruby's built-in Net::HTTP
Change Reve::API#postfields and Reve::API#process_query for Curl removal
RDoc has inline source with line numbers
Document existance of Reve::Classes::PrimaryAttribute,
Reve::Classes::SecondaryAttribute, Reve::Classes::WillpowerEnhancer,
Reve::Classes::IntelligenceEnhancer, Reve::Classes::MemoryEnhancer,
Reve::Classes::PerceptionEnhancer, Reve::Classes::CharismaEnhancer
Add Reve::Exceptions::ReveNetworkStatusException for when the network times
out.

Revision 7: 2007-08-01 19:28:52 +0100 (Wed, 01 Aug 2007)
Finish the Reve::API#character_sheet method
Add Reve::Classes::AttributeEnhancer (and IntelligenceEnhancer,
MemoryEnhancer, PerceptionEnhancer, CharismaEnhancer and WillpowerEnhancer
subclasses, for implants)
Add enhancers (Array) attribute to Reve::Classes::CharacterSheet
Add Reve::Extensions::String#to_i in an attempt to make an integer from a
String when possible. See the docs for the method for details.
Update RDoc

Revision 6: 2007-08-01 08:04:33 +0100 (Wed, 01 Aug 2007)
Remove some pretty print debug info.

Revision 5: 2007-07-29 23:08:45 +0100 (Sun, 29 Jul 2007)
Change Reve::Classes::Sovereignty to use nil (not 0) for alliance_id and
faction_id where applicable.

Revision 4: 2007-07-26 20:07:30 +0100 (Thu, 26 Jul 2007)
Add Copyright notice
More documentation with brief sample usage in the Reve::API class
Change Reve::Extensions::String#to_date to use :utc instead of :local for
conversions

Revision 3: 2007-07-22 15:18:06 +0100 (Sun, 22 Jul 2007)
Add better 'require reve' support ($:.unshift fun)
Add Documentation (RDoc)

Revision 2:2007-07-22 10:06:11 +0100 (Sun, 22 Jul 2007)
Add sample "tester.rb"
Add Reve::Classes::RequiredAttribute and Primary/Secondary subclass
for skill_tree
Change Reve::Classes::Alliance's attribute alliance_id to plain id
Fix Reve::API.current_time assignment in Reve::API#check_exception

Revision 1: 2007-07-22 02:02:33 +0100 (Sun, 22 Jul 2007)
Initial Import
22 changes: 22 additions & 0 deletions LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2007, 2008 Lisa Seelye <lisa@thedoh.com>

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
54 changes: 54 additions & 0 deletions Rakefile
@@ -0,0 +1,54 @@
STATS_DIRECTORIES = [
%w(Libraries lib/),
%w(tests test/)
]
require 'rubygems'

require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

require 'rake/packagetask'
require 'rake/gempackagetask'

task :default => :redoc

desc "Code Statistics"
task :stats do
require 'code_statistics'
CodeStatistics.new(*STATS_DIRECTORIES).to_s
end


REVE_RELEASE=`svn up &>/dev/null && svn info|grep ^Revision| cut -d ' ' -f 2`

desc "Generate Docs"
Rake::RDocTask.new("doc") { |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = 'Reve API Documentation'
rdoc.options << '--line-numbers' << '--inline-source' << '--all'
rdoc.rdoc_files.include('./ChangeLog')
rdoc.rdoc_files.include('*.rb')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.include('test/**/*')
}

spec = Gem::Specification.new do |s|
s.name = "reve"
s.version = "0.0.#{REVE_RELEASE.chomp || '1'}"
s.author = "Lisa Seelye"
s.email = "lisa@thedoh.com"
s.homepage = "http://revetrac.crudvision.com"
s.platform = Gem::Platform::RUBY
s.summary = "Reve is a Ruby library to interface with the Eve Online API"
s.files = FileList["Rakefile","lib/**/*.rb","reve.rb","tester.rb","init.rb"].to_a
s.require_path = "lib"
s.test_files = FileList["test/test_reve.rb","test/xml/**/*.xml"].to_a
s.has_rdoc = true
s.extra_rdoc_files = ["ChangeLog"]
s.add_dependency("hpricot",">= 0.6")
end rescue nil

Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end rescue nil
1 change: 1 addition & 0 deletions init.rb
@@ -0,0 +1 @@
require 'reve'

0 comments on commit 58bd1ad

Please sign in to comment.