Skip to content

Commit

Permalink
Initial outline
Browse files Browse the repository at this point in the history
  • Loading branch information
paploo committed Aug 24, 2012
0 parents commit e029a13
Show file tree
Hide file tree
Showing 11 changed files with 112 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
.rbenv-version

Gemfile.lock
*.gem

.DS_Store
*.swp
*.swo
2 changes: 2 additions & 0 deletions .rspec
@@ -0,0 +1,2 @@
--colour
--format documentation
9 changes: 9 additions & 0 deletions Gemfile
@@ -0,0 +1,9 @@
source 'https://rubygems.org'

gemspec

gem 'rdoc'

group :test do
gem 'rspec'
end
24 changes: 24 additions & 0 deletions LICENSE.txt
@@ -0,0 +1,24 @@
Copyright (c) 2012, Jeffrey C. Reinecke
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the copyright holders nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL JEFFREY REINECKE BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions README.rdoc
@@ -0,0 +1,3 @@
A library for Kerbal Space Program (KSP) calculation and simulation tools.

All units are mks SI.
11 changes: 11 additions & 0 deletions Rakefile
@@ -0,0 +1,11 @@
require 'rdoc/task'
require 'rspec/core/rake_task'


RDoc::Task.new do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.add 'README.rdoc', 'lib/**/.rb', 'LICENSE.txt'
end

RSpec::Core::RakeTask.new do |spec|
end
30 changes: 30 additions & 0 deletions kerbaldyn.gemspec
@@ -0,0 +1,30 @@
require File.join(File.dirname(__FILE__), 'lib', 'kerbaldyn', 'version')

Gem::Specification.new do |s|
s.name = 'kerbaldyn'
s.version = KerbalDyn::VERSION

s.authors = ['Jeff Reinecke']
s.email = 'jeff@paploo.net'
s.homepage = 'http://www.github.com/paploo/kerbal-dyn'
s.summary = 'A library for Kerbal Space Program (KSP) calculation and simulation tools.'
s.description = 'A library for Kerbal Space Program (KSP) calculation and simulation tools.'
s.licenses = ['BSD']

s.required_ruby_version = '>=1.9.0'
s.require_paths = ['lib']
s.files = Dir[
'README.rdoc',
'Rakefile',
'Gemfile',
'LICENSE',
'lib/**/*',
'bin/**/*',
'spec/**/*',
'.rspec',
'*.gemspec'
]

s.has_rdoc = true
s.extra_rdoc_files = ['README.rdoc']
end
3 changes: 3 additions & 0 deletions lib/kerbaldyn.rb
@@ -0,0 +1,3 @@
require 'kerbaldyn/version'
require 'kerbaldyn/constants'
require 'kerbaldyn/planet'
6 changes: 6 additions & 0 deletions lib/kerbaldyn/constants.rb
@@ -0,0 +1,6 @@
module Kerbal

# Newton's gravitational constant.
G = 6.67300e-11

end
13 changes: 13 additions & 0 deletions lib/kerbaldyn/version.rb
@@ -0,0 +1,13 @@
module KerbalDyn
class Version
MAJOR = 0
MINOR = 0
TINY = 1

def self.to_s
return [MAJOR, MINOR, TINY].join('.')
end
end

VERSION = Version.to_s
end
3 changes: 3 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,3 @@
require 'rubygems'
require 'bundler/setup'
Bundle.load(:test)

0 comments on commit e029a13

Please sign in to comment.