Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added the git gem & a couple of basic classes

  • Loading branch information...
commit eb1c7a6e4cbcf28a9ddb578108c308b0ae8070c0 1 parent bd67329
@srushti srushti authored
View
6 .gitignore
@@ -0,0 +1,6 @@
+.DS_Store
+.bundle
+log/*
+tmp/*
+.rvmrc
+tags
View
9 Gemfile
@@ -0,0 +1,9 @@
+source "http://rubygems.org"
+
+gem 'sinatra', '= 1.1.0'
+gem 'sinatra_more', :require => ''
+gem 'git'
+
+group :development do
+ gem 'jeweler'
+end
View
25 Gemfile.lock
@@ -0,0 +1,25 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ activesupport (3.0.3)
+ git (1.2.5)
+ rack (1.2.1)
+ sinatra (1.1.0)
+ rack (~> 1.1)
+ tilt (~> 1.1)
+ sinatra_more (0.3.40)
+ activesupport (>= 2.2.2)
+ bundler (>= 0.9.2)
+ sinatra (>= 0.9.2)
+ thor (>= 0.11.8)
+ tilt (>= 0.2)
+ thor (0.14.6)
+ tilt (1.1)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ git
+ sinatra (= 1.1.0)
+ sinatra_more
View
0  README
No changes.
View
21 Rakefile
@@ -0,0 +1,21 @@
+require 'rubygems'
+
+begin
+ require 'jeweler'
+ Jeweler::Tasks.new do |gem|
+ gem.name = "goldberg"
+ gem.email = "srushti@c42.in"
+ gem.homepage = "http://c42.in/open_source"
+ gem.authors = "Srushti Ambekallu"
+ gem.files = Dir.glob("{bin/**/*,lib/**/*.rb}")
+ # gem.test_files = FileList["test/*.rb"]
+ gem.extra_rdoc_files = ["README"]
+
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
+ end
+
+ Jeweler::RubyforgeTasks.new
+rescue LoadError
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
+end
+
View
1  VERSION
@@ -0,0 +1 @@
+0.0.1
View
5 goldberg
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+
+load "#{File.dirname(__FILE__)}/lib/goldberg/init.rb"
+Goldberg::Init.new.run
+
View
66 goldberg.gemspec
@@ -1,21 +1,49 @@
-lib = File.expand_path('../lib/', __FILE__)
-$:.unshift lib unless $:.include?(lib)
-
-Gem::Specification.new do |s|
- s.name = "goldberg"
- s.version = "0.0.1"
- s.authors = ["Srushti Ambekallu"]
- s.email = ["srushti@c42.in"]
- s.homepage = "http://c42.in/open_source"
- s.summary = "CI server with support for pipelines"
-
- s.required_rubygems_version = ">= 1.3.7"
-
- s.files = Dir.glob("{bin/**/*,lib/**/*.rb}")
- # s.extra_rdoc_files = ["README.rdoc"]
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_path = 'lib'
+# Generated by jeweler
+# DO NOT EDIT THIS FILE DIRECTLY
+# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
+# -*- encoding: utf-8 -*-
- s.add_development_dependency "rspec", ["~> 2.0.0.beta.22"]
+Gem::Specification.new do |s|
+ s.name = %q{goldberg}
+ s.version = "0.0.1"
+
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
+ s.authors = ["Srushti Ambekallu"]
+ s.date = %q{2010-11-29}
+ s.email = %q{srushti@c42.in}
+ s.extra_rdoc_files = [
+ "README"
+ ]
+ s.files = [
+ "lib/goldberg.rb",
+ "lib/goldberg/init.rb",
+ "lib/goldberg/job.rb"
+ ]
+ s.homepage = %q{http://c42.in/open_source}
+ s.require_paths = ["lib"]
+ s.rubygems_version = %q{1.3.7}
+ s.summary = nil
+
+ if s.respond_to? :specification_version then
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
+ s.specification_version = 3
+
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+ s.add_runtime_dependency(%q<sinatra>, ["= 1.1.0"])
+ s.add_runtime_dependency(%q<sinatra_more>, [">= 0"])
+ s.add_runtime_dependency(%q<git>, [">= 0"])
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
+ else
+ s.add_dependency(%q<sinatra>, ["= 1.1.0"])
+ s.add_dependency(%q<sinatra_more>, [">= 0"])
+ s.add_dependency(%q<git>, [">= 0"])
+ s.add_dependency(%q<jeweler>, [">= 0"])
+ end
+ else
+ s.add_dependency(%q<sinatra>, ["= 1.1.0"])
+ s.add_dependency(%q<sinatra_more>, [">= 0"])
+ s.add_dependency(%q<git>, [">= 0"])
+ s.add_dependency(%q<jeweler>, [">= 0"])
+ end
end
-
+
View
6 lib/goldberg.rb
@@ -0,0 +1,6 @@
+require 'sinatra'
+
+get '/' do
+ 'Hello world!'
+end
+
View
11 lib/goldberg/init.rb
@@ -0,0 +1,11 @@
+module Goldberg
+ class Init
+ def run
+ puts "You tried to run with #{ARGV}"
+ end
+
+ def add
+ Job.add(:url => ARGV[0], :name => ARGV[1])
+ end
+ end
+end
View
7 lib/goldberg/job.rb
@@ -0,0 +1,7 @@
+module Goldberg
+ class Job
+ def self.add(options)
+ puts "url #{options[:url]}, with name #{options[:name]}"
+ end
+ end
+end
View
0  projects/.gitkeep
No changes.
Please sign in to comment.
Something went wrong with that request. Please try again.