Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: kourge/rageriffic
base: 792e32a52b
...
head fork: kourge/rageriffic
compare: 49d7f8c9ed
Checking mergeability… Don't worry, you can still create the pull request.
  • 4 commits
  • 4 files changed
  • 0 commit comments
  • 2 contributors
Showing with 6 additions and 7 deletions.
  1. +1 −0  app.rb
  2. +1 −6 config-sample.yaml
  3. +1 −1  database.rb
  4. +3 −0  preamble.rb
View
1  app.rb
@@ -11,6 +11,7 @@ class Rageriffic < Sinatra::Application
:templates => File.expand_path('templates/')
}
+ register Mustache::Sinatra
require 'views/layout'
get '/' do
View
7 config-sample.yaml
@@ -1,8 +1,3 @@
-db:
- hostname: localhost
- username: user
- password: passw0rd
- port: 3306
- database: rageriffic_db
+db: "mysql://username:password@hostname/database"
View
2  database.rb
@@ -1,7 +1,7 @@
require 'sequel'
-DB = Sequel.connect(ENV['DATABASE_URL'])
+DB = Sequel.connect(SETTINGS['db'])
class Round < Sequel::Model
end
View
3  preamble.rb
@@ -0,0 +1,3 @@
+
+SETTINGS = YAML.load_file('config.yaml')
+

No commit comments for this range

Something went wrong with that request. Please try again.