Skip to content

Git project #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions git/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ git remote add upstream https://github.com/YourGitHandle/Reponame.git
git checkout <new-branch-name>
git merge master
```
You can work through this process with the demo `git_project` in this folder.

# Useful Resources

Expand Down
8 changes: 8 additions & 0 deletions git/git_project/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source "https://rubygems.org"

gem 'sinatra'

group :test do
gem 'rspec'
gem 'rack-test'
end
30 changes: 30 additions & 0 deletions git/git_project/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.2.5)
rack (1.5.2)
rack-protection (1.5.2)
rack
rack-test (0.6.2)
rack (>= 1.0)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.6)
sinatra (1.4.4)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
tilt (1.4.1)

PLATFORMS
ruby

DEPENDENCIES
rack-test
rspec
sinatra
7 changes: 7 additions & 0 deletions git/git_project/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This is a very simple demo app for sudent members of the West Michigan Ruby User Group Traning program to practice using git & github.

If you are a student, please fork this repo: https://github.com/WestMichiganRubyTraining/challenges.git into your own github account, clone the repo onto your development computer, create a new branch, within that branch insert your own github name & link on challenges/git/views/index.html.erb, commit the changes, push the change to your fork, then submit a pull request from your github repo for the original author to authorise the pull request & integrate your change.

Detailed instructions are provided here: https://github.com/WestMichiganRubyTraining/challenges/blob/master/git/README.md


6 changes: 6 additions & 0 deletions git/git_project/app.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
require 'sinatra'
require './lib/app_logic'

get '/' do
erb :'index.html'
end
3 changes: 3 additions & 0 deletions git/git_project/config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
require './app.rb'

run Sinatra::Application
Empty file.
Loading