Skip to content

Commit

Permalink
Spring 2022 Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jelaniwoods committed Apr 7, 2022
1 parent deb8afc commit 75c16c1
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
tmp/*
.theia/.ltici_apitoken.yml
.vscode/.ltici_apitoken.yml
4 changes: 2 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: patrickmckernin/hashchapter22
image: jelaniwoods/appdev2022-ruby-chapters

tasks:
- init: bin/setup
Expand All @@ -13,4 +13,4 @@ vscode:
extensions:
- vortizhe.simple-ruby-erb
- mbessey.vscode-rufo

- aliariff.vscode-erb-beautify
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ source 'https://rubygems.org'
ruby '2.7.3'

gem "ruby_grade_runner", :git => "https://github.com/firstdraft/ruby_grade_runner.git"
gem "web_git", :git => "https://github.com/firstdraft/web_git.git", :branch => "spring2020"

gem "web_git", :git => "https://github.com/firstdraft/web_git.git"
gem "rake"

group :test do
Expand Down
33 changes: 16 additions & 17 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
GIT
remote: https://github.com/firstdraft/ruby_grade_runner.git
revision: 95c8a133a9470ebd6a2324f5b6ea9610760466ad
revision: 883e5c0ab16c4a7a2d19ea3ab0df8b12dce4e7c4
specs:
ruby_grade_runner (0.0.5.1)
oj

GIT
remote: https://github.com/firstdraft/web_git.git
revision: a2be64e762eb0d79a204ab8cf941e99c1b2a2a8d
branch: spring2020
revision: 934e081e566dc25e6510b4c8780330e7198b6e5e
specs:
web_git (0.1.0)
actionview
Expand All @@ -21,42 +20,42 @@ GIT
GEM
remote: https://rubygems.org/
specs:
actionview (7.0.1)
activesupport (= 7.0.1)
actionview (7.0.2.3)
activesupport (= 7.0.2.3)
builder (~> 3.1)
erubi (~> 1.4)
rails-dom-testing (~> 2.0)
rails-html-sanitizer (~> 1.1, >= 1.2.0)
activesupport (7.0.1)
activesupport (7.0.2.3)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
ansispan (0.0.1)
builder (3.2.4)
concurrent-ruby (1.1.9)
concurrent-ruby (1.1.10)
crass (1.0.6)
diff-lcs (1.5.0)
diffy (3.4.0)
erubi (1.10.0)
git (1.10.2)
rchardet (~> 1.8)
i18n (1.8.11)
i18n (1.10.0)
concurrent-ruby (~> 1.0)
loofah (2.13.0)
loofah (2.16.0)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
mini_portile2 (2.7.1)
mini_portile2 (2.8.0)
minitest (5.15.0)
mustermann (1.1.1)
ruby2_keywords (~> 0.0.1)
nokogiri (1.13.1)
mini_portile2 (~> 2.7.0)
nokogiri (1.13.3)
mini_portile2 (~> 2.8.0)
racc (~> 1.4)
oj (3.13.11)
racc (1.6.0)
rack (2.2.3)
rack-protection (2.1.0)
rack-protection (2.2.0)
rack
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
Expand All @@ -71,7 +70,7 @@ GEM
rspec-mocks (~> 3.10.0)
rspec-core (3.10.1)
rspec-support (~> 3.10.0)
rspec-expectations (3.10.2)
rspec-expectations (3.10.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.10.0)
rspec-mocks (3.10.2)
Expand All @@ -80,15 +79,15 @@ GEM
rspec-support (3.10.3)
ruby2_keywords (0.0.5)
rufo (0.13.0)
sinatra (2.1.0)
sinatra (2.2.0)
mustermann (~> 1.0)
rack (~> 2.2)
rack-protection (= 2.1.0)
rack-protection (= 2.2.0)
tilt (~> 2.0)
tilt (2.0.10)
tzinfo (2.0.4)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2021.5)
tzinfo-data (1.2022.1)
tzinfo (>= 1.0.0)

PLATFORMS
Expand Down
12 changes: 11 additions & 1 deletion config.ru
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
require "bundler/setup"
require 'bundler/setup'
require "web_git"

map '/' do
dir = Gem::Specification.find_by_name('web_git').gem_dir
path = dir + '/lib/views/index.html'
default_homepage = File.read(path)
app = proc do |env|
[200, { 'Content-Type' => 'text/html' }, [default_homepage]]
end
run app
end

map '/git' do
run WebGit::Server
end

0 comments on commit 75c16c1

Please sign in to comment.