Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 07bd07d

Browse files
committed
Initial commit to stache.
0 parents  commit 07bd07d

File tree

11 files changed

+202
-0
lines changed

11 files changed

+202
-0
lines changed

.document

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# .document is used by rdoc and yard to know how to generate documentation
2+
# for example, it can be used to control how rdoc gets built when you do `gem install foo`
3+
4+
README.rdoc
5+
lib/**/*.rb
6+
bin/*
7+
8+
# Files below this - are treated as 'extra files', and aren't parsed for ruby code
9+
-
10+
features/**/*.feature
11+
LICENSE

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
*.gem
2+
.bundle
3+
Gemfile.lock
4+
pkg/*
5+
# rcov generated
6+
coverage
7+
8+
# rdoc generated
9+
rdoc
10+
11+
# yard generated
12+
doc
13+
.yardoc
14+
15+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
16+
#
17+
# * Create a file at ~/.gitignore
18+
# * Include files you want ignored
19+
# * Run: git config --global core.excludesfile ~/.gitignore
20+
#
21+
# After doing this, these files will be ignored in all your git projects,
22+
# saving you from having to 'pollute' every project you touch with them
23+
#
24+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
25+
#
26+
# For MacOS:
27+
#
28+
#.DS_Store
29+
#
30+
# For TextMate
31+
#*.tmproj
32+
#tmtags
33+
#
34+
# For emacs:
35+
#*~
36+
#\#*
37+
#.\#*
38+
#
39+
# For vim:
40+
#*.swp

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source "http://rubygems.org"
2+
3+
# Specify your gem's dependencies in stache.gemspec
4+
gemspec

LICENSE

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2011 Matt Wilson
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.rdoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
= stache
2+
3+
Description goes here.
4+
5+
== Note on Patches/Pull Requests
6+
7+
* Fork the project.
8+
* Make your feature addition or bug fix.
9+
* Add tests for it. This is important so I don't break it in a
10+
future version unintentionally.
11+
* Commit, do not mess with rakefile, version, or history.
12+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13+
* Send me a pull request. Bonus points for topic branches.
14+
15+
== Copyright
16+
17+
Copyright (c) 2011 Matt Wilson. See LICENSE for details.

Rakefile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
require 'rubygems'
2+
3+
begin
4+
require 'bundler'
5+
rescue LoadError
6+
$stderr.puts "You must install bundler - run `gem install bundler`"
7+
end
8+
9+
begin
10+
Bundler.setup
11+
rescue Bundler::BundlerError => e
12+
$stderr.puts e.message
13+
$stderr.puts "Run `bundle install` to install missing gems"
14+
exit e.status_code
15+
end
16+
require 'rake'
17+
18+
require 'bueller'
19+
Bueller::Tasks.new
20+
21+
require 'rspec/core/rake_task'
22+
RSpec::Core::RakeTask.new(:examples) do |examples|
23+
examples.rspec_opts = '-Ispec'
24+
end
25+
26+
RSpec::Core::RakeTask.new(:rcov) do |spec|
27+
spec.rspec_opts = '-Ispec'
28+
spec.rcov = true
29+
end
30+
31+
task :default => :examples
32+
33+
require 'rake/rdoctask'
34+
Rake::RDocTask.new do |rdoc|
35+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
36+
37+
rdoc.main = 'README.rdoc'
38+
rdoc.rdoc_dir = 'rdoc'
39+
rdoc.title = "stache #{version}"
40+
rdoc.rdoc_files.include('README*')
41+
rdoc.rdoc_files.include('lib/**/*.rb')
42+
end

lib/stache.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require "stache/version"
2+
3+
module Stache
4+
# Your code goes here...
5+
end

lib/stache/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Stache
2+
VERSION = "0.0.1"
3+
end

spec/spec_helper.rb

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require 'bundler'
2+
begin
3+
Bundler.setup
4+
rescue Bundler::BundlerError => e
5+
$stderr.puts e.message
6+
$stderr.puts "Run `bundle install` to install missing gems"
7+
exit e.status_code
8+
end
9+
10+
require 'rspec'
11+
require 'stache'
12+
13+
# Requires supporting files with custom matchers and macros, etc,
14+
# in ./support/ and its subdirectories.
15+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
16+
17+
RSpec.configure do |config|
18+
19+
end

spec/stache_spec.rb

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

stache.gemspec

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
$:.push File.expand_path("../lib", __FILE__)
2+
require 'stache/version'
3+
4+
Gem::Specification.new do |s|
5+
s.name = 'stache'
6+
s.version = Stache::VERSION
7+
s.platform = Gem::Platform::RUBY
8+
s.date = '2011-08-12'
9+
s.authors = ['Matt Wilson']
10+
s.email = '[email protected]'
11+
s.homepage = 'http://github.com/hypomodern/stache'
12+
s.summary = %Q{Configurable}
13+
s.description = %Q{TODO: detailed description of your gem}
14+
s.extra_rdoc_files = [
15+
'LICENSE',
16+
'README.rdoc',
17+
]
18+
19+
s.required_rubygems_version = Gem::Requirement.new('>= 1.3.7')
20+
s.rubygems_version = '1.3.7'
21+
s.specification_version = 3
22+
23+
s.files = `git ls-files`.split("\n")
24+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
25+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
26+
s.require_paths = ['lib']
27+
28+
s.add_development_dependency 'rspec'
29+
s.add_development_dependency 'bundler'
30+
s.add_development_dependency 'bueller'
31+
s.add_development_dependency 'rake'
32+
s.add_development_dependency 'rcov'
33+
end
34+

0 commit comments

Comments
 (0)