Skip to content
Browse files

more initialization of the project

  • Loading branch information...
0 parents commit a865b25b708500013f903356d0c43a4c9fa8de3d @cheezy committed May 3, 2012
Showing with 164 additions and 0 deletions.
  1. +17 −0 .gitignore
  2. +1 −0 .rvmrc
  3. +12 −0 Gemfile
  4. +16 −0 Guardfile
  5. +22 −0 LICENSE
  6. +29 −0 README.md
  7. +25 −0 Rakefile
  8. +1 −0 cucumber.yml
  9. +17 −0 fig_newton.gemspec
  10. +5 −0 lib/fig_newton.rb
  11. +3 −0 lib/fig_newton/version.rb
  12. +16 −0 spec/spec_helper.rb
17 .gitignore
@@ -0,0 +1,17 @@
+*.gem
+*.rbc
+.bundle
+.config
+.yardoc
+Gemfile.lock
+InstalledFiles
+_yardoc
+coverage
+doc/
+lib/bundler/man
+pkg
+rdoc
+spec/reports
+test/tmp
+test/version_tmp
+tmp
1 .rvmrc
@@ -0,0 +1 @@
+rvm 1.9.3-p0@data_magic --create
12 Gemfile
@@ -0,0 +1,12 @@
+source 'https://rubygems.org'
+
+gem 'rake'
+gem 'fuubar'
+gem 'fuubar-cucumber'
+gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
+gem 'growl'
+gem 'guard-rspec'
+gem 'guard-cucumber'
+
+# Specify your gem's dependencies in fig_newton.gemspec
+gemspec
16 Guardfile
@@ -0,0 +1,16 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'rspec', :cli => '--color --format Fuubar' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+end
+
+guard 'cucumber', :notification => true, :cli => '--profile default' do
+ watch(%r{^features/.+\.feature$})
+ watch(%r{^features/support/.+$}) { 'features' }
+ watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
+ watch(%r{^lib/.+\.rb$}) { 'features' }
+ watch(%r{^features/yaml/.+$}) { 'features' }
+end
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Jeffrey S. Morgan
+
+MIT License
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 README.md
@@ -0,0 +1,29 @@
+# FigNewton
+
+TODO: Write a gem description
+
+## Installation
+
+Add this line to your application's Gemfile:
+
+ gem 'fig_newton'
+
+And then execute:
+
+ $ bundle
+
+Or install it yourself as:
+
+ $ gem install fig_newton
+
+## Usage
+
+TODO: Write usage instructions here
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Commit your changes (`git commit -am 'Added some feature'`)
+4. Push to the branch (`git push origin my-new-feature`)
+5. Create new Pull Request
25 Rakefile
@@ -0,0 +1,25 @@
+#!/usr/bin/env rake
+require "bundler/gem_tasks"
+
+require 'rspec/core/rake_task'
+require 'cucumber'
+require 'cucumber/rake/task'
+
+RSpec::Core::RakeTask.new(:spec) do |spec|
+ spec.ruby_opts = "-I lib:spec"
+ spec.pattern = 'spec/**/*_spec.rb'
+end
+task :spec
+
+Cucumber::Rake::Task.new(:features, "Run features") do |t|
+ t.profile = "default"
+end
+
+desc 'Run all specs and cukes'
+task :test => ['spec', 'features']
+
+task :lib do
+ $LOAD_PATH.unshift(File.expand_path("lib", File.dirname(__FILE__)))
+end
+
+task :default => :test
1 cucumber.yml
@@ -0,0 +1 @@
+default: --no-source --color --format Cucumber::Formatter::Fuubar
17 fig_newton.gemspec
@@ -0,0 +1,17 @@
+# -*- encoding: utf-8 -*-
+require File.expand_path('../lib/fig_newton/version', __FILE__)
+
+Gem::Specification.new do |gem|
+ gem.authors = ["Jeff Morgan"]
+ gem.email = ["jeff.morgan@leandog.com"]
+ gem.description = %q{Provides a simple mechanism to maintain and use different configurations stored in yml files.}
+ gem.summary = %q{Provides a simple mechanism to maintain and use different configurations stored in yml files.}
+ gem.homepage = "http://github.com/cheezy/fig_newton"
+
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ gem.files = `git ls-files`.split("\n")
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ gem.name = "fig_newton"
+ gem.require_paths = ["lib"]
+ gem.version = FigNewton::VERSION
+end
5 lib/fig_newton.rb
@@ -0,0 +1,5 @@
+require "fig_newton/version"
+
+module FigNewton
+ # Your code goes here...
+end
3 lib/fig_newton/version.rb
@@ -0,0 +1,3 @@
+module FigNewton
+ VERSION = "0.0.1"
+end
16 spec/spec_helper.rb
@@ -0,0 +1,16 @@
+# encoding: utf-8
+$LOAD_PATH.unshift(File.dirname(__FILE__))
+$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
+
+if ENV['coverage']
+ raise "simplecov only works on Ruby 1.9" unless RUBY_VERSION =~ /^1\.9/
+
+ require 'simplecov'
+ SimpleCov.start { add_filter "spec/" }
+end
+
+require 'rspec'
+require 'fig_newton'
+
+
+

0 comments on commit a865b25

Please sign in to comment.
Something went wrong with that request. Please try again.