Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
argent-smith committed Sep 12, 2011
0 parents commit b660c22
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .autotest
@@ -0,0 +1,12 @@
Autotest.add_hook(:initialize) {|at|
at.add_exception %r{^\.git} # ignore Version Control System
at.add_exception %r{^./tmp} # ignore temp files, lest autotest will run again, and again...
at.clear_mappings # take out the default (test/test*rb)
at.add_mapping(%r{^(lib)|(util)/.*\.rb$}) {|f, _|
Dir['spec/**/*.rb']
}
at.add_mapping(%r%^spec/.*\.rb$%) {|filename, _|
filename
}
nil
}
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
*.gem
.bundle
Gemfile.lock
pkg/*
1 change: 1 addition & 0 deletions .rspec
@@ -0,0 +1 @@
-c -f d
10 changes: 10 additions & 0 deletions .travis.yml
@@ -0,0 +1,10 @@
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
- rbx
- rbx-2.0
- jruby
- ruby-head
- ree

6 changes: 6 additions & 0 deletions Gemfile
@@ -0,0 +1,6 @@
source "http://rubygems.org"

# Specify your gem's dependencies in sirup.gemspec
gemspec
gem 'rspec'
gem 'cucumber'
43 changes: 43 additions & 0 deletions Rakefile
@@ -0,0 +1,43 @@
require "bundler/gem_tasks"

# BDD section

# RSpec part
require 'rspec/core/rake_task'
desc "Run specs"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w(--color)
end
namespace :spec do
desc "Run specs with output in documentation format"
RSpec::Core::RakeTask.new(:doc) do |t|
t.rspec_opts = ["--color", "--format d"]
end
end

unless ENV['TRAVIS']
desc "Start Autotest CI"
task :autotest => [".autotest", ".rspec"] do
system "bundle exec autotest"
end
end


# Cucumber part
require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |features|
features.cucumber_opts = "features --tags ~@wip --format progress"
end
namespace :features do
Cucumber::Rake::Task.new(:pretty, "Run Cucumber features with output in pretty format") do |features|
features.cucumber_opts = "features --tags ~@wip --format pretty"
end
Cucumber::Rake::Task.new(:wip, "Run @wip (Work In Progress) Cucumber features") do |features|
features.cucumber_opts = "features --tags @wip --format progress"
end
end

# Default task
desc "Defaul task"
task :default => :spec

Empty file.
2 changes: 2 additions & 0 deletions features/support/env.rb
@@ -0,0 +1,2 @@
require 'rubygems'
require 'bundler/setup'
6 changes: 6 additions & 0 deletions features/support/helpers.rb
@@ -0,0 +1,6 @@
module Sirup
module CucumberHelpers
end
end

World(Sirup::CucumberHelpers)
5 changes: 5 additions & 0 deletions lib/sirup.rb
@@ -0,0 +1,5 @@
require "sirup/version"

module Sirup
# Your code goes here...
end
3 changes: 3 additions & 0 deletions lib/sirup/version.rb
@@ -0,0 +1,3 @@
module Sirup
VERSION = "0.0.0"
end
27 changes: 27 additions & 0 deletions sirup.gemspec
@@ -0,0 +1,27 @@
# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "sirup/version"

Gem::Specification.new do |s|
s.name = "sirup"
s.version = Sirup::VERSION
s.authors = ["Pavel Argentov"]
s.email = ["argentoff@gmail.com"]
s.homepage = "https://github.com/argent-smith"
s.summary = %q{SIruP: pure ruby SIP implementation}
s.description = %q{At this moment this library/script are only intended for testing/pinging/checking the remote SIP server. You are welcome to extend it if you wish!}

s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]

# specify any dependencies here; for example:
s.add_development_dependency "rspec"
s.add_development_dependency "cucumber"
s.add_development_dependency "bddgen"
s.add_development_dependency "ZenTest"
s.add_development_dependency "test-unit"
s.add_development_dependency "redgreen"
end

13 changes: 13 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,13 @@
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require "rubygems"
require "bundler/setup"

require 'rspec'

require 'sirup'

RSpec.configure do |config|
config.fail_fast = true
end

0 comments on commit b660c22

Please sign in to comment.