sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential
sudo apt-get install libssl-dev libreadline-dev libyaml-dev libsqlite3-dev
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## OS dependencies | |
sudo apt-get update | |
sudo apt-get install git-core curl zlib1g-dev build-essential | |
sudo apt-get install libssl-dev libreadline-dev libyaml-dev libsqlite3-dev | |
sudo apt-get install sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), '..', 'app.rb') | |
require 'sinatra' | |
require 'rack/test' | |
set :environment, :test | |
set :run, false | |
set :raise_errors, true | |
set :logging, false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'https://rubygems.org/' | |
gem 'activerecord', '4.2.8' | |
gem 'sinatra', '1.4.8' | |
gem 'sinatra-activerecord', '2.0.13' | |
gem 'sqlite3', '1.3.13' | |
gem 'capybara', '2.13.0' | |
gem 'cucumber', '2.4.0' | |
gem 'cucumber-sinatra', '0.5.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>New Article</h1> | |
<form action="/articles" method="post"> | |
<label for="article_title">Title:</label><br /> | |
<input id="article_title" name="article[title]" type="text" value="<%= @article.title %>" /> | |
<br /> | |
<label for="article_text">Body:</label><br /> | |
<textarea id="article_text" name="article[text]" rows="5"><%= @article.text %></textarea> | |
<br /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configure :development do | |
set :database, {adapter: 'sqlite3', database: 'blog_dev.sqlite3'} | |
set :show_exceptions, true | |
end | |
configure :test do | |
set :database, {adapter: 'sqlite3', database: 'blog_test.sqlite3'} | |
set :show_exceptions, true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['RACK_ENV'] = 'test' | |
require File.join(File.dirname(__FILE__), '..', 'app.rb') | |
require 'rack/test' | |
def app | |
Sinatra::Application | |
end | |
RSpec.configure do |config| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jaybrueder on github. | |
* I am jaybrueder (https://keybase.io/jaybrueder) on keybase. | |
* I have a public key whose fingerprint is EDE7 EE48 E434 B972 402F CFB9 99E0 917B 0ACF 5646 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo apt-get install git-all libssl-dev | |
$ cd /tmp && wget https://github.com/AGWA/git-crypt/archive/0.5.0.zip | |
$ unzip 0.5.0.zip && cd git-crypt-0.5.0/ | |
$ make && sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# prevent adding of unencrypted files | |
if test $(git-crypt status | grep "WARNING" | wc -l) != 0 | |
then | |
echo "WARNING: There are unencrypted files in your staging area. Commit aborted!" | |
exit 1; | |
fi |
OlderNewer