repo string | commit string | message string | diff string |
|---|---|---|---|
vishwam/apod.gadget | d43651d20f3455f2c12414d090b74d7a381c0196 | Version 1 of the gadget, created on 20100827. | diff --git a/Gadget.xml b/Gadget.xml
new file mode 100755
index 0000000..69de7c2
--- /dev/null
+++ b/Gadget.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<gadget>
+ <name>APoD</name>
+ <version>1.0.0.0</version>
+ <description>Astronomy Picture of the Day</description>
+ <author name="Vishwam Subr... |
xaviershay/dominion-solitaire | afcc29001340e3b08b7f44d73e8536e87ee7d4fe | bundle update | diff --git a/Gemfile.lock b/Gemfile.lock
index a4d8967..d551405 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,16 +1,19 @@
GEM
remote: https://rubygems.org/
specs:
- ffi (1.9.6)
+ ffi (1.17.0)
ffi-locale (1.0.1)
ffi (>= 1.0.9)
ffi-ncurses (0.4.0)
ffi (>= 1.0.9)
ffi-locale... |
xaviershay/dominion-solitaire | df0bf38b2d3d9925334f4afe2e43eee51a7a3364 | Fix throne room when you have no actions in hand | diff --git a/lib/dominion/cards/throne_room.rb b/lib/dominion/cards/throne_room.rb
index 4841632..bb4013f 100644
--- a/lib/dominion/cards/throne_room.rb
+++ b/lib/dominion/cards/throne_room.rb
@@ -1,23 +1,22 @@
Dominion::CARDS[:throne_room] = {
:type => :action,
:cost => 4,
:description => 'Choo... |
xaviershay/dominion-solitaire | f1c88c2fc6f0efb42fc309b85bf527f88a122ded | Refactor to use card matchers | diff --git a/lib/dominion/card.rb b/lib/dominion/card.rb
index 15f5dcf..0c21fab 100644
--- a/lib/dominion/card.rb
+++ b/lib/dominion/card.rb
@@ -1,31 +1,49 @@
module Dominion
# Methods to deal with cards.
#
# Requires an accessor +cards+ in the containing class to contain an array
# of all the loaded cards... |
xaviershay/dominion-solitaire | 9fa8e145770e41d12b6295cf4a89b6030533c68f | Refactoring autocomplete | diff --git a/README b/README
index 304bdd9..382b6d3 100644
--- a/README
+++ b/README
@@ -1,14 +1,29 @@
= Dominion Solitaire
An ncurses Dominion implementation with a focus on lightning quick goldfishing.
You play cards by typing their name with smart autocomplete.
Only the base set is implemented currently.
There... |
xaviershay/dominion-solitaire | 01f565cc5379defaf6cb328b25427f46e43e87c5 | Description for Chancellor | diff --git a/lib/dominion/cards/chancellor.rb b/lib/dominion/cards/chancellor.rb
index 05f139a..9eb48cf 100644
--- a/lib/dominion/cards/chancellor.rb
+++ b/lib/dominion/cards/chancellor.rb
@@ -1,19 +1,20 @@
Dominion::CARDS[:chancellor] = {
:type => :action,
:cost => 3,
:gold => 2,
+ :description => 'Optional... |
xaviershay/dominion-solitaire | 198da99d9bbe9eab1956232f5bb4f6952043d5db | Shuffling around NCurses stuff | diff --git a/lib/dominion/ui.rb b/lib/dominion/ui.rb
deleted file mode 100644
index d0a3152..0000000
--- a/lib/dominion/ui.rb
+++ /dev/null
@@ -1,102 +0,0 @@
-require 'ffi-ncurses'
-require 'dominion/engine'
-require 'dominion/ui/ncurses/window'
-require 'dominion/ui/ncurses/board_window'
-require 'dominion/ui/ncurses/... |
xaviershay/dominion-solitaire | 740146b45688962ec294b079769fffed807d8b12 | Refactor UI somewhat | diff --git a/lib/dominion/ui.rb b/lib/dominion/ui.rb
index 245fe1e..d0a3152 100644
--- a/lib/dominion/ui.rb
+++ b/lib/dominion/ui.rb
@@ -1,246 +1,102 @@
require 'ffi-ncurses'
require 'dominion/engine'
+require 'dominion/ui/ncurses/window'
+require 'dominion/ui/ncurses/board_window'
+require 'dominion/ui/ncurses/play_... |
xaviershay/dominion-solitaire | 2e959131f5203c8dc7ca6bdb89f0a11b105474eb | Start DRYing ncurses ui | diff --git a/lib/dominion/ui.rb b/lib/dominion/ui.rb
index 8be8c33..245fe1e 100644
--- a/lib/dominion/ui.rb
+++ b/lib/dominion/ui.rb
@@ -1,291 +1,246 @@
require 'ffi-ncurses'
require 'dominion/engine'
module Dominion; module UI; end; end;
class Dominion::UI::NCurses < Dominion::Engine
include FFI::NCurses
i... |
xaviershay/dominion-solitaire | 97ca44c78c4b404a3346d25a1a4e41e0e1fc6805 | UI#step spec | diff --git a/lib/dominion/ui.rb b/lib/dominion/ui.rb
index e106cbc..8be8c33 100644
--- a/lib/dominion/ui.rb
+++ b/lib/dominion/ui.rb
@@ -1,298 +1,291 @@
require 'ffi-ncurses'
require 'dominion/engine'
module Dominion; module UI; end; end;
class Dominion::UI::NCurses < Dominion::Engine
include FFI::NCurses
+ i... |
xaviershay/dominion-solitaire | 618d9ab5437fecce08223d2af6c592275ab6f6b1 | Comments | diff --git a/lib/dominion/autoplay.rb b/lib/dominion/autoplay.rb
index 61747c4..c1b6e4b 100644
--- a/lib/dominion/autoplay.rb
+++ b/lib/dominion/autoplay.rb
@@ -1,18 +1,19 @@
module Dominion
+ # Rules to autoplay solitaire matches, for speedier gold fishing
module Autoplay
CARDS_TO_AUTOPLAY = [:village, :mark... |
xaviershay/dominion-solitaire | 7ab3ff787c271c74732bc94efa0ec6b2666eebb1 | Refactor autoplay | diff --git a/lib/dominion/autoplay.rb b/lib/dominion/autoplay.rb
new file mode 100644
index 0000000..61747c4
--- /dev/null
+++ b/lib/dominion/autoplay.rb
@@ -0,0 +1,18 @@
+module Dominion
+ module Autoplay
+ CARDS_TO_AUTOPLAY = [:village, :market, :laboratory]
+
+ def autoplay!
+ ret = false
+
+ unless... |
xaviershay/dominion-solitaire | c6745d7136ad5189020a686418a5d8b65121c8fe | Spec #treasure | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index c5c63f3..739c44c 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,157 +1,156 @@
require 'dominion/engine'
require 'dominion/util'
require 'dominion/player'
require 'dominion/board'
require 'dominion/input'
require 'dominion/card'
... |
xaviershay/dominion-solitaire | 97829aa9a9900d722ca2abae885f3142cb1b0b0b | Shuffling things around in Game | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 5711e8e..c5c63f3 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,162 +1,157 @@
require 'dominion/engine'
require 'dominion/util'
require 'dominion/player'
require 'dominion/board'
require 'dominion/input'
require 'dominion/card'
... |
xaviershay/dominion-solitaire | 5f54ec85f9cf25e14ee52f24b374a2187c61d06c | Refactor card type checking | diff --git a/lib/dominion/card.rb b/lib/dominion/card.rb
new file mode 100644
index 0000000..7d0e09e
--- /dev/null
+++ b/lib/dominion/card.rb
@@ -0,0 +1,7 @@
+module Dominion
+ module Card
+ def type?(card, type)
+ [*card[:type]].include?(type)
+ end
+ end
+end
diff --git a/lib/dominion/game.rb b/lib/domin... |
xaviershay/dominion-solitaire | d24208c72c126548c9f66c5c740bdc29f8ab178d | Refactor #step | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index e3f8904..6360f53 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,157 +1,160 @@
require 'dominion/engine'
require 'dominion/util'
require 'dominion/player'
require 'dominion/board'
require 'dominion/input'
module Dominion
class ... |
xaviershay/dominion-solitaire | c0c190b14390fe1d44de617a1f625015fffe7434 | Keep refactoring autocomplete | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 73fc4d6..e3f8904 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,173 +1,157 @@
require 'dominion/engine'
require 'dominion/util'
require 'dominion/player'
require 'dominion/board'
require 'dominion/input'
module Dominion
class ... |
xaviershay/dominion-solitaire | 8f8b91d33bc36524a21755ff53bd42f7d3a3d752 | Refactor the autocomplete | diff --git a/lib/dominion/cards/adventurer.rb b/lib/dominion/cards/adventurer.rb
index 3ad29b4..5f95bec 100644
--- a/lib/dominion/cards/adventurer.rb
+++ b/lib/dominion/cards/adventurer.rb
@@ -1,35 +1,38 @@
Dominion::CARDS[:adventurer] = {
:type => :action,
:cost => 6,
:description => 'Reveal un... |
xaviershay/dominion-solitaire | 8723cf49557b4b6c78e5ed0405dc3e085cd340be | Start moving around autocomplete | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index eae27dc..32a7928 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,169 +1,175 @@
require 'dominion/engine'
require 'dominion/util'
require 'dominion/player'
require 'dominion/board'
require 'dominion/input'
module Dominion
class ... |
xaviershay/dominion-solitaire | 072659cff450e01aa5c11f5b67d6d1f9974bf2cd | Spec cleanup | diff --git a/lib/dominion/player.rb b/lib/dominion/player.rb
index 8425b29..dc55cb1 100644
--- a/lib/dominion/player.rb
+++ b/lib/dominion/player.rb
@@ -1,141 +1,144 @@
module Dominion
module Player
def player=(value)
@player = value
end
def player
@player ||= {
:actions =>... |
xaviershay/dominion-solitaire | 86e0632ee56fca50d6fc0646a78cbb33ec999a2b | Spec for buy prompt | diff --git a/spec/game_spec.rb b/spec/game_spec.rb
index 430cd52..03e82db 100644
--- a/spec/game_spec.rb
+++ b/spec/game_spec.rb
@@ -1,67 +1,69 @@
require 'spec_helper'
describe Dominion::Game do
subject do
game_with_cards(:copper, :smithy, :chancellor)
end
describe '#step' do
it 'does not blow... |
xaviershay/dominion-solitaire | b0a3075cc25b04acac3c29a516dacd6e606c29c4 | Start speccing #step | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 62b915a..eae27dc 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,164 +1,169 @@
require 'dominion/engine'
require 'dominion/util'
require 'dominion/player'
require 'dominion/board'
require 'dominion/input'
module Dominion
class ... |
xaviershay/dominion-solitaire | 7e7266569bfd0d36c8c8d517457ee994ec892a26 | Refactor out the UI engine and the #run method so I can start speccing the run logic | diff --git a/lib/dominion/engine.rb b/lib/dominion/engine.rb
index 53a5600..b40b1b4 100644
--- a/lib/dominion/engine.rb
+++ b/lib/dominion/engine.rb
@@ -1,15 +1,15 @@
module Dominion
class Engine
def setup
end
def draw(game, ctx = {})
end
- def step(ctx)
+ def step(game, ctx)
end
... |
xaviershay/dominion-solitaire | 3d634ff35352ec7deed1cd3416a30bea0d7625dc | Move input buffer into ncurses UI | diff --git a/lib/dominion/engine.rb b/lib/dominion/engine.rb
index 52d91c8..53a5600 100644
--- a/lib/dominion/engine.rb
+++ b/lib/dominion/engine.rb
@@ -1,16 +1,15 @@
module Dominion
class Engine
def setup
- self.input_buffer = ''
end
def draw(game, ctx = {})
end
def step(ctx)
... |
xaviershay/dominion-solitaire | 6737e557067519ab16dd545d82c7c5d4d60fe3d9 | Move prompt out of engine | diff --git a/lib/dominion/engine.rb b/lib/dominion/engine.rb
index abac202..52d91c8 100644
--- a/lib/dominion/engine.rb
+++ b/lib/dominion/engine.rb
@@ -1,19 +1,16 @@
module Dominion
class Engine
- attr_accessor :prompt
-
def setup
- self.prompt = nil
self.input_buffer = ''
end
def d... |
xaviershay/dominion-solitaire | 1b788be544bda8ec46b256a6af2856b7dd38ee31 | Demeter up game.engine.prompt | diff --git a/lib/dominion/cards/adventurer.rb b/lib/dominion/cards/adventurer.rb
index 46be563..3ad29b4 100644
--- a/lib/dominion/cards/adventurer.rb
+++ b/lib/dominion/cards/adventurer.rb
@@ -1,35 +1,35 @@
Dominion::CARDS[:adventurer] = {
:type => :action,
:cost => 6,
:description => 'Reveal un... |
xaviershay/dominion-solitaire | fb364e2518fede9ddb7ec8c20b1e0e6b6a2ae9ee | Clean up board spec | diff --git a/spec/board_spec.rb b/spec/board_spec.rb
index 261d78d..6c16f3c 100644
--- a/spec/board_spec.rb
+++ b/spec/board_spec.rb
@@ -1,23 +1,21 @@
require 'spec_helper'
describe Dominion::Game do
describe 'the initial board' do
DB = Dominion::Board
subject do
- Dominion::Game.new.tap {|game|... |
xaviershay/dominion-solitaire | 5056130019ecbe1eb6b56d3e5f8194ca20da2d04 | Move card_active into Game | diff --git a/lib/dominion/engine.rb b/lib/dominion/engine.rb
index 925113b..abac202 100644
--- a/lib/dominion/engine.rb
+++ b/lib/dominion/engine.rb
@@ -1,19 +1,19 @@
module Dominion
class Engine
- attr_accessor :prompt, :input_buffer, :card_active
+ attr_accessor :prompt
def setup
self.prompt =... |
xaviershay/dominion-solitaire | fc0df5d977c135eb5df947eec4b699130ff720db | Start extracting abstract engine | diff --git a/lib/dominion/engine.rb b/lib/dominion/engine.rb
new file mode 100644
index 0000000..925113b
--- /dev/null
+++ b/lib/dominion/engine.rb
@@ -0,0 +1,19 @@
+module Dominion
+ class Engine
+ attr_accessor :prompt, :input_buffer, :card_active
+
+ def setup
+ self.prompt = nil
+ self.input_buffer... |
xaviershay/dominion-solitaire | 581543611f989e2ba5e688635972abc2e3134364 | Clean up board spec | diff --git a/lib/dominion/board.rb b/lib/dominion/board.rb
index 7d7d28d..a2174ac 100644
--- a/lib/dominion/board.rb
+++ b/lib/dominion/board.rb
@@ -1,31 +1,33 @@
module Dominion
+ # Methods to populate the initial board. Requires an accessor +cards+ in
+ # the containing class to contain an array of all the loaded ... |
xaviershay/dominion-solitaire | 531512d7f15b65afec641bfa128173a401a7b3a2 | Refactor board | diff --git a/lib/dominion/board.rb b/lib/dominion/board.rb
new file mode 100644
index 0000000..7d7d28d
--- /dev/null
+++ b/lib/dominion/board.rb
@@ -0,0 +1,31 @@
+module Dominion
+ module Board
+ DEFAULT_CARDS = [:copper, :silver, :gold, :estate, :duchy, :provence, :curse]
+ DEFAULT_AMOUNT = 8
+ AMOUNTS = {
+... |
xaviershay/dominion-solitaire | 12d66176028f788cc4ef11767087ef6a50aa5cd9 | Player= to make specs pass | diff --git a/lib/dominion/player.rb b/lib/dominion/player.rb
index ada55c4..8425b29 100644
--- a/lib/dominion/player.rb
+++ b/lib/dominion/player.rb
@@ -1,137 +1,141 @@
module Dominion
module Player
+ def player=(value)
+ @player = value
+ end
+
def player
@player ||= {
:actions =>... |
xaviershay/dominion-solitaire | 75932aa16f687719cdb1ceba3937c381b68e3232 | Spec for default board | diff --git a/spec/game_spec.rb b/spec/game_spec.rb
new file mode 100644
index 0000000..b6316df
--- /dev/null
+++ b/spec/game_spec.rb
@@ -0,0 +1,29 @@
+require 'spec_helper'
+
+describe Dominion::Game do
+ describe 'the initial board' do
+ before do
+ subject.load_cards(:copper, :silver, :gold, :provence)
+ ... |
xaviershay/dominion-solitaire | b6a9cfaeb9b15decc95eedd92c26ec1c4c96d4e0 | Refactor player code | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 0e9510c..c92e22e 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,205 +1,170 @@
require 'dominion/ui'
require 'dominion/util'
require 'dominion/player'
require 'dominion/input'
module Dominion
class Game
include Dominion::Ut... |
xaviershay/dominion-solitaire | 74a4d4a858842e9ec8592ea3052aa23567cda566 | gitignore | diff --git a/.gitignore b/.gitignore
index b14c548..36040c4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
debug.log
+boards
+*.log
|
xaviershay/dominion-solitaire | 36c29254a476e3e57565f4220c3c5130a976e9aa | Refactor game.rb into multiple files | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 69c9558..0e9510c 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,433 +1,205 @@
require 'dominion/ui'
+require 'dominion/util'
+require 'dominion/player'
+require 'dominion/input'
module Dominion
- module Util
- def add_defaults_to... |
xaviershay/dominion-solitaire | 98089a4afe958635c2f18f8b8aa5544030db0e8e | Fix Throne Room + cards that need input (mine) | diff --git a/lib/dominion/cards/throne_room.rb b/lib/dominion/cards/throne_room.rb
index 97d67d1..4841632 100644
--- a/lib/dominion/cards/throne_room.rb
+++ b/lib/dominion/cards/throne_room.rb
@@ -1,21 +1,23 @@
Dominion::CARDS[:throne_room] = {
:type => :action,
:cost => 4,
:description => 'Choo... |
xaviershay/dominion-solitaire | 2d1dd1e7b88a6b176663d739c62094dcd8991c2a | Extra space in log | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 6f2d4b6..1570aea 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,413 +1,413 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
... |
xaviershay/dominion-solitaire | 12cd0b0d24901a36985e0d334446a89a9841d338 | Log trashed cards | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 4b95f17..6f2d4b6 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,409 +1,413 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
... |
xaviershay/dominion-solitaire | 040fc25ab2a30e067a3dd63e0f400873977fe740 | Correct cost for Smithy | diff --git a/lib/dominion/cards/smithy.rb b/lib/dominion/cards/smithy.rb
index 14cc827..7fb73f3 100644
--- a/lib/dominion/cards/smithy.rb
+++ b/lib/dominion/cards/smithy.rb
@@ -1,5 +1,5 @@
Dominion::CARDS[:smithy] = {
- :cost => 5,
+ :cost => 4,
:type => :action,
:cards => 3
}
|
xaviershay/dominion-solitaire | 8f83927a463ad369b1712922e9857ec0e8f70588 | Better input handling | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 37da3b1..4b95f17 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,409 +1,409 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
... |
xaviershay/dominion-solitaire | e6cc639f466137737a3bf7e2b3379b28f89e9509 | Better descriptions | diff --git a/lib/dominion/cards/library.rb b/lib/dominion/cards/library.rb
index ee7d59d..33832eb 100644
--- a/lib/dominion/cards/library.rb
+++ b/lib/dominion/cards/library.rb
@@ -1,35 +1,35 @@
Dominion::CARDS[:library] = {
:type => :action,
:cost => 5,
- :description => 'Draw to 7 cards, discard... |
xaviershay/dominion-solitaire | 46f45e899ade2e2bd653a2c2060fd6661c8d16ec | Library | diff --git a/lib/dominion/cards/library.rb b/lib/dominion/cards/library.rb
new file mode 100644
index 0000000..ee7d59d
--- /dev/null
+++ b/lib/dominion/cards/library.rb
@@ -0,0 +1,35 @@
+Dominion::CARDS[:library] = {
+ :type => :action,
+ :cost => 5,
+ :description => 'Draw to 7 cards, discarding actio... |
xaviershay/dominion-solitaire | 9de937c376880568708747548bec014732ae8c72 | Game logging | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 622eff0..37da3b1 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,382 +1,409 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
- ... |
xaviershay/dominion-solitaire | a2773a3ade975142b4aab75fbcf143abe4a92f9e | Quick hack to load a specific board | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index eb15aec..622eff0 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,379 +1,382 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
... |
xaviershay/dominion-solitaire | bee0e205b8fa36da4a2ff3fd2fe007388d6c49ca | Council Room + Gardens | diff --git a/lib/dominion/cards/council_room.rb b/lib/dominion/cards/council_room.rb
new file mode 100644
index 0000000..8d22299
--- /dev/null
+++ b/lib/dominion/cards/council_room.rb
@@ -0,0 +1,7 @@
+Dominion::CARDS[:council_room] = {
+ :cost => 5,
+ :type => :action,
+ :description => 'Each other pla... |
xaviershay/dominion-solitaire | eddcfe6fe52e764893ad27e1365b213d0608f673 | Fix spy specs | diff --git a/spec/cards/spy_spec.rb b/spec/cards/spy_spec.rb
index 58b0f92..8edbca6 100644
--- a/spec/cards/spy_spec.rb
+++ b/spec/cards/spy_spec.rb
@@ -1,36 +1,38 @@
require 'spec_helper'
describe_card :spy do
it_should_behave_like 'an action card'
it_should_behave_like 'an attack card'
describe 'when p... |
xaviershay/dominion-solitaire | 995e64a4e6b70e7387600b55a67f2fc210bb8389 | Throne room | diff --git a/lib/dominion/cards/throne_room.rb b/lib/dominion/cards/throne_room.rb
new file mode 100644
index 0000000..97d67d1
--- /dev/null
+++ b/lib/dominion/cards/throne_room.rb
@@ -0,0 +1,21 @@
+Dominion::CARDS[:throne_room] = {
+ :type => :action,
+ :cost => 4,
+ :description => 'Choose an action ... |
xaviershay/dominion-solitaire | beb6c19fa8ecc7193bdaae6211168a9443b50469 | Remodel | diff --git a/lib/dominion/cards/remodel.rb b/lib/dominion/cards/remodel.rb
new file mode 100644
index 0000000..43e6857
--- /dev/null
+++ b/lib/dominion/cards/remodel.rb
@@ -0,0 +1,29 @@
+Dominion::CARDS[:remodel] = {
+ :type => :action,
+ :cost => 4,
+ :description => 'Trash a card, gain a card cost up... |
xaviershay/dominion-solitaire | 6c5633a0c2a3f2654f559de425ee76b34e23d7f4 | Moneylender | diff --git a/lib/dominion/cards/moneylender.rb b/lib/dominion/cards/moneylender.rb
new file mode 100644
index 0000000..4f8ef5e
--- /dev/null
+++ b/lib/dominion/cards/moneylender.rb
@@ -0,0 +1,21 @@
+Dominion::CARDS[:moneylender] = {
+ :type => :action,
+ :cost => 4,
+ :description => 'Trash a copper, +... |
xaviershay/dominion-solitaire | ce06e847ec7b0af66888be5a0eaa8fd817179443 | Militia | diff --git a/lib/dominion/cards/militia.rb b/lib/dominion/cards/militia.rb
new file mode 100644
index 0000000..329ceff
--- /dev/null
+++ b/lib/dominion/cards/militia.rb
@@ -0,0 +1,6 @@
+Dominion::CARDS[:militia] = {
+ :type => [:attack, :action],
+ :cost => 4,
+ :description => 'Other players discard d... |
xaviershay/dominion-solitaire | aa4ef4767e86aee0d1fc5b38c97dcd2474a68a15 | Workshop | diff --git a/lib/dominion/cards/workshop.rb b/lib/dominion/cards/workshop.rb
new file mode 100644
index 0000000..9672c11
--- /dev/null
+++ b/lib/dominion/cards/workshop.rb
@@ -0,0 +1,14 @@
+Dominion::CARDS[:workshop] = {
+ :type => :action,
+ :cost => 3,
+ :description => 'Gain a card costing <= 4',
+ ... |
xaviershay/dominion-solitaire | 2e22910b500cdf9f3ebdde2f08bfc2c08bfc4dfe | Colored prompt for ULTRA QUICK RECOGNITION | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 695d5ea..7b3e99b 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,355 +1,357 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
... |
xaviershay/dominion-solitaire | 7f64e153c2077fd8421d5321e7a0612a15705ddc | Auto play villages, labs and markets | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 2d653ca..695d5ea 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,347 +1,355 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
... |
xaviershay/dominion-solitaire | 42be0834b908558fba6f2000a404ef8e4639c3de | UI will be broken for long lines, but won't blow up | diff --git a/lib/dominion/ui.rb b/lib/dominion/ui.rb
index d5dcffb..544c41b 100644
--- a/lib/dominion/ui.rb
+++ b/lib/dominion/ui.rb
@@ -1,297 +1,297 @@
require 'ffi-ncurses'
module Dominion; module UI; end; end;
class Dominion::UI::NCurses
include FFI::NCurses
attr_accessor :prompt, :input_buffer, :card_a... |
xaviershay/dominion-solitaire | 32793fe9a44fb3b5f40d784cdfa6690c4db47a01 | Random board to start | diff --git a/lib/dominion/game.rb b/lib/dominion/game.rb
index 2f00c12..2d653ca 100644
--- a/lib/dominion/game.rb
+++ b/lib/dominion/game.rb
@@ -1,338 +1,347 @@
require 'dominion/ui'
module Dominion
module Util
def add_defaults_to_card(name, values)
values = values.dup
values[:key] = name
... |
xaviershay/dominion-solitaire | 9c35ba795688b1d5253e0038310a776c64a882aa | Basic action cards: festival, lab, smithy, woodcutter, village | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..b14c548
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+debug.log
diff --git a/README b/README
new file mode 100644
index 0000000..206ea56
--- /dev/null
+++ b/README
@@ -0,0 +1,13 @@
+= Dominion Solitaire
+An ncurses Dominion implementation with a f... |
devfort/hostsetup | 03a7d4f30a1643fd6eb085d57d0966246b02ed04 | More auto-sites & their DNS. | diff --git a/apache2/sites-available/bugle b/apache2/sites-available/bugle
new file mode 100644
index 0000000..7b3ff63
--- /dev/null
+++ b/apache2/sites-available/bugle
@@ -0,0 +1,50 @@
+<VirtualHost *:80>
+ ServerName bugle.fort
+ ServerAlias twitter.com
+ ServerAlias api.twitter.com
+ Serv... |
devfort/hostsetup | 1556c956b7ab9716f9c9a54dac4e0f8f43bc4b8b | Some useful apache-ness. | diff --git a/apache2/sites-available/extra b/apache2/sites-available/extra
new file mode 100644
index 0000000..b2f48c8
--- /dev/null
+++ b/apache2/sites-available/extra
@@ -0,0 +1,29 @@
+<VirtualHost *:80>
+ ServerName debian.fort
+ Alias /debian "/home/debian/data/mirror/"
+ <Directory /home/debia... |
devfort/hostsetup | 3054c6d03867a1b46df451c02e0d9df5a9b6805d | Two-use interfaces file; either run dhcp locally and ifup eth0 (which is auto-hotplug), or stop dhcp locally and ifup eth0=dhcp | diff --git a/network/interfaces b/network/interfaces
new file mode 100644
index 0000000..1420092
--- /dev/null
+++ b/network/interfaces
@@ -0,0 +1,15 @@
+# This file describes the network interfaces available on your system
+# and how to activate them. For more information, see interfaces(5).
+
+# The loopback network ... |
devfort/hostsetup | 4bf0e4f5d15ac6fee776cc3047cc661795606250 | Add a router into the DHCP configuration, since some setups (notably niobe) react poorly to there not being one. (Probably due to a buggy post-up hook.) | diff --git a/dhcp3/dhcpd.conf b/dhcp3/dhcpd.conf
index 804bf29..7fdd48d 100644
--- a/dhcp3/dhcpd.conf
+++ b/dhcp3/dhcpd.conf
@@ -1,10 +1,11 @@
ddns-update-style none;
option domain-name "fort";
option domain-name-servers 10.0.0.1 10.0.0.2;
+option routers 10.0.0.1;
default-lease-time 600;
max-lease-time 7200;
aut... |
devfort/hostsetup | f5fbcd99a96c4da99845757e9ac36a0e8a9d7af9 | Use the second NS. | diff --git a/dhcp3/dhcpd.conf b/dhcp3/dhcpd.conf
index 6f850de..804bf29 100644
--- a/dhcp3/dhcpd.conf
+++ b/dhcp3/dhcpd.conf
@@ -1,10 +1,10 @@
ddns-update-style none;
option domain-name "fort";
-option domain-name-servers 10.0.0.1;
+option domain-name-servers 10.0.0.1 10.0.0.2;
default-lease-time 600;
max-lease-tim... |
devfort/hostsetup | 59cbe321e1664f3f3b05e456f9f6b2733e88d468 | Add a second NS entry, using knockbrex. | diff --git a/bind/db.fort b/bind/db.fort
index df5e223..2a3feee 100644
--- a/bind/db.fort
+++ b/bind/db.fort
@@ -1,19 +1,20 @@
$TTL 604800
@ IN SOA localhost. root.localhost. (
1 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ; Negative Cache TTL
)
@ IN NS 10.0... |
devfort/hostsetup | 3bf96dbd89b6e7cc33e90b0ee413fe9a29a9975c | Fix spelling mistake. | diff --git a/dhcp3/dhcpd.conf b/dhcp3/dhcpd.conf
index 4fefd7c..6f850de 100644
--- a/dhcp3/dhcpd.conf
+++ b/dhcp3/dhcpd.conf
@@ -1,10 +1,10 @@
ddns-update-style none;
option domain-name "fort";
option domain-name-servers 10.0.0.1;
-default-least-time 600;
+default-lease-time 600;
max-lease-time 7200;
authoritative... |
devfort/hostsetup | 6d447b7fbe8f662c049e46d57889dd00384db1dc | Some useful files in setting up (physical) /dev/fort host machines. | diff --git a/bind/db.fort b/bind/db.fort
new file mode 100644
index 0000000..df5e223
--- /dev/null
+++ b/bind/db.fort
@@ -0,0 +1,19 @@
+$TTL 604800
+@ IN SOA localhost. root.localhost. (
+ 1 ; Serial
+ 604800 ; Refresh
+ 86400 ; Retry
+ 2419200 ; Expire
+ 604800 ; Negative Cache TTL
+ )
+
+@ IN... |
infused/stater | c4c471e4dfd86acbd3a50d6e66762803a4aee2ed | remove deprecated test_files | diff --git a/stater.gemspec b/stater.gemspec
index 1af0c89..92e938e 100644
--- a/stater.gemspec
+++ b/stater.gemspec
@@ -1,24 +1,23 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'stater/version'
Gem::Specification.new do |s|
s.name = 'stater'
s.version = State... |
infused/stater | a83add65dd37134b01f336f0e8e14121c5bad3af | remove travisci config | diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index b548841..0000000
--- a/.travis.yml
+++ /dev/null
@@ -1,9 +0,0 @@
-branches:
- only:
- - master
-language: ruby
-rvm:
- - 2.4.4
- - 2.5.1
-script: bundle exec rspec
-sudo: false
diff --git a/README.md b/README.md
index 9c8851f..4059082 100644
--... |
infused/stater | 6e117b106ecdc100459b99588d586f173749bb2e | migrate to travis-ci.com | diff --git a/README.md b/README.md
index 9a3ca45..9c8851f 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
# Stater
-[](http://travis-ci.org/infused/stater)
+[](http://travis-ci.com/inf... |
infused/stater | 25999a3f23fb3659646873ece74260d144a5d59f | ruby version | diff --git a/.gitignore b/.gitignore
index 83f6d39..262b419 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,5 @@
.rvmrc
+.ruby-gemset
+.ruby-version
Gemfile.lock
*.gem
|
infused/stater | 24c519c0e3f2d5c6b2b56a8093156032afe63dd6 | fraction expression solver | diff --git a/lib/stater.rb b/lib/stater.rb
index 75533e5..2cd2743 100644
--- a/lib/stater.rb
+++ b/lib/stater.rb
@@ -1,6 +1,8 @@
require 'bigdecimal'
require 'bigdecimal/util'
require 'stater/tvm'
require 'stater/base'
require 'stater/amortization'
+
+require 'stater/fraction'
diff --git a/lib/stater/fraction.rb... |
infused/stater | be1b15fa9bc1e499809fa21eaf2162c2d830cd7d | drop ruby-2.0.0 from testing | diff --git a/.travis.yml b/.travis.yml
index a8f76a8..95f8d94 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,12 @@
branches:
only:
- master
language: ruby
rvm:
- - 2.0.0
- 2.1.10
- 2.2.6
- 2.3.3
- 2.4.0
- jruby-19mode
script: bundle exec rspec
sudo: false
|
infused/stater | fcb7e7de285d82d87401cc220ee59c07137f4303 | remove old dependencies | diff --git a/stater.gemspec b/stater.gemspec
index 0c3f7c9..1af0c89 100644
--- a/stater.gemspec
+++ b/stater.gemspec
@@ -1,28 +1,24 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'stater/version'
Gem::Specification.new do |s|
s.name = 'stater'
s.version = State... |
infused/stater | dac2642da3e7f82941e20b3f1d01379fdf980928 | specify license in gemfile | diff --git a/stater.gemspec b/stater.gemspec
index 71414df..0c3f7c9 100644
--- a/stater.gemspec
+++ b/stater.gemspec
@@ -1,27 +1,28 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'stater/version'
Gem::Specification.new do |s|
s.name = 'stater'
s.version = State... |
infused/stater | 9f0d0ece000b935ae432166f50d9c3342f46f0be | more spec cleanup | diff --git a/lib/stater/amortization.rb b/lib/stater/amortization.rb
index 23c35cc..c506d97 100644
--- a/lib/stater/amortization.rb
+++ b/lib/stater/amortization.rb
@@ -1,45 +1,45 @@
Struct.new('Payment', :payment, :principal_paid, :interest_paid, :principal_balance)
class NilClass
def to_d
nil
end
end
... |
infused/stater | 83e464699f336c5f3d1fa2e84d157b296aad938d | remove FIXTURE_PATH | diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 0c802a6..13ccf0f 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,36 +1,34 @@
$:.unshift(File.dirname(__FILE__) + '/../lib/')
require 'rubygems'
require 'rspec'
require 'stater'
require 'nokogiri'
-FIXTURE_PATH = File.dirname(__FILE__) ... |
infused/stater | 7785ddd60e4b2544ab0334b0d7055fe7fb602ea8 | modernize specs | diff --git a/spec/unit/amortization_spec.rb b/spec/unit/amortization_spec.rb
index 2be826f..837887a 100644
--- a/spec/unit/amortization_spec.rb
+++ b/spec/unit/amortization_spec.rb
@@ -1,64 +1,64 @@
require File.dirname(__FILE__) + '/../spec_helper'
describe Stater::Amortization do
before do
principal =... |
infused/stater | 70990b4030e095faeadce375a7bec8cbf8d470eb | default fv periods_per_year to 12 | diff --git a/lib/stater/tvm.rb b/lib/stater/tvm.rb
index 77b1433..7388fdb 100644
--- a/lib/stater/tvm.rb
+++ b/lib/stater/tvm.rb
@@ -1,78 +1,78 @@
module Stater
class TVM
include Math
class << self
# Calculates the future value
# pv = present value
# i = simple interest rate
... |
infused/stater | 54cf021f4bba0cdab5f13ca59d795401d8695e49 | ignore built gem files | diff --git a/.gitignore b/.gitignore
index 456bd8f..83f6d39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.rvmrc
Gemfile.lock
+*.gem
|
infused/stater | 2f379fe01c8cfc9e1c4d7df25eddbc2d80e717b6 | fix spelling error | diff --git a/lib/stater/tvm.rb b/lib/stater/tvm.rb
index 794f6a8..77b1433 100644
--- a/lib/stater/tvm.rb
+++ b/lib/stater/tvm.rb
@@ -1,78 +1,78 @@
module Stater
class TVM
include Math
-
+
class << self
# Calculates the future value
# pv = present value
# i = simple interest ra... |
infused/stater | 7bb864cbd13d30e6ec0daff8a43291e82c95768c | dont lock to specific gem versions | diff --git a/stater.gemspec b/stater.gemspec
index acb76f4..5d855fc 100644
--- a/stater.gemspec
+++ b/stater.gemspec
@@ -1,25 +1,25 @@
lib = File.expand_path('../lib/', __FILE__)
$:.unshift lib unless $:.include?(lib)
require 'stater/version'
Gem::Specification.new do |s|
s.name = 'stater'
s.version = State... |
infused/stater | 36e158d511edd798a4252addd0ad654fdde2ffda | add code climate to readme | diff --git a/README.md b/README.md
index ecf8f6d..99efa1a 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
# Stater
[](http://travis-ci.org/infused/stater)
[](http://badge.fury.io/rb/stater)
+[](http://travis-ci.org/infused/stater)
+[](http://badge.fury.io/rb/stater)
A ... |
infused/stater | 40e193cd6e6b4d1b0320b9e17150028fc0c04662 | add ruby-2.0.0 to travis-ci config | diff --git a/.travis.yml b/.travis.yml
index ac5be92..b167a0d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,14 @@
language: ruby
rvm:
+ - 2.0.0
- 1.9.3
- 1.9.2
- 1.8.7
- ree
- jruby-18mode
- jruby-19mode
- rbx-18mode
- rbx-19mode
branches:
only:
- master
diff --git a/README.... |
infused/stater | 875002af04557b44339f879ef0940720a8a49b2d | fix Gemfile | diff --git a/Gemfile b/Gemfile
index 7e083bb..56d5169 100644
--- a/Gemfile
+++ b/Gemfile
@@ -1,2 +1,2 @@
gemspec
-source :rubygems
+source 'https://rubygems.org'
|
infused/stater | b4b283da9d4339aeb24e614d479375ba8dd5b9a9 | remove encoding comments | diff --git a/lib/stater.rb b/lib/stater.rb
index 96b85bb..75533e5 100644
--- a/lib/stater.rb
+++ b/lib/stater.rb
@@ -1,8 +1,6 @@
-# encoding: utf-8
-
require 'bigdecimal'
require 'bigdecimal/util'
require 'stater/tvm'
require 'stater/base'
require 'stater/amortization'
diff --git a/lib/stater/amortization.rb b/l... |
infused/stater | 6faae0d3e73f96c1d93f32451801e26ac5eee7c5 | shorten some spec lines | diff --git a/spec/unit/tvm_spec.rb b/spec/unit/tvm_spec.rb
index fa64010..89fd539 100644
--- a/spec/unit/tvm_spec.rb
+++ b/spec/unit/tvm_spec.rb
@@ -1,60 +1,64 @@
require File.dirname(__FILE__) + '/../spec_helper'
describe Stater::TVM do
before do
@present_value = 6000.00
@future_value = 7935.08... |
infused/stater | 1be54fd2e28896297f9a45a486f4e966660fd2b5 | extract extract_value method | diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 877783a..0c802a6 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,30 +1,36 @@
$:.unshift(File.dirname(__FILE__) + '/../lib/')
require 'rubygems'
require 'rspec'
require 'stater'
require 'nokogiri'
FIXTURE_PATH = File.dirname(__FILE__) ... |
infused/stater | a2bfcd1fb32288ded864b5715a6dc7fca04c772e | bump required rubygems and rspec versions | diff --git a/Rakefile b/Rakefile
index 8b590a9..6d9acd2 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,21 +1,19 @@
-# encoding: utf-8
-
require 'rubygems'
require 'bundler/setup';
Bundler.setup(:default, :development)
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :spec do |t|
t.rspec_opts = %w(--color)... |
infused/stater | b12e1683ef22dee5530de53cd91832135f66bfd9 | add travis-ci config file | diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..ac5be92
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,13 @@
+language: ruby
+rvm:
+ - 1.9.3
+ - 1.9.2
+ - 1.8.7
+ - ree
+ - jruby-18mode
+ - jruby-19mode
+ - rbx-18mode
+ - rbx-19mode
+branches:
+ only:
+ - master
|
infused/stater | 0f652d092b8f678b169e58d614338424765aa242 | setup bundler | diff --git a/Rakefile b/Rakefile
index e551dc6..8b590a9 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,10 +1,21 @@
# encoding: utf-8
require 'rubygems'
+require 'bundler/setup';
+Bundler.setup(:default, :development)
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new :spec do |t|
- t.rspec_opts = %w(-fs --co... |
infused/stater | 69789aab27aa05b8b2a018788dd7ae4b38c848bf | Cleanup tvalue_schedule matcher | diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 0e66bd6..877783a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,32 +1,30 @@
$:.unshift(File.dirname(__FILE__) + '/../lib/')
require 'rubygems'
require 'rspec'
require 'stater'
require 'nokogiri'
FIXTURE_PATH = File.dirname(__FILE__) ... |
infused/stater | 898dbec881ce2d2834c73dd2c10b903539a65e2a | Refactor tvm specs | diff --git a/spec/unit/tvm_spec.rb b/spec/unit/tvm_spec.rb
index ceb164a..fa64010 100644
--- a/spec/unit/tvm_spec.rb
+++ b/spec/unit/tvm_spec.rb
@@ -1,44 +1,60 @@
require File.dirname(__FILE__) + '/../spec_helper'
describe Stater::TVM do
before do
@present_value = 6000.00
@future_value = 7935.08... |
infused/stater | fff92a0677af52051d05173c3a8aff00a0abece4 | tvalue comparison test | diff --git a/lib/stater/amortization.rb b/lib/stater/amortization.rb
index ce8b607..375f385 100644
--- a/lib/stater/amortization.rb
+++ b/lib/stater/amortization.rb
@@ -1,51 +1,52 @@
# encoding: utf-8
-Struct.new('Payment', :number, :payment, :principal_paid, :interest_paid, :principal_balance)
+Struct.new('Payment'... |
infused/stater | e51ee09a8e65905e03dcdfb63ea9761271c3b0a3 | autotest file mappings | diff --git a/.autotest b/.autotest
new file mode 100644
index 0000000..32e70c3
--- /dev/null
+++ b/.autotest
@@ -0,0 +1,16 @@
+Autotest.add_hook :initialize do |autotest|
+ autotest.clear_mappings
+
+ autotest.add_mapping(%r%^lib/stater/(.*)\.rb$%) do |filename, m|
+ autotest.files_matching %r!spec/(unit|functio... |
infused/stater | 54864ba2d04beeb55f5060f6227bfa4b47a9d416 | Refactor amortization tests | diff --git a/lib/stater/amortization.rb b/lib/stater/amortization.rb
index eab82dd..ce8b607 100644
--- a/lib/stater/amortization.rb
+++ b/lib/stater/amortization.rb
@@ -1,54 +1,51 @@
# encoding: utf-8
Struct.new('Payment', :number, :payment, :principal_paid, :interest_paid, :principal_balance)
class NilClass
... |
infused/stater | ac60de91919b5006c06031aefe85a289b2fa3425 | Add MIT license | diff --git a/MIT-LICENSE b/MIT-LICENSE
new file mode 100644
index 0000000..dcb225f
--- /dev/null
+++ b/MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2007-2011 Keith Morrison <keithm@infused.org>
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation ... |
infused/stater | a43ecb640eed83b63cad0fdc5b0f8c110177e83b | Setup gemspec and upgrade to RSpec2 | diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..456bd8f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+.rvmrc
+Gemfile.lock
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..7e083bb
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,2 @@
+gemspec
+source :rubygems
diff --git a/Manifest.tx... |
infused/stater | 788b6b0a3df2fdf0333d2789badd26fc7476ff61 | Finish up rspec | diff --git a/README.txt b/README.txt
new file mode 100644
index 0000000..6cd2306
--- /dev/null
+++ b/README.txt
@@ -0,0 +1,3 @@
+== Stater
+
+A time value of money library
\ No newline at end of file
diff --git a/doc/tvalue/amortization_xml.txt b/doc/tvalue/amortization_xml.txt
new file mode 100644
index 0000000..63df9... |
infused/stater | d9ca1f52fee1fcab3e1ddf2577ba5e3e5cdf034c | Convert TVM tests to RSpec | diff --git a/Rakefile b/Rakefile
index d2b209b..28b8efe 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,19 +1,20 @@
-require "rubygems"
-require "hoe"
-require "spec/rake/spectask"
+require 'rubygems'
+require 'hoe'
+require 'spec/rake/spectask'
-Hoe.new("stater", "1.0.0") do |p|
- p.author = "Keith Morrison"
- p.test_g... |
infused/stater | d220f62caf490e39963fc735b1a54f12d9e5a0ad | Add specs | diff --git a/Rakefile b/Rakefile
index 5f417b1..d2b209b 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,7 +1,19 @@
require "rubygems"
require "hoe"
+require "spec/rake/spectask"
Hoe.new("stater", "1.0.0") do |p|
p.author = "Keith Morrison"
p.test_globs = ["test/**/*_test.rb"]
end
+
+desc "Run specs"
+Spec::Rake:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.