Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dmathieu committed Oct 27, 2011
0 parents commit 1d32292
Show file tree
Hide file tree
Showing 15 changed files with 159 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -0,0 +1,6 @@
.bundle/
log/*.log
pkg/
tmp/*
*.rbc
Gemfile.lock
2 changes: 2 additions & 0 deletions .rvmrc
@@ -0,0 +1,2 @@
rvm use 1.9.2@ddocus
rvm_gemset_create_on_use_flag=1
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- ruby-head
- ree
- jruby
# Uncomment when I'll be able to bundle install properly locally
#- rbx
#- rbx-2.0
2 changes: 2 additions & 0 deletions Gemfile
@@ -0,0 +1,2 @@
source :rubygems
gemspec
20 changes: 20 additions & 0 deletions MIT-LICENSE
@@ -0,0 +1,20 @@
Copyright 2011 Evome

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5 changes: 5 additions & 0 deletions README.md
@@ -0,0 +1,5 @@
# Deploy Docus

Web interface to easily deploy your application

## Work in progress
24 changes: 24 additions & 0 deletions Rakefile
@@ -0,0 +1,24 @@
# encoding: UTF-8

require 'rake'
require 'rdoc/task'
require 'rake/testtask'

require 'deploy_docus'

task :default => :test

Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'biceps'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README.rdoc')
rdoc.rdoc_files.include('lib/**/*.rb')
end

Rake::TestTask.new do |t|
t.libs << "spec"
t.pattern = "spec/**/*_spec.rb"
t.verbose = true
t.warning = true
end
4 changes: 4 additions & 0 deletions config.ru
@@ -0,0 +1,4 @@
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/lib')
require 'deploy_docus'

run DeployDocus
26 changes: 26 additions & 0 deletions deploy_docus.gemspec
@@ -0,0 +1,26 @@
# encoding: utf-8

$:.unshift File.expand_path('../lib', __FILE__)
require 'deploy_docus/version'

Gem::Specification.new do |s|
s.name = "deploy_docus"
s.version = DeployDocus::VERSION
s.authors = ["Evome"]
s.email = "dev@evome.fr"
s.homepage = "https://github.com/evome/deploy_docus"
s.summary = "Web interface to deploy your application"
s.description = "Deploy your application with a POST request"

s.files = `git ls-files app lib`.split("\n")
s.platform = Gem::Platform::RUBY
s.require_path = 'lib'
s.rubyforge_project = '[none]'

s.add_development_dependency "bundler"
s.add_development_dependency "minitest"
s.add_development_dependency "rack-test"

s.add_dependency 'sinatra'
s.add_dependency 'rake', '>= 0.8.7'
end
11 changes: 11 additions & 0 deletions lib/deploy_docus.rb
@@ -0,0 +1,11 @@
require "rubygems"
require "bundler/setup"

module DeployDocus
autoload :Base, 'deploy_docus/base'
autoload :Version, 'deploy_docus/version'

def self.call(env)
Base.call(env)
end
end
10 changes: 10 additions & 0 deletions lib/deploy_docus/base.rb
@@ -0,0 +1,10 @@
require 'sinatra/base'

module DeployDocus
class Base < Sinatra::Base

get '/' do
"DeployDocus"
end
end
end
3 changes: 3 additions & 0 deletions lib/deploy_docus/version.rb
@@ -0,0 +1,3 @@
module DeployDocus
VERSION = '0.0.1'
end
12 changes: 12 additions & 0 deletions spec/base_spec.rb
@@ -0,0 +1,12 @@
require 'spec_helper'

describe DeployDocus::Base do
include DeployDocus::App

describe "GET /" do
it "should succeed" do
get '/'
assert last_response.ok?, "the request should succeed"
end
end
end
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,11 @@
ENV["RACK_ENV"] ||= 'test'

gem 'minitest'
require 'minitest/autorun'
require 'minitest/spec'

$:<< 'lib'
require 'deploy_docus'

# Load support files
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
13 changes: 13 additions & 0 deletions spec/support/app.rb
@@ -0,0 +1,13 @@
require 'rack/test'

module DeployDocus::App

def self.included(klass)
klass.class_eval do
include Rack::Test::Methods

let(:app) { DeployDocus }

end
end
end

0 comments on commit 1d32292

Please sign in to comment.