Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Some bits and pieces to get us started

  • Loading branch information...
commit 6b58712d26eb417335fd3b8591162440198d410d 1 parent f302a05
Ben Langfeld benlangfeld authored
6 .gitignore
View
@@ -2,3 +2,9 @@
.bundle
Gemfile.lock
pkg/*
+
+.rvmrc
+.yardoc
+doc
+spec/reports
+vendor
3  .rspec
View
@@ -0,0 +1,3 @@
+--format documentation
+--colour
+--tty
20 Rakefile
View
@@ -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 lib/ruby_ami.rb
View
@@ -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  lib/ruby_ami/version.rb
View
@@ -1,3 +1,3 @@
-module RubyAmi
+module RubyAMI
VERSION = "0.0.1"
end
14 ruby_ami.gemspec
View
@@ -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 = ["ben@langfeld.me"]
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
12 spec/spec_helper.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.