Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
r18g-ark-01 committed Feb 22, 2017
0 parents commit 011be5b
Show file tree
Hide file tree
Showing 11 changed files with 199 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_BIN: "bin"
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.3
8 changes: 8 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# frozen_string_literal: true
source "https://rubygems.org"

# gem "rails"
gem 'sinatra'
gem 'unicorn'
gem 'grape'
gem 'rack'
75 changes: 75 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (5.0.1)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
axiom-types (0.1.1)
descendants_tracker (~> 0.0.4)
ice_nine (~> 0.11.0)
thread_safe (~> 0.3, >= 0.3.1)
builder (3.2.3)
coercible (1.0.0)
descendants_tracker (~> 0.0.1)
concurrent-ruby (1.0.4)
descendants_tracker (0.0.4)
thread_safe (~> 0.3, >= 0.3.1)
equalizer (0.0.11)
grape (0.19.1)
activesupport
builder
hashie (>= 2.1.0)
multi_json (>= 1.3.2)
multi_xml (>= 0.5.2)
mustermann-grape (~> 0.4.0)
rack (>= 1.3.0)
rack-accept
virtus (>= 1.0.0)
hashie (3.5.4)
i18n (0.8.1)
ice_nine (0.11.2)
kgio (2.11.0)
minitest (5.10.1)
multi_json (1.12.1)
multi_xml (0.6.0)
mustermann (0.4.0)
tool (~> 0.2)
mustermann-grape (0.4.0)
mustermann (= 0.4.0)
rack (1.6.5)
rack-accept (0.4.5)
rack (>= 0.4)
rack-protection (1.5.3)
rack
raindrops (0.17.0)
sinatra (1.4.8)
rack (~> 1.5)
rack-protection (~> 1.4)
tilt (>= 1.3, < 3)
thread_safe (0.3.6)
tilt (2.0.6)
tool (0.2.3)
tzinfo (1.2.2)
thread_safe (~> 0.1)
unicorn (5.2.0)
kgio (~> 2.6)
raindrops (~> 0.7)
virtus (1.0.5)
axiom-types (~> 0.1)
coercible (~> 1.0)
descendants_tracker (~> 0.0, >= 0.0.3)
equalizer (~> 0.0, >= 0.0.9)

PLATFORMS
ruby

DEPENDENCIES
grape
rack
sinatra
unicorn

BUNDLED WITH
1.14.5
18 changes: 18 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
require 'sinatra'
require 'grape'

class ArkManagerAPI < Grape::API
version 'v1', using: :header, vendor: 'round18gaming'
format :json
prefix :api

get :hello do
{ hello: 'world' }
end
end

class ArkManagerWeb < Sinatra::Base
get '/' do
'Hello world.'
end
end
17 changes: 17 additions & 0 deletions bin/bundler
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'bundler' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("bundler", "bundler")
17 changes: 17 additions & 0 deletions bin/rackup
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'rackup' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("rack", "rackup")
17 changes: 17 additions & 0 deletions bin/tilt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'tilt' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("tilt", "tilt")
17 changes: 17 additions & 0 deletions bin/unicorn
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'unicorn' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("unicorn", "unicorn")
17 changes: 17 additions & 0 deletions bin/unicorn_rails
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env ruby
# frozen_string_literal: true
#
# This file was generated by Bundler.
#
# The application 'unicorn_rails' is installed as part of a gem, and
# this file is here to facilitate running it.
#

require "pathname"
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
Pathname.new(__FILE__).realpath)

require "rubygems"
require "bundler/setup"

load Gem.bin_path("unicorn", "unicorn_rails")
10 changes: 10 additions & 0 deletions config.ru
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
require_relative 'app'

use Rack::Session::Cookie, :key => 'rack.session',
:domain => 'ark.r18g.us',
:path => '/',
:expire_after => 2592000,
:secret => 'Exde#$LTj-aBRaRU?JH3L54S$Z%TrNZntV5h%d3cr?p34K4u&M8mS8Ab&t5P@aVk'


run Rack::Cascade.new [ArkManagerAPI, ArkManagerWeb]

0 comments on commit 011be5b

Please sign in to comment.