-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4472e61
commit a01de02
Showing
7 changed files
with
41 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
source "http://rubygems.org" | ||
# Add dependencies required to use your gem here. | ||
# Example: | ||
# gem "activesupport", ">= 2.3.5" | ||
|
||
# Add dependencies to develop your gem here. | ||
# Include everything needed to run rake, tests, features, etc. | ||
group :development do | ||
gem "jeweler", "~> 1.5.2" | ||
end | ||
gemspec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,15 +18,10 @@ Jeweler::Tasks.new do |gem| | |
gem.description = %Q{Give your application or gem an interactive shell, complete with custom prompts, tab completion, and various callbacks. Commands are defined as Ruby methods and can be grouped into logical subshells.} | ||
gem.email = "[email protected]" | ||
gem.authors = ["Andy Rossmeissl"] | ||
gem.add_development_dependency 'aruba', '~> 0.3.2' | ||
end | ||
Jeweler::RubygemsDotOrgTasks.new | ||
|
||
require 'rake/rdoctask' | ||
Rake::RDocTask.new do |rdoc| | ||
version = File.exist?('VERSION') ? File.read('VERSION') : "" | ||
|
||
rdoc.rdoc_dir = 'rdoc' | ||
rdoc.title = "bombshell #{version}" | ||
rdoc.rdoc_files.include('README*') | ||
rdoc.rdoc_files.include('lib/**/*.rb') | ||
end | ||
require 'cucumber/rake/task' | ||
Cucumber::Rake::Task.new | ||
task :default => :cucumber |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Feature: Custom shell | ||
|
||
In order to allow my users to explore my library | ||
As a Ruby library developer | ||
I want to give them an interactive shell | ||
|
||
Scenario: Running the shell | ||
Given a file named "fooshell.rb" with: | ||
""" | ||
require 'bombshell' | ||
module Foo | ||
class Shell < Bombshell::Environment | ||
include Bombshell::Shell | ||
end | ||
end | ||
Bombshell.launch Foo::Shell | ||
""" | ||
When I run "ruby fooshell.rb" interactively | ||
And I type "quit" | ||
Then the output should contain: | ||
""" | ||
[Bombshell] | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib') | ||
require 'aruba/cucumber' | ||
require 'fileutils' | ||
require 'rspec/expectations' | ||
require 'bombshell' | ||
|
||
Before do | ||
@aruba_io_wait_seconds = 1 | ||
@dirs = [File.join(ENV['HOME'], 'bombshell_features')] | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.