Skip to content

Commit 40a411e

Browse files
committed
Initial commit to csv_pirate.
0 parents  commit 40a411e

10 files changed

Lines changed: 111 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.sw?
2+
.DS_Store
3+
coverage

‎LICENSE‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2008 pboling
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

‎README‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
csv_pirate==========
2+
Description goes here.
3+
4+
COPYRIGHT
5+
=========
6+
7+
Copyright (c) 2008 pboling. See LICENSE for details.

‎Rakefile‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
require 'rake'
2+
3+
begin
4+
require 'jeweler'
5+
Jeweler::Tasks.new do |s|
6+
s.name = "csv_pirate"
7+
s.summary = %Q{TODO}
8+
s.email = "peter.boling@peterboling.com"
9+
s.homepage = "http://github.com/pboling/csv_pirate"
10+
s.description = "TODO"
11+
s.authors = ["pboling"]
12+
end
13+
rescue LoadError
14+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
15+
end
16+
17+
require 'rake/rdoctask'
18+
Rake::RDocTask.new do |rdoc|
19+
rdoc.rdoc_dir = 'rdoc'
20+
rdoc.title = 'csv_pirate'
21+
rdoc.options << '--line-numbers' << '--inline-source'
22+
rdoc.rdoc_files.include('README*')
23+
rdoc.rdoc_files.include('lib/**/*.rb')
24+
end
25+
26+
require 'spec/rake/spectask'
27+
Spec::Rake::SpecTask.new(:spec) do |t|
28+
t.libs << 'lib' << 'spec'
29+
t.spec_files = FileList['spec/**/*_spec.rb']
30+
end
31+
32+
Spec::Rake::SpecTask.new(:rcov) do |t|
33+
t.libs << 'lib' << 'spec'
34+
t.spec_files = FileList['spec/**/*_spec.rb']
35+
t.rcov = true
36+
end
37+
38+
begin
39+
require 'cucumber/rake/task'
40+
Cucumber::Rake::Task.new(:features)
41+
rescue LoadError
42+
puts "Cucumber is not available. In order to run features, you must: sudo gem install cucumber"
43+
end
44+
45+
task :default => :spec

‎features/csv_pirate.feature‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Feature: something something
2+
In order to something something
3+
A user something something
4+
something something something
5+
6+
Scenario: something something
7+
Given inspiration
8+
When I create a sweet new gem
9+
Then everyone should see how awesome I am

‎features/steps/csv_pirate_steps.rb‎

Whitespace-only changes.

‎features/support/env.rb‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../../lib')
2+
require 'csv_pirate'
3+
4+
require 'spec/expectations'
5+
6+
require 'test/unit/assertions'
7+
8+
World do |world|
9+
10+
world
11+
end

‎lib/csv_pirate.rb‎

Whitespace-only changes.

‎spec/csv_pirate_spec.rb‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
require File.dirname(__FILE__) + '/spec_helper'
2+
3+
describe "CsvPirate" do
4+
it "fails" do
5+
fail "hey buddy, you should probably rename this file and start specing for real"
6+
end
7+
end

‎spec/spec_helper.rb‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'spec'
2+
3+
$LOAD_PATH.unshift(File.dirname(__FILE__))
4+
5+
require 'csv_pirate'
6+
7+
Spec::Runner.configure do |config|
8+
9+
end

0 commit comments

Comments
 (0)