-
Notifications
You must be signed in to change notification settings - Fork 10
Basic POST request handling added #8
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
sriram-rao
wants to merge
14
commits into
vikassy:master
Choose a base branch
from
sriram-rao:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
78ce811
Nothing changed
sriram-rao 4ccef70
Merge remote-tracking branch 'upstream/master'
sriram-rao ffaf4a1
Merge remote-tracking branch 'upstream/master'
sriram-rao f4ba6d9
Merge remote-tracking branch 'upstream/master'
sriram-rao 848a4af
Previous version
sriram-rao b491ff5
Previous files
sriram-rao 7b0d62d
Previous files
sriram-rao 053190b
Added basic POST request handling
sriram-rao c748b36
Added migration for authentication table
sriram-rao 6a85413
Added Authentication model
sriram-rao fab4108
Merge remote-tracking branch 'upstream/master'
sriram-rao 9278c72
Deleted conflict files
sriram-rao cccfcd1
Deleted files
sriram-rao a9eb556
changed dbconnect
sriram-rao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,5 @@ | ||
| source "https://rubygems.org" | ||
|
|
||
| ruby '2.0.0' | ||
|
|
||
| gem 'mechanize' | ||
| gem 'sanitize' | ||
| gem 'sinatra' | ||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| #the class name must be the camelcased version of the filename | ||
| class CreateAuthenticationTable < ActiveRecord::Migration | ||
| def up | ||
| create_table :authentication do |t| | ||
| t.string :server_name | ||
| t.string :server_address | ||
| t.string :authentication_token | ||
| end | ||
| end | ||
|
|
||
| def down | ||
| drop_table :authentication | ||
| end | ||
| end | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| require 'active_record' | ||
| require_relative "../dbconnect.rb" | ||
| #Include all database tables classes | ||
|
|
||
| class Authentication < ActiveRecord::Base | ||
|
|
||
| attr_accessible :server_name, :server_address, :authentication_token | ||
|
|
||
| end |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| <p>Words are <%= @words.join %></p> | ||
| <p>Link is <%= @link %></p> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the model for this ???