Skip to content

Commit

Permalink
Some bits and pieces to get us started
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Jul 4, 2011
1 parent f302a05 commit 6b58712
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
.bundle
Gemfile.lock
pkg/*

.rvmrc
.yardoc
doc
spec/reports
vendor
3 changes: 3 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--format documentation
--colour
--tty
20 changes: 20 additions & 0 deletions Rakefile
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
10 changes: 7 additions & 3 deletions lib/ruby_ami.rb
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
2 changes: 1 addition & 1 deletion lib/ruby_ami/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RubyAmi
module RubyAMI
VERSION = "0.0.1"
end
14 changes: 13 additions & 1 deletion ruby_ami.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand All @@ -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
12 changes: 12 additions & 0 deletions spec/spec_helper.rb
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

0 comments on commit 6b58712

Please sign in to comment.