Skip to content

Commit

Permalink
Converted to latest RSpec, Bundler, etc. and bumped to 1.0.1.
Browse files Browse the repository at this point in the history
Now using bundler for deployment.
  • Loading branch information
notahat committed Feb 6, 2011
1 parent fbb9c3b commit 490928b
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 91 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -16,7 +16,9 @@ tmtags
## PROJECT::GENERAL ## PROJECT::GENERAL
coverage coverage
rdoc rdoc
pkg pkg/*
*.gem
.bundle


## PROJECT::SPECIFIC ## PROJECT::SPECIFIC
tmp/* tmp/*
4 changes: 4 additions & 0 deletions Gemfile
@@ -0,0 +1,4 @@
source "http://rubygems.org"

# Specify your gem's dependencies in safe_shell.gemspec
gemspec
24 changes: 24 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,24 @@
PATH
remote: .
specs:
safe_shell (1.0.1)

GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.1.2)
rspec (2.5.0)
rspec-core (~> 2.5.0)
rspec-expectations (~> 2.5.0)
rspec-mocks (~> 2.5.0)
rspec-core (2.5.1)
rspec-expectations (2.5.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.5.0)

PLATFORMS
ruby

DEPENDENCIES
rspec
safe_shell!
36 changes: 5 additions & 31 deletions Rakefile
@@ -1,39 +1,13 @@
require 'rubygems' require 'bundler'
require 'rake' Bundler::GemHelper.install_tasks


begin require 'rspec/core/rake_task'
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "safe_shell"
gem.summary = %Q{Safely execute shell commands and get their output.}
gem.description = %Q{Execute shell commands and get the resulting output, but without the security problems of Ruby's backtick operator.}
gem.email = "pete@notahat.com"
gem.homepage = "http://github.com/envato/safe_shell"
gem.authors = ["Envato", "Ian Leitch", "Pete Yandell"]
gem.add_development_dependency "rspec", ">= 1.2.9"
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
end
Jeweler::GemcutterTasks.new
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
end

require 'spec/rake/spectask'
Spec::Rake::SpecTask.new(:spec) do |spec|
spec.libs << 'lib' << 'spec'
spec.spec_files = FileList['spec/**/*_spec.rb']
end


Spec::Rake::SpecTask.new(:rcov) do |spec| RSpec::Core::RakeTask.new(:spec)
spec.libs << 'lib' << 'spec'
spec.pattern = 'spec/**/*_spec.rb'
spec.rcov = true
end

task :spec => :check_dependencies


task :default => :spec task :default => :spec



require 'rake/rdoctask' require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc| Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : "" version = File.exist?('VERSION') ? File.read('VERSION') : ""
Expand Down
1 change: 0 additions & 1 deletion VERSION

This file was deleted.

3 changes: 3 additions & 0 deletions lib/safe_shell/version.rb
@@ -0,0 +1,3 @@
module SafeShell
VERSION = "1.0.1"
end
65 changes: 17 additions & 48 deletions safe_shell.gemspec
@@ -1,55 +1,24 @@
# Generated by jeweler
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*- # -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "safe_shell/version"


Gem::Specification.new do |s| Gem::Specification.new do |s|
s.name = %q{safe_shell} s.name = "safe_shell"
s.version = "1.0.0" s.version = SafeShell::VERSION

s.platform = Gem::Platform::RUBY
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Envato", "Ian Leitch", "Pete Yandell"]
s.authors = ["Envato", "Ian Leitch", "Pete Yandell"] s.email = ["pete@notahat.com"]
s.date = %q{2010-11-08} s.homepage = "http://github.com/envato/safe_shell"
s.summary = %q{Safely execute shell commands and get their output.}
s.description = %q{Execute shell commands and get the resulting output, but without the security problems of Ruby’s backtick operator.} s.description = %q{Execute shell commands and get the resulting output, but without the security problems of Ruby’s backtick operator.}
s.email = %q{pete@notahat.com}
s.extra_rdoc_files = [
"LICENSE",
"README.rdoc"
]
s.files = [
".document",
".gitignore",
"LICENSE",
"README.rdoc",
"Rakefile",
"VERSION",
"lib/safe_shell.rb",
"spec/safe_shell_spec.rb",
"spec/spec.opts",
"spec/spec_helper.rb",
"tmp/.gitkeep"
]
s.homepage = %q{http://github.com/envato/safe_shell}
s.rdoc_options = ["--charset=UTF-8"]
s.require_paths = ["lib"]
s.rubygems_version = %q{1.3.7}
s.summary = %q{Safely execute shell commands and get their output.}
s.test_files = [
"spec/safe_shell_spec.rb",
"spec/spec_helper.rb"
]


if s.respond_to? :specification_version then s.add_development_dependency "rspec"
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.rubyforge_project = "safe_shell"
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
else
s.add_dependency(%q<rspec>, [">= 1.2.9"])
end
else
s.add_dependency(%q<rspec>, [">= 1.2.9"])
end
end


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"]
s.extra_rdoc_files = ["LICENSE", "README.rdoc"]
end
2 changes: 1 addition & 1 deletion spec/safe_shell_spec.rb
@@ -1,4 +1,4 @@
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') require 'safe_shell'


describe "SafeShell" do describe "SafeShell" do


Expand Down
9 changes: 0 additions & 9 deletions spec/spec_helper.rb

This file was deleted.

0 comments on commit 490928b

Please sign in to comment.