-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some bits and pieces to get us started
- Loading branch information
1 parent
f302a05
commit 6b58712
Showing
7 changed files
with
62 additions
and
5 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 |
---|---|---|
|
@@ -2,3 +2,9 @@ | |
.bundle | ||
Gemfile.lock | ||
pkg/* | ||
|
||
.rvmrc | ||
.yardoc | ||
doc | ||
spec/reports | ||
vendor |
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,3 @@ | ||
--format documentation | ||
--colour | ||
--tty |
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 +1,21 @@ | ||
require 'bundler/gem_tasks' | ||
|
||
require 'rspec/core' | ||
require 'rspec/core/rake_task' | ||
require 'ci/reporter/rake/rspec' | ||
RSpec::Core::RakeTask.new(:spec) do |spec| | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
spec.rspec_opts = '--color' | ||
end | ||
|
||
RSpec::Core::RakeTask.new(:rcov) do |spec| | ||
spec.pattern = 'spec/**/*_spec.rb' | ||
spec.rcov = true | ||
spec.rspec_opts = '--color' | ||
end | ||
|
||
task :default => :spec | ||
task :ci => ['ci:setup:rspec', :spec] | ||
|
||
require 'yard' | ||
YARD::Rake::YardocTask.new |
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,5 +1,9 @@ | ||
require "ruby_ami/version" | ||
%w{ | ||
active_support/dependencies/autoload | ||
}.each { |f| require f } | ||
|
||
module RubyAmi | ||
# Your code goes here... | ||
module RubyAMI | ||
extend ActiveSupport::Autoload | ||
|
||
autoload :Version | ||
end |
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,3 +1,3 @@ | ||
module RubyAmi | ||
module RubyAMI | ||
VERSION = "0.0.1" | ||
end |
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ require "ruby_ami/version" | |
|
||
Gem::Specification.new do |s| | ||
s.name = "ruby_ami" | ||
s.version = RubyAmi::VERSION | ||
s.version = RubyAMI::VERSION | ||
s.authors = ["Ben Langfeld"] | ||
s.email = ["[email protected]"] | ||
s.homepage = "" | ||
|
@@ -17,4 +17,16 @@ Gem::Specification.new do |s| | |
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.add_runtime_dependency %q<activesupport>, [">= 3.0.7"] | ||
|
||
s.add_development_dependency %q<bundler>, ["~> 1.0.0"] | ||
s.add_development_dependency %q<rspec>, ["~> 2.3.0"] | ||
s.add_development_dependency %q<ci_reporter>, [">= 1.6.3"] | ||
s.add_development_dependency %q<yard>, ["~> 0.6.0"] | ||
s.add_development_dependency %q<bluecloth>, [">= 0"] | ||
s.add_development_dependency %q<rcov>, [">= 0"] | ||
s.add_development_dependency %q<rake>, [">= 0"] | ||
s.add_development_dependency %q<mocha>, [">= 0"] | ||
s.add_development_dependency %q<i18n>, [">= 0"] | ||
end |
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,12 @@ | ||
require 'ruby_ami' | ||
require 'mocha' | ||
|
||
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} | ||
|
||
include RubyAMI | ||
|
||
RSpec.configure do |config| | ||
config.mock_with :mocha | ||
config.filter_run :focus => true | ||
config.run_all_when_everything_filtered = true | ||
end |